2022-06-08 02:25:35 +02:00
|
|
|
import * as React from "react";
|
|
|
|
import {createRoot} from 'react-dom/client';
|
|
|
|
import {sprintf} from "sprintf-js";
|
|
|
|
import {Terminal} from 'xterm';
|
|
|
|
import {Main} from "./main";
|
|
|
|
|
|
|
|
let VERSION = __SHVERSION__;
|
|
|
|
let terminal = null;
|
2022-06-13 20:12:39 +02:00
|
|
|
let sessionId = "47445c53-cfcf-4943-8339-2c04447f20a1";
|
2022-06-08 02:25:35 +02:00
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
2022-06-13 20:12:39 +02:00
|
|
|
let reactElem = React.createElement(Main, {sessionid: sessionId}, null);
|
2022-06-08 02:25:35 +02:00
|
|
|
let elem = document.getElementById("main");
|
|
|
|
let root = createRoot(elem);
|
|
|
|
root.render(reactElem);
|
|
|
|
});
|
|
|
|
|
|
|
|
console.log("SCRIPTHAUS", VERSION)
|