From 7ffb71bc4048e627f6033e87c081a4a063f92bb0 Mon Sep 17 00:00:00 2001 From: Yuri Tatishchev Date: Thu, 5 Feb 2026 23:28:35 -0800 Subject: [PATCH] list page pt. 10 song entry component --- src/lib/components/SongEntry.svelte | 87 +++++++++++++++++++++++++++++ src/routes/list/+page.svelte | 37 ++++-------- 2 files changed, 98 insertions(+), 26 deletions(-) create mode 100644 src/lib/components/SongEntry.svelte diff --git a/src/lib/components/SongEntry.svelte b/src/lib/components/SongEntry.svelte new file mode 100644 index 0000000..9418935 --- /dev/null +++ b/src/lib/components/SongEntry.svelte @@ -0,0 +1,87 @@ + + +
+
+ {animeName} + + {displayTypeNumber} +
+ +
+ {songName} + — {artistDisplay} +
+ + {#if showPlayer && fileName} +
+ +
+ {/if} +
diff --git a/src/routes/list/+page.svelte b/src/routes/list/+page.svelte index 3e4fc1e..8b86405 100644 --- a/src/routes/list/+page.svelte +++ b/src/routes/list/+page.svelte @@ -3,6 +3,7 @@ import { onMount } from "svelte"; import { z } from "zod"; import { invalidate } from "$app/navigation"; + import SongEntry from "$lib/components/SongEntry.svelte"; import { db as clientDb } from "$lib/db/client-db"; import { MalAnimeListQuerySchema, @@ -146,32 +147,16 @@