mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
* UI: Move section navigation to sidebar * Scroll active nav link into view * Move CTAs to top right * Server Settings: Make Policies first page * Responsive table fixes * Spacing fixes * Add breadcrumb samples * store settings fixes * payment request fixes * updates pull payment title * adds invoice detail fix * updates server settings breadcrumbs + copy fix * Don't open Server Settings on Plugins page * Add breadcrumbs to pull payment views * adds breadcrumbs to account * server and store breadcrumb fixes * fixes access tokens * Fix payment processor breadcrumbs * fixes webhook 404 * Final touches * Fix test * Add breadcrumb for email rules page * Design system updates --------- Co-authored-by: dstrukt <gfxdsign@gmail.com>
64 lines
2.3 KiB
Text
64 lines
2.3 KiB
Text
@using LNURL
|
|
@model Uri
|
|
@{
|
|
ViewData.SetActivePage(ManageNavPages.TwoFactorAuthentication, "Register your Lightning node for LNURL Auth");
|
|
var formats = new Dictionary<string, string>
|
|
{
|
|
{ "Bech32", LNURL.EncodeUri(Model, "login", true).ToString().ToUpperInvariant() },
|
|
{ "URI", LNURL.EncodeUri(Model, "login", false).ToString().ToUpperInvariant() }
|
|
};
|
|
}
|
|
|
|
<h2 class="mb-2 mb-lg-3">@ViewData["Title"]</h2>
|
|
<partial name="_StatusMessage" />
|
|
|
|
<p>Scan the QR code with your Lightning wallet to link it to your user account.</p>
|
|
|
|
<div id="info-message" class="d-inline-block">
|
|
<ul class="nav justify-content-center btcpay-pills align-items-center gap-2 my-2">
|
|
@for (int i = 0; i < formats.Count; i++)
|
|
{
|
|
var mode = formats.ElementAt(i);
|
|
<li class="nav-item">
|
|
<a class="btcpay-pill @(i == 0 ? "active" : "")"
|
|
data-bs-toggle="tab" data-bs-target="#@mode.Key" role="tab"
|
|
href="#">
|
|
@mode.Key
|
|
</a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
<div class="tab-content">
|
|
@for (int i = 0; i < formats.Count; i++)
|
|
{
|
|
var mode = formats.ElementAt(i);
|
|
<div class="tab-pane text-center @(i == 0 ? "active" : "")" id="@mode.Key" role="tabpanel">
|
|
<div class="qr-container" style="min-height: 256px;">
|
|
<vc:qr-code data="@mode.Value" />
|
|
</div>
|
|
<a href="@mode.Value" class="btn btn-primary mt-3" rel="noreferrer noopener">
|
|
Open in wallet
|
|
</a>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
@section PageFootContent {
|
|
<script>
|
|
function check(){
|
|
const request = new XMLHttpRequest();
|
|
request.onload = function() {
|
|
if (request.readyState === 4 && request.status === 200) {
|
|
setTimeout(check, 1000);
|
|
} else if (request.readyState === 4 ){
|
|
window.location.href = @Safe.Json(Url.Action("RedirectToList", new { successMessage = "The lightning node will now act as a security device for your account" }));
|
|
}
|
|
}
|
|
|
|
request.open("GET", window.location.pathname + "/check", true);
|
|
request.send(new FormData());
|
|
}
|
|
check();
|
|
</script>
|
|
}
|