Commit Graph

4416 Commits

Author SHA1 Message Date
nicolas.dorier
ef70f4d547
Simplify code with PaymentMethodId.TryParse 2021-09-24 14:21:30 +09:00
Andrew Camilleri
8c061b1f07
Attempt cover scenarios of switching back to Bitcoin only after taint (#2881) 2021-09-24 14:16:25 +09:00
d11n
0aed8fdb5b
Improve app update buttons (#2915)
Better responsive behaviour and clearer distinction between primary and secondary actions. Also improves the wording ("View Crowdfund/Point of Sale" vs. "View app") and gets rid of the superfluous "Back to apps list" button.
2021-09-24 14:13:38 +09:00
nicolas.dorier
6125a99381
Should not be able to activate a payment method on an invoice which is not new 2021-09-24 00:12:12 +09:00
Nicolas Dorier
83b54b7be1
Fix infinite loop happening if payment method unavailable with on invoices with lazy activation (#2914) 2021-09-24 00:00:55 +09:00
Dennis Reimann
047222b3ee Fix offcanvas on desktop 2021-09-23 13:45:05 +02:00
Dennis Reimann
2fe1ab83f5 Improve offcanvas nav animation 2021-09-23 13:45:05 +02:00
Dennis Reimann
5372058c33 Use offcanvas nav for mobile 2021-09-23 13:45:05 +02:00
Dennis Reimann
a08261a798 Update dark mode footer colors 2021-09-23 13:44:48 +02:00
Dennis Reimann
869985f005 Finetune footer; remove obsolete images 2021-09-23 13:44:48 +02:00
1nF0rmed
97b5c473c1 Removes the "Let's Get In Touch!" block from the homepage 2021-09-23 13:44:48 +02:00
1nF0rmed
337db3daab Align social links to appear above copyright 2021-09-23 13:44:48 +02:00
1nF0rmed
10da82607d Adds social links to Layout
This removes the logo credits in the base Layout and adds the
links to Github, Mattermost and Twitter.
2021-09-23 13:44:48 +02:00
d11n
7f49824783
Improve public LN node info (#2876)
* Add store name to LN info unavailable pae

* Display multiple node info items if available

Allows to view clearnet and Tor connection info side by side.

* Re-add preferOnion for certain cases

* HTML compatible node ids

* Display more node connection failure details

* Fix syntax error

* Update BTCPayServer/Payments/Lightning/LightningLikePaymentHandler.cs

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>

* View updates

* Revert previous variable change

* Keep logic out of the view

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
2021-09-23 20:36:42 +09:00
Umar Bolatov
5d8bc73063 Reset "all stores" values to default 2021-09-23 10:11:37 +02:00
Umar Bolatov
82675384c4 Don't adjust store mode if user is performing an action 2021-09-23 10:11:37 +02:00
Umar Bolatov
3dc663f4d8 Adjust view 2021-09-23 10:11:37 +02:00
Umar Bolatov
2b0fcdf95c [WIP] Fix issues with Authorization Request page
closes #2858
2021-09-23 10:11:37 +02:00
Umar Bolatov
ac34109da3
Support preview/codegen for custom currencies in pay button (#2896) 2021-09-22 13:10:52 +09:00
Umar Bolatov
7b252369e9 Add GetPOSItems method 2021-09-21 09:45:41 +02:00
Umar Bolatov
9d48358f2a Rename Unavailable to Disabled 2021-09-21 09:45:41 +02:00
Umar Bolatov
2dcd7db797 Filter unavailable items in controller 2021-09-21 09:45:41 +02:00
Umar Bolatov
c267cf0e9c Rename "hidden" to "unavailable" 2021-09-21 09:45:41 +02:00
Umar Bolatov
403820cf14 Add ability to hide a product from POS app
See discussion here: https://github.com/btcpayserver/btcpayserver/discussions/2827
2021-09-21 09:45:41 +02:00
nicolas.dorier
6d667e2d78
bump redoc 2021-09-21 12:52:31 +09:00
nicolas.dorier
258a19fdf5
Make CSP more specific for docs 2021-09-21 12:47:46 +09:00
nicolas.dorier
1a593a1ced
Fix documentation page broken by CSP 2021-09-21 12:43:50 +09:00
Umar Bolatov
b93f3ff445
Remove padding from "Show QR" button 2021-09-18 21:31:23 -07:00
Umar Bolatov
5984edb7f4
Disallow cancelling payment request when "Allow payee to create invoices in their own denomination" is not enabled (#2843)
* Disallow cancelling payment request when "Allow payee to create invoices in their own denomination" is not enabled

close #2802

* Disallow cancelling pending invoice on BE

* Update non-JS version of payment request view to disallow cancelling

* Update CanCancelPaymentWhenPossible

* Fix typo
2021-09-17 10:24:48 +09:00
Dennis Reimann
603bd2692e Summernote: Fix source map reference; remove unused files 2021-09-16 07:30:33 +02:00
Umar Bolatov
2e61bdf88f Update swagger example 2021-09-16 07:29:18 +02:00
Umar Bolatov
e6aa73197a Move GetDefaultPaymentId out of InvoiceExtensions 2021-09-16 07:29:18 +02:00
Umar Bolatov
5cba59932b Add ability to specify default payment method through Greenfield API 2021-09-16 07:29:18 +02:00
Umar Bolatov
809340e629 Add ability to select default payment method for invoice through UI 2021-09-16 07:29:18 +02:00
dstrukt
24674d354c removes slack + updates columns 2021-09-16 07:18:31 +02:00
Kukks
e93562b1db Do not publish NewTransactionEvent if GetValidOutputs did not match with the network's. 2021-09-15 07:28:17 +02:00
Umar Bolatov
d88f012d82
Improve warning when creating invoice without wallet (#2844)
* Improve warning when creating invoice without wallet

close #2834

* Update link class name
2021-09-13 14:24:10 +09:00
d11n
f96767d3dc
Bootstrap update (#2870)
* Update Bootstrap

* Fix notification checkbox styling
2021-09-13 14:23:10 +09:00
d11n
6666786b7a
Unify Fido2 authentication under two-factor tab (#2866)
* Unify Fido2 authentication under two-factor tab

Closes #2754.

* Improve UI and wording

* Improve register FIDO2 device page
2021-09-13 10:16:52 +09:00
nicolas.dorier
eccbe8e018
Sanitize UrlRoot in PayButton 2021-09-12 20:33:51 +09:00
d11n
aac87539ae
Fix pay button CSP issue when using modal (#2872)
* Fix pay button CSP issue when using modal

Fixes #2864.

* Use event handler, refactor csp tags

* Fix script indentation

* Fix onsubmit event handler integration

Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2021-09-12 20:31:35 +09:00
nicolas.dorier
7f40698bba
Fix interactive XSS when entering javascript: in store's website. 2021-09-10 10:56:48 +09:00
nicolas.dorier
3b9c7db481
The page could crash if the user clicks too many time on Notificate 'Mark as Seen' 2021-09-10 00:22:33 +09:00
nicolas.dorier
649f650da6
Fix build 2021-09-10 00:16:28 +09:00
nicolas.dorier
ad7b62fa3d
Fix CSP when there is a theme 2021-09-10 00:14:26 +09:00
d11n
650df97e50
Fix Summernote XSS possibility (#2859) 2021-09-09 22:49:30 +09:00
Nicolas Dorier
fc4e47cec6
Add CSP at the website level (#2863) 2021-09-09 21:51:28 +09:00
nicolas.dorier
c39f1341aa
Fix warnings 2021-09-09 20:31:35 +09:00
Kukks
a39d1e0886 fix broken plugin page 2021-09-09 13:12:44 +02:00
Dennis Reimann
435f51a777 Fix for crowdfund perk editor
With no title entered, the editor got stuck in an endless loop, because it recursively invoked the save function without checking for the ID fallback being present.

Fixes #2862.
2021-09-09 10:59:03 +02:00
nicolas.dorier
de2c12c1df
Fix warning 2021-09-08 18:45:12 +09:00
nicolas.dorier
ae43af999b
update HWI lib 2021-09-08 18:27:36 +09:00
Nicolas Dorier
14a10eeef8
Remove useless code (#2852) 2021-09-07 19:18:56 +09:00
Umar Bolatov
180be49824 Add "#nullable enable" 2021-09-07 10:39:36 +02:00
Umar Bolatov
5faa756f1c Add check for empty theme URI before saving theme settings 2021-09-07 10:39:36 +02:00
d11n
06db29dd43
Delete confirmation modals (#2614)
* Refactor confirm view: separate modal

* Add delete confirmation modals for apps and FIDO2

* Add delete confirmation modals for 2FA actions

* Add delete confirmation modals for api keys and webhooks

* Add delete confirmation modals for stores and store users

* Add delete confirmation modals for LND seed and SSH

* Add delete confirmation modals for rate rule scripting

* Test fixes and improvements

* Add delete confirmation modals for dynamic DNS

* Add delete confirmation modals for store access tokens

* Add confirmation modals for pull payment archiving

* Refactor confirm modal code

* Add confirmation input, update wording

* Update modal styles

* Upgrade ChromeDriver

* Simplify and unify confirmation input

* Test fixes

* Fix wording

* Add modals for wallet replace and removal
2021-09-07 11:55:53 +09:00
Andrew Camilleri
6d317937c7
Do not generate payment methods when 0 amount invoice (#2776)
* Do not generate payment methods when 0 amount invoice

* Add test for 0 amoutn invoices
2021-09-07 00:23:41 +09:00
Umar Bolatov
522c990278 Allow creating top-up invoice when min/max payment amount criteria is active
closes #2831
2021-09-06 10:44:10 +02:00
Nicolas Dorier
e584ebe7de
Decouple taproot activation from support in generate wallet (#2837) 2021-09-04 22:07:09 +09:00
d11n
1422bd8540
Decrease notification badge padding (#2841)
Fixes #2840.
2021-09-04 22:06:56 +09:00
d11n
fe18e71538
Refactor themes (#2794)
* Remove Bootstrap/Creative CSS file customizability

Customizations should be done using themes

* Remove deprecated Casa and Classic themes

They are still available in the design system repo and should be added as custom theme CSS file

* Use either standard or custom theme

* Remove deprecated themes

* Improve theme select UI

* Finish and refactor theme switching

* updates theme copy

* Update BTCPayServer/Views/Server/Theme.cshtml

Co-authored-by: Zaxounette <51208677+Zaxounette@users.noreply.github.com>

* Combine creative.css and site.css

Co-authored-by: dstrukt <gfxdsign@gmail.com>
Co-authored-by: Zaxounette <51208677+Zaxounette@users.noreply.github.com>
2021-09-03 16:16:36 +09:00
Manan Sharma
e5699f674b
Taproot support for wallets (#2830)
* Support taproot for HotWallet

* Support taproot for hardware wallets

* Fix NBX version

* Undo formatting

* Do not show Taproot when not supported

* Create taproot wallet from xpub

* Bug Fix
2021-09-03 15:37:12 +09:00
Dennis Reimann
203db44b4e Patch summernote to fix issues in Chrome/Chromium
As we are using a customized version for the Bootstrap 5 compatibility anyways, with this we are also including the changes proposed in summernote/summernote#4034 to fix #2816.
2021-09-02 15:35:32 +02:00
Dennis Reimann
69c5f5b9e5 Reduce navbar padding 2021-09-02 12:36:02 +02:00
Dennis Reimann
5a16dfced3 Cleanup site.css 2021-09-02 12:36:02 +02:00
Dennis Reimann
cb46ef9e6c Revert semibold links 2021-09-02 12:36:02 +02:00
dstrukt
3b810e9b8d revert left sidebar font size 2021-09-02 12:36:02 +02:00
Dennis Reimann
663dcecb8e Cleanup home styles 2021-09-02 12:36:02 +02:00
Dennis Reimann
fbb5671f89 Cleanup styles 2021-09-02 12:36:02 +02:00
Dennis Reimann
47d348359f Use util classes for navbar padding 2021-09-02 12:36:02 +02:00
dstrukt
ab2f460f35 converts to rem 2021-09-02 12:36:02 +02:00
dstrukt
c77e3a9396 navbar queries added 2021-09-02 12:36:02 +02:00
dstrukt
014c43f79b updates section 2021-09-02 12:36:02 +02:00
dstrukt
21fb3813dd adds section + media query 2021-09-02 12:36:02 +02:00
Dennis Reimann
9a039a747a Move site customizations to design system 2021-09-02 12:36:02 +02:00
Dennis Reimann
17578a4615 Bootstrap updates
- Increase vertical navbar padding
- Update alert close button styles
- Use semibold font for links
2021-09-02 12:36:02 +02:00
Dennis Reimann
abb68d6f59 Improve fee rate component 2021-09-02 12:36:02 +02:00
Dennis Reimann
3c443344a5 Ensure round notification badge 2021-09-02 12:36:02 +02:00
dstrukt
2887017d12 updates line-height, removes sm-table hack 2021-09-02 12:36:02 +02:00
dstrukt
f2286fb1be updates copy to reduce button size 2021-09-02 12:36:02 +02:00
dstrukt
bdd11a14ff adjusts logo size for future size update 2021-09-02 12:36:02 +02:00
dstrukt
18f6e5af4d left sidebar navigation updates 2021-09-02 12:36:02 +02:00
Dennis Reimann
83b07e0caf Refactor tables, remove old customizations 2021-09-02 12:36:02 +02:00
Dennis Reimann
840a5ac4b4 Refactor Bootstrap colors 2021-09-02 12:36:02 +02:00
Dennis Reimann
4923311168 Update Bootstrap and theme variables 2021-09-02 12:36:02 +02:00
Umar Bolatov
748423dfe8 Add UpdateOnChainPaymentMethodRequest 2021-09-02 10:42:41 +02:00
Umar Bolatov
2f4e610900 Add UpdateLightningNetworkPaymentMethodRequest 2021-09-02 10:42:41 +02:00
Umar Bolatov
d39ec97b9a Remove "enabled" option from address preview endpoint 2021-09-02 10:42:41 +02:00
Dennis Reimann
0d08bd3ad1 Minor syntax changes 2021-09-02 10:39:35 +02:00
Dennis Reimann
3343738bb3 Remove back links to POSTed pages 2021-09-02 10:39:35 +02:00
Dennis Reimann
373b0b7850 Remove superfluous export command 2021-09-02 10:39:35 +02:00
Dennis Reimann
aa24da72b9 Improve raw export options 2021-09-02 10:39:35 +02:00
Dennis Reimann
aecc5f3c6e Update wording 2021-09-02 10:39:35 +02:00
Dennis Reimann
3d4ef48ceb View cleanup 2021-09-02 10:39:35 +02:00
Dennis Reimann
9bb74a17d8 Refine views and use cases 2021-09-02 10:39:35 +02:00
Dennis Reimann
b654dfb237 Cleanup initial PSBT input view 2021-09-02 10:39:35 +02:00
Dennis Reimann
bf5ea23bc6 Streamline views 2021-09-02 10:39:35 +02:00
Dennis Reimann
b4c1f695a8 Remove psbt ready view
The transaction info is now shown on the decoded PSBT page.
2021-09-02 10:39:35 +02:00
Dennis Reimann
de3d966835 WIP 2021-09-02 10:39:35 +02:00
Dennis Reimann
bcdb1ab1d8 Improve review/broadcast flow and fix test 2021-09-02 10:39:35 +02:00