fix: building working, (lots of bugs)

This commit is contained in:
sethburkart123
2024-09-02 21:46:48 +10:00
parent 99a3166fa4
commit 2f08d6ee08
107 changed files with 1113 additions and 37 deletions
+25
View File
@@ -0,0 +1,25 @@
// @ts-expect-error - Svelte Hash Router is not typed (yet)
import { routes } from 'svelte-hash-router'
import App from './+layout.svelte';
import Settings from './pages/settings.svelte';
import styles from './index.css?inline';
export default function initSvelteInterface(shadow: ShadowRoot) {
console.log(shadow)
routes.set({
'settings': Settings,
'*': Settings
})
const app = new App({
target: shadow,
});
const style2 = document.createElement("style");
style2.setAttribute("type", "text/css");
style2.innerHTML = styles;
shadow.appendChild(style2);
return app;
}