mirror of https://github.com/certd/certd
feat: 支持在线自定义插件,无需源码开发
parent
88134ac130
commit
d0d9d68fe6
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue