mirror of
https://github.com/certd/certd.git
synced 2026-04-14 04:20:52 +08:00
chore: metadata update
This commit is contained in:
@@ -33,6 +33,22 @@ export default async function loadModules(dir) {
|
||||
if(file === "dist/plugins/index.js" || file === "dist\\plugins\\index.js"){
|
||||
continue
|
||||
}
|
||||
const content = fs.readFileSync(file, 'utf8')
|
||||
const lines = content.split('\n')
|
||||
let allExport = true
|
||||
for (let line of lines) {
|
||||
line = line.trim()
|
||||
if (!line || line.startsWith("//")) {
|
||||
continue
|
||||
}
|
||||
if(!line.startsWith("export ")){
|
||||
allExport = false
|
||||
break
|
||||
}
|
||||
}
|
||||
if (allExport) {
|
||||
continue
|
||||
}
|
||||
try {
|
||||
// 转换为 file:// URL(Windows 必需)
|
||||
const moduleUrl = pathToFileURL(file).href
|
||||
@@ -87,7 +103,7 @@ async function genMetadata(){
|
||||
const filePath = path.join(`./metadata/${pluginDefine.pluginType}_${pluginDefine.name}.yaml`)
|
||||
|
||||
pluginDefine.scriptFilePath = location
|
||||
console.log(location)
|
||||
console.log(location)
|
||||
const data = yaml.dump(pluginDefine)
|
||||
fs.writeFileSync(filePath,data ,'utf8')
|
||||
}
|
||||
|
||||
@@ -19,4 +19,4 @@ input:
|
||||
encrypt: true
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-51dns/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-51dns/access.js
|
||||
|
||||
@@ -21,4 +21,4 @@ input:
|
||||
encrypt: true
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-cachefly/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-cachefly/access.js
|
||||
|
||||
@@ -21,4 +21,4 @@ input:
|
||||
encrypt: true
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-gcore/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-gcore/access.js
|
||||
|
||||
@@ -25,4 +25,4 @@ input:
|
||||
helper: 点击测试接口是否正常
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-apisix/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-apisix/access.js
|
||||
|
||||
@@ -19,4 +19,4 @@ input:
|
||||
helper: 请妥善保管您的安全访问密钥。您可以在AWS管理控制台的IAM中创建新的访问密钥。
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-aws-cn/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aws-cn/access.js
|
||||
|
||||
@@ -167,4 +167,4 @@ input:
|
||||
value: sa-east-1
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-aws/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aws/access.js
|
||||
|
||||
@@ -21,4 +21,4 @@ input:
|
||||
encrypt: false
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-cloudflare/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-cloudflare/access.js
|
||||
|
||||
@@ -22,4 +22,4 @@ input:
|
||||
helper: 点击测试接口是否正常
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-cmcc/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-cmcc/access.js
|
||||
|
||||
@@ -16,4 +16,4 @@ input:
|
||||
encrypt: true
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-demo/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-demo/access.js
|
||||
|
||||
@@ -19,4 +19,4 @@ input:
|
||||
encrypt: true
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-dnsla/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-dnsla/access.js
|
||||
|
||||
@@ -19,4 +19,4 @@ input:
|
||||
encrypt: true
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-doge/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-doge/access.js
|
||||
|
||||
@@ -25,4 +25,4 @@ input:
|
||||
helper: 点击测试接口是否正常
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-dokploy/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-dokploy/access.js
|
||||
|
||||
@@ -46,4 +46,4 @@ input:
|
||||
helper: 点击测试接口是否正常
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-farcdn/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-farcdn/access.js
|
||||
|
||||
@@ -56,4 +56,4 @@ input:
|
||||
helper: 点击测试接口看是否正常
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-flex/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-flex/access.js
|
||||
|
||||
@@ -40,4 +40,4 @@ input:
|
||||
helper: 点击测试接口是否正常
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-github/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-github/access.js
|
||||
|
||||
@@ -32,4 +32,4 @@ input:
|
||||
helper: 点击测试接口是否正常(注意账号中必须要有50个域名才能使用API接口)
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-godaddy/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-godaddy/access.js
|
||||
|
||||
@@ -48,4 +48,4 @@ input:
|
||||
helper: 点击测试接口是否正常
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-goedge/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-goedge/access.js
|
||||
|
||||
@@ -19,4 +19,4 @@ input:
|
||||
encrypt: true
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-huawei/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-huawei/access/huawei-access.js
|
||||
|
||||
@@ -18,4 +18,4 @@ input:
|
||||
encrypt: true
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-jdcloud/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-jdcloud/access.js
|
||||
|
||||
@@ -23,4 +23,4 @@ input:
|
||||
helper: 点击测试接口是否正常
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-ksyun/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-ksyun/access.js
|
||||
|
||||
@@ -16,4 +16,4 @@ input:
|
||||
encrypt: true
|
||||
type: builtIn
|
||||
pluginType: access
|
||||
scriptFilePath: ../../../plugins/plugin-namesilo/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-namesilo/access.js
|
||||
|
||||
@@ -168,4 +168,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-alb/index.js
|
||||
|
||||
@@ -101,4 +101,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-esa/index.js
|
||||
|
||||
@@ -150,4 +150,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-fc/index.js
|
||||
|
||||
@@ -160,4 +160,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-nlb/index.js
|
||||
|
||||
@@ -184,4 +184,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-slb/index.js
|
||||
|
||||
@@ -88,4 +88,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-vod/index.js
|
||||
|
||||
@@ -127,4 +127,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-waf/index.js
|
||||
|
||||
@@ -164,4 +164,4 @@ output:
|
||||
type: HostJksPath
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-host/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-host/plugin/copy-to-local/index.js
|
||||
|
||||
@@ -134,4 +134,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-apigateway/index.js
|
||||
|
||||
@@ -140,4 +140,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-apig/index.js
|
||||
|
||||
@@ -108,4 +108,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-cdn/index.js
|
||||
|
||||
@@ -78,4 +78,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-dcdn/index.js
|
||||
|
||||
@@ -175,4 +175,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aliyun/plugin/deploy-to-oss/index.js
|
||||
|
||||
@@ -80,4 +80,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-doge/plugins/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-doge/plugins/deploy-to-cdn/index.js
|
||||
|
||||
@@ -82,4 +82,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-huawei/plugins/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-huawei/plugins/deploy-to-cdn/index.js
|
||||
|
||||
@@ -102,4 +102,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-huawei/plugins/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-huawei/plugins/deploy-to-obs/index.js
|
||||
|
||||
@@ -29,4 +29,4 @@ input:
|
||||
output: {}
|
||||
type: builtIn
|
||||
pluginType: deploy
|
||||
scriptFilePath: ../../../plugins/plugin-host/plugin/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-host/plugin/host-shell-execute/index.js
|
||||
|
||||
@@ -6,4 +6,4 @@ accessType: 51dns
|
||||
order: 999
|
||||
type: builtIn
|
||||
pluginType: dnsProvider
|
||||
scriptFilePath: ../../../plugins/plugin-51dns/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-51dns/dns-provider.js
|
||||
|
||||
@@ -6,4 +6,4 @@ icon: svg:icon-aws
|
||||
order: 0
|
||||
type: builtIn
|
||||
pluginType: dnsProvider
|
||||
scriptFilePath: ../../../plugins/plugin-aws/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-aws/aws-route53-provider.js
|
||||
|
||||
@@ -5,4 +5,4 @@ icon: simple-icons:cloudflare
|
||||
accessType: cloudflare
|
||||
type: builtIn
|
||||
pluginType: dnsProvider
|
||||
scriptFilePath: ../../../plugins/plugin-cloudflare/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-cloudflare/dns-provider.js
|
||||
|
||||
@@ -6,4 +6,4 @@ accessType: demo
|
||||
order: 99
|
||||
type: builtIn
|
||||
pluginType: dnsProvider
|
||||
scriptFilePath: ../../../plugins/plugin-demo/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-demo/dns-provider.js
|
||||
|
||||
@@ -5,4 +5,4 @@ icon: arcticons:dns-changer-3
|
||||
accessType: dnsla
|
||||
type: builtIn
|
||||
pluginType: dnsProvider
|
||||
scriptFilePath: ../../../plugins/plugin-dnsla/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-dnsla/dns-provider.js
|
||||
|
||||
@@ -6,4 +6,4 @@ accessType: godaddy
|
||||
order: 10
|
||||
type: builtIn
|
||||
pluginType: dnsProvider
|
||||
scriptFilePath: ../../../plugins/plugin-godaddy/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-godaddy/dns-provider.js
|
||||
|
||||
@@ -6,4 +6,4 @@ icon: svg:icon-jdcloud
|
||||
order: 3
|
||||
type: builtIn
|
||||
pluginType: dnsProvider
|
||||
scriptFilePath: ../../../plugins/plugin-jdcloud/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-jdcloud/dns-provider.js
|
||||
|
||||
@@ -5,4 +5,4 @@ icon: simple-icons:namesilo
|
||||
accessType: namesilo
|
||||
type: builtIn
|
||||
pluginType: dnsProvider
|
||||
scriptFilePath: ../../../plugins/plugin-namesilo/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-namesilo/dns-provider.js
|
||||
|
||||
@@ -17,4 +17,4 @@ input:
|
||||
required: true
|
||||
type: builtIn
|
||||
pluginType: notification
|
||||
scriptFilePath: ../../../plugins/plugin-notification/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-notification/anpush/index.js
|
||||
|
||||
@@ -18,4 +18,4 @@ input:
|
||||
required: false
|
||||
type: builtIn
|
||||
pluginType: notification
|
||||
scriptFilePath: ../../../plugins/plugin-notification/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-notification/bark/index.js
|
||||
|
||||
@@ -48,4 +48,4 @@ input:
|
||||
required: false
|
||||
type: builtIn
|
||||
pluginType: notification
|
||||
scriptFilePath: ../../../plugins/plugin-notification/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-notification/dingtalk/index.js
|
||||
|
||||
@@ -35,4 +35,4 @@ input:
|
||||
required: false
|
||||
type: builtIn
|
||||
pluginType: notification
|
||||
scriptFilePath: ../../../plugins/plugin-notification/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-notification/discord/index.js
|
||||
|
||||
@@ -15,4 +15,4 @@ input:
|
||||
需要先[配置邮件服务器](#/sys/settings/email)
|
||||
type: builtIn
|
||||
pluginType: notification
|
||||
scriptFilePath: ../../../plugins/plugin-notification/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-notification/email/index.js
|
||||
|
||||
@@ -40,4 +40,4 @@ input:
|
||||
required: false
|
||||
type: builtIn
|
||||
pluginType: notification
|
||||
scriptFilePath: ../../../plugins/plugin-notification/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-notification/feishu/index.js
|
||||
|
||||
@@ -11,4 +11,4 @@ input:
|
||||
required: true
|
||||
type: builtIn
|
||||
pluginType: notification
|
||||
scriptFilePath: ../../../plugins/plugin-notification/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-notification/iyuu/index.js
|
||||
|
||||
@@ -15,4 +15,4 @@ input:
|
||||
required: true
|
||||
type: builtIn
|
||||
pluginType: notification
|
||||
scriptFilePath: ../../../plugins/plugin-notification/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-notification/meow/index.js
|
||||
|
||||
@@ -18,4 +18,4 @@ input:
|
||||
placeholder: captchaKey
|
||||
required: true
|
||||
type: builtIn
|
||||
scriptFilePath: ../../../plugins/plugin-captcha/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-captcha/geetest/index.js
|
||||
|
||||
@@ -5,4 +5,4 @@ desc: ''
|
||||
showTest: false
|
||||
input: {}
|
||||
type: builtIn
|
||||
scriptFilePath: ../../../plugins/plugin-captcha/index.js
|
||||
scriptFilePath: ../../../plugins/plugin-captcha/image/index.js
|
||||
|
||||
Reference in New Issue
Block a user