build: refresh metadata

This commit is contained in:
xiaojunnuo
2026-01-06 00:36:21 +08:00
parent 1d6a8bd851
commit 5eda05f007
5 changed files with 106 additions and 4 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
LEGO_VERSION=4.30.1
certd_plugin_loadmode=dev
certd_plugin_loadmode=metadata
@@ -0,0 +1,27 @@
name: zenlayer
title: Zenlayer授权
icon: svg:icon-lucky
desc: Zenlayer授权
input:
accessKeyId:
title: AccessKeyId
component:
placeholder: 访问密钥ID
helper: '[访问密钥管理](https://console.zenlayer.com/accessKey)获取'
required: true
encrypt: false
accessKeyPassword:
title: AccessKey Password
component:
placeholder: 访问密钥密码
required: true
encrypt: true
testRequest:
title: 测试
component:
name: api-test
action: TestRequest
helper: 点击测试接口是否正常
pluginType: access
type: builtIn
scriptFilePath: /plugins/plugin-zenlayer/access.js
@@ -0,0 +1,73 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: ZenlayerRefreshCert
title: Zenlayer-刷新证书
desc: 刷新Zenlayer CDN证书
icon: svg:icon-lucky
group: cdn
needPlus: false
input:
cert:
title: 域名证书
helper: 请选择前置任务输出的域名证书
component:
name: output-selector
from:
- ':cert:'
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: Zenlayer授权
component:
name: access-selector
type: zenlayer
required: true
order: 0
certList:
title: 证书ID列表
component:
name: remote-select
vModel: value
mode: tags
type: plugin
action: onGetCertList
search: false
pager: false
watches:
- certDomains
- accessId
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 要更新的Zenlayer证书ID列表
order: 0
output: {}
pluginType: deploy
type: builtIn
scriptFilePath: /plugins/plugin-zenlayer/plugins/plugin-refresh-cert.js