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 { AssetsNavigatorModule } from '@c8y/ngx-components/assets-navigator';
|
7 | import { SubAssetsModule } from '@c8y/ngx-components/sub-assets';
|
8 | import { ChildDevicesModule } from '@c8y/ngx-components/child-devices';
|
9 | import { DeviceGridExampleModule } from '@c8y/ngx-components/device-grid-example';
|
10 | import { DeviceProfileModule } from '@c8y/ngx-components/device-profile';
|
11 | import { DeviceShellModule } from '@c8y/ngx-components/device-shell';
|
12 | import { DeviceListModule } from '@c8y/ngx-components/device-list';
|
13 | import { OperationsModule } from '@c8y/ngx-components/operations';
|
14 | import { ImpactProtocolModule } from '@c8y/ngx-components/protocol-impact';
|
15 | import { OpcuaProtocolModule } from '@c8y/ngx-components/protocol-opcua';
|
16 | import { RepositoryModule } from '@c8y/ngx-components/repository';
|
17 | import { ServicesModule } from '@c8y/ngx-components/services';
|
18 | import { TrustedCertificatesModule } from '@c8y/ngx-components/trusted-certificates';
|
19 | import {
|
20 | DashboardUpgradeModule,
|
21 | HybridAppModule,
|
22 | UpgradeModule,
|
23 | UPGRADE_ROUTES
|
24 | } from '@c8y/ngx-components/upgrade';
|
25 | import { BinaryFileDownloadModule } from '@c8y/ngx-components/binary-file-download';
|
26 | import { SearchModule } from '@c8y/ngx-components/search';
|
27 | import { LpwanProtocolModule } from '@c8y/ngx-components/protocol-lpwan';
|
28 | import {
|
29 | DeviceManagementHomeDashboardModule,
|
30 | DeviceInfoDashboardModule
|
31 | } from '@c8y/ngx-components/context-dashboard';
|
32 | import { RegisterDeviceModule } from '@c8y/ngx-components/register-device';
|
33 | import { SigfoxDeviceRegistrationModule } from '@c8y/ngx-components/sigfox-device-registration';
|
34 | import { ActilityDeviceRegistrationModule } from '@c8y/ngx-components/actility-device-registration';
|
35 | import { DiagnosticsModule } from '@c8y/ngx-components/diagnostics';
|
36 |
|
37 | @NgModule({
|
38 | imports: [
|
39 |
|
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 | })
|
73 | export class AppModule extends HybridAppModule {
|
74 | constructor(protected upgrade: NgUpgradeModule) {
|
75 | super();
|
76 | }
|
77 | }
|