forked from koala73/worldmonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.html
More file actions
57 lines (56 loc) · 3.74 KB
/
settings.html
File metadata and controls
57 lines (56 loc) · 3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>World Monitor Settings</title>
<script>(function(){try{var t=localStorage.getItem('worldmonitor-theme');if(t==='light')document.documentElement.dataset.theme='light';}catch(e){}document.documentElement.classList.add('no-transition');})()</script>
</head>
<body style="background:#1a1c1e;color:#e8eaed;margin:0">
<div class="settings-shell">
<div class="settings-tabs" role="tablist">
<button class="settings-tab active" role="tab" aria-selected="true" aria-controls="tabPanelLLMs" data-tab="llms">LLMs</button>
<button class="settings-tab" role="tab" aria-selected="false" aria-controls="tabPanelKeys" data-tab="keys">API Keys</button>
<button class="settings-tab" role="tab" aria-selected="false" aria-controls="tabPanelDebug" data-tab="debug">Debug & Logs</button>
</div>
<p id="settingsActionStatus" class="settings-action-status" aria-live="polite"></p>
<div class="settings-tab-panels">
<div id="tabPanelLLMs" class="settings-tab-panel active" role="tabpanel">
<main id="llmApp" class="settings-content"><div style="display:flex;align-items:center;justify-content:center;padding:60px 0;color:#9aa0a6;font-size:14px;gap:10px"><svg width="20" height="20" viewBox="0 0 24 24" style="animation:spin 1s linear infinite"><style>@keyframes spin{to{transform:rotate(360deg)}}</style><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none" stroke-dasharray="31 31"/></svg>Loading...</div></main>
</div>
<div id="tabPanelKeys" class="settings-tab-panel" role="tabpanel">
<main id="apiKeysApp" class="settings-content"><div style="display:flex;align-items:center;justify-content:center;padding:60px 0;color:#9aa0a6;font-size:14px;gap:10px"><svg width="20" height="20" viewBox="0 0 24 24" style="animation:spin 1s linear infinite"><style>@keyframes spin{to{transform:rotate(360deg)}}</style><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none" stroke-dasharray="31 31"/></svg>Loading...</div></main>
</div>
<div id="tabPanelDebug" class="settings-tab-panel" role="tabpanel">
<div class="debug-actions">
<button id="openLogsBtn" type="button">Open Logs Folder</button>
<button id="openSidecarLogBtn" type="button">Open API Log</button>
</div>
<section class="settings-diagnostics" id="diagnosticsSection">
<header class="diag-header">
<h2>Diagnostics</h2>
<div class="diag-toggles">
<label><input type="checkbox" id="verboseApiLog"> Verbose Sidecar Log</label>
<label><input type="checkbox" id="fetchDebugLog"> Frontend Fetch Debug</label>
</div>
</header>
<div class="diag-traffic-bar">
<h3>API Traffic <span id="trafficCount"></span></h3>
<div class="diag-traffic-controls">
<label><input type="checkbox" id="autoRefreshLog" checked> Auto</label>
<button id="refreshLogBtn" type="button">Refresh</button>
<button id="clearLogBtn" type="button">Clear</button>
</div>
</div>
<div id="trafficLog" class="diag-traffic-log"></div>
</section>
</div>
</div>
<footer class="settings-footer">
<button id="cancelBtn" type="button" class="settings-btn settings-btn-secondary">Cancel</button>
<button id="okBtn" type="button" class="settings-btn settings-btn-primary">OK</button>
</footer>
</div>
<script type="module" src="/src/settings-main.ts"></script>
</body>
</html>