working on the frontend, adding torrent page, working on show directory, working on the api

This commit is contained in:
maxDorninger
2025-05-11 10:59:38 +02:00
parent 180771882d
commit ef7b020043
164 changed files with 5389 additions and 1594 deletions

View File

@@ -1,12 +1,13 @@
<script lang="ts">
import {getContext} from "svelte";
import {getContext} from 'svelte';
import type {User} from '$lib/types';
const user: () => App.User = getContext("user")
const user: () => User = getContext('user');
</script>
<span class="truncate font-semibold">{user().email}</span>
{#if user().is_superuser}
<span class="truncate text-xs">Administrator</span>
{:else }
<span class="truncate text-xs">User</span>
{/if}
<span class="truncate text-xs">Administrator</span>
{:else}
<span class="truncate text-xs">User</span>
{/if}