fix: NodesStatus
This commit is contained in:
+2
-1
@@ -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",
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<Wifi :size="14" />
|
<Wifi :size="14" />
|
||||||
{{ host.ping }}ms
|
{{ host.ping }} ms
|
||||||
</span>
|
</span>
|
||||||
<span v-else class="text-gray-300 font-mono">—</span>
|
<span v-else class="text-gray-300 font-mono">—</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user