[fix](trx-frontend-http): restore tabs and relocate peak hold
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -328,7 +328,6 @@ const ownerSubtitle = document.getElementById("owner-subtitle");
|
|||||||
const loadingTitle = document.getElementById("loading-title");
|
const loadingTitle = document.getElementById("loading-title");
|
||||||
const loadingSub = document.getElementById("loading-sub");
|
const loadingSub = document.getElementById("loading-sub");
|
||||||
const overviewCanvas = document.getElementById("overview-canvas");
|
const overviewCanvas = document.getElementById("overview-canvas");
|
||||||
const overviewLabel = document.getElementById("overview-label");
|
|
||||||
const overviewPeakHoldEl = document.getElementById("overview-peak-hold");
|
const overviewPeakHoldEl = document.getElementById("overview-peak-hold");
|
||||||
const themeToggleBtn = document.getElementById("theme-toggle");
|
const themeToggleBtn = document.getElementById("theme-toggle");
|
||||||
const headerRigSwitchSelect = document.getElementById("header-rig-switch-select");
|
const headerRigSwitchSelect = document.getElementById("header-rig-switch-select");
|
||||||
@@ -582,10 +581,8 @@ function drawHeaderSignalGraph() {
|
|||||||
ctx.scale(dpr, dpr);
|
ctx.scale(dpr, dpr);
|
||||||
ctx.clearRect(0, 0, w, h);
|
ctx.clearRect(0, 0, w, h);
|
||||||
if (lastSpectrumData && overviewWaterfallRows.length > 0) {
|
if (lastSpectrumData && overviewWaterfallRows.length > 0) {
|
||||||
if (overviewLabel) overviewLabel.textContent = "Waterfall";
|
|
||||||
drawOverviewWaterfall(ctx, w, h, isLight);
|
drawOverviewWaterfall(ctx, w, h, isLight);
|
||||||
} else {
|
} else {
|
||||||
if (overviewLabel) overviewLabel.textContent = "Signal History";
|
|
||||||
drawOverviewSignalHistory(ctx, w, h, isLight);
|
drawOverviewSignalHistory(ctx, w, h, isLight);
|
||||||
}
|
}
|
||||||
ctx.restore();
|
ctx.restore();
|
||||||
@@ -878,7 +875,9 @@ function updateFooterBuildInfo() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateTitle() {
|
function updateTitle() {
|
||||||
document.getElementById("rig-title").textContent = originalTitle;
|
const titleEl = document.getElementById("rig-title");
|
||||||
|
if (!titleEl) return;
|
||||||
|
titleEl.textContent = serverVersion ? `trx-rs v${serverVersion}` : "trx-rs";
|
||||||
}
|
}
|
||||||
|
|
||||||
function render(update) {
|
function render(update) {
|
||||||
|
|||||||
@@ -38,16 +38,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="overview-strip">
|
<div class="overview-strip">
|
||||||
<div class="overview-toolbar">
|
|
||||||
<label class="overview-control">Peak Hold
|
|
||||||
<select id="overview-peak-hold" class="status-input">
|
|
||||||
<option value="500">0.5 s</option>
|
|
||||||
<option value="1000">1 s</option>
|
|
||||||
<option value="2000" selected>2 s</option>
|
|
||||||
<option value="5000">5 s</option>
|
|
||||||
</select>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<canvas id="overview-canvas" aria-hidden="true"></canvas>
|
<canvas id="overview-canvas" aria-hidden="true"></canvas>
|
||||||
</div>
|
</div>
|
||||||
<!-- Auth gate (hidden by default, shown if auth is required) -->
|
<!-- Auth gate (hidden by default, shown if auth is required) -->
|
||||||
@@ -82,6 +72,14 @@
|
|||||||
<button id="spectrum-bw-set-btn" type="button">Set</button>
|
<button id="spectrum-bw-set-btn" type="button">Set</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="spectrum-level-row">
|
<div id="spectrum-level-row">
|
||||||
|
<label class="overview-control" id="spectrum-peak-hold-label">Peak Hold
|
||||||
|
<select id="overview-peak-hold" class="status-input">
|
||||||
|
<option value="500">0.5 s</option>
|
||||||
|
<option value="1000">1 s</option>
|
||||||
|
<option value="2000" selected>2 s</option>
|
||||||
|
<option value="5000">5 s</option>
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
<label id="spectrum-floor-label">Floor <input type="number" id="spectrum-floor-input" value="-115" step="5" /> dB</label>
|
<label id="spectrum-floor-label">Floor <input type="number" id="spectrum-floor-input" value="-115" step="5" /> dB</label>
|
||||||
<button id="spectrum-auto-btn" type="button">Auto</button>
|
<button id="spectrum-auto-btn" type="button">Auto</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -210,6 +208,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div id="tab-plugins" class="tab-panel" style="display:none;">
|
<div id="tab-plugins" class="tab-panel" style="display:none;">
|
||||||
<div class="sub-tab-bar">
|
<div class="sub-tab-bar">
|
||||||
<button class="sub-tab active" data-subtab="overview">Overview</button>
|
<button class="sub-tab active" data-subtab="overview">Overview</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user