2019-03-23 19:10:16 -05:00
|
|
|
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
2019-01-07 09:52:27 +01:00
|
|
|
|
@inject BTCPayServer.HostedServices.CssThemeManager themeManager
|
|
|
|
|
|
|
|
|
|
@model BTCPayServer.Controllers.ShowLightningNodeInfoViewModel
|
|
|
|
|
@{
|
|
|
|
|
Layout = null;
|
|
|
|
|
}
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2020-11-17 08:57:14 +01:00
|
|
|
|
<title>@Model.StoreName – @Model.CryptoCode Lightning Node</title>
|
2019-03-15 22:14:27 -05:00
|
|
|
|
<meta charset="utf-8" />
|
2019-01-07 09:52:27 +01:00
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
2020-04-18 17:56:05 +02:00
|
|
|
|
<link rel="apple-touch-icon" href="~/img/icons/icon-512x512.png" asp-append-version="true">
|
|
|
|
|
<link rel="apple-touch-startup-image" href="~/img/splash.png" asp-append-version="true">
|
2019-01-07 09:52:27 +01:00
|
|
|
|
<link rel="manifest" href="~/manifest.json">
|
2020-11-17 08:57:14 +01:00
|
|
|
|
<link href="@Context.Request.GetRelativePathOrAbsolute(themeManager.BootstrapUri)" rel="stylesheet" asp-append-version="true" />
|
|
|
|
|
<link href="@Context.Request.GetRelativePathOrAbsolute(themeManager.ThemeUri)" rel="stylesheet" asp-append-version="true" />
|
2020-04-18 17:56:05 +02:00
|
|
|
|
<link href="~/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" asp-append-version="true" />
|
2020-12-22 03:18:51 +01:00
|
|
|
|
<link href="~/main/qrcode.css" rel="stylesheet" asp-append-version="true" />
|
|
|
|
|
<script src="~/js/copy-to-clipboard.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
window.onload = function (){
|
|
|
|
|
document.querySelectorAll('[data-clipboard]').forEach(value => value.addEventListener('click', window.copyToClipboard));
|
|
|
|
|
}
|
2019-01-07 09:52:27 +01:00
|
|
|
|
</script>
|
|
|
|
|
</head>
|
2019-03-15 22:14:27 -05:00
|
|
|
|
<body>
|
|
|
|
|
<div id="app" class="container">
|
2020-11-17 08:57:14 +01:00
|
|
|
|
<div class="row" style="height:100vh">
|
|
|
|
|
<div class="col-md-8 col-sm-12 col-lg-6 mx-auto my-auto">
|
2019-03-15 22:14:27 -05:00
|
|
|
|
<div class="card border-0">
|
2020-11-17 08:57:14 +01:00
|
|
|
|
<div class="card-body p-4">
|
2020-12-22 03:18:51 +01:00
|
|
|
|
<h1 class="card-title text-center">@Model.StoreName</h1>
|
2020-11-17 08:57:14 +01:00
|
|
|
|
<h2 class="card-subtitle text-center text-secondary mb-2">
|
2020-12-22 03:18:51 +01:00
|
|
|
|
<span>@Model.CryptoCode</span>
|
2020-11-17 08:57:14 +01:00
|
|
|
|
Lightning Node
|
|
|
|
|
</h2>
|
|
|
|
|
<h3 class="card-title text-center">
|
2020-12-22 03:18:51 +01:00
|
|
|
|
<span>
|
2020-11-17 08:57:14 +01:00
|
|
|
|
@(Model.Available ? "Online" : "Unavailable")
|
|
|
|
|
</span>
|
2020-12-22 03:18:51 +01:00
|
|
|
|
<small class="text-@(Model.Available ? "success" : "danger")" >
|
2020-11-17 08:57:14 +01:00
|
|
|
|
<span class="fa fa-circle"></span>
|
|
|
|
|
</small>
|
|
|
|
|
</h3>
|
2020-12-22 03:18:51 +01:00
|
|
|
|
@if (Model.Available)
|
|
|
|
|
{
|
|
|
|
|
<div class="qr-container my-3">
|
|
|
|
|
<img alt="@Model.CryptoCode" class="qr-icon" src="@Model.CryptoImage" />
|
|
|
|
|
<vc:qr-code data="@Model.NodeInfo"> </vc:qr-code>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-group d-flex" data-clipboard="@Model.NodeInfo">
|
|
|
|
|
<input type="text" class="form-control" style="cursor: copy" readonly="readonly" value="@Model.NodeInfo" id="peer-info"/>
|
|
|
|
|
<div class="input-group-append">
|
|
|
|
|
<button type="button" class="btn btn-outline-secondary" data-clipboard-confirm>Copy node info</button>
|
|
|
|
|
</div>
|
2019-03-15 22:14:27 -05:00
|
|
|
|
</div>
|
2020-12-22 03:18:51 +01:00
|
|
|
|
}
|
2019-01-07 09:52:27 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|