2019-05-07 06:58:55 +02:00
|
|
|
@model LightningWalletServices
|
|
|
|
@{
|
|
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Services);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<h4>@Model.WalletName</h4>
|
2019-10-31 07:19:38 +01:00
|
|
|
<partial name="_StatusMessage" />
|
2019-05-07 06:58:55 +02:00
|
|
|
|
|
|
|
@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-6">
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="form-group">
|
2019-05-07 07:44:26 +02:00
|
|
|
<h5>Full node connection</h5>
|
2019-05-07 06:58:55 +02:00
|
|
|
<p>
|
2019-05-07 07:44:26 +02:00
|
|
|
<span>This page exposes information to connect remotely to your full node via the P2P protocol.</span>
|
2019-05-07 06:58:55 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2019-05-07 07:16:44 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<h5>Compatible wallets</h5>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 ml-auto text-center">
|
|
|
|
<a href="https://play.google.com/store/apps/details?id=com.greenaddress.greenbits_android_wallet" target="_blank">
|
|
|
|
<img src="~/img/GreenWallet.png" height="100" />
|
|
|
|
</a>
|
|
|
|
<p><a href="https://play.google.com/store/apps/details?id=com.greenaddress.greenbits_android_wallet" target="_blank">Blockstream Green Wallet</a></p>
|
|
|
|
</div>
|
2019-05-07 07:31:49 +02:00
|
|
|
<div class="col-lg-3 mr-auto text-center">
|
2019-05-11 15:25:10 +02:00
|
|
|
<a href="https://www.wasabiwallet.io/" target="_blank">
|
|
|
|
<img src="~/img/wasabi.png" height="100" />
|
|
|
|
</a>
|
|
|
|
<p><a href="https://www.wasabiwallet.io/" target="_blank">Wasabi Wallet</a> <a href="https://www.reddit.com/r/WasabiWallet/comments/aqlyia/how_to_connect_wasabi_wallet_to_my_own_full/" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a></p>
|
2019-05-07 07:31:49 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-3 mr-auto text-center">
|
2019-08-25 09:53:29 +02:00
|
|
|
|
2019-05-07 07:31:49 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-3 mr-auto text-center">
|
|
|
|
|
|
|
|
</div>
|
2019-05-07 07:16:44 +02:00
|
|
|
</div>
|
2019-05-07 07:44:26 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<h5>QR Code connection</h5>
|
|
|
|
<p>
|
|
|
|
<span>You can use QR Code to connect to @Model.WalletName with compatible wallets.<br /></span>
|
|
|
|
</p>
|
|
|
|
</div>
|
2019-05-07 06:58:55 +02:00
|
|
|
<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>
|
2019-08-10 07:05:11 +02:00
|
|
|
<div id="qrCodeData" data-url="@Model.ServiceLink"></div>
|
2019-05-07 06:58:55 +02:00
|
|
|
</div>
|
2019-05-07 07:31:49 +02:00
|
|
|
<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>
|
2019-05-07 06:58:55 +02:00
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@section Scripts {
|
|
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
|
|
|
|
|
|
@if (Model.ShowQR)
|
|
|
|
{
|
2019-07-19 09:27:07 +02:00
|
|
|
<script type="text/javascript" src="~/js/qrcode.js"></script>
|
2019-05-07 06:58:55 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
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>
|
|
|
|
}
|
|
|
|
}
|