22 lines
589 B
TypeScript
22 lines
589 B
TypeScript
import RootView from "@/ui/Root/RootView";
|
|
import "@/ui/global.css";
|
|
|
|
const appNode = document.querySelector("#app");
|
|
|
|
if (appNode) {
|
|
try {
|
|
const appRoot = new RootView({
|
|
orientation: "vertical",
|
|
title: "OBVIOUS CHANGING",
|
|
});
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
//@ts-ignore
|
|
window.appRoot = appRoot;
|
|
appNode.appendChild(appRoot.render());
|
|
console.log("OK!");
|
|
} catch (e) {
|
|
console.error("FUCK!", e);
|
|
}
|
|
} else {
|
|
console.error("FUCK!");
|
|
} |