mirror of https://github.com/certd/certd
chore:
parent
66b95d52fd
commit
4e768ec50f
|
@ -1,5 +1,6 @@
|
||||||
import { Provide, Scope, ScopeEnum } from '@midwayjs/core';
|
import { Provide, Scope, ScopeEnum } from '@midwayjs/core';
|
||||||
import { pluginGroups, pluginRegistry } from '@certd/pipeline';
|
import { pluginGroups, pluginRegistry } from '@certd/pipeline';
|
||||||
|
import { cloneDeep } from 'lodash-es';
|
||||||
|
|
||||||
@Provide()
|
@Provide()
|
||||||
@Scope(ScopeEnum.Singleton)
|
@Scope(ScopeEnum.Singleton)
|
||||||
|
@ -18,6 +19,6 @@ export class BuiltInPluginService {
|
||||||
}
|
}
|
||||||
|
|
||||||
getGroups() {
|
getGroups() {
|
||||||
return pluginGroups;
|
return cloneDeep(pluginGroups);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,13 @@ export class PluginService extends BaseService<PluginEntity> {
|
||||||
|
|
||||||
async getEnabledBuildInGroup() {
|
async getEnabledBuildInGroup() {
|
||||||
const groups = this.builtInPluginService.getGroups();
|
const groups = this.builtInPluginService.getGroups();
|
||||||
|
for (const key in groups) {
|
||||||
|
const group = groups[key];
|
||||||
|
group.plugins.forEach(item => {
|
||||||
|
delete item.input;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (!isComm()) {
|
if (!isComm()) {
|
||||||
return groups;
|
return groups;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue