Skip to content

Commit 2a5f1b6

Browse files
perf: Advanced Assistant App AES Configuration Style
1 parent 89491a8 commit 2a5f1b6

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

frontend/src/i18n/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,8 @@
514514
"creating_advanced_applications": "Creating Advanced Applications",
515515
"configure_interface": "Configure interface",
516516
"interface_url": "Interface URL",
517-
"aes_enable": "Enable AES encryption. The fields (host, user, password, dataBase, schema) are all encrypted using the AES-CBC-PKCS5Padding encryption method",
517+
"aes_enable": "Enable AES encryption",
518+
"aes_enable_tips": "The fields (host, user, password, dataBase, schema) are all encrypted using the AES-CBC-PKCS5Padding encryption method",
518519
"bit": "bit",
519520
"credential_acquisition_method": "Credential acquisition method",
520521
"table_notes": "Table notes",

frontend/src/i18n/zh-CN.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@
513513
"private": "私有",
514514
"configure_interface": "配置接口",
515515
"interface_url": "接口 URL",
516-
"aes_enable": "开启 AES 加密,加密字段 (host, user, password, dataBase, schema) 均采用 AES-CBC-PKCS5Padding 加密方式",
516+
"aes_enable": "开启 AES 加密",
517+
"aes_enable_tips": "加密字段 (host, user, password, dataBase, schema) 均采用 AES-CBC-PKCS5Padding 加密方式",
517518
"bit": "",
518519
"creating_advanced_applications": "创建高级应用",
519520
"credential_acquisition_method": "凭证获取方式",

frontend/src/views/system/embedded/iframe.vue

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,13 +725,20 @@ const saveHandler = () => {
725725
autocomplete="off"
726726
/>
727727
</el-form-item>
728-
<el-form-item prop="AES" :label="t('embedded.aes_enable')">
728+
<el-form-item prop="AES" class="custom-require">
729+
<template #label>
730+
<span class="custom-require_danger">{{ t('embedded.aes_enable') }}</span>
731+
</template>
732+
729733
<el-switch v-model="urlForm.encrypt" />
734+
<span class="aes-encrypt-tips">{{ t('embedded.aes_enable_tips') }}</span>
730735
</el-form-item>
731736
<el-form-item v-if="urlForm.encrypt" prop="aes_key" label="AES Key">
732737
<el-input
733738
v-model="urlForm.aes_key"
734739
clearable
740+
type="password"
741+
show-password
735742
:placeholder="
736743
$t('datasource.please_enter') +
737744
$t('common.empty') +
@@ -1175,6 +1182,13 @@ const saveHandler = () => {
11751182
&:last-child {
11761183
margin-bottom: 0;
11771184
}
1185+
.aes-encrypt-tips {
1186+
font-weight: 400;
1187+
font-size: 14px;
1188+
line-height: 22px;
1189+
color: #ff8800;
1190+
margin-left: 8px;
1191+
}
11781192
}
11791193
}
11801194

0 commit comments

Comments
 (0)