From 168763357aef6fb81cf642bd074c83cc43193270 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Fri, 12 Sep 2025 11:19:55 -0700 Subject: [PATCH] nodelist now also works with API --- meshview/templates/nodelist.html | 378 ++++++++++++++++++------------- meshview/web.py | 2 +- 2 files changed, 223 insertions(+), 157 deletions(-) diff --git a/meshview/templates/nodelist.html b/meshview/templates/nodelist.html index 8d91a07..be47b61 100644 --- a/meshview/templates/nodelist.html +++ b/meshview/templates/nodelist.html @@ -4,9 +4,7 @@ table { width: 80%; border-collapse: collapse; - margin-top: 1em; - margin-left: auto; - margin-right: auto; + margin: 1em auto; } th, td { @@ -18,10 +16,15 @@ th, td { th { background-color: #1f1f1f; color: white; - cursor: pointer; position: sticky; top: 0; z-index: 2; + cursor: pointer; +} + +.sort-icon { + font-size: 0.7em; + margin-left: 4px; } tr:nth-child(even) { @@ -36,164 +39,172 @@ tr:hover { background-color: #2a2a2a; } -.search-container { +.filter-container { + width: 80%; + margin: 1em auto; display: flex; gap: 10px; - margin-bottom: 10px; - width: 80%; - margin-left: auto; - margin-right: auto; + flex-wrap: wrap; } -.search, .filter-role, .filter-channel, .filter-hw_model, .export-btn { - padding: 8px; - border: 1px solid #333; +select, .export-btn, .search-box, .clear-btn { + padding: 6px; border-radius: 4px; + border: 1px solid #333; + cursor: pointer; } -.filter-role, .filter-channel, .filter-hw_model { - cursor: pointer; +.search-box { + flex: 1; } .export-btn { - background: #28a745; + background-color: #28a745; color: white; border: none; - cursor: pointer; } .export-btn:hover { - background: #218838; + background-color: #218838; +} + +.clear-btn { + background-color: #dc3545; + color: white; + border: none; +} + +.clear-btn:hover { + background-color: #c82333; } .count-container { - margin-bottom: 10px; + width: 80%; + margin: 0 auto 10px; font-weight: bold; color: white; - width: 80%; - margin-left: auto; - margin-right: auto; } {% endblock %} {% block body %} +
+ + + + + + + + + + + + +
+ +
+ Showing 0 nodes +
+
-
- - - - - - - - - -
- -
Showing 0 nodes
- - +
- - - - - - - - - + + + + + + + + + - + + +
Long NameShort NameHW ModelFirmwareRoleLast LatitudeLast LongitudeChannelLast UpdateShortLong Name HW Model Firmware Role Last Latitude Last Longitude Channel Last Update
Loading nodes...
- {% endblock %} diff --git a/meshview/web.py b/meshview/web.py index 5a2ea06..14eb872 100644 --- a/meshview/web.py +++ b/meshview/web.py @@ -24,7 +24,7 @@ import traceback import pathlib SEQ_REGEX = re.compile(r"seq \d+") -SOFTWARE_RELEASE= "2.0.6.08-27-25" +SOFTWARE_RELEASE= "2.0.6 ~ 09-12-25" CONFIG = config.CONFIG env = Environment(loader=PackageLoader("meshview"), autoescape=select_autoescape())