diff --git a/apps/dokploy/components/dashboard/settings/servers/show-servers.tsx b/apps/dokploy/components/dashboard/settings/servers/show-servers.tsx index e0aa3c54e..111f10e28 100644 --- a/apps/dokploy/components/dashboard/settings/servers/show-servers.tsx +++ b/apps/dokploy/components/dashboard/settings/servers/show-servers.tsx @@ -1,5 +1,18 @@ import { format } from "date-fns"; -import { KeyIcon, Loader2, MoreHorizontal, ServerIcon, Clock, User, Key, Network, Terminal, Settings, Pencil, Trash2 } from "lucide-react"; +import { + KeyIcon, + Loader2, + MoreHorizontal, + ServerIcon, + Clock, + User, + Key, + Network, + Terminal, + Settings, + Pencil, + Trash2, +} from "lucide-react"; import Link from "next/link"; import { useRouter } from "next/router"; import { useTranslation } from "next-i18next"; @@ -116,10 +129,12 @@ export const ShowServers = () => { {data?.map((server) => { const canDelete = server.totalSum === 0; const isActive = server.serverStatus === "active"; - const isBuildServer = - server.serverType === "build"; + const isBuildServer = server.serverType === "build"; return ( - +
@@ -128,50 +143,52 @@ export const ShowServers = () => { {server.name}
- {isActive && server.sshKeyId && !isBuildServer && ( - - - - - - - Advanced - - - - {isCloud && ( - + + + + + + Advanced + + - )} - - - - - - )} + + {isCloud && ( + + )} + + + + + + )}
@@ -185,14 +202,24 @@ export const ShowServers = () => { - + {server.serverStatus} - +

- This server is deactivated due to lack of payment. Please pay your invoice to reactivate it. If you think this is an error, please contact support. + This server is deactivated due + to lack of payment. Please pay + your invoice to reactivate it. + If you think this is an error, + please contact support.

@@ -201,7 +228,9 @@ export const ShowServers = () => { )} {server.serverType} @@ -212,19 +241,33 @@ export const ShowServers = () => {
- IP: - {server.ipAddress} - Port: - {server.port} + + IP: + + + {server.ipAddress} + + + Port: + + + {server.port} +
- User: - {server.username} + + User: + + + {server.username} +
- SSH Key: + + SSH Key: + {server.sshKeyId ? "Yes" : "No"} @@ -232,10 +275,14 @@ export const ShowServers = () => {
- Created {format(new Date(server.createdAt), "PPp")} + Created{" "} + {format( + new Date(server.createdAt), + "PPp", + )}
- + {/* Compact Actions */} {isActive && (
@@ -248,8 +295,8 @@ export const ShowServers = () => { serverId={server.serverId} asButton={true} > - @@ -361,7 +410,11 @@ export const ShowServers = () => {
-

{canDelete ? 'Delete Server' : 'Cannot delete - has active services'}

+

+ {canDelete + ? "Delete Server" + : "Cannot delete - has active services"} +

diff --git a/apps/dokploy/components/dashboard/settings/web-server/terminal-modal.tsx b/apps/dokploy/components/dashboard/settings/web-server/terminal-modal.tsx index 0bea05fc0..2647e1dc0 100644 --- a/apps/dokploy/components/dashboard/settings/web-server/terminal-modal.tsx +++ b/apps/dokploy/components/dashboard/settings/web-server/terminal-modal.tsx @@ -27,7 +27,11 @@ interface Props { asButton?: boolean; } -export const TerminalModal = ({ children, serverId, asButton = false }: Props) => { +export const TerminalModal = ({ + children, + serverId, + asButton = false, +}: Props) => { const [terminalKey, setTerminalKey] = useState(getTerminalKey()); const [isOpen, setIsOpen] = useState(false); const isLocalServer = serverId === "local"; @@ -47,9 +51,7 @@ export const TerminalModal = ({ children, serverId, asButton = false }: Props) = return ( {asButton ? ( - - {children} - + {children} ) : (