mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 03:26:17 +00:00
Updata AppImage
This commit is contained in:
@@ -488,7 +488,7 @@ export default function Hardware() {
|
||||
</span>
|
||||
{realtimeGPUData?.has_monitoring_tool === true && (
|
||||
<Badge className="bg-green-500/10 text-green-500 border-green-500/20 text-xs px-1.5 py-0">
|
||||
✓
|
||||
{realtimeGPUData?.driver_version ? `✓ v${realtimeGPUData.driver_version}` : "✓"}
|
||||
</Badge>
|
||||
)}
|
||||
</div>
|
||||
@@ -656,7 +656,7 @@ export default function Hardware() {
|
||||
<div key={idx} className="rounded-lg border border-border/30 bg-background/50 p-4">
|
||||
<div className="flex justify-between items-start mb-3">
|
||||
<div>
|
||||
<Badge className="bg-purple-500/10 text-purple-500 border-purple-500/20 mb-1">
|
||||
<Badge className="bg-blue-500/10 text-blue-500 border-blue-500/20 mb-1">
|
||||
{proc.name}
|
||||
</Badge>
|
||||
<p className="font-mono text-xs text-muted-foreground">PID: {proc.pid}</p>
|
||||
|
||||
@@ -128,13 +128,14 @@ const fetchStorageData = async (): Promise<StorageData | null> => {
|
||||
})
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`Flask server responded with status: ${response.status}`)
|
||||
console.log("[v0] Storage API not available (this is normal if not configured)")
|
||||
return null
|
||||
}
|
||||
|
||||
const data = await response.json()
|
||||
return data
|
||||
} catch (error) {
|
||||
console.error("[v0] Failed to fetch storage data:", error)
|
||||
console.log("[v0] Storage data unavailable:", error instanceof Error ? error.message : "Unknown error")
|
||||
return null
|
||||
}
|
||||
}
|
||||
@@ -153,13 +154,14 @@ const fetchNetworkData = async (): Promise<NetworkData | null> => {
|
||||
})
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`Flask server responded with status: ${response.status}`)
|
||||
console.log("[v0] Network API not available (this is normal if not configured)")
|
||||
return null
|
||||
}
|
||||
|
||||
const data = await response.json()
|
||||
return data
|
||||
} catch (error) {
|
||||
console.error("[v0] Failed to fetch network data:", error)
|
||||
console.log("[v0] Network data unavailable:", error instanceof Error ? error.message : "Unknown error")
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3422,7 +3422,7 @@ def api_hardware():
|
||||
# Format data for frontend
|
||||
formatted_data = {
|
||||
'cpu': hardware_info.get('cpu', {}),
|
||||
'motherboard': hardware_info.get('motherboard', {}), # Fixed: use hardware_info
|
||||
'motherboard': hardware_info.get('motherboard', {}), # Corrected: use hardware_info
|
||||
'bios': hardware_info.get('motherboard', {}).get('bios', {}), # Extract BIOS info
|
||||
'memory_modules': hardware_info.get('memory_modules', []),
|
||||
'storage_devices': hardware_info.get('storage_devices', []), # Fixed: use hardware_info
|
||||
|
||||
Reference in New Issue
Block a user