UNPKG

2.42 kBPlain TextView Raw
1import { NgModule } from '@angular/core';
2import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
3import { UpgradeModule as NgUpgradeModule } from '@angular/upgrade/static';
4import { CoreModule, RouterModule } from '@c8y/ngx-components';
5import {
6 DashboardUpgradeModule,
7 UpgradeModule,
8 HybridAppModule,
9 UPGRADE_ROUTES
10} from '@c8y/ngx-components/upgrade';
11import { SubAssetsModule } from '@c8y/ngx-components/sub-assets';
12import { ChildDevicesModule } from '@c8y/ngx-components/child-devices';
13import {
14 CockpitDashboardModule,
15 DashboardManagerModule
16} from '@c8y/ngx-components/context-dashboard';
17import { ReportsModule } from '@c8y/ngx-components/reports';
18import { SensorPhoneModule } from '@c8y/ngx-components/sensor-phone';
19import { BinaryFileDownloadModule } from '@c8y/ngx-components/binary-file-download';
20import { SearchModule } from '@c8y/ngx-components/search';
21import { AssetsNavigatorModule } from '@c8y/ngx-components/assets-navigator';
22import { CockpitConfigModule } from '@c8y/ngx-components/cockpit-config';
23import { DatapointLibraryModule } from '@c8y/ngx-components/datapoint-library';
24import { cockpitWidgets } from '@c8y/ngx-components/widgets/cockpit';
25import { PluginSetupStepperModule } from '@c8y/ngx-components/ecosystem/plugin-setup-stepper';
26import { BookmarksModule } from '@c8y/ngx-components/bookmarks';
27import { LocationModule } from '@c8y/ngx-components/location';
28import { PendingMoRequestModule } from '@c8y/ngx-components/pending-mo-request';
29import { alarmsCockpitRouteAndNodeConfig } from '@c8y/ngx-components/alarms/cockpit';
30
31@NgModule({
32 imports: [
33 // Upgrade module must be the first
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})
59export class AppModule extends HybridAppModule {
60 constructor(protected upgrade: NgUpgradeModule) {
61 super();
62 }
63}