Svelte Rune Mode fixes
This commit is contained in:
parent
59a0cb4bc9
commit
0ac6065a83
3 changed files with 13 additions and 8 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import '../app.postcss';
|
import '../app.postcss';
|
||||||
|
import { page } from '$app/stores';
|
||||||
import { browser } from '$app/environment';
|
import { browser } from '$app/environment';
|
||||||
import { writable } from 'svelte/store';
|
import { writable } from 'svelte/store';
|
||||||
import { themes } from '$lib/types/themes'
|
import { themes } from '$lib/types/themes'
|
||||||
|
@ -38,12 +39,12 @@
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="h-full" >
|
<Header {page}/>
|
||||||
<Header/>
|
<div class="m-4 border-2 border-accent rounded-lg h-[calc(100%-5.75rem-1px)]">
|
||||||
<slot />
|
<slot />
|
||||||
<!-- Router Slot -->
|
|
||||||
<!-- ---- / ---- -->
|
|
||||||
<!-- (pageFooter) -->
|
|
||||||
<!-- (footer) -->
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Router Slot -->
|
||||||
|
<!-- ---- / ---- -->
|
||||||
|
<!-- (pageFooter) -->
|
||||||
|
<!-- (footer) -->
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<!-- YOU CAN DELETE EVERYTHING IN THIS PAGE -->
|
<svelte:options runes={true} />
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
<svelte:options runes={true} />
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from '$app/stores';
|
|
||||||
import discord from '$lib/images/discord.svg';
|
import discord from '$lib/images/discord.svg';
|
||||||
import * as DropdownMenu from '$lib/components/ui/dropdown-menu';
|
import * as DropdownMenu from '$lib/components/ui/dropdown-menu';
|
||||||
import { Button } from '$lib/components/ui/button';
|
import { Button } from '$lib/components/ui/button';
|
||||||
|
@ -9,6 +10,8 @@
|
||||||
import { Exit } from 'radix-icons-svelte';
|
import { Exit } from 'radix-icons-svelte';
|
||||||
import { Separator } from '$lib/components/ui/separator';
|
import { Separator } from '$lib/components/ui/separator';
|
||||||
|
|
||||||
|
let { page } = $props()
|
||||||
|
|
||||||
let user = {
|
let user = {
|
||||||
loggedIn: true, // DEBUG
|
loggedIn: true, // DEBUG
|
||||||
admin: true, // DEBUG
|
admin: true, // DEBUG
|
||||||
|
|
Reference in a new issue