Update AppImage

This commit is contained in:
MacRimi
2025-11-11 17:01:25 +01:00
parent c255d9a5d8
commit 955bed80fb
5 changed files with 11 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ import { Button } from "@/components/ui/button"
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
import { ArrowLeft, Loader2 } from "lucide-react"
import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, Legend } from "recharts"
import { API_PORT } from "@/lib/api-config"
interface MetricsViewProps {
vmid: number
@@ -121,7 +122,7 @@ export function MetricsView({ vmid, vmName, vmType, onBack }: MetricsViewProps)
const { protocol, hostname, port } = window.location
const isStandardPort = port === "" || port === "80" || port === "443"
const baseUrl = isStandardPort ? "" : `${protocol}//${hostname}:8008`
const baseUrl = isStandardPort ? "" : `${protocol}//${hostname}:${API_PORT}`
const apiUrl = `${baseUrl}/api/vms/${vmid}/metrics?timeframe=${timeframe}`