2025-01-23 13:03:12 +01:00
|
|
|
import MetaTagging from "./src/Logic/MetaTagging"
|
2025-01-23 15:05:44 +01:00
|
|
|
import ThemeConfig from "./src/Models/ThemeConfig/ThemeConfig"
|
2025-01-23 14:27:02 +01:00
|
|
|
import SingleThemeGui from "./src/UI/SingleThemeGui.svelte"
|
2022-07-25 16:58:30 +02:00
|
|
|
|
2023-09-22 11:20:22 +02:00
|
|
|
|
2024-02-20 02:01:08 +01:00
|
|
|
async function main() {
|
|
|
|
MetaTagging.setThemeMetatagging(new ThemeMetaTagging())
|
|
|
|
// LAYOUT.ADD_LAYERS
|
2024-07-14 12:07:23 +02:00
|
|
|
// LAYOUT.ADD_CONFIG
|
2024-06-18 03:33:11 +02:00
|
|
|
const target = document.getElementById("maindiv")
|
|
|
|
const childs = Array.from(target.children)
|
2025-01-23 13:03:12 +01:00
|
|
|
new SingleThemeGui({
|
2024-06-18 03:33:11 +02:00
|
|
|
target,
|
2025-01-23 15:05:44 +01:00
|
|
|
props: { theme: new ThemeConfig(theme, true, {definitionRaw: theme}) },
|
2024-06-15 02:21:18 +02:00
|
|
|
})
|
2024-06-18 03:33:11 +02:00
|
|
|
childs.forEach(ch => target.removeChild(ch))
|
2024-03-21 22:39:36 +01:00
|
|
|
Array.from(document.getElementsByClassName("delete-on-load")).forEach(el => {
|
|
|
|
el.parentElement.removeChild(el)
|
|
|
|
})
|
2024-02-20 02:01:08 +01:00
|
|
|
}
|
|
|
|
main()
|