feat(Store): added store page

This commit is contained in:
sethburkart123
2024-09-13 16:01:48 +10:00
parent 8d08354f6c
commit 1272c60a4d
14 changed files with 385 additions and 8 deletions
+20
View File
@@ -0,0 +1,20 @@
import renderSvelte from '@/svelte-interface/main';
import Store from '@/svelte-interface/pages/store.svelte'
import { unmount } from 'svelte'
export function renderStore() {
const container = document.querySelector('#container');
if (!container) {
throw new Error('Container not found');
}
const child = document.createElement('div');
child.id = 'store';
container!.appendChild(child);
const shadow = child.attachShadow({ mode: 'open' });
const app = renderSvelte(Store, shadow);
return () => unmount(app)
}