Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore]: Remove "DMS" in SQLE-UI #7

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/base/src/locale/en-US/dmsLogin.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// eslint-disable-next-line import/no-anonymous-default-export
export default {
powered: 'DMS',
pageTitle: 'DMS平台',
login: '登录',
otherMethod: '其他登录方式',

Expand All @@ -15,7 +13,7 @@ export default {
oauth: {
title: '用户绑定',
form: {
username: '绑定的DMS用户名'
username: '绑定的{{title}}用户名'
},
submitButton: '绑定并登录',
bindTips: '如果用户名不存在,会自动创建',
Expand Down
4 changes: 1 addition & 3 deletions packages/base/src/locale/zh-CN/dmsLogin.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// eslint-disable-next-line import/no-anonymous-default-export
export default {
powered: 'DMS',
pageTitle: 'DMS平台',
login: '登录',
otherMethod: '其他登录方式',

Expand All @@ -15,7 +13,7 @@ export default {
oauth: {
title: '用户绑定',
form: {
username: '绑定的DMS用户名'
username: '绑定的{{title}}用户名'
},
submitButton: '绑定并登录',
bindTips: '如果用户名不存在,会自动创建',
Expand Down
9 changes: 7 additions & 2 deletions packages/base/src/page/BindUser/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import dms from '@actiontech/shared/lib/api/base/service/dms';
import LoginLayout from '../Login/components/LoginLayout';
import { BasicButton, BasicInput } from '@actiontech/shared';
import { IconCommonUser, IconCommonPassword } from '../../icon/common';
import { DMS_DEFAULT_WEB_TITLE } from '@actiontech/shared/lib/data/common';

const BindUser = () => {
const navigate = useNavigate();
Expand Down Expand Up @@ -95,13 +96,17 @@ const BindUser = () => {
{
required: true,
message: t('common.form.rule.require', {
name: t('dmsLogin.oauth.form.username')
name: t('dmsLogin.oauth.form.username', {
title: DMS_DEFAULT_WEB_TITLE
})
})
}
]}
>
<BasicInput
placeholder={t('dmsLogin.oauth.form.username')}
placeholder={t('dmsLogin.oauth.form.username', {
title: DMS_DEFAULT_WEB_TITLE
})}
autoFocus
className="login-form-field"
prefix={<IconCommonUser />}
Expand Down
3 changes: 2 additions & 1 deletion packages/base/src/page/Nav/SideMenu/VersionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import DmsService from '@actiontech/shared/lib/api/base/service/dms';
import { Space, Typography } from 'antd5';
import { UI_VERSION } from '../../../scripts/version';
import { VersionModalDescribeTextStyleWrapper } from './style';
import { DMS_DEFAULT_WEB_TITLE } from '@actiontech/shared/lib/data/common';

const VersionModal: React.FC<{
open: boolean;
Expand Down Expand Up @@ -71,7 +72,7 @@ const VersionModal: React.FC<{
>
<Space direction="vertical" size="large">
<Space>
<Typography.Title level={2}>DMS</Typography.Title>
<Typography.Title level={2}>{DMS_DEFAULT_WEB_TITLE}</Typography.Title>
</Space>
<Space align="start" direction="vertical">
<Typography.Title level={5}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
IconBookMark,
IconCustomService
} from '../Icons/EnterpriseFeatureDisplay';
import { DMS_DEFAULT_WEB_TITLE } from '../../data/common';

const EnterpriseFeatureDisplay: React.FC<EnterpriseFeatureDisplayProps> = ({
children,
Expand All @@ -32,7 +33,7 @@ const EnterpriseFeatureDisplay: React.FC<EnterpriseFeatureDisplayProps> = ({
<Card className="ce-card-info" hoverable>
<Icon component={IconBookMark} className="bg-icon" />
<div className="info-cont-wrapper">
<div className="title">Action DMS</div>
<div className="title">Action {DMS_DEFAULT_WEB_TITLE}</div>
<p className="cont-tip">
{t('common.enterpriseFeatureDisplay.compareLink')}
</p>
Expand All @@ -52,7 +53,7 @@ const EnterpriseFeatureDisplay: React.FC<EnterpriseFeatureDisplayProps> = ({
<Card className="ce-card-info" hoverable>
<Icon component={IconCustomService} className="bg-icon" />
<div className="info-cont-wrapper">
<div className="title">Action DMS</div>
<div className="title">Action {DMS_DEFAULT_WEB_TITLE}</div>
<p className="cont-tip">
{t('common.enterpriseFeatureDisplay.businessLink', {
featureName
Expand Down
Loading