import { NgModule } from '@angular/core'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { UpgradeModule as NgUpgradeModule } from '@angular/upgrade/static'; import { CoreModule, RouterModule } from '@c8y/ngx-components'; import { DashboardUpgradeModule, UpgradeModule, HybridAppModule, UPGRADE_ROUTES } from '@c8y/ngx-components/upgrade'; import { SubAssetsModule } from '@c8y/ngx-components/sub-assets'; import { ChildDevicesModule } from '@c8y/ngx-components/child-devices'; import { CockpitDashboardModule, DashboardManagerModule } from '@c8y/ngx-components/context-dashboard'; import { ReportsModule } from '@c8y/ngx-components/reports'; import { SensorPhoneModule } from '@c8y/ngx-components/sensor-phone'; import { BinaryFileDownloadModule } from '@c8y/ngx-components/binary-file-download'; import { SearchModule } from '@c8y/ngx-components/search'; import { AssetsNavigatorModule } from '@c8y/ngx-components/assets-navigator'; import { CockpitConfigModule } from '@c8y/ngx-components/cockpit-config'; import { DatapointLibraryModule } from '@c8y/ngx-components/datapoint-library'; import { cockpitWidgets } from '@c8y/ngx-components/widgets/cockpit'; import { PluginSetupStepperModule } from '@c8y/ngx-components/ecosystem/plugin-setup-stepper'; import { BookmarksModule } from '@c8y/ngx-components/bookmarks'; import { LocationModule } from '@c8y/ngx-components/location'; import { PendingMoRequestModule } from '@c8y/ngx-components/pending-mo-request'; import { alarmsCockpitRouteAndNodeConfig } from '@c8y/ngx-components/alarms/cockpit'; @NgModule({ imports: [ // Upgrade module must be the first UpgradeModule, BrowserAnimationsModule, RouterModule.forRoot([...UPGRADE_ROUTES]), CoreModule.forRoot(), ReportsModule, NgUpgradeModule, AssetsNavigatorModule, DashboardUpgradeModule, CockpitDashboardModule, SensorPhoneModule, DashboardManagerModule, BinaryFileDownloadModule, SearchModule, SubAssetsModule.config(), ChildDevicesModule, CockpitConfigModule, DatapointLibraryModule.forRoot(), cockpitWidgets(), PluginSetupStepperModule, BookmarksModule, LocationModule.config(), PendingMoRequestModule, alarmsCockpitRouteAndNodeConfig() ] }) export class AppModule extends HybridAppModule { constructor(protected upgrade: NgUpgradeModule) { super(); } }