deleting of servers, invites, make a different file for dashboard, make
invites a new citizen, partly fix PSD type, switch to glass and 9x dicebear
This commit is contained in:
parent
578edf32d4
commit
f1dcd0cfc5
10 changed files with 529 additions and 300 deletions
|
|
@ -14,13 +14,12 @@
|
|||
import Button, { buttonVariants } from './ui/button/button.svelte';
|
||||
import User from './extra/User.svelte';
|
||||
import type { SessionValidationResult } from '$lib/server/auth';
|
||||
import { Status, type OverviewUser } from '$lib';
|
||||
import { Status, type AppPSD, type OverviewUser } from '$lib';
|
||||
import Label from './ui/label/label.svelte';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { enhance } from '$app/forms';
|
||||
import { invalidateAll } from '$app/navigation';
|
||||
import { fill_overview_data } from '$lib/state.svelte';
|
||||
import type { PageServerLoad } from '../../routes/app/$types';
|
||||
|
||||
import { overview_data } from '$lib/state.svelte';
|
||||
|
||||
|
|
@ -33,7 +32,7 @@
|
|||
}: {
|
||||
currentPage: string | null;
|
||||
subPage: string | null;
|
||||
psd: PageServerLoad;
|
||||
psd: AppPSD;
|
||||
user: SessionValidationResult['user'];
|
||||
} = $props();
|
||||
</script>
|
||||
|
|
@ -219,10 +218,10 @@
|
|||
{/if}
|
||||
</Tabs.Content>
|
||||
<Tabs.Content value="manage">
|
||||
{#if data.friends.length === 0}
|
||||
{#if overview_data.friends.length === 0}
|
||||
<p class="text-sm text-muted-foreground">You have no friends added.</p>
|
||||
{:else}
|
||||
{#each data.friends as friend (friend.id)}
|
||||
{#each overview_data.friends as friend (friend.id)}
|
||||
<Card.Root class="mb-2">
|
||||
<Card.Header>
|
||||
<Card.Title>{friend.username}</Card.Title>
|
||||
|
|
@ -492,7 +491,7 @@
|
|||
}}
|
||||
>
|
||||
<img
|
||||
src={'https://api.dicebear.com/7.x/pixel-art/svg?seed=' + server.name}
|
||||
src={'https://api.dicebear.com/9.x/glass/svg?seed=' + server.name}
|
||||
alt={server.name}
|
||||
class="size-6 rounded-full"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue