2018-03-30 10:42:42 +00:00
|
|
|
import * as Raven from 'raven-js';
|
2017-09-25 11:07:52 +00:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
2018-03-30 10:42:42 +00:00
|
|
|
import { NgModule, ErrorHandler } from '@angular/core';
|
2017-09-25 11:07:52 +00:00
|
|
|
import { FormsModule } from '@angular/forms';
|
2017-11-27 10:55:20 +00:00
|
|
|
import { CdkTableModule } from "@angular/cdk/table";
|
2018-01-03 13:26:35 +00:00
|
|
|
import { HttpClientModule } from '@angular/common/http';
|
2017-09-25 11:07:52 +00:00
|
|
|
|
2017-10-31 13:44:47 +00:00
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
|
2017-11-27 10:55:20 +00:00
|
|
|
import { D3Service } from 'd3-ng2-service';
|
|
|
|
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
2018-03-30 07:13:30 +00:00
|
|
|
import { HotkeyModule } from 'angular2-hotkeys';
|
2018-04-04 14:05:29 +00:00
|
|
|
import { PersistenceModule } from 'angular-persistence';
|
2018-04-06 08:03:16 +00:00
|
|
|
import { NgxElectronModule } from 'ngx-electron';
|
2018-04-04 14:05:29 +00:00
|
|
|
|
2017-11-27 10:55:20 +00:00
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
|
|
|
2018-06-27 08:29:12 +00:00
|
|
|
import { VersionService } from './services/version.service';
|
|
|
|
import { ProjectService } from './services/project.service';
|
|
|
|
import { SymbolService } from "./services/symbol.service";
|
|
|
|
import { ServerService } from "./services/server.service";
|
|
|
|
import { IndexedDbService } from "./services/indexed-db.service";
|
2018-07-03 09:34:37 +00:00
|
|
|
import { HttpServer, ServerErrorHandler } from "./services/http-server.service";
|
2018-06-27 08:29:12 +00:00
|
|
|
import { SnapshotService } from "./services/snapshot.service";
|
|
|
|
import { ProgressDialogService } from "./common/progress-dialog/progress-dialog.service";
|
|
|
|
import { NodeService } from "./services/node.service";
|
|
|
|
import { ApplianceService } from "./services/appliance.service";
|
|
|
|
import { LinkService } from "./services/link.service";
|
2017-11-27 10:55:20 +00:00
|
|
|
|
2018-06-27 08:34:15 +00:00
|
|
|
import { ProjectsComponent } from './components/projects/projects.component';
|
2018-06-26 14:47:40 +00:00
|
|
|
import { DefaultLayoutComponent } from './layouts/default-layout/default-layout.component';
|
2018-06-27 08:29:12 +00:00
|
|
|
import { ProgressDialogComponent } from './common/progress-dialog/progress-dialog.component';
|
2017-11-27 10:55:20 +00:00
|
|
|
import { AppComponent } from './app.component';
|
2018-03-08 07:48:09 +00:00
|
|
|
|
2018-10-31 09:55:55 +00:00
|
|
|
import { ProjectMapComponent } from './components/project-map/project-map.component';
|
2018-06-27 08:34:15 +00:00
|
|
|
import { ServersComponent, AddServerDialogComponent } from './components/servers/servers.component';
|
|
|
|
import { NodeContextMenuComponent } from './components/project-map/node-context-menu/node-context-menu.component';
|
|
|
|
import { StartNodeActionComponent } from './components/project-map/node-context-menu/actions/start-node-action/start-node-action.component';
|
|
|
|
import { StopNodeActionComponent } from './components/project-map/node-context-menu/actions/stop-node-action/stop-node-action.component';
|
|
|
|
import { ApplianceComponent } from './components/appliance/appliance.component';
|
|
|
|
import { ApplianceListDialogComponent } from './components/appliance/appliance-list-dialog/appliance-list-dialog.component';
|
2018-01-03 15:46:15 +00:00
|
|
|
import { CartographyModule } from './cartography/cartography.module';
|
2018-06-27 08:29:12 +00:00
|
|
|
import { ToasterService } from './services/toaster.service';
|
|
|
|
import { ProjectWebServiceHandler } from "./handlers/project-web-service-handler";
|
|
|
|
import { LinksDataSource } from "./cartography/datasources/links-datasource";
|
|
|
|
import { NodesDataSource } from "./cartography/datasources/nodes-datasource";
|
|
|
|
import { SymbolsDataSource } from "./cartography/datasources/symbols-datasource";
|
|
|
|
import { SelectionManager } from "./cartography/managers/selection-manager";
|
2018-07-19 08:00:09 +00:00
|
|
|
import { InRectangleHelper } from "./cartography/helpers/in-rectangle-helper";
|
2018-06-27 08:29:12 +00:00
|
|
|
import { DrawingsDataSource } from "./cartography/datasources/drawings-datasource";
|
2018-06-27 08:34:15 +00:00
|
|
|
import { MoveLayerDownActionComponent } from './components/project-map/node-context-menu/actions/move-layer-down-action/move-layer-down-action.component';
|
|
|
|
import { MoveLayerUpActionComponent } from './components/project-map/node-context-menu/actions/move-layer-up-action/move-layer-up-action.component';
|
|
|
|
import { ProjectMapShortcutsComponent } from './components/project-map/project-map-shortcuts/project-map-shortcuts.component';
|
|
|
|
import { SettingsComponent } from './components/settings/settings.component';
|
2018-06-27 08:29:12 +00:00
|
|
|
import { SettingsService } from "./services/settings.service";
|
2017-11-27 10:55:20 +00:00
|
|
|
|
2018-06-27 08:34:15 +00:00
|
|
|
import { LocalServerComponent } from './components/local-server/local-server.component';
|
2018-06-27 08:29:12 +00:00
|
|
|
import { ProgressComponent } from './common/progress/progress.component';
|
|
|
|
import { ProgressService } from "./common/progress/progress.service";
|
2018-06-27 10:34:15 +00:00
|
|
|
import { version } from "./version";
|
2018-07-03 09:40:12 +00:00
|
|
|
import { ToasterErrorHandler } from "./common/error-handlers/toaster-error-handler";
|
2018-07-03 09:34:37 +00:00
|
|
|
import { environment } from "../environments/environment";
|
2018-07-03 09:40:12 +00:00
|
|
|
import { RavenState } from "./common/error-handlers/raven-state-communicator";
|
2018-07-23 19:04:11 +00:00
|
|
|
import { ServerDiscoveryComponent } from "./components/servers/server-discovery/server-discovery.component";
|
2018-10-10 13:50:10 +00:00
|
|
|
import { ServerDatabase } from './services/server.database';
|
2018-10-31 09:55:55 +00:00
|
|
|
import { CreateSnapshotDialogComponent } from './components/snapshots/create-snapshot-dialog/create-snapshot-dialog.component';
|
|
|
|
import { SnapshotsComponent } from './components/snapshots/snapshots.component';
|
|
|
|
import { SnapshotMenuItemComponent } from './components/snapshots/snapshot-menu-item/snapshot-menu-item.component';
|
2018-10-31 10:41:47 +00:00
|
|
|
import { MATERIAL_IMPORTS } from './material.imports';
|
2018-06-27 10:34:15 +00:00
|
|
|
|
2018-03-30 10:48:27 +00:00
|
|
|
|
2018-07-03 09:34:37 +00:00
|
|
|
if (environment.production) {
|
|
|
|
Raven
|
|
|
|
.config('https://b2b1cfd9b043491eb6b566fd8acee358@sentry.io/842726', {
|
|
|
|
shouldSendCallback: () => {
|
|
|
|
return RavenState.shouldSend;
|
|
|
|
},
|
|
|
|
release: version
|
|
|
|
})
|
|
|
|
.install();
|
|
|
|
}
|
2018-03-30 10:42:42 +00:00
|
|
|
|
|
|
|
|
2017-09-25 11:07:52 +00:00
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
ProjectMapComponent,
|
|
|
|
ServersComponent,
|
2017-10-31 13:44:47 +00:00
|
|
|
AddServerDialogComponent,
|
2017-11-23 12:18:23 +00:00
|
|
|
CreateSnapshotDialogComponent,
|
2018-10-31 09:55:55 +00:00
|
|
|
SnapshotMenuItemComponent,
|
|
|
|
SnapshotsComponent,
|
2017-09-25 11:07:52 +00:00
|
|
|
ProjectsComponent,
|
2017-10-27 11:55:40 +00:00
|
|
|
DefaultLayoutComponent,
|
2017-11-27 10:08:15 +00:00
|
|
|
ProgressDialogComponent,
|
2017-11-29 12:19:53 +00:00
|
|
|
NodeContextMenuComponent,
|
2017-11-29 15:07:53 +00:00
|
|
|
StartNodeActionComponent,
|
2017-11-30 07:59:52 +00:00
|
|
|
StopNodeActionComponent,
|
2017-11-30 09:27:41 +00:00
|
|
|
ApplianceComponent,
|
|
|
|
ApplianceListDialogComponent,
|
2018-03-29 10:36:35 +00:00
|
|
|
MoveLayerDownActionComponent,
|
|
|
|
MoveLayerUpActionComponent,
|
2018-03-30 07:13:30 +00:00
|
|
|
ProjectMapShortcutsComponent,
|
2018-04-04 14:05:29 +00:00
|
|
|
SettingsComponent,
|
2018-06-26 09:13:09 +00:00
|
|
|
LocalServerComponent,
|
2018-06-26 14:47:40 +00:00
|
|
|
ProgressComponent,
|
2018-07-23 19:04:11 +00:00
|
|
|
ServerDiscoveryComponent,
|
2017-09-25 11:07:52 +00:00
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
NgbModule.forRoot(),
|
|
|
|
BrowserModule,
|
2018-01-03 13:26:35 +00:00
|
|
|
HttpClientModule,
|
2017-09-25 11:07:52 +00:00
|
|
|
AppRoutingModule,
|
2017-10-31 13:44:47 +00:00
|
|
|
FormsModule,
|
|
|
|
BrowserAnimationsModule,
|
2018-04-10 08:57:29 +00:00
|
|
|
CdkTableModule,
|
2018-03-30 07:13:30 +00:00
|
|
|
CartographyModule,
|
2018-04-04 14:05:29 +00:00
|
|
|
HotkeyModule.forRoot(),
|
2018-04-06 08:03:16 +00:00
|
|
|
PersistenceModule,
|
2018-10-31 10:41:47 +00:00
|
|
|
NgxElectronModule,
|
|
|
|
...MATERIAL_IMPORTS
|
2017-09-25 11:07:52 +00:00
|
|
|
],
|
|
|
|
providers: [
|
2018-04-04 14:05:29 +00:00
|
|
|
SettingsService,
|
2018-07-02 10:23:22 +00:00
|
|
|
{ provide: ErrorHandler, useClass: ToasterErrorHandler },
|
2017-09-25 11:07:52 +00:00
|
|
|
D3Service,
|
|
|
|
VersionService,
|
|
|
|
ProjectService,
|
|
|
|
SymbolService,
|
|
|
|
ServerService,
|
2017-11-30 09:27:41 +00:00
|
|
|
ApplianceService,
|
2017-11-29 15:07:53 +00:00
|
|
|
NodeService,
|
2017-12-04 11:25:13 +00:00
|
|
|
LinkService,
|
2017-09-25 11:07:52 +00:00
|
|
|
IndexedDbService,
|
|
|
|
HttpServer,
|
2017-11-27 10:08:15 +00:00
|
|
|
SnapshotService,
|
2018-03-08 07:48:09 +00:00
|
|
|
ProgressDialogService,
|
2018-03-19 14:09:22 +00:00
|
|
|
ToasterService,
|
2018-06-26 14:47:40 +00:00
|
|
|
ProgressService,
|
2018-03-19 14:09:22 +00:00
|
|
|
ProjectWebServiceHandler,
|
|
|
|
LinksDataSource,
|
2018-03-20 07:18:36 +00:00
|
|
|
NodesDataSource,
|
2018-03-22 14:40:06 +00:00
|
|
|
SymbolsDataSource,
|
|
|
|
SelectionManager,
|
2018-03-27 15:21:50 +00:00
|
|
|
InRectangleHelper,
|
2018-07-03 09:34:37 +00:00
|
|
|
DrawingsDataSource,
|
2018-10-10 13:50:10 +00:00
|
|
|
ServerErrorHandler,
|
|
|
|
ServerDatabase
|
2017-09-25 11:07:52 +00:00
|
|
|
],
|
|
|
|
entryComponents: [
|
2017-11-23 12:18:23 +00:00
|
|
|
AddServerDialogComponent,
|
2017-11-27 10:08:15 +00:00
|
|
|
CreateSnapshotDialogComponent,
|
2017-11-30 09:27:41 +00:00
|
|
|
ProgressDialogComponent,
|
|
|
|
ApplianceListDialogComponent
|
2017-09-25 11:07:52 +00:00
|
|
|
],
|
|
|
|
bootstrap: [ AppComponent ]
|
|
|
|
})
|
|
|
|
export class AppModule { }
|