Skip to content

Commit 6507e19

Browse files
authored
Merge pull request #652 from actiontech/feature/issue-560
[feature](System): Add database account password policy wrapper
2 parents 5bfc592 + 5c95878 commit 6507e19

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

packages/base/src/locale/zh-CN/dmsSystem.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export default {
1616
globalConfiguration: '全局配置',
1717
license: '许可证',
1818
personalize: '个性化设置',
19-
gitSSH: 'Git SSH配置'
19+
gitSSH: 'Git SSH配置',
20+
databaseAccountPasswordPolicy: '数据库账号密码策略'
2021
},
2122

2223
gitSSH: {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
* Do not modify this file in the dms-ui repository
3+
*/
4+
const DatabaseAccountPasswordPolicyForm = () => null;
5+
6+
export default DatabaseAccountPasswordPolicyForm;

packages/base/src/page/System/index.enum.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export enum SystemSegmentedKeyEnum {
55
GlobalConfiguration = 'global_configuration',
66
License = 'license',
77
PersonalizeSetting = 'personalize',
8-
GitSSHConfig = 'git_ssh_config'
8+
GitSSHConfig = 'git_ssh_config',
9+
DatabaseAccountPasswordPolicy = 'database_account_password_policy'
910
}

packages/base/src/page/System/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import LoginConnection from './LoginConnection/index';
1414
import License from './License';
1515
import PersonalizeSetting from './PersonalizeSetting';
1616
import GitSSHConfig from './GitSSHConfig';
17+
import DatabaseAccountPasswordPolicyForm from './DatabaseAccountPasswordPolicy';
1718
import { ROUTE_PATHS } from '@actiontech/shared/lib/data/routePaths';
1819

1920
const System = () => {
@@ -67,7 +68,14 @@ const System = () => {
6768
label: t('dmsSystem.tabPaneTitle.gitSSH'),
6869
value: SystemSegmentedKeyEnum.GitSSHConfig,
6970
components: <GitSSHConfig />
71+
},
72+
// #if [provision]
73+
{
74+
label: t('dmsSystem.tabPaneTitle.databaseAccountPasswordPolicy'),
75+
value: SystemSegmentedKeyEnum.DatabaseAccountPasswordPolicy,
76+
components: <DatabaseAccountPasswordPolicyForm />
7077
}
78+
// #endif
7179
],
7280
[t]
7381
);

0 commit comments

Comments
 (0)