mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
* Improve and unify page headers * Altcoin test fixes * Update BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Update BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Fix missing store name in pairing view * Fix CanUsePairing test * Bump header navigation font size * Use partial tag instead of Html.PartialAsync in views As suggested by @nicolasdorier. These are equivalent, see details [here](https://docs.microsoft.com/en-us/aspnet/core/mvc/views/partial?view=aspnetcore-3.1#partial-tag-helper). * Fix docs link As in #2432. * Update BTCPayServer/Views/Wallets/SignWithSeed.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> * Update BTCPayServer/Views/Wallets/WalletSendVault.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> * Update BTCPayServer/Views/Wallets/WalletTransactions.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com>
89 lines
3.5 KiB
Text
89 lines
3.5 KiB
Text
@model LightningWalletServices
|
|
@{
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Services, Model.WalletName);
|
|
}
|
|
|
|
<h2 class="mb-4">@ViewData["PageTitle"]</h2>
|
|
|
|
@if (Model.ShowQR)
|
|
{
|
|
<div class="alert alert-warning alert-dismissible" role="alert">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<div>
|
|
<span><b>CONFIDENTIAL:</b> This QR Code is confidential, close this window as soon as you don't need it anymore.<br /></span>
|
|
<span>A malicious actor with access to this QR Code can affect the performances of your server.</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
{
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
}
|
|
|
|
<h4 class="mb-3">Full node connection</h4>
|
|
<p>This page exposes information to connect remotely to your full node via the P2P protocol.</p>
|
|
|
|
<h4 class="mb-3">Compatible wallets</h4>
|
|
<div>
|
|
<a href="https://play.google.com/store/apps/details?id=com.greenaddress.greenbits_android_wallet" target="_blank" class="d-inline-block mr-3 mb-3 text-center">
|
|
<img src="~/img/GreenWallet.png" width="100" height="100" asp-append-version="true" alt="Blockstream Green" />
|
|
<div class="mt-2">Blockstream Green</div>
|
|
</a>
|
|
<a href="https://www.wasabiwallet.io/" target="_blank" class="d-inline-block mr-3 mb-3 text-center">
|
|
<img src="~/img/wasabi.png" width="100" height="100" asp-append-version="true" alt="Wasabi Wallet" />
|
|
<div class="mt-2">Wasabi Wallet</div>
|
|
</a>
|
|
</div>
|
|
|
|
<h4 class="mt-5 mb-3">QR Code connection</h4>
|
|
<p>You can use QR Code to connect to @Model.WalletName with compatible wallets.</p>
|
|
|
|
<div class="form-group">
|
|
@if (!Model.ShowQR)
|
|
{
|
|
<div class="form-group">
|
|
<form method="get">
|
|
<input type="hidden" asp-for="ShowQR" value="true" />
|
|
<button type="submit" class="btn btn-primary">Show Confidential QR Code</button>
|
|
</form>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="form-group">
|
|
<div id="qrCode"></div>
|
|
<div id="qrCodeData" data-url="@Model.ServiceLink"></div>
|
|
</div>
|
|
<p>See QR Code information by clicking <a href="#detailsQR" data-toggle="collapse">here</a></p>
|
|
<div id="detailsQR" class="collapse">
|
|
<div class="form-group">
|
|
<label>QR Code data</label>
|
|
<input asp-for="ServiceLink" readonly class="form-control" />
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
|
|
@if (Model.ShowQR)
|
|
{
|
|
<script type="text/javascript" src="~/js/qrcode.js" asp-append-version="true"></script>
|
|
<script type="text/javascript">
|
|
new QRCode(document.getElementById("qrCode"),
|
|
{
|
|
text: @Safe.Json(Model.ServiceLink),
|
|
width: 200,
|
|
height: 200,
|
|
useSVG: true,
|
|
correctLevel : QRCode.CorrectLevel.M
|
|
});
|
|
</script>
|
|
}
|
|
}
|