From c7c39047de3e205fcb548b70ddbdc58dce2f6ceb Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Mon, 3 Nov 2025 13:07:36 +0800 Subject: [PATCH] feat: add theme-aware logo support via optional sourceDark configuration (#6866) * Initial plan * Initial exploration and setup Co-authored-by: aonoa <32682251+aonoa@users.noreply.github.com> * Add support for separate light and dark theme logos Co-authored-by: aonoa <32682251+aonoa@users.noreply.github.com> * Update documentation with dark theme logo configuration Co-authored-by: aonoa <32682251+aonoa@users.noreply.github.com> * feat: Add theme-aware logo support for authentication/login page Co-authored-by: aonoa <32682251+aonoa@users.noreply.github.com> * revert: .npmrc Signed-off-by: aonoa <1991849113@qq.com> --------- Signed-off-by: aonoa <1991849113@qq.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: aonoa <32682251+aonoa@users.noreply.github.com> Co-authored-by: Li Kui <90845831+likui628@users.noreply.github.com> Co-authored-by: aonoa <1991849113@qq.com> --- .npmrc | 2 +- apps/web-antd/src/layouts/auth.vue | 2 ++ apps/web-ele/src/layouts/auth.vue | 2 ++ apps/web-naive/src/layouts/auth.vue | 2 ++ docs/src/en/guide/essentials/settings.md | 3 ++ docs/src/guide/essentials/settings.md | 3 ++ packages/@core/base/shared/src/utils/date.ts | 6 ++-- packages/@core/preferences/src/types.ts | 2 ++ .../shadcn-ui/src/components/logo/logo.vue | 25 ++++++++++++++-- .../src/authentication/authentication.vue | 29 +++++++++++++++++-- packages/effects/layouts/src/basic/layout.vue | 3 ++ packages/stores/src/modules/timezone.ts | 11 ++++--- 12 files changed, 76 insertions(+), 14 deletions(-) diff --git a/.npmrc b/.npmrc index 21147aff..aeac1ae9 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,4 @@ -registry = "https://registry.npmmirror.com" +registry=https://registry.npmmirror.com public-hoist-pattern[]=lefthook public-hoist-pattern[]=eslint public-hoist-pattern[]=prettier diff --git a/apps/web-antd/src/layouts/auth.vue b/apps/web-antd/src/layouts/auth.vue index 18d415bc..8ba66e85 100644 --- a/apps/web-antd/src/layouts/auth.vue +++ b/apps/web-antd/src/layouts/auth.vue @@ -8,12 +8,14 @@ import { $t } from '#/locales'; const appName = computed(() => preferences.app.name); const logo = computed(() => preferences.logo.source); +const logoDark = computed(() => preferences.logo.sourceDark);