Monitor page: Uptime Kuma iframe + deploy log; expose /deploy/ via nginx
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1dd265b46d
commit
ea9dba0c58
3 changed files with 128 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import { Login } from './pages/Login'
|
|||
import { Dashboard } from './pages/Dashboard'
|
||||
import { AppFrame } from './pages/AppFrame'
|
||||
import { AdminUsers } from './pages/AdminUsers'
|
||||
import { AdminMonitor } from './pages/AdminMonitor'
|
||||
|
||||
// The portal is only ever the top-level frame. If it finds itself loaded inside
|
||||
// an iframe, it means an app's path fell back to the portal (that app isn't
|
||||
|
|
@ -42,7 +43,7 @@ export default function App() {
|
|||
<Route path="/" element={<Dashboard user={user} />} />
|
||||
<Route path="/app/:slug" element={<AppFrame user={user} />} />
|
||||
<Route path="/admin/users" element={user.is_admin ? <AdminUsers user={user} /> : <Navigate to="/" />} />
|
||||
<Route path="/admin/monitor" element={<Navigate to="/notices/" />} />
|
||||
<Route path="/admin/monitor" element={user.is_admin ? <AdminMonitor user={user} /> : <Navigate to="/" />} />
|
||||
<Route path="*" element={<Navigate to="/" />} />
|
||||
</Routes>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue