1.5.1版本,体验性修复、打包fpk、docker镜像、windows包

This commit is contained in:
Yeomai committed 2026-10-18 15:32:56 +08:00
1 parent 813407de30
commit a6e45e0cb1
17 files changed
+3451 -15

No files matched your search

+17
View File
@@ -98,6 +98,15 @@ const presetLabel = computed(() => {
return null
}
})
/** 转码已耗时(轮询每秒刷新一次) */
const elapsedLabel = computed(() => {
if (!running.value || !props.item.transcodeStartedAt) return null
const started = new Date(props.item.transcodeStartedAt).getTime()
if (!Number.isFinite(started)) return null
const seconds = Math.max(0, Math.floor((Date.now() - started) / 1000))
return `${Math.floor(seconds / 60)} min ${seconds % 60} s`
})
</script>
<template>
@@ -239,6 +248,14 @@ const presetLabel = computed(() => {
>
{{ presetLabel }}
</UBadge>
<UBadge
v-if="elapsedLabel"
color="primary"
variant="subtle"
size="xs"
>
{{ t('library.transcodeElapsed') }} {{ elapsedLabel }}
</UBadge>
</p>
</div>
</div>