From b83eb41df33e0d70d7c88eca43839256ab1bad1a Mon Sep 17 00:00:00 2001 From: d11n Date: Tue, 20 Dec 2022 15:11:22 +0100 Subject: [PATCH] Frontend cleanups (#4449) * Update some buttons * Potential flaky test fix * Dark theme: Fix primary accent color * Pay Button: Remove unused clipboard dependency The pay button uses the cope-to-clipboard.js * Remove babel-polyfill Browser-support should be good by now. * Remove unused jquery-easing scripts * Remove unused CSS --- BTCPayServer.Tests/SeleniumTester.cs | 2 +- .../Crowdfund/Public/ViewCrowdfund.cshtml | 1 - .../Views/Shared/PayButton/PayButton.cshtml | 1 - BTCPayServer/Views/UIInvoice/Invoice.cshtml | 2 +- .../ViewPaymentRequest.cshtml | 1 - BTCPayServer/Views/UIStores/ListTokens.cshtml | 4 +- .../wwwroot/main/themes/default-dark.css | 3 +- BTCPayServer/wwwroot/main/themes/default.css | 4 - .../vendor/babel-polyfill/polyfill.min.js | 4 - .../jquery.easing.compatibility.js | 60 ------- .../vendor/jquery-easing/jquery.easing.js | 166 ------------------ .../vendor/jquery-easing/jquery.easing.min.js | 1 - 12 files changed, 5 insertions(+), 244 deletions(-) delete mode 100644 BTCPayServer/wwwroot/vendor/babel-polyfill/polyfill.min.js delete mode 100644 BTCPayServer/wwwroot/vendor/jquery-easing/jquery.easing.compatibility.js delete mode 100644 BTCPayServer/wwwroot/vendor/jquery-easing/jquery.easing.js delete mode 100644 BTCPayServer/wwwroot/vendor/jquery-easing/jquery.easing.min.js diff --git a/BTCPayServer.Tests/SeleniumTester.cs b/BTCPayServer.Tests/SeleniumTester.cs index da92fc061..5b6558eed 100644 --- a/BTCPayServer.Tests/SeleniumTester.cs +++ b/BTCPayServer.Tests/SeleniumTester.cs @@ -192,7 +192,7 @@ namespace BTCPayServer.Tests Driver.SetCheckbox(By.Id("UseNewCheckout"), true); Driver.WaitForElement(By.Id("OnChainWithLnInvoiceFallback")); Driver.SetCheckbox(By.Id("OnChainWithLnInvoiceFallback"), bip21); - Driver.FindElement(By.Id("Save")).Click(); + Driver.FindElement(By.Id("Save")).SendKeys(Keys.Enter); Assert.Contains("Store successfully updated", FindAlertMessage().Text); Assert.True(Driver.FindElement(By.Id("UseNewCheckout")).Selected); } diff --git a/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml b/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml index 0860f5177..279420f5f 100644 --- a/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml +++ b/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml @@ -407,7 +407,6 @@ - diff --git a/BTCPayServer/Views/Shared/PayButton/PayButton.cshtml b/BTCPayServer/Views/Shared/PayButton/PayButton.cshtml index 62f23074f..ba43963d9 100644 --- a/BTCPayServer/Views/Shared/PayButton/PayButton.cshtml +++ b/BTCPayServer/Views/Shared/PayButton/PayButton.cshtml @@ -12,7 +12,6 @@ -