From b9b3860e6b0d858a471b42f2fe88fbbf43f82f23 Mon Sep 17 00:00:00 2001 From: d11n Date: Thu, 30 Nov 2023 10:17:23 +0100 Subject: [PATCH] NFC improvements (#5509) * Move NFC code on Vue app level * Update NFC result handling and display * Save a bit of space * Scroll NFC error into view --- .../BitcoinLikeMethodCheckout-v2.cshtml | 2 +- .../Bitcoin/BitcoinLikeMethodCheckout.cshtml | 4 +- .../LightningLikeMethodCheckout-v2.cshtml | 2 +- .../LightningLikeMethodCheckout.cshtml | 2 +- .../Views/Shared/NFC/CheckoutEnd.cshtml | 166 ++++-------------- .../Shared/NFC/LNURLNFCPostContent-v2.cshtml | 2 +- .../Shared/NFC/LNURLNFCPostContent.cshtml | 2 +- .../Views/UIInvoice/Checkout-Body.cshtml | 13 +- BTCPayServer/Views/UIInvoice/Checkout.cshtml | 85 ++++++++- .../Views/UIInvoice/CheckoutV2.cshtml | 10 +- BTCPayServer/wwwroot/checkout-v2/checkout.css | 7 + BTCPayServer/wwwroot/checkout-v2/checkout.js | 106 ++++++++++- BTCPayServer/wwwroot/checkout/js/checkout.js | 18 +- 13 files changed, 270 insertions(+), 149 deletions(-) diff --git a/BTCPayServer/Views/Shared/Bitcoin/BitcoinLikeMethodCheckout-v2.cshtml b/BTCPayServer/Views/Shared/Bitcoin/BitcoinLikeMethodCheckout-v2.cshtml index b488dd893..32e1083f6 100644 --- a/BTCPayServer/Views/Shared/Bitcoin/BitcoinLikeMethodCheckout-v2.cshtml +++ b/BTCPayServer/Views/Shared/Bitcoin/BitcoinLikeMethodCheckout-v2.cshtml @@ -32,7 +32,7 @@