mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
Update system-overview.tsx
This commit is contained in:
@@ -681,7 +681,7 @@ export function SystemOverview() {
|
|||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-foreground flex items-center">
|
<CardTitle className="text-foreground flex items-center">
|
||||||
<Zap className="h-5 w-5 mr-2" />
|
<Zap className="h-5 w-5 mr-2" />
|
||||||
System Health & Alerts
|
System Overview
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="space-y-4">
|
<CardContent className="space-y-4">
|
||||||
@@ -704,28 +704,17 @@ export function SystemOverview() {
|
|||||||
<span className="text-lg font-semibold text-foreground">{systemData.cpu_threads || "N/A"}</span>
|
<span className="text-lg font-semibold text-foreground">{systemData.cpu_threads || "N/A"}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{systemAlerts.length > 0 && (
|
<div className="flex justify-between items-center pb-3 border-b border-border">
|
||||||
<div className="pt-2">
|
<span className="text-sm text-muted-foreground">Physical Disks:</span>
|
||||||
<div className="text-sm text-muted-foreground mb-2">Recent Alerts:</div>
|
<span className="text-lg font-semibold text-foreground">{storageData?.disk_count || "N/A"}</span>
|
||||||
<div className="space-y-2">
|
|
||||||
{systemAlerts.map((alert, index) => (
|
|
||||||
<div key={index} className="flex items-center gap-2">
|
|
||||||
<AlertCircle className="h-4 w-4 text-yellow-500" />
|
|
||||||
<span className="text-sm text-foreground">{alert.message}</span>
|
|
||||||
</div>
|
</div>
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{systemAlerts.length === 0 && (
|
<div className="flex justify-between items-center">
|
||||||
<div className="pt-2 text-center">
|
<span className="text-sm text-muted-foreground">Network Interfaces:</span>
|
||||||
<div className="text-sm text-green-500 flex items-center justify-center gap-2">
|
<span className="text-lg font-semibold text-foreground">
|
||||||
<div className="h-2 w-2 rounded-full bg-green-500"></div>
|
{networkData?.physical_total_count || networkData?.physical_interfaces?.length || "N/A"}
|
||||||
All systems operational
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user