fix: player ui issues, autocomplete irc

This commit is contained in:
ThaUnknown 2025-04-18 22:33:04 +02:00
parent db0b9b6b69
commit 7edfbc3a1e
No known key found for this signature in database
8 changed files with 21 additions and 16 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.0.0",
"version": "6.0.1",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.14.4",

View file

@ -554,8 +554,8 @@
<svelte:document bind:fullscreenElement bind:visibilityState />
<div class='w-full h-full relative content-center fullscreen:bg-black overflow-clip text-left' class:fitWidth bind:this={wrapper}>
<video class='w-full h-full grow bg-black' preload='auto' class:cursor-none={immersed} class:cursor-pointer={isMiniplayer} class:object-cover={fitWidth} class:opacity-0={deband} class:absolute={deband} class:top-0={deband}
<div class='w-full h-full relative content-center bg-black overflow-clip text-left' class:fitWidth bind:this={wrapper}>
<video class='w-full h-full grow' preload='auto' class:cursor-none={immersed} class:cursor-pointer={isMiniplayer} class:object-cover={fitWidth} class:opacity-0={deband} class:absolute={deband} class:top-0={deband}
use:createDeband={$settings.playerDeband}
use:createSubtitles
use:autoPiP={pip}
@ -580,7 +580,7 @@
on:timeupdate={checkCompletion}
/>
<div class='absolute w-full h-full flex items-center justify-center top-0 pointer-events-none'>
<div class='absolute top-0 flex w-full pointer-events-none justify-center z-50 gap-4 pt-3 items-center font-bold text-lg' class:hidden={isMiniplayer}>
<div class='absolute top-0 flex w-full pointer-events-none justify-center gap-4 pt-3 items-center font-bold text-lg' class:hidden={isMiniplayer}>
<!-- {($torrentstats.progress * 100).toFixed(1)}% -->
<div class='flex justify-center items-center gap-2'>
<Users size={18} />
@ -588,11 +588,11 @@
</div>
<div class='flex justify-center items-center gap-2'>
<ChevronDown size={18} />
{fastPrettyBits($torrentstats.down)}/s
{fastPrettyBits($torrentstats.down * 8)}/s
</div>
<div class='flex justify-center items-center gap-2'>
<ChevronUp size={18} />
{fastPrettyBits($torrentstats.up)}/s
{fastPrettyBits($torrentstats.up * 8)}/s
</div>
</div>
{#if seeking}

View file

@ -69,6 +69,8 @@
}
}
if (!barSegments.length) barSegments.push({ size: 100, text: '', offset: 0, scale: 100 })
return barSegments
}
// seeking

View file

@ -82,7 +82,7 @@ export default new class AuthAggregator {
if (totalEps < progress) return // woah, bad data from resolver?!
const currentProgress = media.mediaListEntry?.progress ?? 0
if (currentProgress <= progress) return
if (currentProgress >= progress) return
const status =
totalEps === progress

View file

@ -7,6 +7,9 @@ import { decryptMessage, encryptMessage } from './crypt'
import type IrcChannel from '@thaunknown/web-irc/channel'
import type { ChatMessage, ChatUser } from '$lib/components/ui/chat'
import { dev } from '$app/environment'
export interface IRCUser { nick: string, ident: string, hostname: string, modes: string[], tags: object }
export interface PrivMessage {
from_server: boolean
@ -110,7 +113,7 @@ export default class MessageClient extends EventEmitter {
gecos: 'https://kiwiirc.com/',
encoding: 'utf8',
auto_reconnect: true,
transport: createChannelConstructor('http://do-e.clients.kiwiirc.com/webirc/kiwiirc/', '', '1') // this people are dumb enough to not refresh the ssl cert so don't use https
transport: createChannelConstructor(`http${dev ? '' : 's'}://do-e.clients.kiwiirc.com/webirc/kiwiirc/`, '', '1') // this people are dumb enough to not refresh the ssl cert so don't use https
})
})

View file

@ -32,7 +32,7 @@ export default {
showDetailsInRPC: true,
torrentPath: '',
angle: 'default' as 'default' | 'd3d11'| 'd3d9' | 'warp' | 'gl' | 'gles' | 'swiftshader' | 'vulkan' | 'metal',
idleAnimation: 'fancy' as 'fancy' | 'fast' | 'off',
idleAnimation: 'fast' as 'fancy' | 'fast' | 'off',
enableExternal: false,
playerPath: '',
playerSeek: 2,

View file

@ -32,7 +32,7 @@ export const languageCodes = {
per: 'Persian',
mal: 'Malayalam',
'': 'None'
}
} as const
export const subtitleResolutions = {
'0': 'None',
@ -40,7 +40,7 @@ export const subtitleResolutions = {
'1080': '1080p',
'720': '720p',
'480': '480p'
}
} as const
export const videoResolutions = {
'2160': '2160p',
@ -48,10 +48,10 @@ export const videoResolutions = {
'720': '720p',
'480': '480p',
'': 'Any'
}
} as const
export const lookupPreferences = {
quality: 'Quality',
size: 'Size',
seeders: 'Availability'
}
} as const

View file

@ -29,9 +29,9 @@
<Table.Cell>{(progress * 100).toFixed(1)}%</Table.Cell>
<Table.Cell>{fastPrettyBytes(size)}</Table.Cell>
<Table.Cell>{fastPrettyBytes(size * progress)}</Table.Cell>
<Table.Cell>{fastPrettyBits(down)}/s</Table.Cell>
<Table.Cell>{fastPrettyBits(up)}/s</Table.Cell>
<Table.Cell>{_eta(new Date(Date.now() + eta * 1000))}</Table.Cell>
<Table.Cell>{fastPrettyBits(down * 8)}/s</Table.Cell>
<Table.Cell>{fastPrettyBits(up * 8)}/s</Table.Cell>
<Table.Cell>{_eta(new Date(Date.now() + eta)) ?? 'Done'}</Table.Cell>
<Table.Cell>{seeders}<span class='text-muted-foreground'>/{peers}</span></Table.Cell>
<Table.Cell>{leechers}<span class='text-muted-foreground'>/{peers}</span></Table.Cell>
</Table.Row>