Update appImage

This commit is contained in:
MacRimi
2025-11-19 17:15:32 +01:00
parent 7267111083
commit b368fde82d
3 changed files with 7 additions and 6 deletions

View File

@@ -3,8 +3,8 @@
import { useState, useEffect } from "react"
import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, Legend } from "recharts"
import { Loader2 } from 'lucide-react'
import { fetchApi } from "@/lib/api-config"
import { getNetworkUnit } from "@/lib/format-network"
import { fetchApi } from "../lib/api-config"
import { getNetworkUnit } from "../lib/format-network"
interface NetworkMetricsData {
time: string

View File

@@ -11,8 +11,8 @@ import { Dialog, DialogContent, DialogHeader, DialogTitle } from "./ui/dialog"
import { Server, Play, Square, Cpu, MemoryStick, HardDrive, Network, Power, RotateCcw, StopCircle, Container, ChevronDown, ChevronUp } from 'lucide-react'
import useSWR from "swr"
import { MetricsView } from "./metrics-dialog"
import { formatStorage } from "@/lib/utils" // Import formatStorage utility
import { formatNetworkTraffic, getNetworkUnit } from "@/lib/format-network"
import { formatStorage } from "../lib/utils"
import { formatNetworkTraffic, getNetworkUnit } from "../lib/format-network"
import { fetchApi } from "../lib/api-config"
interface VMData {
@@ -1238,7 +1238,8 @@ export function VirtualMachines() {
</>
) : (
<>
<ChevronDown className="h-3 w-3 mr-1" />+ Info
<ChevronDown className="h-3 w-3 mr-1" />
+ Info
</>
)}
</Button>

View File

@@ -42,7 +42,7 @@ export function formatNetworkTraffic(
export function getNetworkUnit(): NetworkUnit {
if (typeof window === 'undefined') return 'Bytes';
const stored = localStorage.getItem('networkUnit');
const stored = localStorage.getItem('proxmenux-network-unit');
return stored === 'Bits' ? 'Bits' : 'Bytes';
}