From 95476276ac606a9557d854ab1f2b165f73424537 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 5 Oct 2025 20:58:15 +0200 Subject: [PATCH] Update proxmox-dashboard.tsx --- AppImage/components/proxmox-dashboard.tsx | 137 ++++++++++++++++++---- 1 file changed, 116 insertions(+), 21 deletions(-) diff --git a/AppImage/components/proxmox-dashboard.tsx b/AppImage/components/proxmox-dashboard.tsx index e2020f5..d1cf87f 100644 --- a/AppImage/components/proxmox-dashboard.tsx +++ b/AppImage/components/proxmox-dashboard.tsx @@ -8,10 +8,12 @@ import { SystemOverview } from "./system-overview" import { StorageOverview } from "./storage-overview" import { NetworkMetrics } from "./network-metrics" import { VirtualMachines } from "./virtual-machines" +import { Hardware } from "./hardware" import { SystemLogs } from "./system-logs" -import { RefreshCw, AlertTriangle, CheckCircle, XCircle, Server } from "lucide-react" +import { RefreshCw, AlertTriangle, CheckCircle, XCircle, Server, Menu } from "lucide-react" import Image from "next/image" import { ThemeToggle } from "./theme-toggle" +import { Sheet, SheetContent, SheetTrigger } from "./ui/sheet" interface SystemStatus { status: "healthy" | "warning" | "critical" @@ -42,6 +44,7 @@ export function ProxmoxDashboard() { const [isRefreshing, setIsRefreshing] = useState(false) const [isServerConnected, setIsServerConnected] = useState(true) const [componentKey, setComponentKey] = useState(0) + const [mobileMenuOpen, setMobileMenuOpen] = useState(false) const fetchSystemData = useCallback(async () => { console.log("[v0] Fetching system data from Flask server...") @@ -169,10 +172,11 @@ export function ProxmoxDashboard() { )}
-
-
-
-
+
+
+ {/* Logo and Title */} +
+
ProxMenux Logo - +
-
-

ProxMenux Monitor

-

Proxmox System Dashboard

+
+

ProxMenux Monitor

+

Proxmox System Dashboard

-
-
+ {/* Desktop Actions */} +
+
{systemStatus.serverName}
@@ -211,7 +216,7 @@ export function ProxmoxDashboard() { {systemStatus.status} -
Uptime: {systemStatus.uptime}
+
Uptime: {systemStatus.uptime}
+ + {/* Mobile Actions */} +
+ + {statusIcon} + {systemStatus.status} + + + + + +
+
+ + {/* Mobile Server Info */} +
+
+ + {systemStatus.serverName} +
+ Uptime: {systemStatus.uptime}
-
- - +
+ + Virtual Machines + + Hardware + - + +
+ + + +
+ +
+ setMobileMenuOpen(false)} + className="w-full justify-start data-[state=active]:bg-primary data-[state=active]:text-primary-foreground" + > + Overview + + setMobileMenuOpen(false)} + className="w-full justify-start data-[state=active]:bg-primary data-[state=active]:text-primary-foreground" + > + Storage + + setMobileMenuOpen(false)} + className="w-full justify-start data-[state=active]:bg-primary data-[state=active]:text-primary-foreground" + > + Network + + setMobileMenuOpen(false)} + className="w-full justify-start data-[state=active]:bg-primary data-[state=active]:text-primary-foreground" + > + Virtual Machines + + setMobileMenuOpen(false)} + className="w-full justify-start data-[state=active]:bg-primary data-[state=active]:text-primary-foreground" + > + Hardware + + setMobileMenuOpen(false)} + className="w-full justify-start data-[state=active]:bg-primary data-[state=active]:text-primary-foreground" + > + System Logs + +
+
+
+ + - + - + - + - + + + + +
-