From adcf875db6013a5a2da6b9da94451f6f8a8160d9 Mon Sep 17 00:00:00 2001 From: nahuhh <50635951+nahuhh@users.noreply.github.com> Date: Thu, 21 Mar 2024 09:06:55 -0400 Subject: [PATCH] ui: orderbook update & fixes --- basicswap/templates/offers.html | 343 +++++++++++++++++--------------- 1 file changed, 179 insertions(+), 164 deletions(-) diff --git a/basicswap/templates/offers.html b/basicswap/templates/offers.html index 036f9d2..68a14a4 100644 --- a/basicswap/templates/offers.html +++ b/basicswap/templates/offers.html @@ -68,65 +68,64 @@
-
-
-
- Bitcoin -

- Bitcoin (BTC) -

-
-
-

- - -

-
-
-
-
-
-
- VOL: -
-
-
-
-
-
- -
-
+
- Monero + Bitcoin

- Monero (XMR) + Bitcoin (BTC)

-

+

- +

-
+
VOL: -
+
-
+
+
+
+ +
+
+
+ Monero +

+ Monero (XMR) +

+
+
+

+ + +

+
+
+
+
+
+
+ VOL: +
+
+
+
BTC:
+
+
-
-
@@ -888,46 +887,52 @@ const chart = new Chart(ctx, { - - - - - - + @@ -936,7 +941,7 @@ const chart = new Chart(ctx, { {% for o in offers %} - - + {% if o[9] == true %} - + + + - - + + + + + {% else %} - @@ -1041,44 +1085,20 @@ const chart = new Chart(ctx, { {{ arrow_right_svg | safe }} + - - - {{ o[2] }} - - - -
-
- {{ o[4]|truncate(9, true, '', 0) }} -
-
{{ o[2] }}
- -
- - - - {% else %} -
+ + + {% endif %} - + + - {% if sent_offers %} - {% else %} -
-
+
+
Time - +
-
+
- You Send + Max send
-
+
+
Swap
-
- Rate - +
+
+ Max Recv +
-
- Market +/- +
+ Rate
+ +
+ Market +/- + +
+
Trade - +
+
@@ -959,33 +964,29 @@ const chart = new Chart(ctx, {
-
+ + + + {{ o[5]|truncate(7, true, '', 0) }} +
{{ o[3] }}
+
+ +
+ + {{ o[3] }} + + {{ arrow_right_svg | safe }} + + {{ o[2] }} + +
+
+ + + {{ o[4]|truncate(7, true, '', 0) }} +
{{ o[2] }}
+
+
+ + +
+ + + {{ o[5]|truncate(7, true, '', 0) }} +
{{ o[3] }}
+
+ + + + + + + {{ o[4]|truncate(7, true, '', 0) }} +
{{ o[2] }}
+
+ + - -
-
- {{ o[4]|truncate(9, true, '', 0) }} -
-
{{ o[2] }}
- -
-
+ - /{{ o[16] }} -
{{ o[6]|truncate(6,true,'',0) }} {{ o[17] }}/{{ o[16] }} + /{{ o[16] }} +
{{ o[6]|truncate(10,true,'',0) }} {{ o[17] }}/{{ o[16] }}
- -
- -
-
+ + @@ -1226,6 +1240,7 @@ const coinNameToSymbol = { 'Particl Blind': 'PART', 'Particl Anon': 'PART', 'Monero': 'XMR', + 'Wownero': 'WOW', 'Litecoin': 'LTC', 'Firo': 'FIRO', 'Dash': 'DASH', @@ -1360,7 +1375,7 @@ document.addEventListener('DOMContentLoaded', () => { }); function sortTable(columnIndex) { - const sortableColumns = [0, 4, 5]; + const sortableColumns = [0, 2, 4, 5, 6, 7]; if (!sortableColumns.includes(columnIndex)) { return;