1 | import { NgModule } from '@angular/core';
|
2 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
3 | import { UpgradeModule as NgUpgradeModule } from '@angular/upgrade/static';
|
4 | import { CoreModule, RouterModule } from '@c8y/ngx-components';
|
5 | import {
|
6 | DashboardUpgradeModule,
|
7 | UpgradeModule,
|
8 | HybridAppModule,
|
9 | UPGRADE_ROUTES
|
10 | } from '@c8y/ngx-components/upgrade';
|
11 | import { SubAssetsModule } from '@c8y/ngx-components/sub-assets';
|
12 | import { ChildDevicesModule } from '@c8y/ngx-components/child-devices';
|
13 | import {
|
14 | CockpitDashboardModule,
|
15 | DashboardManagerModule
|
16 | } from '@c8y/ngx-components/context-dashboard';
|
17 | import { ReportsModule } from '@c8y/ngx-components/reports';
|
18 | import { SensorPhoneModule } from '@c8y/ngx-components/sensor-phone';
|
19 | import { BinaryFileDownloadModule } from '@c8y/ngx-components/binary-file-download';
|
20 | import { SearchModule } from '@c8y/ngx-components/search';
|
21 | import { AssetsNavigatorModule } from '@c8y/ngx-components/assets-navigator';
|
22 | import { CockpitConfigModule } from '@c8y/ngx-components/cockpit-config';
|
23 | import { DatapointLibraryModule } from '@c8y/ngx-components/datapoint-library';
|
24 | import { cockpitWidgets } from '@c8y/ngx-components/widgets/cockpit';
|
25 | import { PluginSetupStepperModule } from '@c8y/ngx-components/ecosystem/plugin-setup-stepper';
|
26 | import { BookmarksModule } from '@c8y/ngx-components/bookmarks';
|
27 | import { LocationModule } from '@c8y/ngx-components/location';
|
28 | import { PendingMoRequestModule } from '@c8y/ngx-components/pending-mo-request';
|
29 | import { alarmsCockpitRouteAndNodeConfig } from '@c8y/ngx-components/alarms/cockpit';
|
30 |
|
31 | @NgModule({
|
32 | imports: [
|
33 |
|
34 | UpgradeModule,
|
35 | BrowserAnimationsModule,
|
36 | RouterModule.forRoot([...UPGRADE_ROUTES]),
|
37 | CoreModule.forRoot(),
|
38 | ReportsModule,
|
39 | NgUpgradeModule,
|
40 | AssetsNavigatorModule,
|
41 | DashboardUpgradeModule,
|
42 | CockpitDashboardModule,
|
43 | SensorPhoneModule,
|
44 | DashboardManagerModule,
|
45 | BinaryFileDownloadModule,
|
46 | SearchModule,
|
47 | SubAssetsModule.config(),
|
48 | ChildDevicesModule,
|
49 | CockpitConfigModule,
|
50 | DatapointLibraryModule.forRoot(),
|
51 | cockpitWidgets(),
|
52 | PluginSetupStepperModule,
|
53 | BookmarksModule,
|
54 | LocationModule.config(),
|
55 | PendingMoRequestModule,
|
56 | alarmsCockpitRouteAndNodeConfig()
|
57 | ]
|
58 | })
|
59 | export class AppModule extends HybridAppModule {
|
60 | constructor(protected upgrade: NgUpgradeModule) {
|
61 | super();
|
62 | }
|
63 | }
|