mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-08-02 06:53:24 +02:00
add node to nodelist
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user