Svelte Rune Mode fixes

This commit is contained in:
Neshura 2023-12-09 18:53:45 +01:00
parent 59a0cb4bc9
commit 0ac6065a83
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
3 changed files with 13 additions and 8 deletions

View file

@ -2,6 +2,7 @@
<script lang="ts">
import '../app.postcss';
import { page } from '$app/stores';
import { browser } from '$app/environment';
import { writable } from 'svelte/store';
import { themes } from '$lib/types/themes'
@ -38,12 +39,12 @@
</script>
<div class="h-full" >
<Header/>
<Header {page}/>
<div class="m-4 border-2 border-accent rounded-lg h-[calc(100%-5.75rem-1px)]">
<slot />
<!-- Router Slot -->
<!-- ---- / ---- -->
<!-- (pageFooter) -->
<!-- (footer) -->
</div>
<!-- Router Slot -->
<!-- ---- / ---- -->
<!-- (pageFooter) -->
<!-- (footer) -->

View file

@ -1,4 +1,5 @@
<!-- YOU CAN DELETE EVERYTHING IN THIS PAGE -->
<svelte:options runes={true} />
<script lang="ts">
</script>

View file

@ -1,5 +1,6 @@
<svelte:options runes={true} />
<script lang="ts">
import { page } from '$app/stores';
import discord from '$lib/images/discord.svg';
import * as DropdownMenu from '$lib/components/ui/dropdown-menu';
import { Button } from '$lib/components/ui/button';
@ -9,6 +10,8 @@
import { Exit } from 'radix-icons-svelte';
import { Separator } from '$lib/components/ui/separator';
let { page } = $props()
let user = {
loggedIn: true, // DEBUG
admin: true, // DEBUG