mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-21 16:11:57 +00:00
feat: support ALL for extension languages
feat: accented progress bar for episodelist
This commit is contained in:
parent
7b92b594c5
commit
4deacc6471
3 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ui",
|
"name": "ui",
|
||||||
"version": "6.4.133",
|
"version": "6.4.134",
|
||||||
"license": "BUSL-1.1",
|
"license": "BUSL-1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@9.15.5",
|
"packageManager": "pnpm@9.15.5",
|
||||||
|
|
|
||||||
|
|
@ -77,10 +77,10 @@
|
||||||
{episode}. {title?.en ?? 'Episode ' + episode}
|
{episode}. {title?.en ?? 'Episode ' + episode}
|
||||||
</div>
|
</div>
|
||||||
{#if watched || completed}
|
{#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}
|
{:else if $watchProgress?.episode === episode}
|
||||||
<div class='w-full bg-neutral-800 mb-2'>
|
<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>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class='text-[9.6px] text-muted-foreground overflow-hidden'>
|
<div class='text-[9.6px] text-muted-foreground overflow-hidden'>
|
||||||
|
|
|
||||||
|
|
@ -244,6 +244,7 @@ export async function traceAnime (image: File | string) { // WAIT lookup logic
|
||||||
}
|
}
|
||||||
|
|
||||||
export function codeToEmoji (c: string) {
|
export function codeToEmoji (c: string) {
|
||||||
|
if (c === 'ALL') return '🌎'
|
||||||
return c.replace(/./g, (ch) => String.fromCodePoint(0x1f1a5 + ch.charCodeAt(0)))
|
return c.replace(/./g, (ch) => String.fromCodePoint(0x1f1a5 + ch.charCodeAt(0)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue