mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
feat: 支持在线自定义插件,无需源码开发
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import yaml from "js-yaml";
|
||||
import { CertApplyPluginNames } from "@certd/plugin-cert";
|
||||
|
||||
|
||||
@@ -19,8 +18,6 @@ input:
|
||||
component:
|
||||
name: a-input
|
||||
allowClear: true
|
||||
|
||||
|
||||
`
|
||||
|
||||
const script = `
|
||||
@@ -34,7 +31,7 @@ return class DemoAccess extends BaseAccess {
|
||||
}
|
||||
`;
|
||||
return {
|
||||
metadata:yaml.dump(metadata),
|
||||
metadata:metadata,
|
||||
content: script
|
||||
};
|
||||
}
|
||||
@@ -131,7 +128,7 @@ return class DemoTask extends AbstractTaskPlugin {
|
||||
}
|
||||
`
|
||||
return {
|
||||
metadata: yaml.dump(metadata),
|
||||
metadata: metadata,
|
||||
content: script
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user