adds page loading bar

This commit is contained in:
Christian Beutel
2025-01-10 16:41:50 +01:00
parent 5274d25199
commit e04b01006f
2 changed files with 287 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
import "../css/app.css";
import "../css/components.css";
import "../css/theme.css";
import PageLoadingBar from "$lib/components/page_loading_bar.svelte";
beforeNavigate((n) => {
if (!$currentUser && isRouteProtected(n.to?.url?.pathname ?? "")) {
@@ -68,6 +69,7 @@
{/if}
<NavBar></NavBar>
<PageLoadingBar ></PageLoadingBar>
<Toast></Toast>
<slot />