refactor extenstion layer to simplify testing and maintenance (#577)

* refactor extenstion layer to simplify testing and maintenance

* generic extension config

* move loading code to loader
This commit is contained in:
Denys Vuika
2018-08-20 21:35:28 +01:00
committed by GitHub
parent 429e076820
commit 972b08700f
11 changed files with 394 additions and 330 deletions

View File

@@ -39,6 +39,7 @@ import { ToolbarButtonComponent } from './components/toolbar/toolbar-button.comp
import { MetadataTabComponent } from '../components/info-drawer/metadata-tab/metadata-tab.component';
import { CommentsTabComponent } from '../components/info-drawer/comments-tab/comments-tab.component';
import { VersionsTabComponent } from '../components/info-drawer/versions-tab/versions-tab.component';
import { ExtensionLoaderService } from './extension-loader.service';
export function setupExtensions(extensions: ExtensionService): Function {
extensions.setComponents({
@@ -106,6 +107,7 @@ export class CoreExtensionsModule {
return {
ngModule: CoreExtensionsModule,
providers: [
ExtensionLoaderService,
ExtensionService,
{
provide: APP_INITIALIZER,