v0.7.10: events tab rework, quieter logs, known hosts, dropdown theme fixes

This commit is contained in:
Reditus committed 2026-09-26 11:54:08 +01:00
1 parent 97cdbd3027
commit 91c7abc771
24 files changed
+740 -103

No files matched your search

+17 -17
View File
@@ -46,7 +46,7 @@
<div class="card" style="margin-bottom:20px;">
<div class="card-header">
<span>Scheduled Backups</span>
<button onclick="runScheduledNow()" id="run-sched-btn" style="padding:6px 16px;background:var(--bg-card);color:var(--text);border:1px solid var(--border);border-radius:4px;cursor:pointer;font-size:13px;">Run Now</button>
<button onclick="runScheduledNow()" id="run-sched-btn" style="padding:6px 16px;background:var(--card-bg);color:var(--text);border:1px solid var(--border);border-radius:4px;cursor:pointer;font-size:13px;">Run Now</button>
<button onclick="saveSchedule()" id="save-sched-btn" style="padding:6px 16px;background:var(--accent);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:13px;">Save</button>
</div>
<div class="card-body">
@@ -72,13 +72,13 @@
</div>
<div id="sched-interval-fields" style="display:flex;gap:6px;align-items:center;">
<input type="number" id="sched-days" value="1" min="0" max="365"
style="width:60px;padding:6px 8px;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
style="width:60px;padding:6px 8px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
<span style="font-size:12px;color:var(--text-muted);">days</span>
<input type="number" id="sched-hours" value="0" min="0" max="23"
style="width:60px;padding:6px 8px;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
style="width:60px;padding:6px 8px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
<span style="font-size:12px;color:var(--text-muted);">hours</span>
<input type="number" id="sched-mins" value="0" min="0" max="59"
style="width:60px;padding:6px 8px;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
style="width:60px;padding:6px 8px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
<span style="font-size:12px;color:var(--text-muted);">mins</span>
</div>
<div id="sched-schedule-fields" style="display:none;">
@@ -110,11 +110,11 @@
<div id="sched-times-list">
<div style="display:flex;gap:6px;margin-bottom:4px;">
<input type="time" class="sched-time" value="05:00"
style="padding:6px 8px;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
style="padding:6px 8px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
<button onclick="removeSchedTime(this)" style="padding:6px 10px;background:#c0392b;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px;">&times;</button>
</div>
</div>
<button onclick="addSchedTime()" style="margin-top:4px;padding:4px 12px;background:var(--bg-card);color:var(--text);border:1px solid var(--border);border-radius:4px;cursor:pointer;font-size:12px;">+ Add time</button>
<button onclick="addSchedTime()" style="margin-top:4px;padding:4px 12px;background:var(--card-bg);color:var(--text);border:1px solid var(--border);border-radius:4px;cursor:pointer;font-size:12px;">+ Add time</button>
</div>
</div>
</div>
@@ -123,12 +123,12 @@
<div style="margin-bottom:8px;">
<label style="display:block;font-size:12px;color:var(--text-muted);margin-bottom:2px;">Keep last N backups (0 = unlimited)</label>
<input type="number" id="sched-keep" value="5" min="0" max="100"
style="width:100%;padding:6px 8px;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
style="width:100%;padding:6px 8px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
</div>
<div style="margin-bottom:8px;">
<label style="display:block;font-size:12px;color:var(--text-muted);margin-bottom:2px;">Encryption password (leave blank for no encryption)</label>
<input type="password" id="sched-password" placeholder="Leave blank to keep existing password"
style="width:100%;padding:6px 8px;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
style="width:100%;padding:6px 8px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
</div>
</div>
</div>
@@ -152,7 +152,7 @@
<div class="step-content">
<div class="step-title">Select Backup</div>
<div class="step-body">
<select id="restore-backup-select" style="width:100%;padding:8px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;margin-bottom:8px;">
<select id="restore-backup-select" style="width:100%;padding:8px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;margin-bottom:8px;">
<option value="">-- Select a backup --</option>
</select>
<div id="restore-preview" style="display:none;font-size:13px;color:var(--text-muted);"></div>
@@ -201,15 +201,15 @@
<div id="new-ip-group" style="margin:8px 0 0 24px;display:none;">
<label style="display:block;font-size:12px;color:var(--text-muted);margin-bottom:2px;">New public IP for ping fix</label>
<input type="text" id="restore-new-ip" placeholder="Same as VM IP if unchanged"
style="width:100%;padding:8px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
style="width:100%;padding:8px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
</div>
<label style="display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:13px;cursor:pointer;">
<input type="checkbox" id="opt-settings" checked> <span>Restore dashboard settings.yaml</span>
</label>
<div style="margin:12px 0 0 0;padding:10px 12px;background:var(--bg-card);border:1px solid var(--border);border-radius:4px;">
<div style="margin:12px 0 0 0;padding:10px 12px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;">
<div style="font-size:12px;color:var(--text-muted);margin-bottom:4px;">Backup password (if encrypted)</div>
<input type="password" id="restore-password" placeholder="Leave blank if not password-protected"
style="width:100%;padding:8px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
style="width:100%;padding:8px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">
</div>
</div>
</div>
@@ -231,7 +231,7 @@
<div id="progress-bar" style="height:100%;background:var(--accent);border-radius:4px;width:0%;transition:width 0.5s;"></div>
</div>
<div id="progress-steps" style="font-size:13px;"></div>
<div id="restore-complete" style="display:none;margin-top:12px;padding:12px;background:var(--bg-card);border:1px solid var(--border);border-radius:4px;font-size:13px;"></div>
<div id="restore-complete" style="display:none;margin-top:12px;padding:12px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;font-size:13px;"></div>
</div>
</div>
</div>
@@ -354,7 +354,7 @@ async function loadBackups() {
container.innerHTML = '<p style="color:var(--text-muted);font-size:13px;">No backups found. Click "Create Backup" to create one.</p>';
return;
}
let html = '<div style="background:var(--bg-card);border:1px solid var(--border);border-radius:4px;">';
let html = '<div style="background:var(--card-bg);border:1px solid var(--border);border-radius:4px;">';
html += '<div class="backup-row" style="font-weight:bold;color:var(--text-muted);font-size:12px;">';
html += '<div class="backup-name">Name</div><div class="backup-date">Created</div><div class="backup-size">Size</div><div class="backup-actions">Actions</div></div>';
for (const b of d.backups) {
@@ -511,7 +511,7 @@ function addSchedTime() {
const list = document.getElementById('sched-times-list');
const div = document.createElement('div');
div.style.cssText = 'display:flex;gap:6px;margin-bottom:4px;';
div.innerHTML = '<input type="time" class="sched-time" value="05:00" style="padding:6px 8px;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">'
div.innerHTML = '<input type="time" class="sched-time" value="05:00" style="padding:6px 8px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">'
+ '<button onclick="removeSchedTime(this)" style="padding:6px 10px;background:#c0392b;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px;">&times;</button>';
list.appendChild(div);
}
@@ -550,7 +550,7 @@ async function loadSchedule() {
times.forEach(t => {
const div = document.createElement('div');
div.style.cssText = 'display:flex;gap:6px;margin-bottom:4px;';
div.innerHTML = '<input type="time" class="sched-time" value="' + t + '" style="padding:6px 8px;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">'
div.innerHTML = '<input type="time" class="sched-time" value="' + t + '" style="padding:6px 8px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font-size:13px;">'
+ '<button onclick="removeSchedTime(this)" style="padding:6px 10px;background:#c0392b;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px;">&times;</button>';
list.appendChild(div);
});
@@ -649,7 +649,7 @@ document.getElementById('restore-backup-select').addEventListener('change', asyn
const d = await r.json();
if (d.success) {
preview.style.display = 'block';
let html = '<div style="margin-top:8px;padding:8px 12px;background:var(--bg-card);border:1px solid var(--border);border-radius:4px;">';
let html = '<div style="margin-top:8px;padding:8px 12px;background:var(--card-bg);border:1px solid var(--border);border-radius:4px;">';
html += '<strong>Backup contents:</strong><br>';
html += 'Created: ' + esc(d.created) + '<br>';
const comps = d.components || [];
+1 -1
View File
@@ -18,7 +18,7 @@
<label style="display:flex;align-items:center;gap:4px;font-size:13px;color:var(--text-light);cursor:pointer;">
<input type="checkbox" id="auto-refresh" style="cursor:pointer;"> Auto-refresh (30s)
</label>
<select id="filter-channel" style="padding:6px 12px;background:var(--bg-card);color:var(--text);border:1px solid var(--border);border-radius:4px;font-size:13px;">
<select id="filter-channel" style="padding:6px 12px;background:var(--card-bg);color:var(--text);border:1px solid var(--border);border-radius:4px;font-size:13px;">
<option value="all">All Channels</option>
<option value="Proximity">Proximity</option>
<option value="Map">Map</option>
+1 -1
View File
@@ -85,7 +85,7 @@
<div style="display:grid;grid-template-columns:1fr 1fr;gap:16px;">
<div>
<label>Incoming Transfers:</label>
<select id="incoming-transfers" style="width:100%;padding:6px;background:var(--bg-card);color:var(--text);border:1px solid var(--border);border-radius:4px;margin-top:4px;">
<select id="incoming-transfers" style="width:100%;padding:6px;background:var(--card-bg);color:var(--text);border:1px solid var(--border);border-radius:4px;margin-top:4px;">
<option value="0">Default (0)</option>
<option value="10">Deny All (10)</option>
<option value="20">From Private Only (20)</option>
+158 -36
View File
@@ -4,8 +4,7 @@
<div class="page-header">
<h1>Game Events</h1>
<p>Recent activity from the game event log</p>
<p style="font-size:11px;color:var(--text-muted);">Note: Solaris currency events may show incomplete history. Delta values may not sum to current balance.</p>
<p>What is happening on your server, in plain language</p>
</div>
{% if tunnel_down %}
@@ -14,56 +13,179 @@
<div class="error-banner danger"><strong>Database Error:</strong> {{ db_error }}</div>
{% else %}
<div style="display:grid;grid-template-columns:1fr 1fr;gap:20px;">
<div class="card">
<div class="card-header">Game Events ({{ game_events|length }})</div>
<div class="stats-grid">
<div class="stat-card">
<div class="label">Events (24h)</div>
<div class="value">{{ total_24h }}</div>
</div>
<div class="stat-card">
<div class="label">Deaths (24h)</div>
<div class="value">{{ counts_24h.get(0, 0) }}</div>
</div>
<div class="stat-card">
<div class="label">Builds Placed (24h)</div>
<div class="value">{{ counts_24h.get(10, 0) }}</div>
</div>
<div class="stat-card">
<div class="label">Permission Changes (24h)</div>
<div class="value">{{ counts_24h.get(97, 0) }}</div>
</div>
<div class="stat-card">
<div class="label">Active Maps</div>
<div class="value">{{ maps|length }}</div>
</div>
</div>
<div class="card">
<div class="card-header">Event Feed</div>
<div class="card-body">
<form method="get" action="/events" style="display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:16px;">
<label style="font-size:13px;">Type:
<select name="type" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;">
<option value="all" {% if type_filter == 'all' %}selected{% endif %}>All types</option>
{% for tid, tlabel in type_options %}
<option value="{{ tid }}" {% if type_filter == tid %}selected{% endif %}>{{ tlabel }}</option>
{% endfor %}
</select>
</label>
<label style="font-size:13px;">Map:
<select name="map" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;">
<option value="all" {% if map_filter == 'all' %}selected{% endif %}>All maps</option>
{% for m in maps %}
<option value="{{ m }}" {% if map_filter == m %}selected{% endif %}>{{ m }}</option>
{% endfor %}
</select>
</label>
<label style="font-size:13px;">Player-facing:
<select name="facing" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;">
<option value="all" {% if facing_filter == 'all' %}selected{% endif %}>Both</option>
<option value="1" {% if facing_filter == '1' %}selected{% endif %}>Yes</option>
<option value="0" {% if facing_filter == '0' %}selected{% endif %}>No</option>
</select>
</label>
<button type="submit" style="padding:8px 20px;background:var(--primary);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:13px;">Filter</button>
<a href="/events" style="padding:8px 16px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;font-size:13px;text-decoration:none;">Reset</a>
</form>
<div class="table-wrap">
<table>
<thead>
<tr><th>Time</th><th>Actor</th><th>Map</th><th>Type</th><th>Player</th><th>Position</th></tr>
<tr><th>Time</th><th>Event</th><th>Map</th><th>Details</th><th>Position</th></tr>
</thead>
<tbody>
{% for e in game_events[:25] %}
<tr>
<td style="font-size:11px;white-space:nowrap;">{{ e.universe_time.strftime('%Y-%m-%d %H:%M') if e.universe_time else '' }}</td>
<td><span class="badge">{{ e.label }}</span></td>
<td>{{ e.map or '' }}</td>
<td style="font-size:12px;">{{ e.summary or '-' }}</td>
<td style="font-size:11px;font-family:monospace;">{% if e.x is not none and e.y is not none %}{{ e.x|round(0)|int }}, {{ e.y|round(0)|int }}{% endif %}</td>
</tr>
{% else %}
<tr><td colspan="5" class="empty">No events match these filters</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% if game_events|length > 25 %}
<div style="margin-top:12px;text-align:center;">
<button onclick="openEventsModal()" style="padding:8px 20px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:13px;">Show all {{ game_events|length }} events</button>
</div>
{% endif %}
</div>
</div>
<div id="events-modal" class="modal-overlay" style="display:none;" onclick="if(event.target===this)closeEventsModal()">
<div class="modal modal-wide">
<h3>All Events ({{ game_events|length }})</h3>
<div class="table-wrap" style="max-height:60vh;overflow-y:auto;">
<table>
<thead>
<tr><th>Time</th><th>Event</th><th>Map</th><th>Details</th><th>Position</th></tr>
</thead>
<tbody>
{% for e in game_events %}
<tr>
<td style="font-size:11px;white-space:nowrap;">{{ e.universe_time.strftime('%Y-%m-%d %H:%M') if e.universe_time else '' }}</td>
<td>{{ e.actor_id }}</td>
<td><span class="badge">{{ e.label }}</span></td>
<td>{{ e.map or '' }}</td>
<td>{{ e.event_type }}</td>
<td>{% if e.actor_name %}{{ e.actor_name }}{% else %}-{% endif %}</td>
<td style="font-size:11px;font-family:monospace;">{% if e.x %}{{ e.x|round(0)|int }}, {{ e.y|round(0)|int }}, {{ e.z|round(0)|int }}{% endif %}</td>
<td style="font-size:12px;">{{ e.summary or '-' }}</td>
<td style="font-size:11px;font-family:monospace;">{% if e.x is not none and e.y is not none %}{{ e.x|round(0)|int }}, {{ e.y|round(0)|int }}{% endif %}</td>
</tr>
{% else %}
<tr><td colspan="6" class="empty">No game events found</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="card">
<div class="card-header">Event Log ({{ event_logs|length }})</div>
<div class="table-wrap">
<table>
<thead>
<tr><th>Time</th><th>Category</th><th>Function</th><th>Message</th><th>Details</th></tr>
</thead>
<tbody>
{% for e in event_logs %}
<tr>
<td style="font-size:11px;white-space:nowrap;">{{ e.event_time.strftime('%Y-%m-%d %H:%M') if e.event_time else '' }}</td>
<td><span class="badge badge-{{ e.category.lower() if e.category else 'none' }}">{{ e.category or '' }}</span></td>
<td style="font-size:11px;font-family:monospace;">{{ e.function_name or '' }}</td>
<td style="font-size:12px;">{{ e.message or '' }}</td>
<td style="font-size:10px;max-width:250px;word-break:break-word;">{% if e.meta %}<pre style="margin:0;font-size:10px;white-space:pre-wrap;">{{ e.meta | json_format }}</pre>{% endif %}</td>
</tr>
{% else %}
<tr><td colspan="5" class="empty">No event logs found</td></tr>
{% endfor %}
</tbody>
</table>
<div class="modal-actions" style="margin-top:12px;text-align:right;">
<button onclick="closeEventsModal()" class="btn-cancel">Close</button>
</div>
</div>
</div>
<div class="card">
<div class="card-header">Solaris Movements ({{ solaris|length }})</div>
<div class="card-body">
<div class="table-wrap">
<table>
<thead>
<tr><th>Time</th><th>Player</th><th>Change</th><th>Balance</th></tr>
</thead>
<tbody>
{% for s in solaris[:25] %}
<tr>
<td style="font-size:11px;white-space:nowrap;">{{ s.event_time.strftime('%Y-%m-%d %H:%M') if s.event_time else '' }}</td>
<td style="font-family:monospace;font-size:12px;">{{ s.fls_id or '' }}</td>
<td style="font-size:13px;font-weight:600;color:{% if s.delta >= 0 %}#27ae60{% else %}#e74c3c{% endif %};">{{ '+' if s.delta >= 0 else '' }}{{ s.delta | format_number }}</td>
<td style="font-size:12px;">{{ s.balance | format_number }}</td>
</tr>
{% else %}
<tr><td colspan="4" class="empty">No currency movements logged</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% if solaris|length > 25 %}
<div style="margin-top:12px;text-align:center;">
<button onclick="openSolarisModal()" style="padding:8px 20px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:13px;">Show all {{ solaris|length }} movements</button>
</div>
{% endif %}
</div>
</div>
<div id="solaris-modal" class="modal-overlay" style="display:none;" onclick="if(event.target===this)closeSolarisModal()">
<div class="modal modal-wide">
<h3>All Solaris Movements ({{ solaris|length }})</h3>
<div class="table-wrap" style="max-height:60vh;overflow-y:auto;">
<table>
<thead>
<tr><th>Time</th><th>Player</th><th>Change</th><th>Balance</th></tr>
</thead>
<tbody>
{% for s in solaris %}
<tr>
<td style="font-size:11px;white-space:nowrap;">{{ s.event_time.strftime('%Y-%m-%d %H:%M') if s.event_time else '' }}</td>
<td style="font-family:monospace;font-size:12px;">{{ s.fls_id or '' }}</td>
<td style="font-size:13px;font-weight:600;color:{% if s.delta >= 0 %}#27ae60{% else %}#e74c3c{% endif %};">{{ '+' if s.delta >= 0 else '' }}{{ s.delta | format_number }}</td>
<td style="font-size:12px;">{{ s.balance | format_number }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="modal-actions" style="margin-top:12px;text-align:right;">
<button onclick="closeSolarisModal()" class="btn-cancel">Close</button>
</div>
</div>
</div>
<script>
function openEventsModal() { document.getElementById('events-modal').style.display = 'flex'; }
function closeEventsModal() { document.getElementById('events-modal').style.display = 'none'; }
function openSolarisModal() { document.getElementById('solaris-modal').style.display = 'flex'; }
function closeSolarisModal() { document.getElementById('solaris-modal').style.display = 'none'; }
document.addEventListener('keydown', function(e) {
if (e.key === 'Escape') { closeEventsModal(); closeSolarisModal(); }
});
</script>
{% endif %}
{% endblock %}
{% endblock %}
+1 -1
View File
@@ -33,7 +33,7 @@
.view-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.view-info { display: flex; gap: 8px; align-items: center; }
.view-actions { display: flex; gap: 8px; }
.view-btn { padding: 6px 14px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 13px; }
.view-btn { padding: 6px 14px; background: var(--card-bg); color: var(--text); border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 13px; }
.view-btn:hover { background: var(--bg-hover); }
.view-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.view-btn.primary:hover { background: var(--primary-dark); }
+2 -2
View File
@@ -10,7 +10,7 @@
<div class="fm-layout">
<div class="fm-panel">
<div class="fm-toolbar">
<select id="fm-pod-select" onchange="selectPod()" style="padding:6px 8px;background:var(--bg-card);color:var(--text);border:1px solid var(--border);border-radius:4px;font-size:12px;max-width:180px;">
<select id="fm-pod-select" onchange="selectPod()" style="padding:6px 8px;background:var(--card-bg);color:var(--text);border:1px solid var(--border);border-radius:4px;font-size:12px;max-width:180px;">
<option value="">Loading...</option>
</select>
<span style="flex:1;"></span>
@@ -43,7 +43,7 @@
.fm-layout { display: grid; grid-template-columns: 340px 1fr; gap: 16px; min-height: calc(100vh - 200px); }
.fm-panel { min-height: 0; display: flex; flex-direction: column; }
.fm-toolbar { display: flex; gap: 8px; margin-bottom: 10px; }
.fm-btn { padding: 6px 12px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.fm-btn { padding: 6px 12px; background: var(--card-bg); color: var(--text); border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.fm-btn:hover { background: var(--bg-hover); }
.fm-btn.danger { color: var(--danger); border-color: var(--danger); }
.fm-breadcrumb { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-bottom: 8px; min-height: 20px; }
+1 -1
View File
@@ -26,7 +26,7 @@
justify-content: center;
}
.login-container {
background: var(--bg-card);
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 2rem;
+17 -17
View File
@@ -107,17 +107,17 @@
<div style="margin-bottom:12px;">
<label style="display:block;margin-bottom:4px;font-size:13px;">Title</label>
<input type="text" id="bc-title" value="Server Notice"
style="width:100%;padding:8px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;">
style="width:100%;padding:8px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;">
</div>
<div style="margin-bottom:12px;">
<label style="display:block;margin-bottom:4px;font-size:13px;">Message</label>
<textarea id="bc-message" rows="3"
style="width:100%;padding:8px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;resize:vertical;"></textarea>
style="width:100%;padding:8px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;resize:vertical;"></textarea>
</div>
<div style="display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;">
<label style="font-size:13px;">Duration (seconds, 5–300):
<input type="number" id="bc-duration" value="30" min="5" max="300"
style="display:block;width:120px;margin-top:4px;padding:8px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;">
style="display:block;width:120px;margin-top:4px;padding:8px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;">
</label>
<button id="bc-send-btn" style="padding:10px 24px;background:var(--accent);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;">Send Broadcast</button>
<span id="bc-msg" style="font-size:12px;color:var(--text-muted);"></span>
@@ -142,23 +142,23 @@
<div style="margin-bottom:8px;">
<label style="display:block;margin-bottom:4px;font-size:13px;">Title</label>
<input type="text" id="bn-title" value="Server Notice"
style="width:100%;padding:8px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;">
style="width:100%;padding:8px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;">
</div>
<div style="margin-bottom:8px;">
<label style="display:block;margin-bottom:4px;font-size:13px;">Message</label>
<textarea id="bn-message" rows="2"
style="width:100%;padding:8px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;resize:vertical;"></textarea>
style="width:100%;padding:8px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;resize:vertical;"></textarea>
</div>
<div style="display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px;">
<label style="font-size:13px;">Duration (5–300s):
<input type="number" id="bn-duration" value="30" min="5" max="300"
style="width:90px;padding:6px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;">
style="width:90px;padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;">
</label>
<label style="display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;">
<input type="checkbox" id="bn-enabled" checked style="width:16px;height:16px;"> Enabled
</label>
<label style="font-size:13px;">Repeats:
<select id="bn-mode" style="padding:6px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);">
<select id="bn-mode" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);">
<option value="daily">Daily</option>
<option value="weekly">Weekly</option>
<option value="monthly">Monthly</option>
@@ -169,7 +169,7 @@
<div id="bn-sched-daily" style="margin-bottom:12px;">
<div style="font-size:13px;margin-bottom:6px;">Times - pick a time, then Add:</div>
<div style="display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px;">
<input type="time" id="bn-daily-time-pick" value="12:00" style="padding:6px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<input type="time" id="bn-daily-time-pick" value="12:00" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<button id="bn-daily-add" style="padding:6px 14px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:13px;">Add time</button>
</div>
<div id="bn-daily-chips" style="display:flex;gap:6px;flex-wrap:wrap;"></div>
@@ -187,7 +187,7 @@
</div>
<div style="font-size:13px;margin-bottom:6px;">Times - pick a time, then Add:</div>
<div style="display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px;">
<input type="time" id="bn-weekly-time-pick" value="12:00" style="padding:6px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<input type="time" id="bn-weekly-time-pick" value="12:00" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<button id="bn-weekly-add" style="padding:6px 14px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:13px;">Add time</button>
</div>
<div id="bn-weekly-chips" style="display:flex;gap:6px;flex-wrap:wrap;"></div>
@@ -196,12 +196,12 @@
<div style="font-size:13px;margin-bottom:6px;">Days of month - click to select:</div>
<div id="bn-monthly-grid" style="display:grid;grid-template-columns:repeat(8, minmax(34px, 44px));gap:6px;margin-bottom:8px;"></div>
<label style="font-size:13px;">Time:
<input type="time" id="bn-monthly-time" value="12:00" style="padding:6px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<input type="time" id="bn-monthly-time" value="12:00" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
</label>
</div>
<div id="bn-sched-once" style="margin-bottom:12px;display:none;">
<label style="font-size:13px;">Date + time - pick from the calendar:
<input type="datetime-local" id="bn-once-at" style="padding:6px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<input type="datetime-local" id="bn-once-at" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
</label>
</div>
<div style="display:flex;gap:8px;align-items:center;flex-wrap:wrap;">
@@ -255,7 +255,7 @@
<input type="checkbox" id="lc-sched-enabled" style="width:16px;height:16px;"> Enabled
</label>
<label style="font-size:13px;">Mode:
<select id="lc-sched-mode" style="padding:6px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);">
<select id="lc-sched-mode" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);">
<option value="daily">Daily</option>
<option value="weekly">Weekly</option>
<option value="monthly">Monthly</option>
@@ -266,7 +266,7 @@
<div id="lc-sched-daily" style="margin-bottom:12px;">
<div style="font-size:13px;margin-bottom:6px;">Times - pick a time, then Add:</div>
<div style="display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px;">
<input type="time" id="lc-daily-time-pick" value="05:00" style="padding:6px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<input type="time" id="lc-daily-time-pick" value="05:00" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<button id="lc-daily-add" style="padding:6px 14px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:13px;">Add time</button>
</div>
<div id="lc-daily-chips" style="display:flex;gap:6px;flex-wrap:wrap;"></div>
@@ -284,7 +284,7 @@
</div>
<div style="font-size:13px;margin-bottom:6px;">Times - pick a time, then Add:</div>
<div style="display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px;">
<input type="time" id="lc-weekly-time-pick" value="05:00" style="padding:6px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<input type="time" id="lc-weekly-time-pick" value="05:00" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<button id="lc-weekly-add" style="padding:6px 14px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:13px;">Add time</button>
</div>
<div id="lc-weekly-chips" style="display:flex;gap:6px;flex-wrap:wrap;"></div>
@@ -293,12 +293,12 @@
<div style="font-size:13px;margin-bottom:6px;">Days of month - click to select:</div>
<div id="lc-monthly-grid" style="display:grid;grid-template-columns:repeat(8, minmax(34px, 44px));gap:6px;margin-bottom:8px;"></div>
<label style="font-size:13px;">Time:
<input type="time" id="lc-monthly-time" value="05:00" style="padding:6px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<input type="time" id="lc-monthly-time" value="05:00" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
</label>
</div>
<div id="lc-sched-once" style="margin-bottom:12px;display:none;">
<label style="font-size:13px;">Date + time - pick from the calendar:
<input type="datetime-local" id="lc-once-at" style="padding:6px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
<input type="datetime-local" id="lc-once-at" style="padding:6px 10px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;color-scheme:dark;">
</label>
</div>
<div style="display:flex;gap:8px;align-items:center;flex-wrap:wrap;">
@@ -494,7 +494,7 @@
</div>
<div style="margin-bottom:12px;">
<textarea id="sat-token" rows="4"
style="width:100%;padding:10px 12px;background:var(--bg-input);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:12px;font-family:monospace;resize:vertical;"
style="width:100%;padding:10px 12px;background:var(--card-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:12px;font-family:monospace;resize:vertical;"
placeholder="Paste the new ServiceAuthToken JWT here..."></textarea>
</div>
<div style="display:flex;gap:8px;align-items:center;flex-wrap:wrap;">
+4 -4
View File
@@ -23,7 +23,7 @@
<div class="card">
<div class="card-header" style="display:flex;justify-content:space-between;align-items:center;">
<span>Pod Shell</span>
<select id="pod-select" style="padding:4px;background:var(--bg-card);color:var(--text);border:1px solid var(--border);border-radius:4px;font-size:12px;">
<select id="pod-select" style="padding:4px;background:var(--card-bg);color:var(--text);border:1px solid var(--border);border-radius:4px;font-size:12px;">
{% for pod in pods %}
<option value="{{ pod.name }}">{{ pod.name }}</option>
{% endfor %}
@@ -74,7 +74,7 @@
<div class="modal" style="max-width:900px;">
<div class="modal-header"><h3>Pod Logs - <span id="logs-pod-name"></span></h3></div>
<div id="logs-loading" style="padding:20px;text-align:center;color:var(--text-muted);">Loading logs...</div>
<pre id="logs-content" style="max-height:500px;overflow:auto;white-space:pre-wrap;display:none;margin:0;padding:16px;font-size:12px;background:var(--bg-card);color:var(--text);border-top:1px solid var(--border);"></pre>
<pre id="logs-content" style="max-height:500px;overflow:auto;white-space:pre-wrap;display:none;margin:0;padding:16px;font-size:12px;background:var(--card-bg);color:var(--text);border-top:1px solid var(--border);"></pre>
<div class="modal-actions" style="padding:12px 16px;border-top:1px solid var(--border);">
<button onclick="closeModal('logs-modal')" class="btn-cancel">Close</button>
</div>
@@ -86,7 +86,7 @@
<div class="modal" style="max-width:900px;">
<div class="modal-header"><h3>Describe Pod - <span id="describe-pod-name"></span></h3></div>
<div id="describe-loading" style="padding:20px;text-align:center;color:var(--text-muted);">Loading...</div>
<pre id="describe-content" style="max-height:500px;overflow:auto;white-space:pre-wrap;display:none;margin:0;padding:16px;font-size:12px;background:var(--bg-card);color:var(--text);border-top:1px solid var(--border);"></pre>
<pre id="describe-content" style="max-height:500px;overflow:auto;white-space:pre-wrap;display:none;margin:0;padding:16px;font-size:12px;background:var(--card-bg);color:var(--text);border-top:1px solid var(--border);"></pre>
<div class="modal-actions" style="padding:12px 16px;border-top:1px solid var(--border);">
<button onclick="closeModal('describe-modal')" class="btn-cancel">Close</button>
</div>
@@ -99,7 +99,7 @@
<div class="modal-header"><h3 id="delete-modal-title">Delete Pod</h3></div>
<div class="modal-body" style="padding:20px;">
<p id="delete-modal-message">Are you sure you want to delete this pod?</p>
<p style="font-family:monospace;font-size:14px;padding:8px 12px;background:var(--bg-card);border-radius:4px;margin:12px 0 0;" id="delete-pod-name-display"></p>
<p style="font-family:monospace;font-size:14px;padding:8px 12px;background:var(--card-bg);border-radius:4px;margin:12px 0 0;" id="delete-pod-name-display"></p>
</div>
<div class="modal-actions" style="padding:12px 16px;border-top:1px solid var(--border);">
<button onclick="closeModal('delete-modal')" class="btn-cancel">Cancel</button>