From 6056fda518dd69e4ff273f1de6fc15f883acda75 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Fri, 8 May 2026 11:59:02 +0200 Subject: [PATCH] fix(frontend): real dark mode + silence dev proxy ECONNREFUSED noise MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two issues from running login.html against no Go backend: 1. Dark mode toggled the body class but didn't actually re-theme any AD-Vue components. The legacy panel relied on custom.min.css which we haven't ported. AD-Vue 4 ships its own dark algorithm — wrap LoginPage in driven by our useTheme state, and AD-Vue restyles every component for free. Page chrome (background, card, title) gets explicit .is-dark CSS since the algorithm only covers AD-Vue components. 2. Vite logged every failed proxy attempt loudly. When the Go panel isn't running locally that's pure noise. Added a configure() callback that swallows ECONNREFUSED specifically; real errors (timeouts, 5xx, anything else) still surface. Both fixes are dev-experience only — production build is unchanged. Co-Authored-By: Claude Opus 4.7 --- frontend/src/pages/login/LoginPage.vue | 26 +++++++++++++++++++--- frontend/vite.config.js | 30 +++++++++++++++++++++----- 2 files changed, 48 insertions(+), 8 deletions(-) diff --git a/frontend/src/pages/login/LoginPage.vue b/frontend/src/pages/login/LoginPage.vue index fc85797f..4ce85357 100644 --- a/frontend/src/pages/login/LoginPage.vue +++ b/frontend/src/pages/login/LoginPage.vue @@ -1,11 +1,19 @@