Skip to content

Commit

Permalink
style: CloudFlare DNS 账号增加提示 (1Panel-dev#3648)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 authored Jan 18, 2024
1 parent fce0ac2 commit 1e5cd23
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions frontend/src/lang/modules/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1930,6 +1930,7 @@ const message = {
httpHelper2: 'Unable to apply for a generic domain name certificate in HTTP mode',
skipDNSCheck: 'Skip DNS check',
skipDNSCheckHelper: 'If there is an application timeout problem, please check here, otherwise do not check it',
cfHelper: 'Do not use Global API Key',
},
firewall: {
create: 'Create rule',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/modules/tw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,7 @@ const message = {
httpHelper2: 'HTTP 模式無法申請泛網域憑證',
skipDNSCheck: '跳 DNS 校驗',
skipDNSCheckHelper: '如果出現申請超時問題請勾選此處其他情況請勿勾選',
cfHelper: '請勿使用 Global API Key',
},
firewall: {
create: '創建規則',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/modules/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,7 @@ const message = {
httpHelper2: 'HTTP 模式无法申请泛域名证书',
skipDNSCheck: '跳 DNS 校验',
skipDNSCheckHelper: '如果出现申请超时问题请勾选此处其他情况请勿勾选',
cfHelper: '请勿使用 Global API Key',
},
firewall: {
create: '创建规则',
Expand Down
14 changes: 8 additions & 6 deletions frontend/src/views/website/ssl/dns-account/create/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,21 @@
<el-form-item label="EMAIL" prop="authorization.email">
<el-input v-model.trim="account.authorization['email']"></el-input>
</el-form-item>
<el-form-item label="API Token" prop="authorization.apiKey">
<el-input v-model.trim="account.authorization['apiKey']"></el-input>
<span class="input-help">
{{ $t('ssl.cfHelper') }}
</span>
</el-form-item>
</div>
<el-form-item
label="API Key"
prop="authorization.apiKey"
v-if="
account.type === 'CloudFlare' ||
account.type === 'NameCheap' ||
account.type === 'NameSilo' ||
account.type === 'Godaddy'
"
v-if="account.type === 'NameCheap' || account.type === 'NameSilo' || account.type === 'Godaddy'"
>
<el-input v-model.trim="account.authorization['apiKey']"></el-input>
</el-form-item>

<el-form-item label="API User" prop="authorization.apiUser" v-if="account.type === 'NameCheap'">
<el-input v-model.trim="account.authorization['apiUser']"></el-input>
</el-form-item>
Expand Down

0 comments on commit 1e5cd23

Please sign in to comment.