From 7878a4365cd9d9913db1cd4414a7f9cfdcf5b5bf Mon Sep 17 00:00:00 2001 From: d11n Date: Fri, 26 Jul 2024 01:46:17 +0200 Subject: [PATCH] Dictionary additions (#6120) * Cleanups * Add text entries for dictionary pages * Wording: Keep Clone title consistent with Payment Request cloning * Dictionaries: List used one first; badge for marking In use --- BTCPayServer.Tests/SeleniumTester.cs | 3 - BTCPayServer.Tests/SeleniumTests.cs | 2 - .../Components/MainNav/Default.cshtml | 82 +++++++++---------- .../UIServerController.Translations.cs | 21 ++--- .../ListDictionariesViewModel.cs | 26 +++--- BTCPayServer/Services/Translations.Default.cs | 10 +++ .../Views/UIServer/CreateDictionary.cshtml | 53 ++++++------ .../Views/UIServer/ListDictionaries.cshtml | 36 ++++---- 8 files changed, 116 insertions(+), 117 deletions(-) diff --git a/BTCPayServer.Tests/SeleniumTester.cs b/BTCPayServer.Tests/SeleniumTester.cs index 7e50b3bd8..a2cb29942 100644 --- a/BTCPayServer.Tests/SeleniumTester.cs +++ b/BTCPayServer.Tests/SeleniumTester.cs @@ -5,10 +5,8 @@ using System.Linq; using System.Threading.Tasks; using BTCPayServer.Abstractions.Extensions; using BTCPayServer.Abstractions.Models; -using BTCPayServer.Client.Models; using BTCPayServer.Lightning; using BTCPayServer.Lightning.CLightning; -using BTCPayServer.Services; using BTCPayServer.Views.Manage; using BTCPayServer.Views.Server; using BTCPayServer.Views.Stores; @@ -18,7 +16,6 @@ using NBitcoin; using NBitcoin.RPC; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; -using OpenQA.Selenium.Support.Extensions; using OpenQA.Selenium.Support.UI; using Xunit; diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index 5aa2c6dbd..d52b1b278 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -6,7 +6,6 @@ using System.Linq; using System.Net; using System.Net.Http; using System.Security.Cryptography; -using System.Security.Cryptography.X509Certificates; using System.Text; using System.Text.RegularExpressions; using System.Threading; @@ -28,7 +27,6 @@ using BTCPayServer.Views.Wallets; using ExchangeSharp; using LNURL; using Microsoft.AspNetCore.Identity; -using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.EntityFrameworkCore; using NBitcoin; using NBitcoin.DataEncoders; diff --git a/BTCPayServer/Components/MainNav/Default.cshtml b/BTCPayServer/Components/MainNav/Default.cshtml index 838fdea49..e6454d651 100644 --- a/BTCPayServer/Components/MainNav/Default.cshtml +++ b/BTCPayServer/Components/MainNav/Default.cshtml @@ -34,22 +34,22 @@ @if (ViewData.IsActivePage([StoreNavPages.General, StoreNavPages.Rates, StoreNavPages.CheckoutAppearance, StoreNavPages.Tokens, StoreNavPages.Users, StoreNavPages.Roles, StoreNavPages.Webhooks, StoreNavPages.PayoutProcessors, StoreNavPages.Emails, StoreNavPages.Forms])) { } @@ -79,7 +79,7 @@