From dd7cf0ec933f9aaa6815c633055024f717a3804a Mon Sep 17 00:00:00 2001 From: Meleki Date: Thu, 19 Mar 2026 08:35:05 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20chatUsageBadge-Setting=20+=20Dashboard-?= =?UTF-8?q?Men=C3=BC=20als=20Dropdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Neues Setting chatUsageBadge (default: false) blendet Usage-Badge im Chat ein/aus - Dashboard-Links durch 3-Dot-Header-Menü ersetzt (einheitlich mit Chat) - Admin-Items über admin-only Attribut gesteuert, dashboard-links CSS entfernt Co-Authored-By: Claude Opus 4.6 --- wwwroot/css/dashboard.css | 31 ------------- wwwroot/index.html | 32 ++++++++++--- wwwroot/js/app.js | 3 +- wwwroot/js/pages/chat-page.js | 2 + wwwroot/js/pages/dashboard.js | 75 ++++++++++++++----------------- wwwroot/js/pages/settings-page.js | 9 ++++ 6 files changed, 71 insertions(+), 81 deletions(-) diff --git a/wwwroot/css/dashboard.css b/wwwroot/css/dashboard.css index 9e50501..84af811 100644 --- a/wwwroot/css/dashboard.css +++ b/wwwroot/css/dashboard.css @@ -2,38 +2,7 @@ padding: var(--page-padding); } -.dashboard header { - overflow: auto; -} -.dashboard header * { - white-space: nowrap; -} - -.dashboard-links { - display: flex; - gap: var(--box-spacing); - align-items: center; - flex: 1; -} - -.dashboard-link { - color: var(--text); - text-decoration: none; - opacity: var(--semi-transparent); - transition: opacity var(--transition-duration); - cursor: pointer; -} - -.dashboard-link:hover { - opacity: 1; - color: var(--text-accent); -} - -.dashboard-link:last-child { - margin-left: auto; - margin-right: var(--badge-spacing); -} .dashboard section { margin-bottom: var(--page-spacing); diff --git a/wwwroot/index.html b/wwwroot/index.html index 4ebafbf..d87b6d4 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -54,13 +54,19 @@

// gott

-
@@ -473,6 +479,18 @@
+
+
+ + API-Key-Verbrauch im Chat anzeigen +
+
+ +
+