fix: NodesStatus

This commit is contained in:
austnv
2026-06-21 23:27:30 +03:00
parent a34a646c71
commit 7f227fcf05
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -6,7 +6,8 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
"preview": "vite preview" "preview": "vite preview",
"postbuild": "scp -r dist/. root@uvpn.shop:/opt/uvpn.shop/frontend"
}, },
"dependencies": { "dependencies": {
"@lucide/vue": "^1.16.0", "@lucide/vue": "^1.16.0",
+3 -3
View File
@@ -26,7 +26,7 @@
<div <div
v-for="host in sortedHosts" v-for="host in sortedHosts"
:key="host.address" :key="host.address"
class="flex items-center justify-between bg-white dark:bg-gray-900 rounded-xl px-4 py-2.5 border transition hover:shadow-md" class="flex items-center justify-between bg-white dark:bg-gray-900 rounded-xl px-4 py-2.5 border"
:class="host.isOnline ? 'border-green-500/30' : 'border-red-500/30 opacity-60'" :class="host.isOnline ? 'border-green-500/30' : 'border-red-500/30 opacity-60'"
> >
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
@@ -38,13 +38,13 @@
<span class="font-semibold text-gray-800 dark:text-white">{{ host.name }}</span> <span class="font-semibold text-gray-800 dark:text-white">{{ host.name }}</span>
<!-- Индикатор состояния (вместо online/offline) --> <!-- Индикатор состояния (вместо online/offline) -->
<span class="relative flex h-3 w-3"> <span class="relative flex h-2 w-2">
<span <span
class="animate-ping absolute inline-flex h-full w-full rounded-full opacity-75" class="animate-ping absolute inline-flex h-full w-full rounded-full opacity-75"
:class="host.isOnline ? 'bg-green-500' : 'bg-red-500'" :class="host.isOnline ? 'bg-green-500' : 'bg-red-500'"
></span> ></span>
<span <span
class="relative inline-flex rounded-full h-3 w-3" class="relative inline-flex rounded-full h-2 w-2"
:class="host.isOnline ? 'bg-green-600' : 'bg-red-600'" :class="host.isOnline ? 'bg-green-600' : 'bg-red-600'"
></span> ></span>
</span> </span>