From 494d8979a89d2d46239f7681ba03a713c005ebd2 Mon Sep 17 00:00:00 2001 From: Stanislaw Grams Date: Sun, 8 Feb 2026 13:52:14 +0100 Subject: [PATCH] [feat](trx-frontend-http): fix tab panel nesting, enrich About tab, move logo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #tab-main properly so the footer and About tab are not nested inside it — footer is now visible on all tabs. Add server address, rig connection method, supported modes, and VFO count to the About tab. Move logo from translucent centered overlay to solid image in the top-right of the header. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Stanislaw Grams --- .../trx-frontend-http/assets/web/app.js | 21 +++++++++++++++++++ .../trx-frontend-http/assets/web/index.html | 11 +++++++--- .../trx-frontend-http/assets/web/style.css | 7 +++---- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index 46c35c3..7711227 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -293,12 +293,33 @@ function render(update) { if (update.server_version) { document.getElementById("about-server-ver").textContent = `trx-server v${update.server_version}`; } + document.getElementById("about-server-addr").textContent = location.host; if (update.server_callsign) { document.getElementById("about-server-call").textContent = update.server_callsign; } if (update.info) { const parts = [update.info.manufacturer, update.info.model, update.info.revision].filter(Boolean).join(" "); if (parts) document.getElementById("about-rig-info").textContent = parts; + const access = update.info.access; + if (access) { + if (access.Serial) { + document.getElementById("about-rig-access").textContent = `Serial (${access.Serial.port || "?"}, ${access.Serial.baud || "?"} baud)`; + } else if (access.Tcp) { + document.getElementById("about-rig-access").textContent = `TCP (${access.Tcp.host || "?"}:${access.Tcp.port || "?"})`; + } else { + const key = Object.keys(access)[0]; + if (key) document.getElementById("about-rig-access").textContent = key; + } + } + if (update.info.capabilities) { + const cap = update.info.capabilities; + if (Array.isArray(cap.supported_modes) && cap.supported_modes.length) { + document.getElementById("about-modes").textContent = cap.supported_modes.map(normalizeMode).filter(Boolean).join(", "); + } + if (typeof cap.num_vfos === "number") { + document.getElementById("about-vfos").textContent = cap.num_vfos; + } + } } if (typeof update.clients === "number") { document.getElementById("about-clients").textContent = update.clients; diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html index 0214434..c4df883 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html @@ -8,14 +8,14 @@ -
-
-
+
+
Rig status
{pkg} v{ver}
+
@@ -115,11 +115,16 @@
+