feat: add scoped upload tokens

This commit is contained in:
Ludwig Lehnert
2026-06-18 19:17:51 +00:00
parent a2b6054440
commit 0ed32f7623
17 changed files with 592 additions and 95 deletions

View File

@@ -0,0 +1,22 @@
const adminTabs = [
{ key: 'dashboard', href: '/manage/dashboard', label: 'Meine Dateien' },
{ key: 'stats', href: '/manage/admin/dashboard?tab=stats', label: 'Admin' },
{ key: 'uploads', href: '/manage/admin/dashboard?tab=uploads', label: 'Alle Uploads' },
{ key: 'requests', href: '/manage/admin/dashboard?tab=requests', label: 'Anfragen' },
{ key: 'files', href: '/manage/admin/files', label: 'Dateimanager' },
{ key: 'users', href: '/manage/admin/users', label: 'Benutzer' },
{ key: 'tokens', href: '/manage/admin/tokens', label: 'Upload-Tokens' },
{ key: 'logs', href: '/manage/admin/dashboard?tab=logs', label: 'Logs' },
];
export function AdminTabs({ active }) {
return (
<nav className="tabs" aria-label="Admin-Bereiche">
{adminTabs.map((tab) => (
<a key={tab.key} className={`tab ${active === tab.key ? 'active' : ''}`} href={tab.href}>
{tab.label}
</a>
))}
</nav>
);
}