add extra song information to player

This commit is contained in:
2026-02-10 05:00:53 -08:00
parent 864a11fac4
commit cdd90016f8
12 changed files with 213 additions and 169 deletions

View File

@@ -74,6 +74,9 @@
songName: s.songName,
artistName: s.artistName,
fileName: s.fileName ?? null,
dub: Boolean(s.dub),
rebroadcast: Boolean(s.rebroadcast),
globalPercent: s.globalPercent,
}),
)
.filter((t) => t !== null);
@@ -98,6 +101,9 @@
songName: s.songName,
artistName: s.artistName,
fileName: s.fileName ?? null,
dub: Boolean(s.dub),
rebroadcast: Boolean(s.rebroadcast),
globalPercent: s.globalPercent,
}),
)
.filter((t) => t !== null);
@@ -157,8 +163,7 @@
class="rounded border px-3 py-2 text-sm"
placeholder="Type to search by name…"
value={params.q}
oninput={(e) =>
(params.q = (e.currentTarget as HTMLInputElement).value)}
oninput={(e) => (params.q = (e.currentTarget as HTMLInputElement).value)}
autocomplete="off"
spellcheck={false}
/>
@@ -176,10 +181,7 @@
<li class="rounded border px-3 py-2">
<div class="flex flex-wrap items-center justify-between gap-3">
<div class="min-w-0">
<a
class="font-medium hover:underline"
href={animeHref(a.annId)}
>
<a class="font-medium hover:underline" href={animeHref(a.annId)}>
{a.mainName}
</a>
<div class="text-sm text-muted-foreground">
@@ -196,8 +198,7 @@
type="button"
class="btn-icon"
onclick={() => void playAllNextForAnime(a)}
disabled={a.opCount + a.edCount + a.insertCount ===
0}
disabled={a.opCount + a.edCount + a.insertCount === 0}
title="Play all next"
aria-label="Play all next"
>
@@ -208,8 +209,7 @@
type="button"
class="btn-icon"
onclick={() => void queueAllForAnime(a)}
disabled={a.opCount + a.edCount + a.insertCount ===
0}
disabled={a.opCount + a.edCount + a.insertCount === 0}
title="Queue all"
aria-label="Queue all"
>

View File

@@ -38,6 +38,7 @@
fileName: s.fileName ?? null,
dub: Boolean(s.dub),
rebroadcast: Boolean(s.rebroadcast),
globalPercent: s.globalPercent,
}),
)
.filter((t) => t !== null);

View File

@@ -64,6 +64,7 @@
fileName: r.fileName,
dub: Boolean(r.dub),
rebroadcast: Boolean(r.rebroadcast),
globalPercent: r.globalPercent,
}),
)
.filter((t) => t !== null),

View File

@@ -51,6 +51,7 @@
fileName: r.fileName,
dub: Boolean(r.dub),
rebroadcast: Boolean(r.rebroadcast),
globalPercent: r.globalPercent,
}),
)
.filter((t) => t !== null),