diff options
Diffstat (limited to 'src/api/dashboard/dashboard.html')
| -rw-r--r-- | src/api/dashboard/dashboard.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/api/dashboard/dashboard.html b/src/api/dashboard/dashboard.html index dbf5480..9cfb384 100644 --- a/src/api/dashboard/dashboard.html +++ b/src/api/dashboard/dashboard.html @@ -883,6 +883,7 @@ function renderStats() { field("from", message.from), field("to", message.to), field("logged by", message.node), + ...(message.address ? [field("address", message.address)] : []), field("type", message.type), field("bytes", String(message.bytes)), el("div", { class: "note" }, "Written out only on the node that logged it (its console).")); @@ -891,6 +892,7 @@ function renderStats() { document.getElementById("stats").replaceChildren( field("at", clockTime(new Date(message.at))), field(message.way === "received" ? "from" : "to", message.peer), + ...(message.address ? [field("address", message.address)] : []), field("way", message.way), field("type", message.type), field("bytes", String(message.bytes)), @@ -3854,7 +3856,8 @@ function filterConsole() { scroll.scrollTop = scroll.scrollHeight; } } -// A line: when, which way, with whom, the type (in its kind's colour) and the size. +// A line: when, which way, with whom, the type (in its kind's colour), the size, and the +// transport it went by (in its colour, the address in its tooltip), where known. function consoleLine(message) { // A subscribed node's (`remoteMessagesArrived`): its receiver, and whom from. const between = message.node ? name(message.to) + " ← " + name(message.from) + " " @@ -3874,7 +3877,9 @@ function consoleLine(message) { clockTime(new Date(Math.round(message.t || message.at))) + " "), between, el("span", { style: "color: " + kindColour(message.counted) }, message.type), - " " + size(message.bytes)); + " " + size(message.bytes), + ...(message.address ? [" ", el("span", { style: "color: " + colourOf(schemeOf(message.address)), + title: message.address }, schemeOf(message.address))] : [])); // On press, as the peers' rows: lines come and go under the pointer. line.addEventListener("pointerdown", event => { if (event.button !== 0) return; |
