Skip to content

Commit

Permalink
fix: fast enter and tips (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJohw authored Nov 28, 2024
1 parent 831635e commit afb3caf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/pages/src/hooks/useValidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const useValidate = () => {
};
const id = {
validator: (value: string) => /^([a-zA-Z])([a-zA-Z0-9-]){2,31}$/.test(value),
message: t('由3-32位字母、数字、连接符(-)字符组成,以字母开头'),
message: t('由3-32位小写字母、数字、连接符(-)字符组成,以字母开头'),
trigger: 'blur',
};

Expand Down
4 changes: 2 additions & 2 deletions src/pages/src/language/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"用户对象类": "User Object Class",
"用户过滤器": "User filter",
"过滤器中无需指定对象类,如(objectclass=xxx)": "No object class needs to be specified in the filter, such as (objectclass=xxx)",
"支持同步多个 LDAP 树(森林),需为每棵树指定相应的BaseDN": "Support synchronizing multiple LDAP trees (forests), with corresponding BaseDN specified for each tree",
"支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN": "Support synchronizing multiple LDAP trees (forests), with corresponding BaseDN specified for each tree",
"部门对象类": "Department Object Class",
"LDAP 服务地址": "LDAP service address",
"Bind DN 密码": "Bind DN password",
Expand Down Expand Up @@ -313,7 +313,7 @@
"请输入正确的手机号格式": "Please enter the correct phone number format",
"由1-64位字符组成": "Consists of 1-64 characters",
"由1-8位字符组成": "Consists of 1-8 characters",
"由3-32位字母、数字、连接符(-)字符组成,以字母开头": "Consists of 3-32 letters, numbers, and hyphen (-) characters, starting with a letter",
"由3-32位小写字母、数字、连接符(-)字符组成,以字母开头": "Consists of 3-32 letters, numbers, and hyphen (-) characters, starting with a letter",
"由1-32位字母、数字、下划线(_)、点(.)、减号(-)字符组成,以字母或数字开头": "Consists of 1-32 letters, numbers, underscores (_), dots (.), and hyphens (-), starting with a letter or number",
"请输入正确的邮箱地址": "Please enter a correct email address",
"请输入正确的手机号码": "Please enter a correct mobile number",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/src/language/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"用户对象类": "用户对象类",
"用户过滤器": "用户过滤器",
"过滤器中无需指定对象类,如(objectclass=xxx)": "过滤器中无需指定对象类,如(objectclass=xxx)",
"支持同步多个 LDAP 树(森林),需为每棵树指定相应的BaseDN": "支持同步多个 LDAP 树(森林),需为每棵树指定相应的BaseDN",
"支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN": "支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN",
"部门对象类": "部门对象类",
"LDAP 服务地址": "LDAP 服务地址",
"Bind DN 密码": "Bind DN 密码",
Expand Down Expand Up @@ -313,7 +313,7 @@
"请输入正确的手机号格式": "请输入正确的手机号格式",
"由1-64位字符组成": "由1-64位字符组成",
"由1-8位字符组成": "由1-8位字符组成",
"由3-32位字母、数字、连接符(-)字符组成,以字母开头": "由3-32位字母、数字、连接符(-)字符组成,以字母开头",
"由3-32位小写字母、数字、连接符(-)字符组成,以字母开头": "由3-32位小写字母、数字、连接符(-)字符组成,以字母开头",
"由1-32位字母、数字、下划线(_)、点(.)、减号(-)字符组成,以字母或数字开头": "由1-32位字母、数字、下划线(_)、点(.)、减号(-)字符组成,以字母或数字开头",
"请输入正确的邮箱地址": "请输入正确的邮箱地址",
"请输入正确的手机号码": "请输入正确的手机号码",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
v-else
v-bkloading="{ loading: isLoading }"
style="margin-top: 18px"
:height="290"
:min-height="290"
:columns="showColumns"
:data="tableData"
stripe
Expand Down
7 changes: 4 additions & 3 deletions src/pages/src/views/setting/data-source/LdapConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<bk-form-item
class="w-[560px]"
:label="$t('用户 Base DN')"
:description="$t('支持同步多个 LDAP 树(森林),需为每棵树指定相应的BaseDN')">
:description="$t('支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN')">
<div
v-for="(item, index) in ldapConfigData.data_config.user_search_base_dns"
:key="index"
Expand Down Expand Up @@ -103,7 +103,7 @@
<bk-form-item
class="w-[560px]"
:label="$t('部门 Base DN')"
:description="$t('支持同步多个 LDAP 树(森林),需为每棵树指定相应的BaseDN')">
:description="$t('支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN')">
<div
v-for="(item, index) in ldapConfigData.data_config.dept_search_base_dns"
:key="index"
Expand Down Expand Up @@ -190,7 +190,8 @@
</bk-form-item>
<bk-form-item
class="w-[560px]" :label="$t('用户组 Base DN')" required
property="user_group_config.search_base_dns">
property="user_group_config.search_base_dns"
:description="$t('支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN')">
<div
v-for="(item, index) in fieldSettingData.user_group_config.search_base_dns"
:key="index"
Expand Down

0 comments on commit afb3caf

Please sign in to comment.