[FA-misc] Switches to using DTOs, updates frontend with details and reader page, updates novel import to be an upsert

This commit is contained in:
gamer147
2025-12-08 18:30:00 -05:00
parent c9d93a4e55
commit 81e4e88ad4
48 changed files with 3298 additions and 329 deletions

View File

@@ -4,10 +4,10 @@
let isOpen = $state(false);
const email = $derived(
$user?.profile?.email ??
const name = $derived(
$user?.profile?.name ??
$user?.profile?.preferred_username ??
$user?.profile?.name ??
$user?.profile?.email ??
$user?.profile?.sub ??
'User'
);
@@ -38,7 +38,7 @@
{:else if $user}
<div class="auth-dropdown relative">
<Button variant="outline" onclick={toggleDropdown}>
{email}
{name}
</Button>
{#if isOpen}
<div