From b5c7f88a9be1288112f615df750bbbc0c3dbdb94 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 6 Nov 2024 19:34:56 -0800 Subject: [PATCH] Collapse long strings in HTML (#4053) --- src/subcommand/server.rs | 4 +- src/templates.rs | 2 +- src/templates/block.rs | 4 +- src/templates/blocks.rs | 4 +- src/templates/inscription.rs | 10 +-- src/templates/output.rs | 6 +- src/templates/sat.rs | 2 +- static/index.css | 6 +- static/index.js | 130 +++++++++++++++++++++++++++------- templates/block.html | 4 +- templates/blocks.html | 2 +- templates/inscription.html | 4 +- templates/output.html | 2 +- templates/page.html | 2 +- templates/rune-balances.html | 4 +- templates/sat.html | 2 +- templates/status.html | 2 +- templates/transaction.html | 2 +- tests/server.rs | 6 +- tests/wallet/batch_command.rs | 6 +- tests/wallet/send.rs | 2 +- 21 files changed, 144 insertions(+), 62 deletions(-) diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index e7fc497d4d..57b992a6c6 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -3689,7 +3689,7 @@ mod tests {
.*
git commit
- + [[:xdigit:]]{40}
@@ -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}
.*" ); } diff --git a/src/templates.rs b/src/templates.rs index a0eec45dcc..29aec83d71 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -137,7 +137,7 @@ mod tests { - +
diff --git a/src/templates/block.rs b/src/templates/block.rs index 1f2e8088f3..8abf2a8503 100644 --- a/src/templates/block.rs +++ b/src/templates/block.rs @@ -73,8 +73,8 @@ mod tests {

1 Transaction

-