From e008faf7292f7e1c74727ed9699d3dfc5f34aa4b Mon Sep 17 00:00:00 2001 From: KVOJJJin Date: Mon, 31 Mar 2025 10:28:19 +0800 Subject: [PATCH] Feat: dark mode for independent pages (#17045) --- web/app/activate/activateForm.tsx | 4 +- web/app/activate/page.tsx | 5 +- web/app/activate/style.module.css | 4 -- web/app/activate/team-28x28.png | Bin 7349 -> 0 bytes web/app/components/base/select/locale.tsx | 57 +----------------- .../forgot-password/ChangePasswordForm.tsx | 18 +++--- .../forgot-password/ForgotPasswordForm.tsx | 8 +-- web/app/forgot-password/page.tsx | 5 +- web/app/init/InitPasswordPopup.tsx | 4 +- web/app/init/page.tsx | 18 ++++-- web/app/install/installForm.tsx | 30 +++++---- web/app/install/page.tsx | 5 +- web/app/reset-password/layout.tsx | 3 +- web/app/signin/layout.tsx | 3 +- web/app/signin/normalForm.tsx | 10 +-- web/app/signin/oneMoreStep.tsx | 2 +- 16 files changed, 66 insertions(+), 110 deletions(-) delete mode 100644 web/app/activate/style.module.css delete mode 100644 web/app/activate/team-28x28.png diff --git a/web/app/activate/activateForm.tsx b/web/app/activate/activateForm.tsx index aef5b5a29..782b24be6 100644 --- a/web/app/activate/activateForm.tsx +++ b/web/app/activate/activateForm.tsx @@ -50,8 +50,8 @@ const ActivateForm = () => { {checkRes && !checkRes.is_valid && (
-
🤷‍♂️
-

{t('login.invalid')}

+
🤷‍♂️
+

{t('login.invalid')}

) } - -export function InputSelect({ - items, - value, - onChange, -}: ISelectProps) { - const item = items.filter(item => item.value === value)[0] - return ( -
- -
- - {item?.name} - -
- - -
- {items.map((item) => { - return - - - })} - -
- -
-
-
-
- ) -} diff --git a/web/app/forgot-password/ChangePasswordForm.tsx b/web/app/forgot-password/ChangePasswordForm.tsx index 0939b053a..0ac34c1a9 100644 --- a/web/app/forgot-password/ChangePasswordForm.tsx +++ b/web/app/forgot-password/ChangePasswordForm.tsx @@ -86,8 +86,8 @@ const ChangePasswordForm = () => { {verifyTokenRes && !verifyTokenRes.is_valid && (
-
🤷‍♂️
-

{t('login.invalid')}

+
🤷‍♂️
+

{t('login.invalid')}

-
{t('login.error.passwordInvalid')}
@@ -168,11 +166,11 @@ const InstallForm = () => { -
+
{t('login.license.tip')}   {t('login.license.link')} diff --git a/web/app/install/page.tsx b/web/app/install/page.tsx index 395fae34e..f41c63ff3 100644 --- a/web/app/install/page.tsx +++ b/web/app/install/page.tsx @@ -7,6 +7,7 @@ import classNames from '@/utils/classnames' const Install = () => { return (
{ )}>
-
+
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
diff --git a/web/app/reset-password/layout.tsx b/web/app/reset-password/layout.tsx index 712a7cfd7..58ac3a642 100644 --- a/web/app/reset-password/layout.tsx +++ b/web/app/reset-password/layout.tsx @@ -6,6 +6,7 @@ import cn from '@/utils/classnames' export default async function SignInLayout({ children }: any) { return <>
diff --git a/web/app/signin/layout.tsx b/web/app/signin/layout.tsx index 4a197f8f3..fbdd4c66e 100644 --- a/web/app/signin/layout.tsx +++ b/web/app/signin/layout.tsx @@ -6,6 +6,7 @@ import cn from '@/utils/classnames' export default async function SignInLayout({ children }: any) { return <>
diff --git a/web/app/signin/normalForm.tsx b/web/app/signin/normalForm.tsx index 0df76359a..c76e088e9 100644 --- a/web/app/signin/normalForm.tsx +++ b/web/app/signin/normalForm.tsx @@ -85,7 +85,7 @@ const NormalForm = () => { } if (systemFeatures.license?.status === LicenseStatus.LOST) { return
-
+
@@ -99,7 +99,7 @@ const NormalForm = () => { } if (systemFeatures.license?.status === LicenseStatus.EXPIRED) { return
-
+
@@ -113,7 +113,7 @@ const NormalForm = () => { } if (systemFeatures.license?.status === LicenseStatus.INACTIVE) { return
-
+
@@ -138,7 +138,7 @@ const NormalForm = () => {

{t('login.pageTitle')}

{t('login.welcome')}

} -
+
{systemFeatures.enable_social_oauth_login && } {systemFeatures.sso_enforced_for_signin &&
@@ -151,7 +151,7 @@ const NormalForm = () => {
- {t('login.or')} + {t('login.or')}
} { diff --git a/web/app/signin/oneMoreStep.tsx b/web/app/signin/oneMoreStep.tsx index 8c2d19faf..7607598bf 100644 --- a/web/app/signin/oneMoreStep.tsx +++ b/web/app/signin/oneMoreStep.tsx @@ -81,7 +81,7 @@ const OneMoreStep = () => {
-
+