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";
|
import { CertApplyPluginNames } from "@certd/plugin-cert";
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,8 +18,6 @@ input:
|
||||||
component:
|
component:
|
||||||
name: a-input
|
name: a-input
|
||||||
allowClear: true
|
allowClear: true
|
||||||
|
|
||||||
|
|
||||||
`
|
`
|
||||||
|
|
||||||
const script = `
|
const script = `
|
||||||
|
@ -34,7 +31,7 @@ return class DemoAccess extends BaseAccess {
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
return {
|
return {
|
||||||
metadata:yaml.dump(metadata),
|
metadata:metadata,
|
||||||
content: script
|
content: script
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -131,7 +128,7 @@ return class DemoTask extends AbstractTaskPlugin {
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
return {
|
return {
|
||||||
metadata: yaml.dump(metadata),
|
metadata: metadata,
|
||||||
content: script
|
content: script
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue