diff options
| author | Rutger Broekhoff | 2026-08-30 00:39:45 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-08-30 00:39:45 +0200 |
| commit | 589be8708a1c06c52c54746caccdedfca18d2cc0 (patch) | |
| tree | a240accace56062fe38742c055a22989559890cb /web/index.js | |
| parent | 4d32c476318e0ec37188616ae96eaa343bb59413 (diff) | |
| download | routemon-589be8708a1c06c52c54746caccdedfca18d2cc0.tar.gz routemon-589be8708a1c06c52c54746caccdedfca18d2cc0.zip | |
Performance improvements, messy code
Diffstat (limited to 'web/index.js')
| -rw-r--r-- | web/index.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/web/index.js b/web/index.js index 1c2e34d..999e333 100644 --- a/web/index.js +++ b/web/index.js | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | const apiBaseUrl = "https://routemon-api.fautchen.eu"; | 1 | const apiBaseUrl = "https://routemon-api.fautchen.eu"; |
| 2 | // const apiBaseUrl = "http://localhost:8284"; | ||
| 2 | 3 | ||
| 3 | const dialog = document.querySelector("dialog"); | 4 | const dialog = document.querySelector("dialog"); |
| 4 | const closeButton = document.querySelector("dialog button"); | 5 | const closeButton = document.querySelector("dialog button"); |
| @@ -87,7 +88,17 @@ async function getSysinfo() { | |||
| 87 | } | 88 | } |
| 88 | 89 | ||
| 89 | const res = await rsp.json(); | 90 | const res = await rsp.json(); |
| 90 | document.getElementById("situation-publication-of").innerText = new Date(res.using_publication_of).toLocaleString(); | 91 | let rows = [ |
| 92 | [el("span", { "class": "help-cursor", | ||
| 93 | "title": "Publicatietijdstip van ingeladen DATEX II-situatiepublicatie (van NDW)" }, | ||
| 94 | txt("Situatiepublicatie van")), | ||
| 95 | txt(new Date(res.using_publication_of).toLocaleString())], | ||
| 96 | [txt("Grootte LSE-index"), | ||
| 97 | txt(res.lse_index_size.toString())], | ||
| 98 | [txt("Grootte puntenindex"), | ||
| 99 | txt(res.p_index_size.toString())], | ||
| 100 | ]; | ||
| 101 | document.getElementById("sysinfo-details").replaceChildren(tbl(rows)); | ||
| 91 | } | 102 | } |
| 92 | 103 | ||
| 93 | async function load(gpxFile) { | 104 | async function load(gpxFile) { |