mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: update badge server
This commit is contained in:
@@ -110,9 +110,11 @@ const Service = (
|
|||||||
<div className="flex flex-row h-fit w-fit gap-2">
|
<div className="flex flex-row h-fit w-fit gap-2">
|
||||||
<Badge
|
<Badge
|
||||||
variant={
|
variant={
|
||||||
data?.server?.serverStatus === "active"
|
!data?.serverId
|
||||||
? "default"
|
? "default"
|
||||||
: "destructive"
|
: data?.server?.serverStatus === "active"
|
||||||
|
? "default"
|
||||||
|
: "destructive"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{data?.server?.name || "Dokploy Server"}
|
{data?.server?.name || "Dokploy Server"}
|
||||||
|
|||||||
@@ -105,9 +105,11 @@ const Service = (
|
|||||||
<div className="flex flex-row h-fit w-fit gap-2">
|
<div className="flex flex-row h-fit w-fit gap-2">
|
||||||
<Badge
|
<Badge
|
||||||
variant={
|
variant={
|
||||||
data?.server?.serverStatus === "active"
|
!data?.serverId
|
||||||
? "default"
|
? "default"
|
||||||
: "destructive"
|
: data?.server?.serverStatus === "active"
|
||||||
|
? "default"
|
||||||
|
: "destructive"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{data?.server?.name || "Dokploy Server"}
|
{data?.server?.name || "Dokploy Server"}
|
||||||
|
|||||||
@@ -93,9 +93,11 @@ const Mariadb = (
|
|||||||
<div className="flex flex-row h-fit w-fit gap-2">
|
<div className="flex flex-row h-fit w-fit gap-2">
|
||||||
<Badge
|
<Badge
|
||||||
variant={
|
variant={
|
||||||
data?.server?.serverStatus === "active"
|
!data?.serverId
|
||||||
? "default"
|
? "default"
|
||||||
: "destructive"
|
: data?.server?.serverStatus === "active"
|
||||||
|
? "default"
|
||||||
|
: "destructive"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{data?.server?.name || "Dokploy Server"}
|
{data?.server?.name || "Dokploy Server"}
|
||||||
|
|||||||
@@ -94,9 +94,11 @@ const Mongo = (
|
|||||||
<div className="flex flex-row h-fit w-fit gap-2">
|
<div className="flex flex-row h-fit w-fit gap-2">
|
||||||
<Badge
|
<Badge
|
||||||
variant={
|
variant={
|
||||||
data?.server?.serverStatus === "active"
|
!data?.serverId
|
||||||
? "default"
|
? "default"
|
||||||
: "destructive"
|
: data?.server?.serverStatus === "active"
|
||||||
|
? "default"
|
||||||
|
: "destructive"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{data?.server?.name || "Dokploy Server"}
|
{data?.server?.name || "Dokploy Server"}
|
||||||
|
|||||||
@@ -92,9 +92,11 @@ const MySql = (
|
|||||||
<div className="flex flex-row h-fit w-fit gap-2">
|
<div className="flex flex-row h-fit w-fit gap-2">
|
||||||
<Badge
|
<Badge
|
||||||
variant={
|
variant={
|
||||||
data?.server?.serverStatus === "active"
|
!data?.serverId
|
||||||
? "default"
|
? "default"
|
||||||
: "destructive"
|
: data?.server?.serverStatus === "active"
|
||||||
|
? "default"
|
||||||
|
: "destructive"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{data?.server?.name || "Dokploy Server"}
|
{data?.server?.name || "Dokploy Server"}
|
||||||
|
|||||||
@@ -93,9 +93,11 @@ const Postgresql = (
|
|||||||
<div className="flex flex-row h-fit w-fit gap-2">
|
<div className="flex flex-row h-fit w-fit gap-2">
|
||||||
<Badge
|
<Badge
|
||||||
variant={
|
variant={
|
||||||
data?.server?.serverStatus === "active"
|
!data?.serverId
|
||||||
? "default"
|
? "default"
|
||||||
: "destructive"
|
: data?.server?.serverStatus === "active"
|
||||||
|
? "default"
|
||||||
|
: "destructive"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{data?.server?.name || "Dokploy Server"}
|
{data?.server?.name || "Dokploy Server"}
|
||||||
|
|||||||
@@ -92,9 +92,11 @@ const Redis = (
|
|||||||
<div className="flex flex-row h-fit w-fit gap-2">
|
<div className="flex flex-row h-fit w-fit gap-2">
|
||||||
<Badge
|
<Badge
|
||||||
variant={
|
variant={
|
||||||
data?.server?.serverStatus === "active"
|
!data?.serverId
|
||||||
? "default"
|
? "default"
|
||||||
: "destructive"
|
: data?.server?.serverStatus === "active"
|
||||||
|
? "default"
|
||||||
|
: "destructive"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{data?.server?.name || "Dokploy Server"}
|
{data?.server?.name || "Dokploy Server"}
|
||||||
|
|||||||
Reference in New Issue
Block a user