2020-08-08 21:17:17 +02:00
|
|
|
import {OsmConnection, UserDetails} from "./Logic/Osm/OsmConnection";
|
|
|
|
import {VariableUiElement} from "./UI/Base/VariableUIElement";
|
2020-08-17 17:23:15 +02:00
|
|
|
import {UIEventSource} from "./Logic/UIEventSource";
|
|
|
|
import {ThemeGenerator} from "./UI/CustomThemeGenerator/ThemeGenerator";
|
|
|
|
import {Preview} from "./UI/CustomThemeGenerator/Preview";
|
2020-08-08 21:17:17 +02:00
|
|
|
|
|
|
|
const connection = new OsmConnection(true, new UIEventSource<string>(undefined), false);
|
|
|
|
connection.AttemptLogin();
|
|
|
|
|
|
|
|
|
|
|
|
const themeGenerator = new ThemeGenerator(connection, window.location.hash?.substr(1));
|
|
|
|
themeGenerator.AttachTo("layoutCreator")
|
|
|
|
|
2020-08-08 21:49:39 +02:00
|
|
|
new Preview(themeGenerator.url, themeGenerator.themeObject).AttachTo("preview");
|