feat: Light mode default, auth, Posts rename, display scaling, TinyMCE improvements

This commit is contained in:
Jess Rogerson
2026-05-21 14:22:46 +10:00
parent 51d086dab9
commit 39fcd9ec6e
154 changed files with 12897 additions and 133 deletions
+14 -7
View File
@@ -8,9 +8,8 @@
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet" />
<link href="/css/admin.css" rel="stylesheet" />
<script>
// Apply saved theme immediately to prevent flash
(function() {
var t = localStorage.getItem('sb-theme') || 'dark';
var t = localStorage.getItem('sb-theme') || 'light';
document.documentElement.setAttribute('data-theme', t);
})();
</script>
@@ -42,17 +41,25 @@
<li>
<a href="/admin/devices" class="@(ViewContext.RouteData.Values["controller"]?.ToString() == "Devices" ? "active" : "")">
<i class="bi bi-display"></i>
<span>Kittens</span>
<span>Posts</span>
<small class="nav-hint">Devices</small>
</a>
</li>
</ul>
<div class="sidebar-footer">
<small>Sunbeam v1.0</small>
<button id="themeToggle" class="theme-toggle" title="Toggle theme">
<i class="bi bi-sun"></i>
</button>
<div>
<small>Sunbeam v1.0</small><br />
<small style="opacity:0.5;">&copy; Jess Rogerson — 2026</small>
</div>
<div class="d-flex gap-1">
<button id="themeToggle" class="theme-toggle" title="Toggle theme">
<i class="bi bi-moon-stars"></i>
</button>
<a href="/account/logout" class="theme-toggle" title="Sign Out">
<i class="bi bi-box-arrow-right"></i>
</a>
</div>
</div>
</nav>