From 54adcf64cb55a8d883907421bfc54a1750758ca5 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Thu, 7 Nov 2024 16:29:54 -0800 Subject: [PATCH] Identify collapsible nodes with class=collapse (#4055) --- src/subcommand/server.rs | 56 +++++++++++++++++------------------ src/templates/address.rs | 2 +- src/templates/block.rs | 6 ++-- src/templates/blocks.rs | 4 +-- src/templates/input.rs | 2 +- src/templates/inscription.rs | 46 ++++++++++++++-------------- src/templates/output.rs | 14 ++++----- src/templates/rune.rs | 4 +-- src/templates/sat.rs | 2 +- src/templates/transaction.rs | 6 ++-- static/index.css | 12 +++++--- static/index.js | 45 +++------------------------- templates/address.html | 2 +- templates/block.html | 8 ++--- templates/blocks.html | 2 +- templates/input.html | 2 +- templates/inscription.html | 12 ++++---- templates/output.html | 4 +-- templates/rune-balances.html | 4 +-- templates/rune.html | 4 +-- templates/sat.html | 2 +- templates/status.html | 2 +- templates/transaction.html | 6 ++-- tests/lib.rs | 4 +-- tests/server.rs | 18 +++++------ tests/wallet/batch_command.rs | 16 +++++----- tests/wallet/send.rs | 4 +-- 27 files changed, 128 insertions(+), 161 deletions(-) diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index 57b992a6c6..7342690ee9 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -3242,9 +3242,9 @@ mod tests {
turbo
true
etching
-
{txid}
+
{txid}
parent
-
{txid}i0
+
{txid}i0
.*" ), @@ -3689,7 +3689,7 @@ mod tests {
.*
git commit
- + [[:xdigit:]]{40}
@@ -3842,7 +3842,7 @@ mod tests {
value
5000000000
script pubkey
OP_PUSHBYTES_65 [[:xdigit:]]{{130}} OP_CHECKSIG
-
transaction
{txid}
+
transaction
{txid}
spent
false

1 Sat Range

@@ -3864,7 +3864,7 @@ mod tests {
value
5000000000
script pubkey
OP_PUSHBYTES_65 [[:xdigit:]]{{130}} OP_CHECKSIG
-
transaction
{txid}
+
transaction
{txid}
spent
false
.*" ), @@ -3887,7 +3887,7 @@ mod tests {
value
5000000000
script pubkey
-
transaction
{txid}
+
transaction
{txid}
spent
false

1 Sat Range

@@ -3935,8 +3935,8 @@ mod tests { format!( ".*
id
-
{inscription_id}
.*
output
-
0000000000000000000000000000000000000000000000000000000000000000:0
.*" +
{inscription_id}
.*
output
+
0000000000000000000000000000000000000000000000000000000000000000:0
.*" ), ); @@ -4057,7 +4057,7 @@ mod tests { test_server.assert_response_regex( "/blocks", StatusCode::OK, - ".*
    \n(
  1. [[:xdigit:]]{64}
  2. \n){95}
.*" + ".*
    \n(
  1. [[:xdigit:]]{64}
  2. \n){95}
.*" ); } @@ -4155,12 +4155,12 @@ mod tests {

1 Input

1 Output