main.ts
1 import { mount } from 'svelte'; 2 import Dashboard from './Dashboard.svelte'; 3 import '../../assets/styles/global.css'; 4 5 // Parse workspace info from URL 6 const params = new URLSearchParams(window.location.search); 7 const workspaceId = params.get('workspaceId'); 8 const workspaceType = params.get('type'); 9 const isTranscendent = params.get('transcendent') === 'true'; 10 const parentId = params.get('parentId'); 11 12 const app = mount(Dashboard, { 13 target: document.getElementById('app')!, 14 props: { 15 workspaceId, 16 workspaceType, 17 isTranscendent, 18 parentId, 19 }, 20 }); 21 22 export default app;