From 34e6e5a04917101dcbfd6359aac2441effaa592b Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Mon, 27 Jul 2026 11:01:24 +0800 Subject: [PATCH] refactor(web): simplify Dify logo theming (#39580) --- oxlint-suppressions.json | 5 -- .../form/[token]/__tests__/form.spec.tsx | 2 +- .../form/[token]/branding-footer.tsx | 4 +- web/app/account/(commonLayout)/header.tsx | 2 +- .../chat/chat-with-history/sidebar/index.tsx | 4 +- .../chat/embedded-chatbot/header/index.tsx | 4 +- .../base/chat/embedded-chatbot/index.tsx | 4 +- .../base/logo/__tests__/dify-logo.spec.tsx | 16 +++++ web/app/components/base/logo/dify-logo.tsx | 67 +++++++++---------- web/app/components/billing/pricing/header.tsx | 4 +- .../components/powered-by-brand.tsx | 4 +- .../components/header/account-about/index.tsx | 4 +- web/app/components/main-nav/index.tsx | 2 +- .../plugins/marketplace/description/index.tsx | 4 +- .../text-generation-sidebar.tsx | 4 +- web/app/device/_header.tsx | 7 +- .../education-apply/education-apply-page.tsx | 4 +- web/app/signin/_header.tsx | 8 +-- web/public/logo/logo-monochrome-white.svg | 12 ---- 19 files changed, 75 insertions(+), 86 deletions(-) create mode 100644 web/app/components/base/logo/__tests__/dify-logo.spec.tsx delete mode 100644 web/public/logo/logo-monochrome-white.svg diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json index f98f7a16fa9..ba83af1b8c9 100644 --- a/oxlint-suppressions.json +++ b/oxlint-suppressions.json @@ -1691,11 +1691,6 @@ "count": 1 } }, - "web/app/components/base/logo/dify-logo.tsx": { - "react/only-export-components": { - "count": 2 - } - }, "web/app/components/base/markdown-blocks/__tests__/paragraph.spec.tsx": { "jsx_a11y/anchor-is-valid": { "count": 1 diff --git a/web/app/(humanInputLayout)/form/[token]/__tests__/form.spec.tsx b/web/app/(humanInputLayout)/form/[token]/__tests__/form.spec.tsx index 147af155fff..01ce7d01c43 100644 --- a/web/app/(humanInputLayout)/form/[token]/__tests__/form.spec.tsx +++ b/web/app/(humanInputLayout)/form/[token]/__tests__/form.spec.tsx @@ -120,7 +120,7 @@ vi.mock('@/app/components/base/loading', () => ({ vi.mock('@/app/components/base/logo/dify-logo', () => ({ __esModule: true, - default: () =>