feat: 【破坏性更新】插件改为metadata加载模式,plugin-cert、plugin-lib包部分代码转移到certd-server中,影响自定义插件,需要修改相关import引用

ssh、aliyun、tencent、qiniu、oss等 access和client需要转移import
This commit is contained in:
xiaojunnuo
2025-12-31 17:01:37 +08:00
parent 9c26598831
commit a3fb24993d
312 changed files with 14321 additions and 597 deletions

View File

@@ -0,0 +1,116 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: CdnflyDeployToCDN
title: cdnfly-部署证书到cdnfly
icon: majesticons:cloud-line
group: cdn
desc: cdnfly
needPlus: false
input:
cert:
title: 域名证书
helper: 请选择前置任务输出的域名证书
component:
name: output-selector
from:
- ':cert:'
required: true
order: 0
certDomains:
title: 当前证书域名
component:
name: cert-domains-getter
mergeScript: |2-
return {
component:{
inputKey: ctx.compute(({form})=>{
return form.cert
}),
}
}
template: false
required: false
order: 0
accessId:
title: cdnfly授权
helper: cdnfly授权
component:
name: access-selector
type: cdnfly
required: true
order: 0
autoMatch:
title: 自动匹配站点
component:
name: a-switch
vModel: checked
helper: |-
是否自动匹配站点进行部署
如果选择自动匹配,则下方参数无需填写
order: 0
certId:
title: 证书ID
component:
name: remote-select
vModel: value
mode: tags
type: plugin
typeName: CdnflyDeployToCDNPlugin
action: onGetCertList
search: true
pager: false
watches:
- certDomains
- accessId
- cert
- accessId
required: false
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 请选择证书Id需要先手动上传一次证书后续可以自动更新证书【推荐】
order: 0
siteId:
title: 网站Id
component:
name: remote-select
vModel: value
mode: tags
type: plugin
action: onGetSiteList
search: true
pager: false
watches:
- certDomains
- accessId
- url
- cert
- accessId
required: false
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 请选择要部署证书的网站Id
order: 0
output: {}
pluginType: deploy
type: builtIn
scriptFilePath: ../../../plugins/plugin-plus/cdnfly/plugins/plugin-deploy-to-cdn.js