From cd9d8cda1fe7e47453ad1c70248b60fcdcba6028 Mon Sep 17 00:00:00 2001 From: duffyduck Date: Fri, 13 Mar 2026 17:39:50 +0100 Subject: [PATCH] added setting and permissions --- diagnostic/index.html | 232 ++++++++++++++++++++++++++++++++++++++++++ diagnostic/server.js | 171 +++++++++++++++++++++++++++++++ 2 files changed, 403 insertions(+) diff --git a/diagnostic/index.html b/diagnostic/index.html index 124ed4a..44dd54d 100644 --- a/diagnostic/index.html +++ b/diagnostic/index.html @@ -87,11 +87,49 @@ .modal-close:hover { color:#FF3B30; } .modal-body { flex:1; padding:4px; min-height:400px; } .modal-footer { padding:6px 14px; border-top:1px solid #1E1E2E; font-size:11px; color:#8888AA; } + + /* Haupt-Navigation */ + .main-nav { display:flex; gap:0; margin-bottom:16px; border-bottom:2px solid #1E1E2E; } + .main-nav-btn { background:none; border:none; color:#8888AA; font-family:inherit; font-size:14px; + padding:10px 20px; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; + transition: color 0.2s, border-color 0.2s; } + .main-nav-btn:hover { color:#E0E0F0; } + .main-nav-btn.active { color:#0096FF; border-bottom-color:#0096FF; } + .main-tab { display:none; } + .main-tab.visible { display:block; } + + /* Settings */ + .settings-section { margin-bottom:20px; } + .settings-section h2 { margin-bottom:12px; } + .perm-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:8px; } + .perm-item { display:flex; align-items:center; justify-content:space-between; background:#12122A; + border:1px solid #1E1E2E; border-radius:6px; padding:8px 12px; } + .perm-item .perm-info { flex:1; min-width:0; } + .perm-item .perm-name { font-size:13px; color:#E0E0F0; font-weight:bold; } + .perm-item .perm-desc { font-size:10px; color:#8888AA; margin-top:2px; } + .toggle { position:relative; width:40px; height:22px; flex-shrink:0; margin-left:8px; } + .toggle input { opacity:0; width:0; height:0; } + .toggle .slider { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; + background:#333; border-radius:22px; transition:0.3s; } + .toggle .slider:before { content:""; position:absolute; height:16px; width:16px; left:3px; bottom:3px; + background:#888; border-radius:50%; transition:0.3s; } + .toggle input:checked + .slider { background:#0096FF; } + .toggle input:checked + .slider:before { transform:translateX(18px); background:#fff; } + .toggle input:disabled + .slider { opacity:0.4; cursor:not-allowed; }

ARIA Diagnostic

+ + + + +
+
@@ -266,6 +304,55 @@
+
+ + +
+ + +
+
+

Tool-Berechtigungen

+
+ + +
+
+
+ Hier kannst du festlegen, welche Tools ARIA benutzen darf. Aenderungen werden in der OpenClaw-Konfiguration gespeichert. +
+ +
+ +
Klicke "Laden" um die aktuellen Berechtigungen abzurufen
+
+
+ + +
+

Model

+
+
+ Aktives Model: + + + +
+
+
+
+ + +
+

OpenClaw Config

+
+ +
(Noch nicht geladen)
+
+
+ +
+