certd/packages/ui/certd-server/metadata/access_west.yaml

68 lines
1.8 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

name: west
title: 西部数码授权
desc: ''
icon: tabler:map-west
input:
scope:
title: 权限范围
component:
name: a-select
vModel: value
options:
- value: account
label: 账户级别,对所有域名都有权限管理
- value: domain
label: 域名级别,仅能管理单个域名
helper: 选择权限范围
required: true
username:
title: 账号
helper: 你的登录账号
encrypt: false
required: false
mergeScript: |2-
return {
show:ctx.compute(({form})=>{
return form.access.scope === 'account'
})
}
apikey:
title: ApiKey
component:
placeholder: 账户级别的key对整个账户都有管理权限
helper: |-
账户级别的key对整个账户都有管理权限
前往https://www.west.cn/manager/API/APIconfig.asp手动设置“api连接密码”
encrypt: true
required: false
mergeScript: |2-
return {
show:ctx.compute(({form})=>{
return form.access.scope === 'account'
})
}
apidomainkey:
title: apidomainkey
component:
placeholder: 域名级别的key仅对单个域名有权限
helper: |-
域名级别的key仅对单个域名有权限。
前往[西部数据域名管理](https://www.west.cn/manager/domain/)点击域名右上方点击ApiKey获取密钥
encrypt: true
required: false
mergeScript: |2-
return {
show:ctx.compute(({form})=>{
return form.access.scope === 'domain'
})
}
type: builtIn
pluginType: access
scriptFilePath: ../../../plugins/plugin-west/index.js