forked from MapComplete/MapComplete
refactoring: more state splitting, basic layoutFeatureSource
This commit is contained in:
parent
8e2f04c0d0
commit
b94a8f5745
54 changed files with 1067 additions and 1969 deletions
3
test.ts
3
test.ts
|
@ -2,12 +2,13 @@ import SvelteUIElement from "./UI/Base/SvelteUIElement"
|
|||
import ThemeViewGUI from "./UI/ThemeViewGUI.svelte"
|
||||
import { FixedUiElement } from "./UI/Base/FixedUiElement"
|
||||
import { QueryParameters } from "./Logic/Web/QueryParameters"
|
||||
import { AllKnownLayoutsLazy } from "./Customizations/AllKnownLayouts"
|
||||
import LayoutConfig from "./Models/ThemeConfig/LayoutConfig"
|
||||
import * as benches from "./assets/generated/themes/benches.json"
|
||||
|
||||
async function main() {
|
||||
new FixedUiElement("Determining layout...").AttachTo("maindiv")
|
||||
const qp = QueryParameters.GetQueryParameter("layout", "")
|
||||
new FixedUiElement("").AttachTo("extradiv")
|
||||
const layout = new LayoutConfig(<any>benches, true) // qp.data === "" ? : new AllKnownLayoutsLazy().get(qp.data)
|
||||
console.log("Using layout", layout.id)
|
||||
new SvelteUIElement(ThemeViewGUI, { layout }).AttachTo("maindiv")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue