2 Commits
Author SHA1 Message Date
austnv 6e841b12f5 add comments.app script 2026-06-25 11:17:31 +03:00
austnv 7f227fcf05 fix: NodesStatus 2026-06-21 23:27:30 +03:00
3 changed files with 7 additions and 5 deletions
+1
View File
@@ -18,5 +18,6 @@
<body> <body>
<div id="app"></div> <div id="app"></div>
<script type="module" src="/src/main.js"></script> <script type="module" src="/src/main.js"></script>
<script async src="https://comments.app/js/widget.js?3" data-comments-app-website="JSnN9CyA" data-limit="5" data-dislikes="1" data-outlined="1" data-dark="1"></script>
</body> </body>
</html> </html>
+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>