2026-08-30 15:16:09 +00:00
|
|
|
<!doctype html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
<title>ProdDash Admin</title>
|
|
|
|
|
<meta name="theme-color" content="#0b0e12">
|
2026-08-30 15:21:05 +00:00
|
|
|
<link rel="icon" href="/icons/icon-192.png">
|
2026-08-30 15:16:09 +00:00
|
|
|
<link rel="stylesheet" href="/style.css">
|
|
|
|
|
<link rel="stylesheet" href="/admin/admin.css">
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<header id="topbar">
|
2026-09-09 21:12:46 +00:00
|
|
|
<span id="brand">Prod<span class="accent">Dash</span> <span class="admin-tag">Admin</span> <span class="admin-version" id="shell-version"></span></span>
|
2026-08-30 15:16:09 +00:00
|
|
|
<span class="spacer"></span>
|
|
|
|
|
<a class="tb-btn" href="/">← Dashboard</a>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<main id="admin-main">
|
|
|
|
|
<section class="admin-card" id="login-card" hidden>
|
|
|
|
|
<h2>Admin passcode</h2>
|
|
|
|
|
<p class="admin-copy">This page changes the server-wide configuration for every dashboard in the building.</p>
|
|
|
|
|
<div class="login-row">
|
|
|
|
|
<input type="password" id="passcode" placeholder="Passcode" autocomplete="current-password">
|
|
|
|
|
<button class="btn primary" id="login-btn">Unlock</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="admin-status" id="login-status"></div>
|
|
|
|
|
</section>
|
|
|
|
|
|
2026-09-09 21:12:46 +00:00
|
|
|
<section class="admin-card update-card" id="update-card" hidden>
|
|
|
|
|
<div class="update-head">
|
|
|
|
|
<span class="dot connecting"></span>
|
|
|
|
|
<strong id="update-title">Update available</strong>
|
|
|
|
|
<span class="spacer"></span>
|
|
|
|
|
<a class="btn small" id="update-changes" href="#" target="_blank" rel="noopener">What changed</a>
|
|
|
|
|
<button class="btn small primary" id="update-btn">Update now</button>
|
|
|
|
|
</div>
|
|
|
|
|
<p class="admin-copy" id="update-copy"></p>
|
|
|
|
|
<div class="admin-status" id="update-status"></div>
|
|
|
|
|
</section>
|
|
|
|
|
|
2026-08-30 15:16:09 +00:00
|
|
|
<section id="modules-section" hidden>
|
|
|
|
|
<h1 class="admin-h1">Modules</h1>
|
|
|
|
|
<p class="admin-copy">Server-wide settings, shared by every dashboard. Saving re-initialises the
|
|
|
|
|
module immediately — open tiles reconnect on their own. Per-tile options (filters, text size)
|
|
|
|
|
live in each tile's gear menu instead.</p>
|
2026-09-08 14:42:15 +00:00
|
|
|
<p class="admin-copy admin-storage" id="storage-note" hidden>Saved on the server at
|
|
|
|
|
<code id="storage-path"></code> — outside the app folder, so updating ProdDash keeps them.</p>
|
2026-08-30 15:16:09 +00:00
|
|
|
<div id="modules-list"></div>
|
|
|
|
|
</section>
|
|
|
|
|
|
2026-09-09 21:12:46 +00:00
|
|
|
<section id="available-section" hidden>
|
|
|
|
|
<h1 class="admin-h1">Available modules</h1>
|
|
|
|
|
<p class="admin-copy">Modules in the ProdDash repo that aren't installed here. Installing downloads the module
|
|
|
|
|
into the server's data directory — no restart, nothing written into the app folder. A module that needs a
|
|
|
|
|
newer ProdDash can't be installed until the shell is updated.</p>
|
|
|
|
|
<div class="catalog-toolbar">
|
|
|
|
|
<button class="btn small" id="catalog-refresh">Check again</button>
|
|
|
|
|
<span class="admin-status" id="catalog-status"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="available-list"></div>
|
|
|
|
|
</section>
|
|
|
|
|
|
2026-08-30 15:16:09 +00:00
|
|
|
<section id="layouts-section" hidden>
|
|
|
|
|
<h1 class="admin-h1">Named layouts</h1>
|
|
|
|
|
<p class="admin-copy">Layouts saved to the server from the dashboard's Layout menu. Loading one
|
|
|
|
|
copies it into that browser; deleting one here does not touch any browser's current layout.</p>
|
|
|
|
|
<div id="layouts-list"></div>
|
|
|
|
|
</section>
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
<div id="toast" hidden></div>
|
|
|
|
|
|
|
|
|
|
<script type="module" src="/admin/admin.js"></script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|