mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
107 lines
3.8 KiB
Plaintext
107 lines
3.8 KiB
Plaintext
@model BTCPayServer.Models.ServerViewModels.LNDGRPCServicesViewModel
|
|
@{
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Services);
|
|
}
|
|
|
|
|
|
<h4>GRPC settings</h4>
|
|
<partial name="_StatusMessage" for="@TempData["StatusMessage"]" />
|
|
<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">
|
|
<p>
|
|
<span>BTCPay exposes gRPC services for outside consumption, you will find connection information here.<br /></span>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<h5>QR Code connection</h5>
|
|
<p>
|
|
<span>You can use this QR Code to connect your Zap wallet to your LND instance.<br /></span>
|
|
<span>This QR Code is only valid for 10 minutes</span>
|
|
</p>
|
|
</div>
|
|
<div class="form-group">
|
|
@if(Model.QRCode == null)
|
|
{
|
|
<div class="form-group">
|
|
<form method="post">
|
|
<button type="submit" class="btn btn-primary">Show QR Code</button>
|
|
</form>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="form-group">
|
|
<div id="qrCode"></div>
|
|
<div id="qrCodeData" data-url="@Html.Raw(Model.QRCode)"></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="QRCode" readonly class="form-control" />
|
|
</div>
|
|
<div class="form-group">
|
|
Click <a href="@Model.QRCodeLink" target="_blank">here</a> to open the configuration file.
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
|
|
<div class="form-group">
|
|
<h5>More details...</h5>
|
|
<p>Alternatively, you can see the settings by clicking <a href="#details" data-toggle="collapse">here</a></p>
|
|
</div>
|
|
<div id="details" class="collapse">
|
|
<div class="form-group">
|
|
<label asp-for="Host"></label>
|
|
<input asp-for="Host" readonly class="form-control" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="SSL"></label>
|
|
<input asp-for="SSL" disabled type="checkbox" class="form-check-inline" />
|
|
</div>
|
|
@if(Model.Macaroon != null)
|
|
{
|
|
<div class="form-group">
|
|
<label asp-for="Macaroon"></label>
|
|
<input asp-for="Macaroon" readonly class="form-control" />
|
|
</div>
|
|
}
|
|
@if(Model.CertificateThumbprint != null)
|
|
{
|
|
<div class="form-group">
|
|
<label asp-for="CertificateThumbprint"></label>
|
|
<input asp-for="CertificateThumbprint" readonly class="form-control" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
|
|
@if(Model.QRCode != null)
|
|
{
|
|
<script type="text/javascript" src="~/js/qrcode.min.js"></script>
|
|
<script type="text/javascript">
|
|
new QRCode(document.getElementById("qrCode"),
|
|
{
|
|
text: "@Html.Raw(Model.QRCode)",
|
|
width: 150,
|
|
height: 150
|
|
});
|
|
</script>
|
|
}
|
|
}
|