diff --git a/AppImage/app/globals.css b/AppImage/app/globals.css index 2af71a6..e306679 100644 --- a/AppImage/app/globals.css +++ b/AppImage/app/globals.css @@ -1,8 +1,6 @@ @import "tailwindcss"; @import "tw-animate-css"; -@custom-variant dark (&:is(.dark *)); - :root { --background: oklch(1 0 0); --foreground: oklch(0.145 0 0); diff --git a/AppImage/components/system-overview.tsx b/AppImage/components/system-overview.tsx index 6fac9d6..0336a94 100644 --- a/AppImage/components/system-overview.tsx +++ b/AppImage/components/system-overview.tsx @@ -46,7 +46,8 @@ const fetchSystemData = async (): Promise => { try { console.log("[v0] Fetching system data from Flask server...") - const apiUrl = "/api/system" + const baseUrl = typeof window !== "undefined" ? `${window.location.protocol}//${window.location.hostname}:8008` : "" + const apiUrl = `${baseUrl}/api/system` console.log("[v0] Fetching from URL:", apiUrl) const response = await fetch(apiUrl, { @@ -95,7 +96,8 @@ const fetchVMData = async (): Promise => { try { console.log("[v0] Fetching VM data from Flask server...") - const apiUrl = "/api/vms" + const baseUrl = typeof window !== "undefined" ? `${window.location.protocol}//${window.location.hostname}:8008` : "" + const apiUrl = `${baseUrl}/api/vms` console.log("[v0] Fetching from URL:", apiUrl) const response = await fetch(apiUrl, {