Update AppImage

This commit is contained in:
MacRimi
2025-10-01 18:14:58 +02:00
parent c41da47a48
commit df9f4a23b4
2 changed files with 19 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
@import "tailwindcss"; @import "tailwindcss";
@import "tw-animate-css"; @import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
:root { :root {
--background: oklch(1 0 0); --background: oklch(1 0 0);
--foreground: oklch(0.145 0 0); --foreground: oklch(0.145 0 0);

View File

@@ -60,6 +60,7 @@ const fetchSystemData = async (): Promise<SystemData | null> => {
console.log("[v0] Response status:", response.status) console.log("[v0] Response status:", response.status)
console.log("[v0] Response ok:", response.ok) console.log("[v0] Response ok:", response.ok)
console.log("[v0] Response headers:", Object.fromEntries(response.headers.entries()))
if (!response.ok) { if (!response.ok) {
const errorText = await response.text() const errorText = await response.text()
@@ -67,8 +68,21 @@ const fetchSystemData = async (): Promise<SystemData | null> => {
throw new Error(`Flask server responded with status: ${response.status}`) throw new Error(`Flask server responded with status: ${response.status}`)
} }
const data = await response.json() const responseText = await response.text()
console.log("[v0] Successfully fetched real system data from Flask:", data) console.log("[v0] Raw response text:", responseText)
console.log("[v0] Response text length:", responseText.length)
console.log("[v0] First 100 chars:", responseText.substring(0, 100))
// Try to parse the JSON
let data
try {
data = JSON.parse(responseText)
console.log("[v0] Successfully parsed JSON:", data)
} catch (parseError) {
console.error("[v0] JSON parse error:", parseError)
console.error("[v0] Failed to parse response as JSON")
throw new Error("Invalid JSON response from server")
}
// Store historical data // Store historical data
historicalDataStore.push({ historicalDataStore.push({
@@ -88,6 +102,7 @@ const fetchSystemData = async (): Promise<SystemData | null> => {
console.error("[v0] Failed to fetch system data from Flask server:", error) console.error("[v0] Failed to fetch system data from Flask server:", error)
console.error("[v0] Error type:", error instanceof Error ? error.constructor.name : typeof error) console.error("[v0] Error type:", error instanceof Error ? error.constructor.name : typeof error)
console.error("[v0] Error message:", error instanceof Error ? error.message : String(error)) console.error("[v0] Error message:", error instanceof Error ? error.message : String(error))
console.error("[v0] Error stack:", error instanceof Error ? error.stack : "No stack trace")
return null return null
} }
} }