From 86ed84a83deec6a162101fc7f4c490714bffcd5a Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 23 Oct 2023 19:08:18 +0800 Subject: [PATCH] fix: fix iam plugin not fit in light theme in login view --- .../shared/i18n/langs/en-US/translation.json | 1 - .../shared/i18n/langs/zh-CN/translation.json | 1 - client/web/src/routes/Entry/LoginView.tsx | 18 ------------------ .../plugins/com.msgbyte.iam/src/IAMAction.tsx | 2 +- 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/client/shared/i18n/langs/en-US/translation.json b/client/shared/i18n/langs/en-US/translation.json index 23a3d8c4c23..af99afa0740 100644 --- a/client/shared/i18n/langs/en-US/translation.json +++ b/client/shared/i18n/langs/en-US/translation.json @@ -299,7 +299,6 @@ "kb76d94e0": "Refresh", "kb7a57f24": "Plugin Registry Service", "kb8021af2": "Disable create converse from group", - "kb8185132": "Or", "kb86bd9c9": "View Panel", "kb8ec7062": "Email verification passed", "kb96b79c5": "Allow management of invitation links", diff --git a/client/shared/i18n/langs/zh-CN/translation.json b/client/shared/i18n/langs/zh-CN/translation.json index 7ad31fdcf79..ed98782f1d5 100644 --- a/client/shared/i18n/langs/zh-CN/translation.json +++ b/client/shared/i18n/langs/zh-CN/translation.json @@ -299,7 +299,6 @@ "kb76d94e0": "刷新", "kb7a57f24": "插件中心服务", "kb8021af2": "禁止在群组发起私信", - "kb8185132": "或", "kb86bd9c9": "查看面板", "kb8ec7062": "邮箱验证通过", "kb96b79c5": "允许管理邀请链接", diff --git a/client/web/src/routes/Entry/LoginView.tsx b/client/web/src/routes/Entry/LoginView.tsx index c17d6631452..82a92a90e53 100644 --- a/client/web/src/routes/Entry/LoginView.tsx +++ b/client/web/src/routes/Entry/LoginView.tsx @@ -1,5 +1,4 @@ import { Icon } from 'tailchat-design'; -import { Divider } from 'antd'; import { isValidStr, loginWithEmail, @@ -23,23 +22,6 @@ import { SecondaryBtn } from './components/SecondaryBtn'; import { PrimaryBtn } from './components/PrimaryBtn'; import { pluginLoginAction } from '@/plugin/common'; -/** - * TODO: - * 第三方登录 - */ -const OAuthLoginView: React.FC = React.memo(() => { - return ( - <> - {t('或')} - -
- -
- - ); -}); -OAuthLoginView.displayName = 'OAuthLoginView'; - /** * 登录视图 */ diff --git a/server/plugins/com.msgbyte.iam/web/plugins/com.msgbyte.iam/src/IAMAction.tsx b/server/plugins/com.msgbyte.iam/web/plugins/com.msgbyte.iam/src/IAMAction.tsx index 41aec2240dc..361d4b4e334 100644 --- a/server/plugins/com.msgbyte.iam/web/plugins/com.msgbyte.iam/src/IAMAction.tsx +++ b/server/plugins/com.msgbyte.iam/web/plugins/com.msgbyte.iam/src/IAMAction.tsx @@ -62,7 +62,7 @@ export const IAMAction: React.FC = React.memo(() => { if (Array.isArray(strategies) && strategies.length > 0) { return (
- {Translate.iamLogin} + {Translate.iamLogin} {isMobile ? (