|
|
@@ -1,29 +1,29 @@
|
|
|
import { NgModule, ModuleWithProviders } from '@angular/core'
|
|
|
+console.info((<any>global).require.resolve('@angular/core'))
|
|
|
import { BrowserModule } from '@angular/platform-browser'
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
|
|
|
import { FormsModule } from '@angular/forms'
|
|
|
import { ToasterModule } from 'angular2-toaster'
|
|
|
import { NgbModule } from '@ng-bootstrap/ng-bootstrap'
|
|
|
|
|
|
-import { AppService } from 'services/app'
|
|
|
-import { ConfigService } from 'services/config'
|
|
|
-import { ElectronService } from 'services/electron'
|
|
|
-import { HostAppService } from 'services/hostApp'
|
|
|
-import { LogService } from 'services/log'
|
|
|
-import { HotkeysService, AppHotkeyProvider } from 'services/hotkeys'
|
|
|
-import { ModalService } from 'services/modal'
|
|
|
-import { NotifyService } from 'services/notify'
|
|
|
-import { PluginsService } from 'services/plugins'
|
|
|
-import { QuitterService } from 'services/quitter'
|
|
|
-import { DockingService } from 'services/docking'
|
|
|
-import { TabRecoveryService } from 'services/tabRecovery'
|
|
|
+import { AppService } from './services/app'
|
|
|
+import { ConfigService } from './services/config'
|
|
|
+import { ElectronService } from './services/electron'
|
|
|
+import { HostAppService } from './services/hostApp'
|
|
|
+import { LogService } from './services/log'
|
|
|
+import { HotkeysService, AppHotkeyProvider } from './services/hotkeys'
|
|
|
+import { NotifyService } from './services/notify'
|
|
|
+import { PluginsService } from './services/plugins'
|
|
|
+import { QuitterService } from './services/quitter'
|
|
|
+import { DockingService } from './services/docking'
|
|
|
+import { TabRecoveryService } from './services/tabRecovery'
|
|
|
|
|
|
-import { AppRootComponent } from 'components/appRoot'
|
|
|
-import { TabBodyComponent } from 'components/tabBody'
|
|
|
-import { TabHeaderComponent } from 'components/tabHeader'
|
|
|
-import { TitleBarComponent } from 'components/titleBar'
|
|
|
+import { AppRootComponent } from './components/appRoot'
|
|
|
+import { TabBodyComponent } from './components/tabBody'
|
|
|
+import { TabHeaderComponent } from './components/tabHeader'
|
|
|
+import { TitleBarComponent } from './components/titleBar'
|
|
|
|
|
|
-import { HotkeyProvider } from 'api/hotkeyProvider'
|
|
|
+import { HotkeyProvider } from './api/hotkeyProvider'
|
|
|
|
|
|
|
|
|
const PROVIDERS = [
|
|
|
@@ -34,7 +34,6 @@ const PROVIDERS = [
|
|
|
HostAppService,
|
|
|
HotkeysService,
|
|
|
LogService,
|
|
|
- ModalService,
|
|
|
NotifyService,
|
|
|
PluginsService,
|
|
|
TabRecoveryService,
|
|
|
@@ -52,19 +51,17 @@ const PROVIDERS = [
|
|
|
NgbModule,
|
|
|
],
|
|
|
providers: PROVIDERS,
|
|
|
- entryComponents: [
|
|
|
- ],
|
|
|
declarations: [
|
|
|
AppRootComponent,
|
|
|
TabBodyComponent,
|
|
|
TabHeaderComponent,
|
|
|
TitleBarComponent,
|
|
|
],
|
|
|
- bootstrap: [
|
|
|
- AppRootComponent,
|
|
|
- ]
|
|
|
})
|
|
|
export default class AppModule {
|
|
|
+}
|
|
|
+
|
|
|
+export class AppRootModule {
|
|
|
static forRoot(): ModuleWithProviders {
|
|
|
return {
|
|
|
ngModule: AppModule,
|
|
|
@@ -73,5 +70,5 @@ export default class AppModule {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+export { AppRootComponent }
|
|
|
export * from './api'
|