UNPKG

3.14 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 { AssetsNavigatorModule } from '@c8y/ngx-components/assets-navigator';
7import { SubAssetsModule } from '@c8y/ngx-components/sub-assets';
8import { ChildDevicesModule } from '@c8y/ngx-components/child-devices';
9import { DeviceGridExampleModule } from '@c8y/ngx-components/device-grid-example';
10import { DeviceProfileModule } from '@c8y/ngx-components/device-profile';
11import { DeviceShellModule } from '@c8y/ngx-components/device-shell';
12import { DeviceListModule } from '@c8y/ngx-components/device-list';
13import { OperationsModule } from '@c8y/ngx-components/operations';
14import { ImpactProtocolModule } from '@c8y/ngx-components/protocol-impact';
15import { OpcuaProtocolModule } from '@c8y/ngx-components/protocol-opcua';
16import { RepositoryModule } from '@c8y/ngx-components/repository';
17import { ServicesModule } from '@c8y/ngx-components/services';
18import { TrustedCertificatesModule } from '@c8y/ngx-components/trusted-certificates';
19import {
20 DashboardUpgradeModule,
21 HybridAppModule,
22 UpgradeModule,
23 UPGRADE_ROUTES
24} from '@c8y/ngx-components/upgrade';
25import { BinaryFileDownloadModule } from '@c8y/ngx-components/binary-file-download';
26import { SearchModule } from '@c8y/ngx-components/search';
27import { LpwanProtocolModule } from '@c8y/ngx-components/protocol-lpwan';
28import {
29 DeviceManagementHomeDashboardModule,
30 DeviceInfoDashboardModule
31} from '@c8y/ngx-components/context-dashboard';
32import { RegisterDeviceModule } from '@c8y/ngx-components/register-device';
33import { SigfoxDeviceRegistrationModule } from '@c8y/ngx-components/sigfox-device-registration';
34import { ActilityDeviceRegistrationModule } from '@c8y/ngx-components/actility-device-registration';
35import { DiagnosticsModule } from '@c8y/ngx-components/diagnostics';
36
37@NgModule({
38 imports: [
39 // Upgrade module must be the first
40 UpgradeModule,
41 BrowserAnimationsModule,
42 RouterModule.forRoot(),
43 NgRouterModule.forRoot([...UPGRADE_ROUTES], { enableTracing: false, useHash: true }),
44 CoreModule.forRoot(),
45 AssetsNavigatorModule.config({
46 smartGroups: true
47 }),
48 OperationsModule,
49 OpcuaProtocolModule,
50 ImpactProtocolModule,
51 TrustedCertificatesModule,
52 DeviceGridExampleModule,
53 NgUpgradeModule,
54 DashboardUpgradeModule,
55 RepositoryModule,
56 DeviceProfileModule,
57 BinaryFileDownloadModule,
58 SearchModule,
59 ServicesModule,
60 LpwanProtocolModule,
61 SubAssetsModule,
62 ChildDevicesModule,
63 DeviceManagementHomeDashboardModule,
64 DeviceInfoDashboardModule,
65 RegisterDeviceModule,
66 SigfoxDeviceRegistrationModule,
67 ActilityDeviceRegistrationModule,
68 DeviceShellModule,
69 DiagnosticsModule,
70 DeviceListModule
71 ]
72})
73export class AppModule extends HybridAppModule {
74 constructor(protected upgrade: NgUpgradeModule) {
75 super();
76 }
77}