From 57c26ed2bb9c02197ccb3f86f7b8357389f85912 Mon Sep 17 00:00:00 2001 From: Eneko Illarramendi Date: Sat, 18 Apr 2020 23:17:16 +0200 Subject: [PATCH] chore: outline some buttons --- lnbits/core/templates/core/wallet.html | 35 ++++--- .../templates/diagonalley/index.html | 37 +++---- .../paywall/templates/paywall/index.html | 12 ++- .../extensions/tpos/templates/tpos/index.html | 97 ++++++++++++++++--- .../extensions/tpos/templates/tpos/tpos.html | 6 +- .../withdraw/templates/withdraw/display.html | 4 +- .../withdraw/templates/withdraw/index.html | 41 ++++---- lnbits/static/js/base.js | 2 +- 8 files changed, 158 insertions(+), 76 deletions(-) diff --git a/lnbits/core/templates/core/wallet.html b/lnbits/core/templates/core/wallet.html index 1ff3f58..c8e72e8 100644 --- a/lnbits/core/templates/core/wallet.html +++ b/lnbits/core/templates/core/wallet.html @@ -154,7 +154,7 @@ v-model.trim="receive.data.memo" label="Memo" placeholder="LNbits invoice"> -
+
-
+
Copy invoice - Close + Close
@@ -184,17 +184,16 @@
- - -
+ v-model.trim="send.data.bolt11" + type="textarea" + label="Paste an invoice *"> + + +
-
+
Cancel
@@ -221,15 +220,15 @@ Hash: {{ send.invoice.hash }}

