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