feature: add sv-router, page structure and redirect to home from any other page

This commit is contained in:
Ilia Mashkov
2026-05-30 18:31:56 +03:00
parent eb5a8d1e5b
commit f6911fbcca
7 changed files with 64 additions and 8 deletions
+5 -4
View File
@@ -6,21 +6,22 @@
/**
* App Component
*
* Application entry point component. Wraps the main page route within the shared
* Application entry point component. Wraps the active route within the shared
* layout shell. This is the root component mounted by the application.
*
* Structure:
* - QueryProvider provides TanStack Query client for data fetching
* - Layout provides sidebar, header/footer, and page container
* - Page renders the current route content
* - Router renders the matched route component
*/
import Page from '$routes/Page.svelte';
import '$routes/router';
import { Router } from 'sv-router';
import { QueryProvider } from './providers';
import Layout from './ui/Layout.svelte';
</script>
<QueryProvider>
<Layout>
<Page />
<Router />
</Layout>
</QueryProvider>