mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-11 01:35:22 +01:00
Move TagHelpers to Abstractions (#3975)
* Move TagHelpers to Abstractions Makes them available for use in plugins. Also cleans up the tag helper references in the view code: As we have it in the root view imports, the individual directives in the views are superfluous. * Move CurrenciesSuggestionsTagHelper back To get rid of the Rating dependency in Abstractions.
This commit is contained in:
parent
a9a0bf01ad
commit
2e6246e385
60 changed files with 18 additions and 110 deletions
|
@ -1,7 +1,8 @@
|
|||
using System;
|
||||
using BTCPayServer.Security;
|
||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
namespace BTCPayServer.TagHelpers;
|
||||
|
||||
namespace BTCPayServer.Abstractions.TagHelpers;
|
||||
|
||||
/// <summary>
|
||||
/// Add sha256- to allow inline event handlers in a:href=javascript:
|
|
@ -2,8 +2,8 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using BTCPayServer.Security;
|
||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
namespace BTCPayServer.TagHelpers;
|
||||
|
||||
namespace BTCPayServer.Abstractions.TagHelpers;
|
||||
|
||||
/// <summary>
|
||||
/// Add 'unsafe-hashes' and sha256- to allow inline event handlers in CSP
|
|
@ -1,8 +1,8 @@
|
|||
using BTCPayServer.Security;
|
||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
using NBitcoin;
|
||||
namespace BTCPayServer.TagHelpers;
|
||||
|
||||
namespace BTCPayServer.Abstractions.TagHelpers;
|
||||
|
||||
/// <summary>
|
||||
/// Add a nonce-* so the inline-script can pass CSP rule when they are rendered server-side
|
|
@ -1,7 +1,8 @@
|
|||
using System.Threading.Tasks;
|
||||
using BTCPayServer.Security;
|
||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
namespace BTCPayServer.TagHelpers;
|
||||
|
||||
namespace BTCPayServer.Abstractions.TagHelpers;
|
||||
|
||||
/// <summary>
|
||||
/// Add sha256- to allow inline event handlers in CSP
|
|
@ -3,8 +3,8 @@ using Microsoft.AspNetCore.Authorization;
|
|||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
using Microsoft.Extensions.Logging;
|
||||
namespace BTCPayServer.TagHelpers;
|
||||
|
||||
namespace BTCPayServer.Abstractions.TagHelpers;
|
||||
|
||||
[HtmlTargetElement(Attributes = nameof(Permission))]
|
||||
public class PermissionTagHelper : TagHelper
|
|
@ -1,11 +1,10 @@
|
|||
using System.Text.Encodings.Web;
|
||||
using Microsoft.AspNetCore.Mvc.Razor.TagHelpers;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
using Microsoft.AspNetCore.Mvc.Routing;
|
||||
using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
|
||||
namespace BTCPayServer.TagHelpers;
|
||||
namespace BTCPayServer.Abstractions.TagHelpers;
|
||||
|
||||
// Make sure that <svg><use href=/ are correctly working if rootpath is present
|
||||
[HtmlTargetElement("use", Attributes = "href")]
|
|
@ -1,9 +1,9 @@
|
|||
using BTCPayServer.Abstractions.Services;
|
||||
using BTCPayServer.Security;
|
||||
using BTCPayServer.Services;
|
||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
using NBitcoin;
|
||||
namespace BTCPayServer.TagHelpers;
|
||||
|
||||
namespace BTCPayServer.Abstractions.TagHelpers;
|
||||
|
||||
[HtmlTargetElement("srv-model")]
|
||||
public class SrvModel : TagHelper
|
|
@ -1,6 +1,4 @@
|
|||
@using BTCPayServer.Services.Apps
|
||||
@using BTCPayServer.TagHelpers
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BTCPayServer.Components.AppSales
|
||||
@model BTCPayServer.Components.AppSales.AppSalesViewModel
|
||||
|
||||
|
|
|
@ -6,24 +6,18 @@
|
|||
@using BTCPayServer.Views.PaymentRequest
|
||||
@using BTCPayServer.Views.Wallets
|
||||
@using BTCPayServer.Abstractions.Extensions
|
||||
@using BTCPayServer.Abstractions.Contracts
|
||||
@using BTCPayServer.Client
|
||||
@using BTCPayServer.Components.Icon
|
||||
@using BTCPayServer.Components.ThemeSwitch
|
||||
@using BTCPayServer.Components.UIExtensionPoint
|
||||
@using BTCPayServer.Security
|
||||
@using BTCPayServer.Services
|
||||
@using BTCPayServer.TagHelpers
|
||||
@using BTCPayServer.Views.CustodianAccounts
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@inject BTCPayServer.Services.BTCPayServerEnvironment Env
|
||||
@inject BTCPayServerEnvironment Env
|
||||
@inject SignInManager<ApplicationUser> SignInManager
|
||||
@inject PoliciesSettings PoliciesSettings
|
||||
@inject ThemeSettings Theme
|
||||
|
||||
@model BTCPayServer.Components.MainNav.MainNavViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
|
||||
|
||||
<nav id="mainNav" class="d-flex flex-column justify-content-between">
|
||||
<div class="accordion px-3 px-lg-4">
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
@using BTCPayServer.Views.Notifications
|
||||
@using BTCPayServer.Abstractions.Extensions
|
||||
@model BTCPayServer.Components.Notifications.NotificationsViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
|
||||
<div id="Notifications">
|
||||
@if (Model.UnseenCount > 0)
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
@using BTCPayServer.Abstractions.Extensions
|
||||
@model BTCPayServer.Components.Notifications.NotificationsViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
|
||||
<div id="NotificationsList">
|
||||
@foreach (var n in Model.Last5)
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
@model BTCPayServer.Components.Notifications.NotificationsViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
|
||||
<div id="NotificationsRecent">
|
||||
|
||||
@if (Model.Last5.Any())
|
||||
{
|
||||
<div class="d-flex align-items-center justify-content-between mb-3">
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
@using BTCPayServer.Lightning
|
||||
@using BTCPayServer.TagHelpers
|
||||
@model BTCPayServer.Components.StoreLightningBalance.StoreLightningBalanceViewModel
|
||||
|
||||
<div id="StoreLightningBalance-@Model.Store.Id" class="widget store-lightning-balance">
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@model BTCPayServer.Components.StoreLightningServices.StoreLightningServicesViewModel
|
||||
|
||||
@if (Model.Services != null && Model.Services.Any())
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
@inject BTCPayServer.Services.BTCPayServerEnvironment _env
|
||||
@inject SignInManager<ApplicationUser> _signInManager
|
||||
@model BTCPayServer.Components.StoreSelector.StoreSelectorViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@functions {
|
||||
@* ReSharper disable once CSharpWarnings::CS1998 *@
|
||||
#pragma warning disable 1998
|
||||
|
|
|
@ -2,10 +2,8 @@
|
|||
@using BTCPayServer.Client
|
||||
@using BTCPayServer.Views.Wallets
|
||||
@using BTCPayServer.Abstractions.Extensions
|
||||
@inject BTCPayNetworkProvider _btcPayNetworkProvider
|
||||
|
||||
@model BTCPayServer.Components.WalletNav.WalletNavViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
|
||||
<div class="d-sm-flex align-items-center justify-content-between">
|
||||
<a asp-controller="UIWallets" asp-action="WalletTransactions" asp-route-walletId="@Model.WalletId" class="unobtrusive-link">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using BTCPayServer.Services.Rates;
|
||||
using System.Linq;
|
||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BTCPayServer.Services.Rates;
|
||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
|
||||
namespace BTCPayServer.TagHelpers
|
||||
{
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
|
||||
<bundle name="wwwroot/bundles/bootstrap-bundle.min.js" asp-append-version="true" />
|
||||
<bundle name="wwwroot/bundles/bootstrap-bundle.min.js" asp-append-version="true" />
|
||||
<bundle name="wwwroot/bundles/main-bundle.min.js" asp-append-version="true" />
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@inject BTCPayServer.Services.PoliciesSettings PoliciesSettings
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="icon" href="~/favicon.ico" type="image/x-icon">
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
@using BTCPayServer.Abstractions.Extensions
|
||||
@using BTCPayServer.Services
|
||||
@inject ThemeSettings Theme
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
|
||||
@if (Theme.CustomTheme)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@using BTCPayServer.Views.Stores
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@{
|
||||
ViewData.SetActivePage(StoreNavPages.PayButton, "Pay Button", Context.GetStoreData().Id);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
@using BTCPayServer.Client
|
||||
@using BTCPayServer.Views.Stores
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BTCPayServer.TagHelpers
|
||||
|
||||
@{ var store = Context.GetStoreData(); }
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
@inject Security.ContentSecurityPolicies csp
|
||||
@using BTCPayServer.Views.Stores
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BTCPayServer.TagHelpers
|
||||
@model BTCPayServer.Plugins.PayButton.Models.PayButtonViewModel
|
||||
@{
|
||||
ViewData.SetActivePage(StoreNavPages.PayButton, "Pay Button", Context.GetStoreData().Id);
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
@using BTCPayServer.Abstractions.Extensions
|
||||
@using BTCPayServer.Plugins.PayButton.Views
|
||||
@namespace BTCPayServer.Plugins.PayButton.Views
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
@using BTCPayServer.Abstractions.Extensions
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BTCPayServer.Components.StoreSelector
|
||||
@using BTCPayServer.Components.MainNav
|
||||
@using BTCPayServer.TagHelpers
|
||||
@inject BTCPayServer.Services.BTCPayServerEnvironment _env
|
||||
@inject SignInManager<ApplicationUser> _signInManager
|
||||
@inject UserManager<ApplicationUser> _userManager
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@inject BTCPayServer.Services.ThemeSettings Theme
|
||||
|
||||
@using BTCPayServer.Services.Apps
|
||||
@using BTCPayServer.Abstractions.Contracts
|
||||
@using BTCPayServer.Abstractions.Extensions
|
||||
@model BTCPayServer.Models.AppViewModels.ViewPointOfSaleViewModel
|
||||
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
|
||||
<bundle name="wwwroot/bundles/jqueryvalidate-bundle.min.js" asp-append-version="true" />
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
@using BTCPayServer.Views.Wallets
|
||||
@using BTCPayServer.Models.WalletViewModels
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@using System.Globalization
|
||||
@using BTCPayServer.Abstractions.Models
|
||||
@model UpdateCrowdfundViewModel
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
@using BTCPayServer.Services.Apps
|
||||
@using BTCPayServer.Abstractions.Models
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@model UpdatePointOfSaleViewModel
|
||||
@{
|
||||
ViewData.SetActivePage(AppsNavPages.Update, "Update Point of Sale", Model.Id);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@model BTCPayServer.Models.AppViewModels.ViewCrowdfundViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@inject ISettingsRepository SettingsRepository
|
||||
@using BTCPayServer.Abstractions.Contracts
|
||||
@using BTCPayServer.Models.AppViewModels
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@using BTCPayServer.Views.Apps
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BTCPayServer.Abstractions.Extensions
|
||||
@model BTCPayServer.Models.CustodianAccountViewModels.CreateCustodianAccountViewModel
|
||||
@{
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@using BTCPayServer.Views.Apps
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BTCPayServer.Abstractions.Extensions
|
||||
@model BTCPayServer.Models.CustodianAccountViewModels.EditCustodianAccountViewModel
|
||||
@{
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@using BTCPayServer.Views.Apps
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BTCPayServer.Abstractions.Extensions
|
||||
@using BTCPayServer.Abstractions.Custodians
|
||||
@model BTCPayServer.Models.CustodianAccountViewModels.ViewCustodianAccountViewModel
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@inject BTCPayServer.Services.LanguageService langService
|
||||
@inject BTCPayNetworkProvider BTCPayNetworkProvider
|
||||
@inject BTCPayServer.Services.BTCPayServerEnvironment env
|
||||
@inject PaymentMethodHandlerDictionary PaymentMethodHandlerDictionary
|
||||
@using NBitcoin
|
||||
@model PaymentModel
|
||||
@{
|
||||
Layout = null;
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
@using BTCPayServer.Client
|
||||
@using BTCPayServer.Client.Models
|
||||
@using BTCPayServer.Services.Rates
|
||||
@using BTCPayServer.TagHelpers
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@inject BTCPayServer.Services.BTCPayServerEnvironment env
|
||||
@inject BTCPayServer.Services.ThemeSettings Theme
|
||||
@inject CurrencyNameTable CurrencyNameTable
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
@using BTCPayServer.Services.PaymentRequests
|
||||
@using System.Globalization
|
||||
@model BTCPayServer.Models.PaymentRequestViewModels.UpdatePaymentRequestViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
ViewData.SetActivePage(PaymentRequestsNavPages.Create, $"{(string.IsNullOrEmpty(Model.Id) ? "Create" : "Edit")} Payment Request", Model.Id);
|
||||
}
|
||||
|
|
|
@ -1,15 +1,9 @@
|
|||
@using BTCPayServer.Services.Invoices
|
||||
@using BTCPayServer.Client.Models
|
||||
@using BTCPayServer.Abstractions.Contracts
|
||||
@using BTCPayServer.Client
|
||||
@using BTCPayServer.Components.ThemeSwitch
|
||||
@using BTCPayServer.TagHelpers
|
||||
@using BundlerMinifier.TagHelpers
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@model BTCPayServer.Models.PaymentRequestViewModels.ViewPaymentRequestViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@inject BTCPayServer.Services.BTCPayServerEnvironment env
|
||||
@inject ISettingsRepository _settingsRepository
|
||||
@inject BTCPayServer.Services.ThemeSettings Theme
|
||||
@{
|
||||
ViewData["Title"] = Model.Title;
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@inject ISettingsRepository _settingsRepository
|
||||
|
||||
@using BTCPayServer.Abstractions.Contracts
|
||||
@using BTCPayServer.Abstractions.Extensions
|
||||
@using BTCPayServer.Lightning
|
||||
@model BTCPayServer.Controllers.ShowLightningNodeInfoViewModel
|
||||
@inject BTCPayServer.Services.ThemeSettings Theme
|
||||
@{
|
||||
|
|
|
@ -5,12 +5,8 @@
|
|||
@using BTCPayServer.Client
|
||||
@using BTCPayServer.Components.ThemeSwitch
|
||||
@using BTCPayServer.Payments
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BundlerMinifier.TagHelpers
|
||||
@using BTCPayServer.TagHelpers
|
||||
@model BTCPayServer.Models.ViewPullPaymentModel
|
||||
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
ViewData["Title"] = Model.Title;
|
||||
Layout = null;
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
@using BTCPayServer.Components.StoreRecentInvoices
|
||||
@using BTCPayServer.Components.StoreRecentTransactions
|
||||
@using BTCPayServer.Components.StoreWalletBalance
|
||||
@using BTCPayServer.TagHelpers
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BTCPayServer.Components.AppSales
|
||||
@using BTCPayServer.Components.AppTopItems
|
||||
@model StoreDashboardViewModel;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@model WalletSetupViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
var isHotWallet = Model.Method == WalletSetupMethod.HotWallet;
|
||||
var type = isHotWallet ? "Hot" : "Watch-Only";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@model WalletSetupViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
Layout = "_LayoutWalletSetup";
|
||||
ViewData.SetActivePage(StoreNavPages.OnchainSettings, $"Generate {Model.CryptoCode} Wallet", Context.GetStoreData().Id);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@model WalletSetupViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
Layout = "_LayoutWalletSetup";
|
||||
ViewData.SetActivePage(StoreNavPages.OnchainSettings, "Confirm addresses", Context.GetStoreData().Id);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@model WalletSetupViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
Layout = "_LayoutWalletSetup";
|
||||
ViewData.SetActivePage(StoreNavPages.OnchainSettings, "Import your wallet file", Context.GetStoreData().Id);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@model WalletSetupViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
Layout = "_LayoutWalletSetup";
|
||||
ViewData.SetActivePage(StoreNavPages.OnchainSettings, "Connect your hardware wallet", Context.GetStoreData().Id);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@model WalletSetupViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
Layout = "_LayoutWalletSetup";
|
||||
ViewData.SetActivePage(StoreNavPages.OnchainSettings, "Scan QR code", Context.GetStoreData().Id);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@model WalletSetupViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
Layout = "_LayoutWalletSetup";
|
||||
ViewData.SetActivePage(StoreNavPages.OnchainSettings, "Enter the wallet seed", Context.GetStoreData().Id);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@model WalletSetupViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
Layout = "_LayoutWalletSetup";
|
||||
ViewData.SetActivePage(StoreNavPages.OnchainSettings, "Enter your extended public key", Context.GetStoreData().Id);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
@model WalletSetupViewModel
|
||||
@inject BTCPayNetworkProvider BTCPayNetworkProvider
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
Layout = "_LayoutWalletSetup";
|
||||
ViewData.SetActivePage(StoreNavPages.OnchainSettings, $"Import {Model.CryptoCode} Wallet", Context.GetStoreData().Id);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@using BTCPayServer.Controllers
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@model SignWithSeedViewModel
|
||||
@{
|
||||
var walletId = Context.GetRouteValue("walletId").ToString();
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BTCPayServer.Controllers
|
||||
@using BTCPayServer.TagHelpers
|
||||
@using BundlerMinifier.TagHelpers
|
||||
@using BTCPayServer.Controllers
|
||||
@model WalletPSBTViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
var walletId = Context.GetRouteValue("walletId").ToString();
|
||||
var cancelUrl = Model.ReturnUrl ?? Url.Action(nameof(UIWalletsController.WalletTransactions), new { walletId });
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@using BTCPayServer.Controllers
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@model WalletPSBTCombineViewModel
|
||||
@{
|
||||
var walletId = Context.GetRouteValue("walletId").ToString();
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
@using BTCPayServer.Controllers
|
||||
@using BTCPayServer.TagHelpers
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BundlerMinifier.TagHelpers
|
||||
@model WalletPSBTViewModel
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
var walletId = Context.GetRouteValue("walletId").ToString();
|
||||
var cancelUrl = Model.ReturnUrl ?? Url.Action(nameof(UIWalletsController.WalletTransactions), new { walletId });
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@inject BTCPayServer.Services.BTCPayServerEnvironment env
|
||||
@inject BTCPayServer.Services.BTCPayServerEnvironment env
|
||||
@using BTCPayServer.Controllers
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BTCPayServer.Components.QRCode
|
||||
@model BTCPayServer.Controllers.WalletReceiveViewModel
|
||||
@{
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@inject BTCPayServer.Security.ContentSecurityPolicies csp
|
||||
@using Microsoft.AspNetCore.Mvc.ModelBinding
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using BTCPayServer.TagHelpers
|
||||
@using BundlerMinifier.TagHelpers
|
||||
@using BTCPayServer.Controllers
|
||||
@model WalletSendModel
|
||||
@{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
@using BTCPayServer.Controllers
|
||||
@using BTCPayServer.TagHelpers
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@model WalletSendVaultModel
|
||||
@{
|
||||
var walletId = Context.GetRouteValue("walletId").ToString();
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
@using BTCPayServer.Controllers
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@model WalletSigningOptionsModel
|
||||
@inject BTCPayNetworkProvider BTCPayNetworkProvider
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
@{
|
||||
var walletId = WalletId.Parse(Context.GetRouteValue("walletId").ToString());
|
||||
var cancelUrl = Model.ReturnUrl ?? Url.Action(nameof(UIWalletsController.WalletTransactions), new { walletId });
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
@using BTCPayServer.Abstractions.Extensions
|
||||
@using BTCPayServer.Views.Wallets
|
||||
@using BTCPayServer.Models.WalletViewModels
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
|
|
|
@ -12,4 +12,5 @@
|
|||
@inject Safe Safe
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@addTagHelper *, BTCPayServer
|
||||
@addTagHelper *, BTCPayServer.Abstractions
|
||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||
|
|
Loading…
Add table
Reference in a new issue