2019-05-07 06:58:55 +02:00
|
|
|
@model LightningWalletServices
|
|
|
|
@{
|
2021-12-16 11:17:02 +01:00
|
|
|
ViewData.SetActivePage(ServerNavPages.Services, Model.WalletName);
|
2019-05-07 06:58:55 +02:00
|
|
|
}
|
|
|
|
|
2022-01-18 02:19:27 +01:00
|
|
|
<h3 class="mb-4">@ViewData["Title"]</h3>
|
2019-05-07 06:58:55 +02:00
|
|
|
|
|
|
|
@if (Model.ShowQR)
|
|
|
|
{
|
|
|
|
<div class="alert alert-warning alert-dismissible" role="alert">
|
2021-05-19 04:39:27 +02:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
|
|
|
|
<vc:icon symbol="close" />
|
|
|
|
</button>
|
2019-05-07 06:58:55 +02:00
|
|
|
<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>
|
|
|
|
}
|
|
|
|
|
2022-01-19 03:52:05 +01:00
|
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
|
|
{
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
}
|
2019-08-25 09:53:29 +02:00
|
|
|
|
2022-01-19 03:52:05 +01:00
|
|
|
<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>
|
2019-05-07 07:31:49 +02:00
|
|
|
|
2022-01-19 03:52:05 +01:00
|
|
|
<h4 class="mb-3">Compatible wallets</h4>
|
|
|
|
<div class="services-list">
|
|
|
|
<a href="https://play.google.com/store/apps/details?id=com.greenaddress.greenbits_android_wallet" target="_blank" class="service" rel="noreferrer noopener">
|
|
|
|
<img src="~/img/GreenWallet.png" asp-append-version="true" alt="Blockstream Green" />
|
|
|
|
<h6>Blockstream Green</h6>
|
|
|
|
</a>
|
|
|
|
<a href="https://www.wasabiwallet.io/" target="_blank" class="service" rel="noreferrer noopener">
|
|
|
|
<img src="~/img/wasabi.png" asp-append-version="true" alt="Wasabi Wallet" />
|
|
|
|
<h6>Wasabi Wallet</h6>
|
|
|
|
</a>
|
|
|
|
</div>
|
2021-04-08 15:32:42 +02:00
|
|
|
|
2022-01-19 03:52:05 +01:00
|
|
|
<h4 class="mt-4 mb-3">QR Code connection</h4>
|
|
|
|
<p>You can use QR Code to connect to @Model.WalletName with compatible wallets.</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-05-07 06:58:55 +02:00
|
|
|
<div class="form-group">
|
2022-01-19 03:52:05 +01:00
|
|
|
<form method="get">
|
|
|
|
<input type="hidden" asp-for="ShowQR" value="true" />
|
|
|
|
<button type="submit" class="btn btn-primary">Show Confidential QR Code</button>
|
|
|
|
</form>
|
2019-05-07 06:58:55 +02: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">
|
|
|
|
<label asp-for="ServiceLink" class="form-label">QR Code data</label>
|
|
|
|
<input asp-for="ServiceLink" class="form-control" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
2019-05-07 06:58:55 +02:00
|
|
|
</div>
|
|
|
|
|
2021-05-19 04:39:27 +02:00
|
|
|
@section PageFootContent {
|
2021-04-08 15:32:42 +02:00
|
|
|
<partial name="_ValidationScriptsPartial" />
|
2019-05-07 06:58:55 +02: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-08-10 07:05:11 +02:00
|
|
|
text: @Safe.Json(Model.ServiceLink),
|
2019-07-19 09:27:07 +02:00
|
|
|
width: 200,
|
|
|
|
height: 200,
|
2020-03-01 23:16:24 +01:00
|
|
|
useSVG: true,
|
|
|
|
correctLevel : QRCode.CorrectLevel.M
|
2019-05-07 06:58:55 +02:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
}
|
|
|
|
}
|