Add in-app notitications

This commit is contained in:
dtonon 2026-09-23 10:32:32 +02:00
parent 67d461333c
commit 8695d3e40e
10 changed files with 537 additions and 55 deletions

View file

@ -20,9 +20,12 @@
UserPostPage,
} from "$lib/forum/userPosts";
import Meta from "$lib/components/Meta.svelte";
import Notifications from "$lib/components/Notifications.svelte";
import { auth } from "$lib/auth.svelte";
import { summarize } from "$lib/seo";
const pubkey = $derived<string | null>(page.data.pubkey ?? null);
const isOwn = $derived(!!pubkey && auth.user?.pubkey === pubkey);
$effect(() => {
if (!pubkey) return;
@ -240,6 +243,10 @@
{/if}
</div>
{#if isOwn}
<Notifications />
{/if}
<div class="mt-10 grid gap-10 md:grid-cols-2 md:gap-8">
<section aria-labelledby="profile-discussions">
<h2