{% endraw %} -
+
Send satoshis Cancel
-
+
Not enough funds! - Cancel + Cancel
diff --git a/lnbits/extensions/diagonalley/templates/diagonalley/index.html b/lnbits/extensions/diagonalley/templates/diagonalley/index.html index 2dae3b0..c435d11 100644 --- a/lnbits/extensions/diagonalley/templates/diagonalley/index.html +++ b/lnbits/extensions/diagonalley/templates/diagonalley/index.html @@ -236,18 +236,20 @@ label="Quantity" > - + Update Product - Create Product - - Cancel + Create Product + + Cancel +
@@ -267,7 +269,7 @@ v-model.trim="indexerDialog.data.indexeraddress" label="Shop link (LNbits will point to)"> - - + Update Indexer Create Indexer - Cancel + Cancel +
diff --git a/lnbits/extensions/paywall/templates/paywall/index.html b/lnbits/extensions/paywall/templates/paywall/index.html index 8b0af6e..77e8c75 100644 --- a/lnbits/extensions/paywall/templates/paywall/index.html +++ b/lnbits/extensions/paywall/templates/paywall/index.html @@ -96,11 +96,13 @@ v-model.trim="paywallDialog.data.memo" label="Memo" placeholder="LNbits invoice"> - Create paywall - Cancel +
+ Create paywall + Cancel +
diff --git a/lnbits/extensions/tpos/templates/tpos/index.html b/lnbits/extensions/tpos/templates/tpos/index.html index cebcd8f..df622c5 100644 --- a/lnbits/extensions/tpos/templates/tpos/index.html +++ b/lnbits/extensions/tpos/templates/tpos/index.html @@ -106,11 +106,13 @@ emit-value v-model="formDialog.data.currency" :options="currencyOptions" label="Currency *"> - Create TPoS - Cancel +
+ Create TPoS + Cancel +
@@ -134,12 +136,85 @@ return { tposs: [], currencyOptions: [ - 'USD', 'EUR', 'GBP', 'DZD', 'ARP', 'AUD', 'ATS', 'BSD', 'BBD', 'BEF', 'BMD', 'BRL', 'BGL', 'CAD', 'CLP', - 'CNY', 'CYP', 'CSK', 'DKK', 'NLG', 'XCD', 'EGP', 'FJD', 'FIM', 'FRF', 'DEM', 'XAU', 'GRD', 'HKD', 'HUF', - 'ISK', 'INR', 'IDR', 'IEP', 'ILS', 'ITL', 'JMD', 'JPY', 'JOD', 'KRW', 'LBP', 'LUF', 'MYR', 'MXP', 'NLG', - 'NZD', 'NOK', 'PKR', 'XPD', 'PHP', 'XPT', 'PLZ', 'PTE', 'ROL', 'RUR', 'SAR', 'XAG', 'SGD', 'SKK', 'ZAR', - 'KRW', 'ESP', 'XDR', 'SDD', 'SEK', 'CHF', 'TWD', 'THB', 'TTD', 'TRL', 'VEB', 'ZMK', 'EUR', 'XCD', 'XDR', - 'XAG', 'XAU', 'XPD', 'XPT' + {value: 'USD', label: 'USD - United States Dollars'}, + {value: 'EUR', label: 'EUR - Euro'}, + {value: 'GBP', label: 'GBP - United Kingdom Pounds'}, + {value: 'DZD', label: 'DZD - Algeria Dinars'}, + {value: 'ARP', label: 'ARP - Argentina Pesos'}, + {value: 'AUD', label: 'AUD - Australia Dollars'}, + {value: 'ATS', label: 'ATS - Austria Schillings'}, + {value: 'BSD', label: 'BSD - Bahamas Dollars'}, + {value: 'BBD', label: 'BBD - Barbados Dollars'}, + {value: 'BEF', label: 'BEF - Belgium Francs'}, + {value: 'BMD', label: 'BMD - Bermuda Dollars'}, + {value: 'BRL', label: 'BRL - Brazil Real'}, + {value: 'BGL', label: 'BGL - Bulgaria Lev'}, + {value: 'CAD', label: 'CAD - Canada Dollars'}, + {value: 'CLP', label: 'CLP - Chile Pesos'}, + {value: 'CNY', label: 'CNY - China Yuan Renmimbi'}, + {value: 'CYP', label: 'CYP - Cyprus Pounds'}, + {value: 'CSK', label: 'CSK - Czech Republic Koruna'}, + {value: 'DKK', label: 'DKK - Denmark Kroner'}, + {value: 'NLG', label: 'NLG - Dutch Guilders'}, + {value: 'XCD', label: 'XCD - Eastern Caribbean Dollars'}, + {value: 'EGP', label: 'EGP - Egypt Pounds'}, + {value: 'FJD', label: 'FJD - Fiji Dollars'}, + {value: 'FIM', label: 'FIM - Finland Markka'}, + {value: 'FRF', label: 'FRF - France Francs'}, + {value: 'DEM', label: 'DEM - Germany Deutsche Marks'}, + {value: 'XAU', label: 'XAU - Gold Ounces'}, + {value: 'GRD', label: 'GRD - Greece Drachmas'}, + {value: 'HKD', label: 'HKD - Hong Kong Dollars'}, + {value: 'HUF', label: 'HUF - Hungary Forint'}, + {value: 'ISK', label: 'ISK - Iceland Krona'}, + {value: 'INR', label: 'INR - India Rupees'}, + {value: 'IDR', label: 'IDR - Indonesia Rupiah'}, + {value: 'IEP', label: 'IEP - Ireland Punt'}, + {value: 'ILS', label: 'ILS - Israel New Shekels'}, + {value: 'ITL', label: 'ITL - Italy Lira'}, + {value: 'JMD', label: 'JMD - Jamaica Dollars'}, + {value: 'JPY', label: 'JPY - Japan Yen'}, + {value: 'JOD', label: 'JOD - Jordan Dinar'}, + {value: 'KRW', label: 'KRW - Korea (South) Won'}, + {value: 'LBP', label: 'LBP - Lebanon Pounds'}, + {value: 'LUF', label: 'LUF - Luxembourg Francs'}, + {value: 'MYR', label: 'MYR - Malaysia Ringgit'}, + {value: 'MXP', label: 'MXP - Mexico Pesos'}, + {value: 'NLG', label: 'NLG - Netherlands Guilders'}, + {value: 'NZD', label: 'NZD - New Zealand Dollars'}, + {value: 'NOK', label: 'NOK - Norway Kroner'}, + {value: 'PKR', label: 'PKR - Pakistan Rupees'}, + {value: 'XPD', label: 'XPD - Palladium Ounces'}, + {value: 'PHP', label: 'PHP - Philippines Pesos'}, + {value: 'XPT', label: 'XPT - Platinum Ounces'}, + {value: 'PLZ', label: 'PLZ - Poland Zloty'}, + {value: 'PTE', label: 'PTE - Portugal Escudo'}, + {value: 'ROL', label: 'ROL - Romania Leu'}, + {value: 'RUR', label: 'RUR - Russia Rubles'}, + {value: 'SAR', label: 'SAR - Saudi Arabia Riyal'}, + {value: 'XAG', label: 'XAG - Silver Ounces'}, + {value: 'SGD', label: 'SGD - Singapore Dollars'}, + {value: 'SKK', label: 'SKK - Slovakia Koruna'}, + {value: 'ZAR', label: 'ZAR - South Africa Rand'}, + {value: 'KRW', label: 'KRW - South Korea Won'}, + {value: 'ESP', label: 'ESP - Spain Pesetas'}, + {value: 'XDR', label: 'XDR - Special Drawing Right (IMF)'}, + {value: 'SDD', label: 'SDD - Sudan Dinar'}, + {value: 'SEK', label: 'SEK - Sweden Krona'}, + {value: 'CHF', label: 'CHF - Switzerland Francs'}, + {value: 'TWD', label: 'TWD - Taiwan Dollars'}, + {value: 'THB', label: 'THB - Thailand Baht'}, + {value: 'TTD', label: 'TTD - Trinidad and Tobago Dollars'}, + {value: 'TRL', label: 'TRL - Turkey Lira'}, + {value: 'VEB', label: 'VEB - Venezuela Bolivar'}, + {value: 'ZMK', label: 'ZMK - Zambia Kwacha'}, + {value: 'EUR', label: 'EUR - Euro'}, + {value: 'XCD', label: 'XCD - Eastern Caribbean Dollars'}, + {value: 'XDR', label: 'XDR - Special Drawing Right (IMF)'}, + {value: 'XAG', label: 'XAG - Silver Ounces'}, + {value: 'XAU', label: 'XAU - Gold Ounces'}, + {value: 'XPD', label: 'XPD - Palladium Ounces'}, + {value: 'XPT', label: 'XPT - Platinum Ounces'} ], tpossTable: { columns: [ diff --git a/lnbits/extensions/tpos/templates/tpos/tpos.html b/lnbits/extensions/tpos/templates/tpos/tpos.html index 5111069..c219966 100644 --- a/lnbits/extensions/tpos/templates/tpos/tpos.html +++ b/lnbits/extensions/tpos/templates/tpos/tpos.html @@ -80,7 +80,7 @@ {% raw %}{{ fsat }}{% endraw %} sat
-
+
Close
@@ -93,8 +93,8 @@

{{ tpos.name }}
{{ request.url }}

-
- Copy URL +
+ Copy URL Close
diff --git a/lnbits/extensions/withdraw/templates/withdraw/display.html b/lnbits/extensions/withdraw/templates/withdraw/display.html index 262420a..0208784 100644 --- a/lnbits/extensions/withdraw/templates/withdraw/display.html +++ b/lnbits/extensions/withdraw/templates/withdraw/display.html @@ -16,8 +16,8 @@
-
- Copy LNURL +
+ Copy LNURL
diff --git a/lnbits/extensions/withdraw/templates/withdraw/index.html b/lnbits/extensions/withdraw/templates/withdraw/index.html index 87cd43e..b91f277 100644 --- a/lnbits/extensions/withdraw/templates/withdraw/index.html +++ b/lnbits/extensions/withdraw/templates/withdraw/index.html @@ -138,22 +138,24 @@ - Update withdraw link - Create withdraw link - Cancel +
+ Update withdraw link + Create withdraw link + Cancel +
@@ -172,9 +174,10 @@ Withdraws: {{ qrCodeDialog.data.used }} / {{ qrCodeDialog.data.uses }}

{% endraw %} -
- Copy link - Print QR codes +
+ Copy LNURL + Shareable link + Close
diff --git a/lnbits/static/js/base.js b/lnbits/static/js/base.js index c522ce2..6c253c5 100644 --- a/lnbits/static/js/base.js +++ b/lnbits/static/js/base.js @@ -59,7 +59,7 @@ var LNbits = { }); obj.walletOptions = obj.wallets.map(function (obj) { return { - label: [obj.name, ' (', obj.id , ')'].join(''), + label: [obj.name, ' - ', obj.id].join(''), value: obj.id }; });