mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
Update AppImage
This commit is contained in:
@@ -100,6 +100,12 @@ export function NetworkTrafficChart({ timeframe, onTotalsCalculated }: NetworkTr
|
|||||||
hour: "2-digit",
|
hour: "2-digit",
|
||||||
hour12: false,
|
hour12: false,
|
||||||
})
|
})
|
||||||
|
} else if (timeframe === "year") {
|
||||||
|
timeLabel = date.toLocaleString("en-US", {
|
||||||
|
month: "short",
|
||||||
|
day: "numeric",
|
||||||
|
year: "numeric",
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
timeLabel = date.toLocaleString("en-US", {
|
timeLabel = date.toLocaleString("en-US", {
|
||||||
month: "short",
|
month: "short",
|
||||||
|
|||||||
@@ -470,6 +470,8 @@ export function SystemOverview() {
|
|||||||
return "7d"
|
return "7d"
|
||||||
case "month":
|
case "month":
|
||||||
return "30d"
|
return "30d"
|
||||||
|
case "year":
|
||||||
|
return "1y"
|
||||||
default:
|
default:
|
||||||
return timeframe
|
return timeframe
|
||||||
}
|
}
|
||||||
@@ -657,6 +659,7 @@ export function SystemOverview() {
|
|||||||
<SelectItem value="day">24 Hours</SelectItem>
|
<SelectItem value="day">24 Hours</SelectItem>
|
||||||
<SelectItem value="week">7 Days</SelectItem>
|
<SelectItem value="week">7 Days</SelectItem>
|
||||||
<SelectItem value="month">30 Days</SelectItem>
|
<SelectItem value="month">30 Days</SelectItem>
|
||||||
|
<SelectItem value="year">1 Year</SelectItem>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
|
|||||||
Reference in New Issue
Block a user