Skip to content

Commit 2530a58

Browse files
Admin panel tweaks
1 parent 27a7f78 commit 2530a58

6 files changed

Lines changed: 1783 additions & 388 deletions

File tree

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
outputs = { self, nixpkgs, raspberry-pi-nix, lnbits, spark-sidecar, ... }:
2323
let
24-
version = "0.1.41"; # Bump before each release tag to match the next tag name
24+
version = "0.1.42"; # Bump before each release tag to match the next tag name
2525
system = "aarch64-linux";
2626
in
2727
{

nixos/admin-app/static/css/admin.css

Lines changed: 1773 additions & 1 deletion
Large diffs are not rendered by default.

nixos/admin-app/static/js/dashboard-core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
if (action.startsWith('tunnel/') && typeof D.fetchTunnelStatus === 'function') {
128128
setTimeout(D.fetchTunnelStatus, 1200);
129129
}
130-
const message = action === 'shutdown' ? 'Shutting down...'
130+
const message = action === 'shutdown' ? 'LNbits Box is shutting down. Please wait 15 seconds before disconnecting the power supply.'
131131
: action === 'reboot' ? 'Rebooting...'
132132
: data.message;
133133
D.showNotice(message, 'Success');

nixos/admin-app/templates/admin_page.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</a>
1616
<details class="relative power-menu">
1717
<summary class="power-menu-button">
18-
Power
18+
{% include "partials/power.svg" %}
1919
</summary>
2020
<div class="power-menu-panel">
2121
<button id="header-system-reboot-btn" data-confirm-action="reboot" data-confirm-message="Reboot LNbitsBox?"
@@ -28,10 +28,9 @@
2828
</button>
2929
</div>
3030
</details>
31-
{# log out #}
32-
<a href="{{ url_for('logout') }}" class="header-logout-link">
33-
Logout
34-
</a>
31+
<a href="{{ url_for('logout') }}" class="header-logout-link text-sm font-mono text-ln-muted hover:text-ln-pink transition-colors">
32+
Sign out
33+
</a>
3534
</div>
3635
</div>
3736
</header>
@@ -65,6 +64,7 @@
6564
<span class="admin-sidebar-link-label">Advanced</span>
6665
</a>
6766
</div>
67+
6868
</aside>
6969

7070
<main class="admin-content">
@@ -82,6 +82,9 @@ <h1 class="text-xl sm:text-3xl font-display font-bold text-ln-text">{{ page_titl
8282
<p class="text-ln-muted text-xs font-mono tracking-wider uppercase">
8383
LNbitsBox &middot; Powered by LNbits
8484
</p>
85+
<p class="text-ln-muted text-xs font-mono tracking-wider uppercase mt-1">
86+
{{ version }}
87+
</p>
8588
</div>
8689
</main>
8790
</div>

0 commit comments

Comments
 (0)