Remove hyphens

This commit is contained in:
Ettore
2026-05-06 01:58:46 +02:00
parent de2ce65743
commit 2b598279d0
5 changed files with 12 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
ADMIN_USERNAME=admin
ADMIN_PASSWORD=changeme123
# JWT signing secret generate with: python -c "import secrets; print(secrets.token_hex(32))"
# JWT signing secret generate with: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=replace-with-a-random-64-char-hex-string
# Set to true to skip real AVConnect calls (for testing)

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#0f0f1a" />
<title>Lagomare Gates Admin</title>
<title>Lagomare Gates - Admin</title>
<link rel="icon" type="image/svg+xml" href="/static/logo.svg" />
<link rel="stylesheet" href="/static/style.css" />
@@ -106,7 +106,7 @@
<!-- ── Admin shell ─────────────────────────────────────────────────────── -->
<div id="admin-view" class="hidden">
<header class="app-header">
<h2>⚙️ Admin Lagomare Gates</h2>
<h2>⚙️ Admin - Lagomare Gates</h2>
<button id="logout-btn" class="btn btn-ghost" style="font-size:.85rem;padding:.5rem 1rem">Logout</button>
</header>
@@ -238,7 +238,7 @@
<form id="keypass-form">
<div class="field">
<label for="kp-desc">Description</label>
<input id="kp-desc" type="text" placeholder="e.g. Guests June 2026" required />
<input id="kp-desc" type="text" placeholder="e.g. Guests - June 2026" required />
</div>
<div class="field">
<label for="kp-code">Code <span style="color:var(--text-muted);font-weight:400">(leave empty to auto-generate)</span></label>
@@ -318,7 +318,7 @@
<input type="hidden" id="gate-edit-id" />
<div class="field">
<label for="gate-name">Name</label>
<input id="gate-name" type="text" placeholder="e.g. Main entrance Car" required />
<input id="gate-name" type="text" placeholder="e.g. Main entrance - Car" required />
</div>
<div class="field">
<label for="gate-type">Type</label>

View File

@@ -1,4 +1,4 @@
/* admin.js Lagomare Gates admin panel */
/* admin.js - Lagomare Gates admin panel */
// ── Token helpers ─────────────────────────────────────────────────────────────
const TOKEN_KEY = "lg_admin_token";
@@ -475,8 +475,8 @@ async function loadStats() {
<td style="white-space:nowrap">${fmtDate(r.timestamp.replace(' ', 'T'))}</td>
<td><code style="font-size:.85em">${esc(r.keypass_code)}</code></td>
<td>${esc(r.gate_name)}</td>
<td style="font-size:.85em;font-family:monospace">${esc(r.ip_address || '')}</td>
<td style="font-size:.8em;color:var(--text-muted);max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap" title="${esc(r.user_agent || '')}">${esc(r.user_agent || '')}</td>
<td style="font-size:.85em;font-family:monospace">${esc(r.ip_address || '-')}</td>
<td style="font-size:.8em;color:var(--text-muted);max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap" title="${esc(r.user_agent || '')}">${esc(r.user_agent || '-')}</td>
<td>${badge}</td>`;
tbody.appendChild(tr);
}

View File

@@ -1,4 +1,4 @@
/* app.js Lagomare Gates frontend */
/* app.js - Lagomare Gates frontend */
// ── Token helpers ─────────────────────────────────────────────────────────────
const TOKEN_KEY = "lg_keypass_token";
@@ -28,7 +28,7 @@ async function apiFetch(method, path, body) {
if (res.status === 401) {
clearToken();
showLogin();
throw new Error("Session expired please log in again.");
throw new Error("Session expired - please log in again.");
}
if (!res.ok) {
const json = await res.json().catch(() => null);

View File

@@ -1,5 +1,5 @@
/* Service worker Lagomare Gates */
const CACHE = "lagomare-gates-v1.1";
/* Service worker - Lagomare Gates */
const CACHE = "lagomare-gates-v1";
const PRECACHE = ["/", "/static/style.css", "/static/app.js", "/static/logo.svg", "/manifest.json"];
self.addEventListener("install", event => {