release: v1.0.2
Publish Docker image / build-and-push (push) Canceled after 0s
GitHub Release / release (push) Canceled after 0s
ci / ci (22, ubuntu-latest) (push) Canceled after 0s

Add i18n (zh-CN/en), mobile navigation menus, stats and upload UI
improvements, and Docker reset-password CLI for emergency recovery.
This commit is contained in:
O96u committed 2026-08-23 17:43:42 +08:00
1 parent 074e4502c2
commit 22cb2ca8bc
46 files changed
+3724 -587

No files matched your search

+17 -2
View File
@@ -4,6 +4,21 @@ import type { UploadProgressItem } from '~/types/image'
defineProps<{
items: UploadProgressItem[]
}>()
const { t } = useI18n()
function statusLabel(status: UploadProgressItem['status']) {
switch (status) {
case 'pending':
return t('upload.statusPending')
case 'uploading':
return t('upload.statusUploading')
case 'success':
return t('upload.statusSuccess')
default:
return t('upload.statusError')
}
}
</script>
<template>
@@ -12,7 +27,7 @@ defineProps<{
class="space-y-2 rounded-lg border border-default p-4"
>
<p class="text-sm font-medium text-muted">
上传进度
{{ t('upload.progress') }}
</p>
<div
v-for="item in items"
@@ -26,7 +41,7 @@ defineProps<{
variant="subtle"
size="xs"
>
{{ item.status === 'pending' ? '等待' : item.status === 'uploading' ? '上传中' : item.status === 'success' ? '成功' : '失败' }}
{{ statusLabel(item.status) }}
</UBadge>
</div>
<UProgress