UNPKG

2 kBPlain TextView Raw
1import { NgModule } from '@angular/core';
2import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
3import { RouterModule as NgRouterModule } from '@angular/router';
4import { UpgradeModule as NgUpgradeModule } from '@angular/upgrade/static';
5import { CoreModule, RouterModule } from '@c8y/ngx-components';
6import {
7 DashboardUpgradeModule,
8 UpgradeModule,
9 HybridAppModule,
10 UPGRADE_ROUTES
11} from '@c8y/ngx-components/upgrade';
12import { SubAssetsModule } from '@c8y/ngx-components/sub-assets';
13import { ChildDevicesModule } from '@c8y/ngx-components/child-devices';
14import {
15 CockpitDashboardModule,
16 ReportDashboardModule
17} from '@c8y/ngx-components/context-dashboard';
18import { ReportsModule } from '@c8y/ngx-components/reports';
19import { SensorPhoneModule } from '@c8y/ngx-components/sensor-phone';
20import { BinaryFileDownloadModule } from '@c8y/ngx-components/binary-file-download';
21import { SearchModule } from '@c8y/ngx-components/search';
22import { AssetsNavigatorModule } from '@c8y/ngx-components/assets-navigator';
23import { CockpitConfigModule } from '@c8y/ngx-components/cockpit-config';
24import { DatapointLibraryModule } from '@c8y/ngx-components/datapoint-library';
25import { WidgetsModule } from '@c8y/ngx-components/widgets';
26
27@NgModule({
28 imports: [
29 // Upgrade module must be the first
30 UpgradeModule,
31 BrowserAnimationsModule,
32 RouterModule.forRoot(),
33 NgRouterModule.forRoot([...UPGRADE_ROUTES], { enableTracing: false, useHash: true }),
34 CoreModule.forRoot(),
35 ReportsModule,
36 NgUpgradeModule,
37 AssetsNavigatorModule,
38 DashboardUpgradeModule,
39 CockpitDashboardModule,
40 SensorPhoneModule,
41 ReportDashboardModule,
42 BinaryFileDownloadModule,
43 SearchModule,
44 SubAssetsModule,
45 ChildDevicesModule,
46 CockpitConfigModule,
47 DatapointLibraryModule.forRoot(),
48 WidgetsModule
49 ]
50})
51export class AppModule extends HybridAppModule {
52 constructor(protected upgrade: NgUpgradeModule) {
53 super();
54 }
55}