mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-21 15:04:21 +01:00
* Set store context in cookie * Fix page id usages in view * Move Pay Button to nav * Move integrations to plugins nav * Store switch links to wallet if present * Test fixes * Nav fixes * Fix altcoin view * Main nav updates * Wallet setttings nav update * Move storeId cookie fallback to cookie auth handler * View fixes * Test fixes * Fix profile check * Rename integrations nav extension point to store-integrations-nav-list * Allow strings for Active page/category for plugins * Make invoice list filter based on store context * Do not set context if we are running authorizer through tag helper * Fix test and unfiltered invoices * Add permission helper for wallet links * Add sanity checks for payment requests and invoices * Store context in home controller * Fix PayjoinViaUI test * Store context for notifications * Minor UI improvements * Store context for userstores and vault controller * Bring back integrations page * Rename notifications nav pages file * Fix user stores controller policies * Controller policy fixes from code review * CookieAuthHandler: Simplify CanViewInvoices case * Revert "Controller policy fixes from code review" This reverts commit 97e8b8379c2f2f373bac15a96632d2c8913ef4bd. * Simplify LayoutSimple * Fix CanViewInvoices condition Co-authored-by: Kukks <evilkukka@gmail.com>
125 lines
5.7 KiB
Plaintext
125 lines
5.7 KiB
Plaintext
@model WalletSetupViewModel
|
|
@inject BTCPayNetworkProvider BTCPayNetworkProvider
|
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
|
@{
|
|
Layout = "_LayoutWalletSetup";
|
|
ViewData.SetActivePage(StoreNavPages.OnchainSettings, $"Import {Model.CryptoCode} Wallet", Context.GetStoreData().Id);
|
|
}
|
|
|
|
@section Navbar {
|
|
<a asp-controller="Stores" asp-action="SetupWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode">
|
|
<vc:icon symbol="back" />
|
|
</a>
|
|
}
|
|
|
|
<header class="text-center">
|
|
<h1>Choose your import method</h1>
|
|
<p class="lead text-secondary mt-3">The following methods assume that you already have an existing wallet created and backed up.</p>
|
|
</header>
|
|
|
|
@if (BTCPayNetworkProvider.GetNetwork<BTCPayNetwork>(Model.CryptoCode).VaultSupported)
|
|
{
|
|
<div class="mt-5">
|
|
<div class="list-group">
|
|
<a asp-controller="Stores" asp-action="ImportWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" asp-route-method="hardware" id="ImportHardwareLink" class="list-group-item list-group-item-action only-for-js">
|
|
<div class="image">
|
|
<vc:icon symbol="hardware-wallet"/>
|
|
</div>
|
|
<div class="content d-flex flex-column flex-lg-row align-items-lg-center justify-content-lg-between me-2">
|
|
<div>
|
|
<h4>Connect hardware wallet</h4>
|
|
<p class="mb-0 text-secondary">Import your public keys using our Vault application</p>
|
|
</div>
|
|
<small class="d-block text-primary mt-2 mt-lg-0">Recommended</small>
|
|
</div>
|
|
<vc:icon symbol="caret-right" />
|
|
</a>
|
|
<noscript>
|
|
<div class="list-group-item disabled">
|
|
<div class="image">
|
|
<vc:icon symbol="hardware-wallet"/>
|
|
</div>
|
|
<div class="content d-flex flex-column flex-lg-row align-items-lg-center justify-content-lg-between me-2">
|
|
<div>
|
|
<h4>Connect hardware wallet</h4>
|
|
<p class="mb-0">Please enable JavaScript for this option to be available</p>
|
|
</div>
|
|
<small class="d-block text-primary mt-2 mt-lg-0">Recommended</small>
|
|
</div>
|
|
</div>
|
|
</noscript>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
<div class="list-group mt-4">
|
|
<a asp-controller="Stores" asp-action="ImportWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" asp-route-method="file" id="ImportFileLink" class="list-group-item list-group-item-action">
|
|
<div class="image">
|
|
<vc:icon symbol="wallet-file"/>
|
|
</div>
|
|
<div class="content d-flex flex-column flex-lg-row align-items-lg-center justify-content-lg-between me-2">
|
|
<div>
|
|
<h4>Import wallet file</h4>
|
|
<p class="mb-0 text-secondary">Upload a file exported from your wallet</p>
|
|
</div>
|
|
<small class="d-block text-primary mt-2 mt-lg-0">Recommended</small>
|
|
</div>
|
|
<vc:icon symbol="caret-right" />
|
|
</a>
|
|
</div>
|
|
|
|
<div class="list-group mt-4">
|
|
<a asp-controller="Stores" asp-action="ImportWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" asp-route-method="xpub" id="ImportXpubLink" class="list-group-item list-group-item-action">
|
|
<div class="image">
|
|
<vc:icon symbol="xpub"/>
|
|
</div>
|
|
<div class="content">
|
|
<h4>Enter extended public key</h4>
|
|
<p class="mb-0 text-secondary">Input the key string manually</p>
|
|
</div>
|
|
<vc:icon symbol="caret-right" />
|
|
</a>
|
|
</div>
|
|
|
|
<div class="list-group mt-4">
|
|
<a asp-controller="Stores" asp-action="ImportWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" asp-route-method="scan" id="ImportScanLink" class="list-group-item list-group-item-action only-for-js">
|
|
<div class="image">
|
|
<vc:icon symbol="scan-qr"/>
|
|
</div>
|
|
<div class="content">
|
|
<h4>Scan wallet QR code</h4>
|
|
<p class="mb-0 text-secondary">Supported by BlueWallet, Cobo Vault, Passport and Specter DIY</p>
|
|
</div>
|
|
<vc:icon symbol="caret-right" />
|
|
</a>
|
|
<noscript>
|
|
<div class="list-group-item list-group-item-action disabled hide-when-js">
|
|
<div class="image">
|
|
<vc:icon symbol="scan-qr"/>
|
|
</div>
|
|
<div class="content">
|
|
<h4>Scan wallet QR code</h4>
|
|
<p class="mb-0">Please enable JavaScript for this option to be available</p>
|
|
</div>
|
|
</div>
|
|
</noscript>
|
|
</div>
|
|
|
|
<div class="list-group mt-4">
|
|
<a asp-controller="Stores" asp-action="ImportWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" asp-route-method="seed" id="ImportSeedLink" class="list-group-item list-group-item-action">
|
|
<div class="image">
|
|
<vc:icon symbol="seed"/>
|
|
</div>
|
|
<div class="content d-flex flex-column flex-lg-row align-items-lg-center justify-content-lg-between me-2">
|
|
<div>
|
|
<h4>Enter wallet seed</h4>
|
|
<p class="mb-0 text-secondary">Provide the 12 or 24 word recovery seed</p>
|
|
</div>
|
|
<small class="d-block text-danger mt-2 mt-lg-0" data-bs-toggle="tooltip" data-bs-placement="top" title="You really should not type your seed into a device that is connected to the internet.">Not recommended <span class="fa fa-question-circle-o"></span></small>
|
|
</div>
|
|
<vc:icon symbol="caret-right" />
|
|
</a>
|
|
</div>
|
|
|
|
|