1 |
- import React from'react';import Logger from'./Logger';import Module from'../modules/Module';import Service from'../modules/Service';import Systems from'./Systems';class Import{constructor(){}import(a,b=''){for(var c in a)a[c].prototype instanceof Module?(a[c].Category=b,Systems.addModule(a[c])):a[c].prototype instanceof Service?(a[c].Category='Services/'+b,Systems.addService(a[c])):'object'==typeof a[c]&&this.import(a[c],[...b.split('/'),c].join('/'))}}export default new Import;
|