mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
feat: 【破坏性更新】插件改为metadata加载模式,plugin-cert、plugin-lib包部分代码转移到certd-server中,影响自定义插件,需要修改相关import引用
ssh、aliyun、tencent、qiniu、oss等 access和client需要转移import
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
name: lecdn
|
||||
title: LeCDN授权
|
||||
desc: ''
|
||||
icon: material-symbols:shield-outline
|
||||
input:
|
||||
url:
|
||||
title: LeCDN系统网址
|
||||
component:
|
||||
name: a-input
|
||||
vModel: value
|
||||
required: true
|
||||
helper: 例如:http://demo.xxxx.cn
|
||||
type:
|
||||
title: 认证类型
|
||||
component:
|
||||
placeholder: 请选择
|
||||
name: a-select
|
||||
vModel: value
|
||||
options:
|
||||
- value: token
|
||||
label: API访问令牌
|
||||
- value: password
|
||||
label: 账号密码(旧版本)
|
||||
required: true
|
||||
username:
|
||||
title: 用户名
|
||||
component:
|
||||
placeholder: username
|
||||
mergeScript: |2-
|
||||
|
||||
return {
|
||||
show:ctx.compute(({form})=>{
|
||||
return form.access.type === 'password';
|
||||
})
|
||||
}
|
||||
|
||||
required: true
|
||||
encrypt: false
|
||||
password:
|
||||
title: 登录密码
|
||||
component:
|
||||
placeholder: password
|
||||
required: true
|
||||
encrypt: true
|
||||
mergeScript: |2-
|
||||
|
||||
return {
|
||||
show:ctx.compute(({form})=>{
|
||||
return form.access.type === 'password';
|
||||
})
|
||||
}
|
||||
|
||||
apiToken:
|
||||
title: Api访问令牌
|
||||
component:
|
||||
placeholder: apiToken
|
||||
required: true
|
||||
encrypt: true
|
||||
mergeScript: |2-
|
||||
|
||||
return {
|
||||
show:ctx.compute(({form})=>{
|
||||
return form.access.type === 'token';
|
||||
})
|
||||
}
|
||||
|
||||
pluginType: access
|
||||
type: builtIn
|
||||
scriptFilePath: ../../../plugins/plugin-plus/lecdn/access.js
|
||||
Reference in New Issue
Block a user