mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
* Swap bootstrap asset files * Update themes and color definitions * Move general bootstrap customizations * Theme updates Theme updates * Remove BuildBundlerMinifier This lead to an error, because BuildBundlerMinifier and BundlerMinifier.Core seem to conflict here. Details: https://stackoverflow.com/a/61119586 * Rewplace btn-block class with w-100 * Update badge classes * Remove old font family head variable * Update margin classes * Cleanups * Update float classes * Update text classes * Update padding classes * Update border classes * UPdate dropdown classes * Update select classes * Update neutral custom props * Update bootstrap and customizations * Update ChromeDriver; disable smooth scroll https://github.com/SeleniumHQ/selenium/issues/8295 * Improve alert messages * Improve bootstrap customizations * Disable reduced motion See also 7358282f * Update Bootstrap data attributes * Update file inputs * Update input groups * Replace deprecated jumbotron class * Update variables; re-add negative margin util classes * Update cards * Update form labels * Debug alerts * Fix aria-labelledby associations * Dropdown-related test fixes * Fix CanUseWebhooks test * Test fixes * Nav updates * Fix nav usage in wallet send and payouts * Update alert and modal close buttons * Re-add backdrop properties * Upgrade Bootstrap to v5 final * Update screen reader classes * Update font-weight classes * Update monospace font classes * Update accordians * Update close icon usage * Cleanup * Update scripts and style integrations * Update input group texts * Update LN node setup page * Update more form control classes * Update inline forms * Add js specific test * Upgrade Vue.js * Remove unused JS * Upgrade Bootstrap to v5.0.1 * Try container related test updates * Separate jQuery bundle * Remove jQuery from LND seed backup page * Remove unused code * Refactor email autofill js * Refactor camera scanner JS * Re-add tests * Re-add BuildBundlerMinifier * Do not minify bundles containing Bootstrap Details https://github.com/madskristensen/BundlerMinifier/issues/558 * Update bundles * Cleanup JS test * Cleanup tests involving dropdowns * Cleanup tests involving collapses * Cleanup locale additions in ConfigureCore * Cleanup bundles * Remove duplicate status message * Cleanup formatting * Fix missing validation scripts * Remove unused unminified Bootstrap js files * Fix classic theme * Fix Casa theme * Fix PoS validation
65 lines
3.2 KiB
Text
65 lines
3.2 KiB
Text
@addTagHelper *, BundlerMinifier.TagHelpers
|
||
@inject BTCPayServer.HostedServices.CssThemeManager themeManager
|
||
|
||
@model BTCPayServer.Controllers.ShowLightningNodeInfoViewModel
|
||
@{
|
||
Layout = null;
|
||
}
|
||
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<title>@Model.StoreName – @Model.CryptoCode Lightning Node</title>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||
<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">
|
||
<link rel="manifest" href="~/manifest.json">
|
||
<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" />
|
||
<link href="~/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" asp-append-version="true" />
|
||
<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));
|
||
}
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<div id="app" class="container">
|
||
<div class="row" style="height:100vh">
|
||
<div class="col-md-8 col-sm-12 col-lg-6 mx-auto my-auto">
|
||
<div class="card border-0">
|
||
<div class="card-body p-4">
|
||
<h1 class="card-title text-center">@Model.StoreName</h1>
|
||
<h2 class="card-subtitle text-center text-secondary mb-2">
|
||
<span>@Model.CryptoCode</span>
|
||
Lightning Node
|
||
</h2>
|
||
<h3 class="card-title text-center">
|
||
<span>
|
||
@(Model.Available ? "Online" : "Unavailable")
|
||
</span>
|
||
<small class="text-@(Model.Available ? "success" : "danger")" >
|
||
<span class="fa fa-circle"></span>
|
||
</small>
|
||
</h3>
|
||
@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"/>
|
||
<button type="button" class="btn btn-outline-secondary" data-clipboard-confirm>Copy node info</button>
|
||
</div>
|
||
}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html>
|