mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-21 16:06:41 +02:00
- Move finance, mail, moodlit to apps-archived for later development - Rename games/voxel-lava to games/voxelava 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
36 lines
843 B
Svelte
36 lines
843 B
Svelte
<script lang="ts">
|
|
import '../app.css';
|
|
import '$lib/i18n';
|
|
import { onMount } from 'svelte';
|
|
import { theme } from '$lib/stores/theme';
|
|
import { authStore } from '$lib/stores/auth.svelte';
|
|
|
|
let { children } = $props();
|
|
|
|
let loading = $state(true);
|
|
|
|
onMount(async () => {
|
|
// Initialize theme
|
|
theme.initialize();
|
|
|
|
// Initialize auth
|
|
await authStore.initialize();
|
|
|
|
loading = false;
|
|
});
|
|
</script>
|
|
|
|
{#if loading}
|
|
<div class="flex min-h-screen items-center justify-center bg-background">
|
|
<div class="text-center">
|
|
<div
|
|
class="mb-4 inline-block h-12 w-12 animate-spin rounded-full border-4 border-solid border-primary border-r-transparent"
|
|
></div>
|
|
<p class="text-muted-foreground">Laden...</p>
|
|
</div>
|
|
</div>
|
|
{:else}
|
|
<div class="min-h-screen bg-background text-foreground">
|
|
{@render children()}
|
|
</div>
|
|
{/if}
|