From f4feb6c89bcead1eac4e9556ddf5518f6ea3c33e Mon Sep 17 00:00:00 2001 From: dbadol Date: Tue, 17 Feb 2026 04:00:05 +0100 Subject: [PATCH 1/3] CSS for node URLs - CSS for list of node URLs. - Version number: v0.8.4 (beta) --- explorer/htm/BeamExplorer.htm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/explorer/htm/BeamExplorer.htm b/explorer/htm/BeamExplorer.htm index da83c10aa7..d28fc58aab 100644 --- a/explorer/htm/BeamExplorer.htm +++ b/explorer/htm/BeamExplorer.htm @@ -7,7 +7,7 @@ - This is an interactive portable display of the data queried to a Beam explorer node. - The IP addresses of the authorized explorer nodes can be changed in variable 'explorerNodes'. - Reference repository: https://github.com/BeamMW/beam/tree/master/explorer/htm - - Current version of the file: v0.8.3 + - Current version of the file: v0.8.4 (beta) General rules for developement: - Let's keep everything in one single standalone file, without external dependencies. @@ -827,7 +827,7 @@ vertical-align: bottom; margin: 5px 10px 0px 0px; } - .nodeURL { /* General style for URLs */ + .nodeURL { /* General style for node URLs */ font-family: "Lucida Console", ui-monospace, monospace; font-size: 1.2rem; color: var(--color_node_url); @@ -835,6 +835,9 @@ white-space: nowrap; cursor: text; } + .dataTable .nodeURL { /* Special case of node URLs in tables */ + color: unset; + } label.nodeURL { /* To show it's clickable */ cursor: pointer; } @@ -1887,7 +1890,7 @@
-

Beam Smart Explorer v0.8.3

+

Beam Smart Explorer v0.8.4 (beta)

@@ -2802,6 +2804,38 @@

About

SetContent(text); } + function DisplayAtomicSwaps() { + const jData = JSON.parse(this.responseText); + + let text = '

Atomic Swaps

'; + if (jData.length === 0) { + text += '

There are currently no offers for Atomic Swaps.

'; + } else { + text += MakeCollapsibleBegin('Offers (' + jData.length + ')'); + text += '
' + Obj2Html(jData) + '
'; + text += MakeCollapsibleEnd(); + text += MakeCollapsibleBegin('Totals'); + text += '

Loading...

'; + text += MakeCollapsibleEnd(); + } + + SetContent(text); + + // Get Atomic Swap totals (new node request) + if (jData.length !== 0) { + const xmlhttp = new XMLHttpRequest(); + xmlhttp.onload = DisplayAtomicSwapTotals; + xmlhttp.open('GET', urlPrefix + 'swap_totals' + '?exp_am=1'); + xmlhttp.send(); + } + } + + function DisplayAtomicSwapTotals() { // Query node for Atomic Swap totals and display them in existing 'div' + const jData = JSON.parse(this.responseText); + let text = Obj2Html(jData); + document.getElementById('divSwapTotals').innerHTML = text; + } + function DisplayHistoricalBlocks() { let text = `

Special historical blocks in Beam's mainnet

`; text += ` @@ -3209,15 +3243,14 @@

About

g_height = 0; urlSuffix += '&height=' + g_height; xmlhttp.onload = DisplayBlock; - } + // Option to query and display the details of multiple blocks (NOT USED HERE) - // else if (g_type == 'blocks') // Arguments for 'blocks': height, n - // { - // if (!g_n) { g_n = 5 } - // urlSuffix += '&height=' + g_height + '&n=' + g_n; - // xmlhttp.onload = DisplayBlocks; // Display function to be done... - // } - else if (g_type == 'contract') { // Arguments for 'contract': id, hMin, hMax, nMaxTxs + //} else if (g_type == 'blocks') { // Arguments for 'blocks': height, n + // if (!g_n) { g_n = 5 } + // urlSuffix += '&height=' + g_height + '&n=' + g_n; + // xmlhttp.onload = DisplayBlocks; // Display function to be done... + + } else if (g_type == 'contract') { // Arguments for 'contract': id, hMin, hMax, nMaxTxs urlSuffix += '&id=' + g_id + '&nMaxTxs=' + g_nMaxTxs; if (g_hMin) { urlSuffix += '&hMin=' + g_hMin } if (g_hMax) { urlSuffix += '&hMax=' + g_hMax } @@ -3240,6 +3273,10 @@

About

} else if (g_type == 'peers') { // Arguments for 'peers': (none) xmlhttp.onload = DisplayPeers; + } else if (g_type == 'swap_offers') { // Arguments for 'swap_offers': (none) + xmlhttp.onload = DisplayAtomicSwaps; + // Remark: The query for 'swap_totals' is made from within the 'DisplayAtomicSwaps' function. + } else { g_type = 'status'; // Arguments for 'status': (none) xmlhttp.onload = DisplayStatus; From 30ed916a5d3deba5ad674054f757644b0df25c79 Mon Sep 17 00:00:00 2001 From: dbadol Date: Tue, 17 Feb 2026 16:48:09 +0100 Subject: [PATCH 3/3] Set back version 0.8.3 --- explorer/htm/BeamExplorer.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/explorer/htm/BeamExplorer.htm b/explorer/htm/BeamExplorer.htm index 7780be30cc..fce509e88f 100644 --- a/explorer/htm/BeamExplorer.htm +++ b/explorer/htm/BeamExplorer.htm @@ -7,7 +7,7 @@ - This is an interactive portable display of the data queried to a Beam explorer node. - The IP addresses of the authorized explorer nodes can be changed in variable 'explorerNodes'. - Reference repository: https://github.com/BeamMW/beam/tree/master/explorer/htm - - Current version of the file: v0.8.4 (beta) + - Current version of the file: v0.8.3 General rules for developement: - Let's keep everything in one single standalone file, without external dependencies. @@ -1890,7 +1890,7 @@
-

Beam Smart Explorer v0.8.4 (beta)

+

Beam Smart Explorer v0.8.3