@c8y/devicemanagement 1021.81.0 → 1022.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cumulocity.config.ts +9 -8
- package/package.json +15 -14
- package/src/app/app.module.ts +1 -2
- package/src/bootstrap.ts +4 -2
- package/src/main.ts +7 -10
package/cumulocity.config.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ConfigurationOptions } from '@c8y/devkit';
|
|
2
|
-
import { author, description, version, name } from './package.json';
|
|
2
|
+
import { author, description, version, name, license } from './package.json';
|
|
3
3
|
import { gettext } from '@c8y/ngx-components/gettext';
|
|
4
4
|
|
|
5
5
|
const defaultDescription = gettext(
|
|
@@ -19,6 +19,7 @@ export default {
|
|
|
19
19
|
"base-uri 'none'; default-src 'self' 'unsafe-inline' http: https: ws: wss:; connect-src 'self' http: https: ws: wss:; script-src 'self' *.bugherd.com *.twitter.com *.twimg.com *.aptrinsic.com 'unsafe-inline' 'unsafe-eval' data:; style-src * 'unsafe-inline' blob:; img-src * data: blob:; font-src * data:; frame-src *; worker-src 'self' blob:;",
|
|
20
20
|
dynamicOptionsUrl: true,
|
|
21
21
|
contextHelp: true,
|
|
22
|
+
license,
|
|
22
23
|
upgrade: true,
|
|
23
24
|
exports: [
|
|
24
25
|
{
|
|
@@ -37,13 +38,6 @@ export default {
|
|
|
37
38
|
'The Services plugin provides a device tab that lists all services running on a device with their status, name, type and date of the last update.',
|
|
38
39
|
scope: 'self'
|
|
39
40
|
},
|
|
40
|
-
{
|
|
41
|
-
name: 'LWM2M plugin',
|
|
42
|
-
module: 'LWM2Module',
|
|
43
|
-
path: '@c8y/ngx-components/protocol-lwm2m',
|
|
44
|
-
description: 'Self scoped LWM2M plugin. Serves Post-operations, configuration and more...',
|
|
45
|
-
scope: 'self'
|
|
46
|
-
},
|
|
47
41
|
{
|
|
48
42
|
name: 'Remote access: Configuration list',
|
|
49
43
|
module: 'remoteAccessConfigurationListProviders',
|
|
@@ -79,6 +73,13 @@ export default {
|
|
|
79
73
|
path: '@c8y/ngx-components/remote-access/passthrough',
|
|
80
74
|
description: 'Adds passthrough support to the remote access feature.',
|
|
81
75
|
scope: 'self'
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Device parameters list',
|
|
79
|
+
module: 'deviceParametersFeatureProvider',
|
|
80
|
+
path: '@c8y/ngx-components/device-parameters',
|
|
81
|
+
description: 'Adds device parameters list tab to the device details view.',
|
|
82
|
+
scope: 'self'
|
|
82
83
|
}
|
|
83
84
|
],
|
|
84
85
|
remotes: {
|
package/package.json
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c8y/devicemanagement",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1022.4.2",
|
|
4
4
|
"description": "This package is used to scaffold a Device Management application for Cumulocity IoT.",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@c8y/style": "
|
|
7
|
-
"@c8y/ng1-modules": "
|
|
8
|
-
"@c8y/ngx-components": "
|
|
9
|
-
"@c8y/client": "
|
|
10
|
-
"@c8y/bootstrap": "
|
|
11
|
-
"@angular/cdk": "^
|
|
12
|
-
"@angular/upgrade": "^
|
|
6
|
+
"@c8y/style": "1022.4.2",
|
|
7
|
+
"@c8y/ng1-modules": "1022.4.2",
|
|
8
|
+
"@c8y/ngx-components": "1022.4.2",
|
|
9
|
+
"@c8y/client": "1022.4.2",
|
|
10
|
+
"@c8y/bootstrap": "1022.4.2",
|
|
11
|
+
"@angular/cdk": "^19.2.18",
|
|
12
|
+
"@angular/upgrade": "^19.2.14",
|
|
13
13
|
"angular": "1.8.3",
|
|
14
|
-
"ngx-bootstrap": "
|
|
15
|
-
"rxjs": "
|
|
14
|
+
"ngx-bootstrap": "19.0.2",
|
|
15
|
+
"rxjs": "7.8.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@c8y/options": "
|
|
19
|
-
"@c8y/devkit": "
|
|
18
|
+
"@c8y/options": "1022.4.2",
|
|
19
|
+
"@c8y/devkit": "1022.4.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@angular/common": ">=
|
|
22
|
+
"@angular/common": ">=19 <20"
|
|
23
23
|
},
|
|
24
|
-
"author": "Cumulocity GmbH"
|
|
24
|
+
"author": "Cumulocity GmbH",
|
|
25
|
+
"license": "Apache-2.0"
|
|
25
26
|
}
|
package/src/app/app.module.ts
CHANGED
|
@@ -22,7 +22,6 @@ import { AddLocationModule, LocationTabModule } from '@c8y/ngx-components/locati
|
|
|
22
22
|
import { LoriotDeviceRegistrationModule } from '@c8y/ngx-components/loriot-device-registration';
|
|
23
23
|
import { OperationsModule } from '@c8y/ngx-components/operations';
|
|
24
24
|
import { LpwanProtocolModule } from '@c8y/ngx-components/protocol-lpwan';
|
|
25
|
-
import { Lwm2mPluginCheckerService } from '@c8y/ngx-components/protocol-lwm2m';
|
|
26
25
|
import { OpcuaProtocolModule } from '@c8y/ngx-components/protocol-opcua';
|
|
27
26
|
import { RegisterDeviceModule } from '@c8y/ngx-components/register-device';
|
|
28
27
|
import { RepositoryModule } from '@c8y/ngx-components/repository';
|
|
@@ -81,7 +80,7 @@ import { DeviceProvisionedCertificatesModule } from '@c8y/ngx-components/device-
|
|
|
81
80
|
DeviceProvisionedCertificatesModule,
|
|
82
81
|
alarmsDeviceManagementRouteAndNodeConfig()
|
|
83
82
|
],
|
|
84
|
-
providers: [deviceMapFeatureProvider, trackingFeatureProvider
|
|
83
|
+
providers: [deviceMapFeatureProvider, trackingFeatureProvider]
|
|
85
84
|
})
|
|
86
85
|
export class AppModule extends HybridAppModule {
|
|
87
86
|
constructor(protected override upgrade: NgUpgradeModule) {
|
package/src/bootstrap.ts
CHANGED
|
@@ -4,14 +4,16 @@ import './ng1';
|
|
|
4
4
|
import { enableProdMode } from '@angular/core';
|
|
5
5
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
6
6
|
import { AppModule } from './app/app.module';
|
|
7
|
+
import { provideBootstrapMetadata } from '@c8y/ngx-components';
|
|
8
|
+
import { BootstrapMetaData } from '@c8y/bootstrap';
|
|
7
9
|
|
|
8
10
|
declare const __MODE__: string;
|
|
9
11
|
if (__MODE__ === 'production') {
|
|
10
12
|
enableProdMode();
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
export function bootstrap() {
|
|
14
|
-
return platformBrowserDynamic()
|
|
15
|
+
export function bootstrap(metadata: BootstrapMetaData) {
|
|
16
|
+
return platformBrowserDynamic(provideBootstrapMetadata(metadata))
|
|
15
17
|
.bootstrapModule(AppModule)
|
|
16
18
|
.catch(err => console.log(err));
|
|
17
19
|
}
|
package/src/main.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import './i18n';
|
|
2
|
-
import { applyOptions, loadOptions } from '@c8y/bootstrap';
|
|
3
2
|
|
|
4
3
|
const barHolder: HTMLElement | null = document.querySelector('body > .init-load');
|
|
5
4
|
export const removeProgress = () => barHolder?.parentNode?.removeChild(barHolder);
|
|
@@ -7,14 +6,12 @@ export const removeProgress = () => barHolder?.parentNode?.removeChild(barHolder
|
|
|
7
6
|
applicationSetup();
|
|
8
7
|
|
|
9
8
|
async function applicationSetup() {
|
|
10
|
-
await
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const { loadMetaDataAndPerformBootstrap } = await import('@c8y/bootstrap');
|
|
10
|
+
const loadBootstrapModule = () =>
|
|
11
|
+
import(
|
|
12
|
+
/* webpackPreload: true */
|
|
13
|
+
'./bootstrap'
|
|
14
|
+
);
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
/* webpackPreload: true */
|
|
16
|
-
'./bootstrap'
|
|
17
|
-
);
|
|
18
|
-
const bootstrapApp = mod.bootstrap;
|
|
19
|
-
return bootstrapApp().then(removeProgress);
|
|
16
|
+
loadMetaDataAndPerformBootstrap(loadBootstrapModule).then(removeProgress);
|
|
20
17
|
}
|