add node to nodelist

This commit is contained in:
pablorevilla-meshtastic
2026-05-23 09:53:21 -07:00
parent 4695537291
commit 69150b2efc
+10 -1
View File
@@ -103,6 +103,12 @@ select, .export-btn, .search-box, .clear-btn {
font-weight: bold;
color: white;
}
.node-list-note {
width: 80%;
margin: -4px auto 10px;
color: rgba(255, 255, 255, 0.68);
font-size: 0.9em;
}
.node-status {
margin-left: 10px;
padding: 2px 8px;
@@ -252,6 +258,9 @@ select, .export-btn, .search-box, .clear-btn {
<span data-translate-lang="nodes_suffix">nodes</span>
<span id="node-status" class="node-status" aria-live="polite"></span>
</div>
<div class="node-list-note" data-translate-lang="active_last_3_days_note">
Showing all nodes active in the last 3 days.
</div>
<!-- Desktop table -->
<div id="node-list">
@@ -416,7 +425,7 @@ document.addEventListener("DOMContentLoaded", async function() {
try {
setStatus("Loading nodes…");
await nextFrame();
const res = await fetch("/api/nodes");
const res = await fetch("/api/nodes?days_active=3");
if (!res.ok) throw new Error("Failed to fetch nodes");
const data = await res.json();