2023-01-29 13:10:57 +01:00
|
|
|
import SvelteUIElement from "./UI/Base/SvelteUIElement"
|
2023-03-24 19:21:15 +01:00
|
|
|
import ThemeViewGUI from "./UI/ThemeViewGUI.svelte"
|
2023-03-23 00:58:21 +01:00
|
|
|
import { FixedUiElement } from "./UI/Base/FixedUiElement"
|
2023-03-24 19:21:15 +01:00
|
|
|
import { QueryParameters } from "./Logic/Web/QueryParameters"
|
|
|
|
import { AllKnownLayoutsLazy } from "./Customizations/AllKnownLayouts"
|
2023-03-23 01:42:47 +01:00
|
|
|
|
2023-01-29 13:10:57 +01:00
|
|
|
async function main() {
|
2023-03-24 19:21:15 +01:00
|
|
|
new FixedUiElement("Determining layout...").AttachTo("maindiv")
|
|
|
|
const qp = QueryParameters.GetQueryParameter("layout", "benches")
|
|
|
|
const layout = new AllKnownLayoutsLazy().get(qp.data)
|
|
|
|
console.log("Using layout", layout.id)
|
|
|
|
new SvelteUIElement(ThemeViewGUI, { layout }).AttachTo("maindiv")
|
2023-01-21 23:58:14 +01:00
|
|
|
}
|
|
|
|
|
2023-01-29 13:10:57 +01:00
|
|
|
main().then((_) => {})
|