Upgrade logs

This commit is contained in:
Raven Scott
2026-05-28 12:12:24 -04:00
parent 6ee20a3f68
commit ca324ec4a6
15 changed files with 610 additions and 105 deletions
+40
View File
@@ -309,6 +309,46 @@
Logs
<button onclick="openInfoModal('logs')" class="text-sm px-3 py-1 theme-button-info rounded transition-colors">Info</button>
</h2>
<div class="flex flex-wrap items-center gap-3 mb-3">
<label for="log-channel-select" class="text-sm theme-text-secondary">Log file</label>
<select id="log-channel-select" onchange="onLogChannelChange()" class="theme-input rounded-lg px-3 py-2 text-sm min-w-[12rem]">
<option value="core">Core</option>
<option value="proxy">Internal Proxy</option>
<option value="dns">DNS</option>
<option value="plugins">Plugins</option>
<option value="holesail">Holesail</option>
</select>
<div class="flex-1 min-w-[16rem] max-w-2xl flex items-center gap-2">
<div class="relative flex-1 group">
<span class="absolute left-3 top-1/2 -translate-y-1/2 theme-text-tertiary pointer-events-none group-focus-within:text-indigo-400 transition-colors">
<i class="fas fa-magnifying-glass text-sm" aria-hidden="true"></i>
</span>
<input
id="log-filter-input"
type="search"
autocomplete="off"
spellcheck="false"
placeholder="Filter lines… text or /regex/flags"
class="w-full theme-input rounded-lg py-2 pl-9 pr-9 text-sm focus:outline-none focus:ring-2 focus:ring-primary"
aria-label="Filter log lines"
oninput="onLogFilterInput()"
onkeydown="if (event.key === 'Escape') { clearLogFilter(); event.preventDefault(); }"
/>
<button
id="log-filter-clear"
type="button"
class="hidden absolute right-1.5 top-1/2 -translate-y-1/2 p-1.5 rounded-md theme-text-tertiary hover:theme-text-primary hover:bg-white/10 transition-colors"
title="Clear filter (Esc)"
aria-label="Clear filter"
onclick="clearLogFilter()"
>
<i class="fas fa-times text-sm" aria-hidden="true"></i>
</button>
</div>
<span id="log-filter-stats" class="text-xs theme-text-tertiary tabular-nums whitespace-nowrap min-w-[5rem] text-right"></span>
</div>
<span class="text-xs theme-text-tertiary hidden lg:inline">Files under <code class="text-indigo-300">logs/</code> — live tail</span>
</div>
<div id="terminal" class="bg-black rounded-lg overflow-hidden h-96"></div>
</div>