Files
bootnode/web/app/dashboard/layout.tsx
zeekay 8999f3c369 fix: dark theme, local auth redirect, and monitoring page
- Dashboard and navigation use dark-mode-aware CSS vars (bg-background,
  bg-sidebar, border-border) instead of hardcoded bg-gray-50/bg-white
- isProductionMode() now recognizes 127.0.0.1 and private IPs as local
  so login no longer redirects to lux.id on localhost
- Add /dashboard/infrastructure/monitoring page with node health
  summary cards, CPU/memory/disk usage bars, 15s auto-refresh
- Quick login button uses [email protected] / admin credentials
2026-02-10 14:56:14 -08:00

29 lines
774 B
TypeScript

"use client"
// Unified Dashboard Layout - Single layout for all dashboard pages
// Includes navigation, organization switching, team management
import { UnifiedNavigation } from "@/components/unified-navigation"
import { ProtectedRoute } from "@/lib/auth"
interface DashboardLayoutProps {
children: React.ReactNode
}
export default function DashboardLayout({ children }: DashboardLayoutProps) {
return (
<ProtectedRoute>
<div className="min-h-screen bg-background text-foreground">
<UnifiedNavigation />
{/* Main Content Area */}
<main className="pl-64 pt-16">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
{children}
</div>
</main>
</div>
</ProtectedRoute>
)
}