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
+4 -1
View File
@@ -1,6 +1,7 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { ConsoleAuthGate } from './auth/console-auth.js';
import { AppShell } from './app-shell.js';
import './styles.css';
@@ -9,6 +10,8 @@ if (!root) throw new Error('Missing application root');
createRoot(root).render(
<StrictMode>
<AppShell pathname={window.location.pathname} />
<ConsoleAuthGate>
<AppShell pathname={window.location.pathname} />
</ConsoleAuthGate>
</StrictMode>,
);