mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-08-05 00:13:45 +02:00
Remamed new_node to node. shorter and descriptive.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"base": {
|
||||
"conversations": "Conversations",
|
||||
"chat": "Chat",
|
||||
"nodes": "Nodes",
|
||||
"everything": "See Everything",
|
||||
"graphs": "Mesh Graphs",
|
||||
|
||||
@@ -171,7 +171,7 @@ async function initializePage() {
|
||||
const menu = document.getElementById("site-menu");
|
||||
if (menu) {
|
||||
const items = [];
|
||||
const keys = ["nodes", "conversations", "everything", "graphs", "net", "map", "stats", "top"];
|
||||
const keys = ["nodes", "chat", "everything", "graphs", "net", "map", "stats", "top"];
|
||||
const urls = ["/nodelist", "/chat", "/firehose", "/nodegraph", "/net", "/map", "/stats", "/top"];
|
||||
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
|
||||
@@ -134,7 +134,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
${escapeHtml(packet.channel || "")}
|
||||
</span>
|
||||
<span class="col-3 nodename">
|
||||
<a href="/node/${packet.from_node_id}">
|
||||
<a href="/new_node/${packet.from_node_id}">
|
||||
${escapeHtml((packet.long_name || "").trim() || `Node ${packet.from_node_id}`)}
|
||||
</a>
|
||||
</span>
|
||||
@@ -153,9 +153,9 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
// import_time_us=0 is migrated/cleaned up. Can be simplified once all
|
||||
// legacy records have been updated.
|
||||
// Sort by import_time_us with fallback to import_time
|
||||
const aTime = (a.import_time_us && a.import_time_us > 0) ? a.import_time_us :
|
||||
const aTime = (a.import_time_us && a.import_time_us > 0) ? a.import_time_us :
|
||||
(a.import_time ? new Date(a.import_time).getTime() * 1000 : 0);
|
||||
const bTime = (b.import_time_us && b.import_time_us > 0) ? b.import_time_us :
|
||||
const bTime = (b.import_time_us && b.import_time_us > 0) ? b.import_time_us :
|
||||
(b.import_time ? new Date(b.import_time).getTime() * 1000 : 0);
|
||||
return bTime - aTime;
|
||||
});
|
||||
|
||||
@@ -496,7 +496,7 @@ async def api_config(request):
|
||||
"message": get_str(site, "message", ""),
|
||||
"starting": get_str(site, "starting", "/chat"),
|
||||
"nodes": get_bool(site, "nodes", True),
|
||||
"conversations": get_bool(site, "conversations", True),
|
||||
"chat": get_bool(site, "chat", True),
|
||||
"everything": get_bool(site, "everything", True),
|
||||
"graphs": get_bool(site, "graphs", True),
|
||||
"stats": get_bool(site, "stats", True),
|
||||
|
||||
Reference in New Issue
Block a user