feat: support ALL for extension languages

feat: accented progress bar for episodelist
This commit is contained in:
ThaUnknown 2025-09-12 10:59:11 +02:00
parent 7b92b594c5
commit 4deacc6471
No known key found for this signature in database
3 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.4.133",
"version": "6.4.134",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.15.5",

View file

@ -77,10 +77,10 @@
{episode}. {title?.en ?? 'Episode ' + episode}
</div>
{#if watched || completed}
<div class='mb-2 h-0.5 overflow-hidden w-full bg-blue-600 shrink-0' />
<div class='mb-2 h-0.5 overflow-hidden w-full bg-custom shrink-0' />
{:else if $watchProgress?.episode === episode}
<div class='w-full bg-neutral-800 mb-2'>
<div class='h-0.5 overflow-hidden bg-blue-600 shrink-0' style:width={$watchProgress.progress + '%'} />
<div class='h-0.5 overflow-hidden bg-custom shrink-0' style:width={$watchProgress.progress + '%'} />
</div>
{/if}
<div class='text-[9.6px] text-muted-foreground overflow-hidden'>

View file

@ -244,6 +244,7 @@ export async function traceAnime (image: File | string) { // WAIT lookup logic
}
export function codeToEmoji (c: string) {
if (c === 'ALL') return '🌎'
return c.replace(/./g, (ch) => String.fromCodePoint(0x1f1a5 + ch.charCodeAt(0)))
}