release: v1.1.0 — S3 multi-backend storage and admin UI
ci / ci (22, ubuntu-latest) (push) Canceled after 0s
Publish Docker image / build (linux/amd64, ubuntu-latest, amd64) (push) Canceled after 0s
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Canceled after 0s
Publish Docker image / merge (push) Canceled after 0s
GitHub Release / release (push) Canceled after 0s

This commit is contained in:
O96u committed 2026-08-26 14:49:46 +08:00
1 parent 7c45a78572
commit acc64751ef
46 files changed
+4005 -480

No files matched your search

+13 -22
View File
@@ -16,44 +16,35 @@ const navItems = computed(() => {
{ label: t('nav.stats'), to: '/stats', icon: 'i-lucide-chart-column' }
]
if (isAdmin.value) {
items.push({ label: t('nav.storage'), to: '/storage', icon: 'i-lucide-hard-drive' })
items.push({ label: t('nav.settings'), to: '/settings', icon: 'i-lucide-settings' })
}
return items
})
const accountMenuItems = computed<DropdownMenuItem[]>(() => {
const items: DropdownMenuItem[] = [
{
label: t('nav.changePassword'),
icon: 'i-lucide-key-round',
to: '/account/password'
}
]
if (isAdmin.value) {
items.push({
label: t('nav.systemSettings'),
icon: 'i-lucide-settings',
to: '/settings'
})
}
items.push({
const accountMenuItems = computed<DropdownMenuItem[]>(() => [
{
label: t('nav.changePassword'),
icon: 'i-lucide-key-round',
to: '/account/password'
},
{
label: t('nav.logout'),
icon: 'i-lucide-log-out',
onSelect() {
void handleLogout()
}
})
return items
})
}
])
const desktopUserMenuItems = computed<DropdownMenuItem[][]>(() => [
accountMenuItems.value
])
function isNavActive(to: string) {
if (to === '/settings') {
return route.path === '/settings'
}
return route.path.startsWith(to)
}