btcpayserver/BTCPayServer/wwwroot
Dennis Reimann c97b859963 Refactor QR functionality
Based on the `ur-registry` upgrade I refactored the `CameraScanner` and `ShowQR` partials: Besides general code changes, the main change is that most of the configuration and result handling now happens on the outer view.
Those partials and functions are now generalized and don't know about their purpose (like handling PSBTs): They can be instantiated with simple data (e.g. for displaying a plain QR code) or different modes (like showing a static and the UR version of a QR code) and the result handling is done via callback.

The callbacks can now also distinguish between the different results (data as plain string vs. UR-type objects for wallet data or PSBT) and also handle the specific type of data. For instance: Before it wasn't possible to strip the leading derivation path from an xpub when scanning the QR code, because the scanner didn't know about the type of data it was handling. Now that the data is handled in the callback, we can implement that functionality for the scan view only.
2022-09-13 10:17:12 +02:00
..
bundles Preserving bundles directory required for build 2018-02-27 17:03:49 +09:00
cart PoS UI fix: scale-down item image (#4076) 2022-08-25 12:26:44 +02:00
checkout Checkout UI fix (#4015) 2022-08-03 21:31:16 +09:00
crowdfund Reduce confusion 2022-09-09 13:49:24 +02:00
fonts Self-host webfonts 2020-08-06 22:18:26 +02:00
img Paybutton: Fix logo and URL 2022-08-20 11:32:09 +02:00
imlegacy htmlcoin altcoin updates (#3601) 2022-04-14 13:18:12 +09:00
js Refactor QR functionality 2022-09-13 10:17:12 +02:00
light-pos Make it work with decimal discount values 2022-07-22 13:31:41 +02:00
locales Update lang 2022-07-23 20:37:56 +09:00
main Custodian Account Deposit UI (#4024) 2022-08-09 20:03:55 +02:00
modal Reduce confusion 2022-09-09 13:49:24 +02:00
paybutton Set explicit cursor style property on pay button with custom text (#4107) 2022-09-09 14:28:03 +09:00
payment-request Reduce confusion 2022-09-09 13:49:24 +02:00
shopify Reduce confusion 2022-09-09 13:49:24 +02:00
swagger/v1 Update invoice amount description in Swagger template 2022-09-04 09:57:41 +03:00
tests Reduce confusion 2022-09-09 13:49:24 +02:00
vendor Remove bc-ur and upgrade ur-registry 2022-09-13 10:17:12 +02:00
favicon.ico Init 2017-09-13 15:55:16 +09:00
manifest.json New PoS design 2018-12-27 12:57:31 +08:00