{
+ const [http, udp, ws] = await Promise.all([
+ checkHttpHealth(),
+ checkUdpHealth(),
+ checkWsHealth(),
+ ]);
+
+ return {
+ http,
+ udp,
+ ws,
+ };
+}
From bf30a15955b6459e1cf341d20d13a52729f62db0 Mon Sep 17 00:00:00 2001
From: Ikiae <64362443+IkiaeM@users.noreply.github.com>
Date: Mon, 5 Jan 2026 18:13:35 +0000
Subject: [PATCH 2/2] Add separate status badge text for online and offline
tracker states
- Split statusBadgeText into statusBadgeTextOnline and statusBadgeTextOffline settings
- Add offline status badge input field in admin homepage content editor
- Update homepage to display appropriate status badge based on tracker health
- Add getStatusBadgeTextOffline utility function with default fallback text
- Update all API endpoints and settings keys to handle both online/offline badge texts
---
app/components/admin/HomepageContent.vue | 31 +++++++++++++++++++-----
app/pages/index.vue | 2 +-
server/api/admin/settings.get.ts | 9 ++++---
server/api/admin/settings.put.ts | 8 ++++--
server/api/homepage-content.get.ts | 9 ++++---
server/utils/schemas.ts | 3 ++-
server/utils/settings.ts | 17 ++++++++++---
7 files changed, 59 insertions(+), 20 deletions(-)
diff --git a/app/components/admin/HomepageContent.vue b/app/components/admin/HomepageContent.vue
index 97c40d7..6c2d371 100644
--- a/app/components/admin/HomepageContent.vue
+++ b/app/components/admin/HomepageContent.vue
@@ -51,16 +51,31 @@
+
+
+
+
+
@@ -108,7 +123,8 @@