2020-10-08 15:16:40 +09:00
@model LightningWalletServices
2019-11-07 14:33:10 +09:00
@{
2021-12-16 11:17:02 +01:00
ViewData.SetActivePage(ServerNavPages.Services, Model.WalletName);
2019-11-07 14:33:10 +09:00
}
2024-06-19 15:23:10 +02:00
<div class="sticky-header">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
2024-10-17 15:51:40 +02:00
<a asp-action="Services" text-translate="true">Services</a>
2024-06-19 15:23:10 +02:00
</li>
2024-10-17 15:51:40 +02:00
<li class="breadcrumb-item active" aria-current="page" text-translate="true">@ViewData["Title"]</li>
2024-06-19 15:23:10 +02:00
</ol>
2024-07-25 22:46:02 +09:00
<h2 text-translate="true">@ViewData["Title"]</h2>
2024-06-19 15:23:10 +02:00
</nav>
</div>
<partial name="_StatusMessage" />
2019-11-07 14:33:10 +09:00
@if (Model.ShowQR)
{
<div class="alert alert-warning alert-dismissible" role="alert">
2024-10-25 15:48:53 +02:00
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="@StringLocalizer["Close"]">
2021-05-19 04:39:27 +02:00
<vc:icon symbol="close" />
</button>
2024-10-25 15:48:53 +02:00
<span text-translate="true">CONFIDENTIAL: This QR Code is confidential, close this window as soon as you don't need it anymore.</span>
<span text-translate="true">A malicious actor with access to this QR Code could affect the performances of your server and might steal your funds.</span>
2019-11-07 14:33:10 +09:00
</div>
}
2022-01-19 03:52:05 +01:00
@if (!ViewContext.ModelState.IsValid)
{
2023-12-21 15:43:12 +01:00
<div asp-validation-summary="All"></div>
2022-01-19 03:52:05 +01:00
}
2019-11-07 14:33:10 +09:00
2024-10-17 15:51:40 +02:00
<h4 class="mb-3" text-translate="true">Full node connection</h4>
<p text-translate="true">This page exposes information to connect remotely to your full node via the RPC protocol.</p>
2019-11-07 14:33:10 +09:00
2024-10-17 15:51:40 +02:00
<h4 class="mb-3" text-translate="true">Compatible wallets</h4>
2022-01-19 03:52:05 +01:00
<div class="services-list">
2022-06-14 10:01:10 +02:00
<a href="https://fullynoded.app/" target="_blank" class="service" rel="noreferrer noopener">
2022-01-19 03:52:05 +01:00
<img src="~/img/fullynoded.png" width="100" height="100" asp-append-version="true" alt="Fully Noded" />
<h6>Fully Noded</h6>
</a>
<a href="https://github.com/cryptoadvance/specter-desktop" target="_blank" class="service" rel="noreferrer noopener">
<img src="~/img/specter.png" asp-append-version="true" alt="Specter Desktop" />
<h6>Specter Desktop</h6>
</a>
</div>
2021-04-08 15:32:42 +02:00
2024-10-17 15:51:40 +02:00
<h4 class="mt-4 mb-3" text-translate="true">QR Code connection</h4>
2024-10-25 15:48:53 +02:00
<p>@StringLocalizer["You can use QR Code to connect to your {0} from your mobile.", Model.WalletName]</p>
2021-04-08 15:32:42 +02:00
2022-01-19 03:52:05 +01:00
<div class="form-group">
@if (!Model.ShowQR)
{
2019-11-07 14:33:10 +09:00
<div class="form-group">
2022-01-19 03:52:05 +01:00
<form method="get">
<input type="hidden" asp-for="ShowQR" value="true"/>
2024-10-17 15:51:40 +02:00
<button type="submit" class="btn btn-primary" text-translate="true">Show Confidential QR Code</button>
2022-01-19 03:52:05 +01:00
</form>
2019-11-07 14:33:10 +09:00
</div>
2022-01-19 03:52:05 +01:00
}
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-bs-toggle="collapse">here</a></p>
<div id="detailsQR" class="collapse">
<div class="form-group">
2024-10-17 15:51:40 +02:00
<label class="form-label" text-translate="true">QR Code data</label>
2022-01-19 03:52:05 +01:00
<input asp-for="ServiceLink" readonly class="form-control"/>
</div>
</div>
}
2019-11-07 14:33:10 +09:00
</div>
2021-05-19 04:39:27 +02:00
@section PageFootContent {
2021-04-08 15:32:42 +02:00
<partial name="_ValidationScriptsPartial" />
2019-11-07 14:33:10 +09:00
@if (Model.ShowQR)
{
2021-05-19 04:39:27 +02:00
<script src="~/js/qrcode.js" asp-append-version="true"></script>
<script>
new QRCode(document.getElementById("qrCode"), {
2019-11-07 14:33:10 +09:00
text: @Safe.Json(Model.ServiceLink),
width: 200,
height: 200,
2020-03-01 14:16:24 -08:00
useSVG: true,
correctLevel : QRCode.CorrectLevel.M
2019-11-07 14:33:10 +09:00
});
</script>
}
}