forked from MapComplete/MapComplete
refactoring
This commit is contained in:
parent
b94a8f5745
commit
5d0fe31c41
114 changed files with 2412 additions and 2958 deletions
8
test.ts
8
test.ts
|
@ -1,17 +1,17 @@
|
|||
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 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")
|
||||
}
|
||||
|
||||
async function test() {
|
||||
// new LengthInput().AttachTo("maindiv")
|
||||
}
|
||||
//test().then((_) => {})
|
||||
main().then((_) => {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue