mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-10-25 02:31:30 +00:00
- 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
29 lines
774 B
TypeScript
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>
|
|
)
|
|
}
|