mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-20 12:36:18 +00:00
Update appImage
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
import { useState, useEffect } from "react"
|
import { useState, useEffect } from "react"
|
||||||
import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, Legend } from "recharts"
|
import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, Legend } from "recharts"
|
||||||
import { Loader2 } from 'lucide-react'
|
import { Loader2 } from 'lucide-react'
|
||||||
import { fetchApi } from "@/lib/api-config"
|
import { fetchApi } from "../lib/api-config"
|
||||||
import { getNetworkUnit } from "@/lib/format-network"
|
import { getNetworkUnit } from "../lib/format-network"
|
||||||
|
|
||||||
interface NetworkMetricsData {
|
interface NetworkMetricsData {
|
||||||
time: string
|
time: string
|
||||||
|
|||||||
@@ -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 { Server, Play, Square, Cpu, MemoryStick, HardDrive, Network, Power, RotateCcw, StopCircle, Container, ChevronDown, ChevronUp } from 'lucide-react'
|
||||||
import useSWR from "swr"
|
import useSWR from "swr"
|
||||||
import { MetricsView } from "./metrics-dialog"
|
import { MetricsView } from "./metrics-dialog"
|
||||||
import { formatStorage } from "@/lib/utils" // Import formatStorage utility
|
import { formatStorage } from "../lib/utils"
|
||||||
import { formatNetworkTraffic, getNetworkUnit } from "@/lib/format-network"
|
import { formatNetworkTraffic, getNetworkUnit } from "../lib/format-network"
|
||||||
import { fetchApi } from "../lib/api-config"
|
import { fetchApi } from "../lib/api-config"
|
||||||
|
|
||||||
interface VMData {
|
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>
|
</Button>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export function formatNetworkTraffic(
|
|||||||
export function getNetworkUnit(): NetworkUnit {
|
export function getNetworkUnit(): NetworkUnit {
|
||||||
if (typeof window === 'undefined') return 'Bytes';
|
if (typeof window === 'undefined') return 'Bytes';
|
||||||
|
|
||||||
const stored = localStorage.getItem('networkUnit');
|
const stored = localStorage.getItem('proxmenux-network-unit');
|
||||||
return stored === 'Bits' ? 'Bits' : 'Bytes';
|
return stored === 'Bits' ? 'Bits' : 'Bytes';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user