feat(auth): protect aggregate console with password login

This commit is contained in:
chick
2026-07-19 17:13:43 +08:00
parent 75682b8134
commit f2803896a8
16 changed files with 1165 additions and 11 deletions
+3 -8
View File
@@ -1,3 +1,4 @@
import { ConsoleAuthSettings } from './auth/console-auth-settings.js';
import { AuditPage, type AuditDataSource } from './audit/audit-page.js';
import { createAuditApiDataSource } from './audit/audit-api-data-source.js';
import type { ReactNode } from 'react';
@@ -250,13 +251,7 @@ function Page({
refreshSignal={fleetRefreshSignal}
/>
);
if (route.kind === 'settings-system')
return (
<section aria-labelledby="system-settings-title">
<h1 id="system-settings-title"></h1>
<p role="status"></p>
</section>
);
if (route.kind === 'settings-system') return <ConsoleAuthSettings />;
if (route.kind === 'not-found')
return (
<section>
@@ -500,7 +495,7 @@ export function AppShell({
{(
[
['fleet', '/fleet', '实例总览'],
['settings', '/settings/instances', '设置'],
['settings', '/settings/system', '设置'],
] as const
).map(([key, href, label]) => (
<li key={key}>