From 40302d7e4e8498771e19fe157d860b7687af227e Mon Sep 17 00:00:00 2001 From: headlessdev Date: Sat, 12 Apr 2025 16:51:40 +0200 Subject: [PATCH] Uptime Indicators --- agent/main.go | 2 +- app/dashboard/applications/Applications.tsx | 55 ++++++++++++--------- 2 files changed, 32 insertions(+), 25 deletions(-) diff --git a/agent/main.go b/agent/main.go index b25e292..5619f9d 100644 --- a/agent/main.go +++ b/agent/main.go @@ -8,7 +8,7 @@ import ( "os" "time" - _ "github.com/jackc/pgx/v4/stdlib" // Wird für die Registrierung des pgx Treibers benötigt + _ "github.com/jackc/pgx/v4/stdlib" "github.com/joho/godotenv" ) diff --git a/app/dashboard/applications/Applications.tsx b/app/dashboard/applications/Applications.tsx index 98b5f4a..8837228 100644 --- a/app/dashboard/applications/Applications.tsx +++ b/app/dashboard/applications/Applications.tsx @@ -240,30 +240,37 @@ export default function Dashboard() { "space-y-4"}> {applications.map((app) => ( - -
-
-
- {app.icon ? ( - {app.name} - ) : ( - Image - )} -
-
- {app.name} - - {app.description}
- Server: {app.server || 'No server'} -
-
+ key={app.id} + className={isGridLayout ? "h-full flex flex-col justify-between relative" : "w-full mb-4 relative"} + > + + {/* Online-/Offline-Indikator mit innerem Kreis */} +
+
+
+
+
+
+
+
+ {app.icon ? ( + {app.name} + ) : ( + Image + )}
-
+
+ {app.name} + + {app.description}
+ Server: {app.server || 'No server'} +
+
+
+
- + ))}