mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-18 07:56:57 +00:00
Uptime Indicators
This commit is contained in:
parent
9a3a36ab7c
commit
40302d7e4e
@ -8,7 +8,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"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"
|
"github.com/joho/godotenv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -241,11 +241,18 @@ export default function Dashboard() {
|
|||||||
{applications.map((app) => (
|
{applications.map((app) => (
|
||||||
<Card
|
<Card
|
||||||
key={app.id}
|
key={app.id}
|
||||||
className={isGridLayout ?
|
className={isGridLayout ? "h-full flex flex-col justify-between relative" : "w-full mb-4 relative"}
|
||||||
"h-full flex flex-col justify-between" :
|
|
||||||
"w-full mb-4"}
|
|
||||||
>
|
>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
|
{/* Online-/Offline-Indikator mit innerem Kreis */}
|
||||||
|
<div className="absolute top-2 right-2">
|
||||||
|
<div
|
||||||
|
className={`w-4 h-4 rounded-full flex items-center justify-center ${app.online ? "bg-green-700" : "bg-red-700"}`}
|
||||||
|
title={app.online ? "Online" : "Offline"}
|
||||||
|
>
|
||||||
|
<div className={`w-2 h-2 rounded-full ${app.online ? "bg-green-500" : "bg-red-500"}`} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div className="flex items-center justify-between w-full">
|
<div className="flex items-center justify-between w-full">
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<div className="w-16 h-16 flex-shrink-0 flex items-center justify-center rounded-md">
|
<div className="w-16 h-16 flex-shrink-0 flex items-center justify-center rounded-md">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user