1 | import { NgModule } from '@angular/core';
|
2 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
3 | import { RouterModule as NgRouterModule } from '@angular/router';
|
4 | import { UpgradeModule as NgUpgradeModule } from '@angular/upgrade/static';
|
5 | import { CoreModule, RouterModule } from '@c8y/ngx-components';
|
6 | import {
|
7 | DashboardUpgradeModule,
|
8 | UpgradeModule,
|
9 | HybridAppModule,
|
10 | UPGRADE_ROUTES
|
11 | } from '@c8y/ngx-components/upgrade';
|
12 | import { SubAssetsModule } from '@c8y/ngx-components/sub-assets';
|
13 | import { ChildDevicesModule } from '@c8y/ngx-components/child-devices';
|
14 | import {
|
15 | CockpitDashboardModule,
|
16 | ReportDashboardModule
|
17 | } from '@c8y/ngx-components/context-dashboard';
|
18 | import { ReportsModule } from '@c8y/ngx-components/reports';
|
19 | import { SensorPhoneModule } from '@c8y/ngx-components/sensor-phone';
|
20 | import { BinaryFileDownloadModule } from '@c8y/ngx-components/binary-file-download';
|
21 | import { SearchModule } from '@c8y/ngx-components/search';
|
22 | import { AssetsNavigatorModule } from '@c8y/ngx-components/assets-navigator';
|
23 | import { CockpitConfigModule } from '@c8y/ngx-components/cockpit-config';
|
24 | import { DatapointLibraryModule } from '@c8y/ngx-components/datapoint-library';
|
25 | import { WidgetsModule } from '@c8y/ngx-components/widgets';
|
26 |
|
27 | @NgModule({
|
28 | imports: [
|
29 |
|
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 | })
|
51 | export class AppModule extends HybridAppModule {
|
52 | constructor(protected upgrade: NgUpgradeModule) {
|
53 | super();
|
54 | }
|
55 | }
|