From 116ca7f011aacdd1016a64bdbee937671dd508f0 Mon Sep 17 00:00:00 2001 From: Wim van der Ham Date: Fri, 15 Mar 2024 11:10:52 +0100 Subject: [PATCH] Remove all {% raw %} usage (#2318) * Remove raw from templates * Remove v-text from q-tooltip * extension buttons * Move more to spans * Reformatted --------- Co-authored-by: Tiago Vasconcelos --- lnbits/core/templates/admin/_tab_funding.html | 30 +-- .../core/templates/admin/_tab_security.html | 16 +- .../admin/_tab_security_notifications.html | 23 ++- lnbits/core/templates/admin/_tab_server.html | 23 +-- lnbits/core/templates/admin/index.html | 20 +- lnbits/core/templates/core/extensions.html | 191 ++++++++++-------- lnbits/core/templates/node/_tab_channels.html | 34 ++-- .../core/templates/node/_tab_dashboard.html | 2 - .../templates/node/_tab_transactions.html | 18 +- 9 files changed, 181 insertions(+), 176 deletions(-) diff --git a/lnbits/core/templates/admin/_tab_funding.html b/lnbits/core/templates/admin/_tab_funding.html index 3aa011d1..bd909073 100644 --- a/lnbits/core/templates/admin/_tab_funding.html +++ b/lnbits/core/templates/admin/_tab_funding.html @@ -7,21 +7,21 @@

Funding Source Info

    - {%raw%} -
  • Funding Source: {{settings.lnbits_backend_wallet_class}}
  • -
  • - Node Balance: {{(auditData.node_balance_msats / - 1000).toLocaleString()}} sats -
  • -
  • - LNbits Balance: {{(auditData.lnbits_balance_msats / - 1000).toLocaleString()}} sats -
  • -
  • - Reserve Percent: {{(auditData.node_balance_msats / - auditData.lnbits_balance_msats * 100).toFixed(2)}} % -
  • - {%endraw%} +
  • +
  • +
  • +

diff --git a/lnbits/core/templates/admin/_tab_security.html b/lnbits/core/templates/admin/_tab_security.html index 69321a3e..0f77cf52 100644 --- a/lnbits/core/templates/admin/_tab_security.html +++ b/lnbits/core/templates/admin/_tab_security.html @@ -131,7 +131,7 @@ style="padding: 10px; color: #fafafa; height: 320px" > {% raw %}{{ log }}{% endraw %}

@@ -166,7 +166,6 @@ >
- {%raw%} - {{ blocked_ip }} - - {%endraw%} + v-text="blocked_ip" + >

@@ -198,7 +195,6 @@ >
- {%raw%} - {{ allowed_ip }} - - {%endraw%} + v-text="allowed_ip" + >

diff --git a/lnbits/core/templates/admin/_tab_security_notifications.html b/lnbits/core/templates/admin/_tab_security_notifications.html index 6d250b52..1683eda8 100644 --- a/lnbits/core/templates/admin/_tab_security_notifications.html +++ b/lnbits/core/templates/admin/_tab_security_notifications.html @@ -1,4 +1,3 @@ -{% raw %} @@ -30,9 +29,12 @@ - - {% endraw %}
- {% raw %}
@@ -254,19 +250,21 @@
-
- {{ props.row.alias }} -
+
- #{{ props.row.color }} -
- {{ shortenNodeId(props.row.id) }} -
+
- - {% endraw %}
diff --git a/lnbits/core/templates/node/_tab_dashboard.html b/lnbits/core/templates/node/_tab_dashboard.html index 02aa0138..e045fc26 100644 --- a/lnbits/core/templates/node/_tab_dashboard.html +++ b/lnbits/core/templates/node/_tab_dashboard.html @@ -1,6 +1,5 @@ - {% raw %}
@@ -65,6 +64,5 @@ >
- {% endraw %}
diff --git a/lnbits/core/templates/node/_tab_transactions.html b/lnbits/core/templates/node/_tab_transactions.html index 2743ff27..40b3fb4d 100644 --- a/lnbits/core/templates/node/_tab_transactions.html +++ b/lnbits/core/templates/node/_tab_transactions.html @@ -3,7 +3,6 @@ - {% raw %}
:
- {{ transactionDetailsDialog.data.payment_hash }} +
:
- {{ transactionDetailsDialog.data.preimage }} +
- {% endraw %} @@ -102,7 +102,6 @@ :filter="paymentsTable.filter" @request="getPayments" > - {% raw %} - {% endraw %} @@ -266,7 +263,6 @@ :filter="invoiceTable.filter" @request="getInvoices" > - {% raw %} - - {% endraw %}