Skip to content

Commit

Permalink
fix: 键值型配置服务批量导入时格式示例优化--bug=135409861 (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuikill authored Dec 12, 2024
1 parent 5599ffe commit cdd3a57
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ui/src/i18n/en-us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ export default {
'敏感数据不可见,无法查看实际内容': 'Sensitive data is not visible and cannot view the actual content',
'普通文本格式:': 'Normal text format:',
'key 数据类型 value 描述(可选)': 'key data_type value description (optional)',
'敏感文本格式:': 'Sensitive text format',
'敏感文本格式 (暂只支持password、secret_key、token三种凭证类型):': 'Sensitive text format (currently only supports three credential types: password, secret_key, token):',
'key 数据类型 凭证类型 value 是否可见 描述(可选)': 'key data_type credential_type value visibility description (optional)',
'密码示例:': 'Password example:',
'API密钥示例:': 'API key example:',
Expand Down
2 changes: 1 addition & 1 deletion ui/src/i18n/zh-cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ export default {
'敏感数据不可见,无法查看实际内容': '敏感数据不可见,无法查看实际内容',
'普通文本格式:': '普通文本格式:',
'key 数据类型 value 描述(可选)': 'key 数据类型 value 描述(可选)',
'敏感文本格式:': '敏感文本格式:',
'敏感文本格式 (暂只支持password、secret_key、token三种凭证类型):': '敏感文本格式 (暂只支持password、secret_key、token三种凭证类型):',
'key 数据类型 凭证类型 value 是否可见 描述(可选)': 'key 数据类型 凭证类型 value 是否可见 描述(可选)',
'密码示例:': '密码示例:',
'API密钥示例:': 'API密钥示例:',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
],
},
{
formatTitle: t('敏感文本格式:'),
formatTitle: t('敏感文本格式 (暂只支持password、secret_key、token三种凭证类型)'),
formatContent: t('key 数据类型 凭证类型 value 是否可见 描述(可选)'),
example: [
{
Expand Down Expand Up @@ -189,12 +189,12 @@ access_token_name secret token access_token_value invisible`;
"secret_type": "token",
"value": "43aCW6xQaseokNwhJRRDqFXrtfvzQFdb"
},
"user_name": {
"custom": {
"kv_type": "secret",
"memo": "",
"secret_hidden": false,
"secret_type": "password",
"value": "password_value"
"secret_type": "custom",
"value": "custom_value"
}
}`;
}
Expand Down Expand Up @@ -244,12 +244,12 @@ token:
secret_hidden: false
secret_type: token
value: Z9AQpo3zoZ0DUG4pJX5C9A0QKQgLLlp5WpaeiE19hdtUCgqBtXIZlGXz5qMyDbFJ
user_name:
custom:
kv_type: secret
memo: ""
secret_hidden: false
secret_type: password
value: password_value`;
secret_type: custom
value: custom_value`;
});
/* eslint-enable */
Expand All @@ -259,7 +259,7 @@ user_name:
"配置项名称": {
"kv_type": "数据类型,支持以下类型:string、number、text、json、xml、yaml、secret",
"value": "配置项的具体值",
"secret_type": "密钥类型,仅在kv_type为secret时有效,支持的类型包括:password、secret_key、certificate、token",
"secret_type": "密钥类型,仅在kv_type为secret时有效,支持的类型包括:password、secret_key、certificate、token、custom",
"secret_hidden": "指示配置项值是否可见,仅在kv_type为secret时有效",
"memo": "对配置项的描述"
}
Expand Down

0 comments on commit cdd3a57

Please sign in to comment.