@c8y/devicemanagement 1019.24.2 → 1020.0.4
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/NOTICES +8357 -6666
- package/cumulocity.config.ts +26 -6
- package/package.json +14 -11
- package/src/app/app.module.ts +3 -3
- package/src/main.ts +6 -4
- package/src/ng1.ts +0 -9
- package/src/polyfills.ts +1 -1
package/cumulocity.config.ts
CHANGED
|
@@ -1,22 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ConfigurationOptions } from '@c8y/devkit';
|
|
2
|
+
import { author, description, version, name } from './package.json';
|
|
3
|
+
import { gettext } from '@c8y/ngx-components/gettext';
|
|
4
|
+
|
|
5
|
+
const defaultDescription = gettext(
|
|
6
|
+
'The Device Management application provides functionalities for managing and monitoring devices and enables you to control and troubleshoot devices remotely.'
|
|
7
|
+
);
|
|
2
8
|
|
|
3
9
|
export default {
|
|
4
10
|
runTime: {
|
|
5
11
|
author,
|
|
6
|
-
description,
|
|
12
|
+
description: description || defaultDescription,
|
|
7
13
|
version,
|
|
8
|
-
name
|
|
9
|
-
contextPath: 'devicemanagement',
|
|
10
|
-
key: 'devicemanagement-application-key',
|
|
14
|
+
name,
|
|
11
15
|
globalTitle: 'Cumulocity',
|
|
12
16
|
rightDrawer: true,
|
|
13
17
|
breadcrumbs: false,
|
|
14
18
|
contentSecurityPolicy:
|
|
15
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:;",
|
|
16
|
-
dynamicOptionsUrl:
|
|
20
|
+
dynamicOptionsUrl: true,
|
|
17
21
|
contextHelp: true,
|
|
18
22
|
upgrade: true,
|
|
19
23
|
exports: [
|
|
24
|
+
{
|
|
25
|
+
name: 'Advanced software management',
|
|
26
|
+
module: 'AdvancedSoftwareModule',
|
|
27
|
+
path: '@c8y/ngx-components/advanced-software-management',
|
|
28
|
+
description:
|
|
29
|
+
'Uses the ASM microservice for managing software items instead of inventory API.',
|
|
30
|
+
scope: 'self' as any
|
|
31
|
+
},
|
|
20
32
|
{
|
|
21
33
|
name: 'Replace device plugin',
|
|
22
34
|
module: 'ReplaceDeviceModule',
|
|
@@ -24,6 +36,14 @@ export default {
|
|
|
24
36
|
description:
|
|
25
37
|
'Replace device plugin for enabling the action of replacing a physical device with another one.',
|
|
26
38
|
scope: 'self' as any
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Services plugin',
|
|
42
|
+
module: 'ServicesModule',
|
|
43
|
+
path: '@c8y/ngx-components/services',
|
|
44
|
+
description:
|
|
45
|
+
'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.',
|
|
46
|
+
scope: 'self' as any
|
|
27
47
|
}
|
|
28
48
|
]
|
|
29
49
|
},
|
package/package.json
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c8y/devicemanagement",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1020.0.4",
|
|
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
|
-
"@
|
|
12
|
-
"@angular/
|
|
13
|
-
"@angular/upgrade": "^16.2.11",
|
|
6
|
+
"@c8y/style": "1020.0.4",
|
|
7
|
+
"@c8y/ng1-modules": "1020.0.4",
|
|
8
|
+
"@c8y/ngx-components": "1020.0.4",
|
|
9
|
+
"@c8y/client": "1020.0.4",
|
|
10
|
+
"@c8y/bootstrap": "1020.0.4",
|
|
11
|
+
"@angular/cdk": "^17.3.9",
|
|
12
|
+
"@angular/upgrade": "^17.3.9",
|
|
14
13
|
"angular": "1.6.9",
|
|
15
|
-
"ngx-bootstrap": "
|
|
14
|
+
"ngx-bootstrap": "12.0.0",
|
|
16
15
|
"rxjs": "^7.4.0"
|
|
17
16
|
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@c8y/options": "1020.0.4",
|
|
19
|
+
"@c8y/devkit": "1020.0.4"
|
|
20
|
+
},
|
|
18
21
|
"peerDependencies": {
|
|
19
|
-
"@angular/common": ">=
|
|
22
|
+
"@angular/common": ">=16 <18"
|
|
20
23
|
},
|
|
21
24
|
"author": "Cumulocity GmbH"
|
|
22
25
|
}
|
package/src/app/app.module.ts
CHANGED
|
@@ -25,7 +25,6 @@ import { OpcuaProtocolModule } from '@c8y/ngx-components/protocol-opcua';
|
|
|
25
25
|
import { RegisterDeviceModule } from '@c8y/ngx-components/register-device';
|
|
26
26
|
import { RepositoryModule } from '@c8y/ngx-components/repository';
|
|
27
27
|
import { SearchModule } from '@c8y/ngx-components/search';
|
|
28
|
-
import { ServicesModule } from '@c8y/ngx-components/services';
|
|
29
28
|
import { SigfoxDeviceRegistrationModule } from '@c8y/ngx-components/sigfox-device-registration';
|
|
30
29
|
import { SubAssetsModule } from '@c8y/ngx-components/sub-assets';
|
|
31
30
|
import { trackingFeatureProvider } from '@c8y/ngx-components/tracking';
|
|
@@ -38,6 +37,7 @@ import {
|
|
|
38
37
|
} from '@c8y/ngx-components/upgrade';
|
|
39
38
|
import { cockpitWidgets } from '@c8y/ngx-components/widgets/cockpit';
|
|
40
39
|
import { deviceManagementWidgets } from '@c8y/ngx-components/widgets/device-management';
|
|
40
|
+
import { alarmsDeviceManagementRouteAndNodeConfig } from '@c8y/ngx-components/alarms/devicemanagement';
|
|
41
41
|
|
|
42
42
|
@NgModule({
|
|
43
43
|
imports: [
|
|
@@ -58,7 +58,6 @@ import { deviceManagementWidgets } from '@c8y/ngx-components/widgets/device-mana
|
|
|
58
58
|
DeviceProfileModule,
|
|
59
59
|
BinaryFileDownloadModule,
|
|
60
60
|
SearchModule,
|
|
61
|
-
ServicesModule,
|
|
62
61
|
LpwanProtocolModule,
|
|
63
62
|
SubAssetsModule,
|
|
64
63
|
ChildDevicesModule,
|
|
@@ -76,7 +75,8 @@ import { deviceManagementWidgets } from '@c8y/ngx-components/widgets/device-mana
|
|
|
76
75
|
DeviceListModule,
|
|
77
76
|
Lwm2mModule.forRoot(),
|
|
78
77
|
BookmarksModule,
|
|
79
|
-
LocationModule.config({ addLocation: true })
|
|
78
|
+
LocationModule.config({ addLocation: true }),
|
|
79
|
+
alarmsDeviceManagementRouteAndNodeConfig()
|
|
80
80
|
],
|
|
81
81
|
providers: [trackingFeatureProvider]
|
|
82
82
|
})
|
package/src/main.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './i18n';
|
|
2
|
-
import { applyOptions, loadOptions
|
|
2
|
+
import { applyOptions, loadOptions } from '@c8y/bootstrap';
|
|
3
3
|
|
|
4
4
|
const barHolder: HTMLElement = document.querySelector('body > .init-load');
|
|
5
5
|
export const removeProgress = () => barHolder && barHolder.parentNode.removeChild(barHolder);
|
|
@@ -8,11 +8,13 @@ applicationSetup();
|
|
|
8
8
|
|
|
9
9
|
async function applicationSetup() {
|
|
10
10
|
const options = await applyOptions({
|
|
11
|
-
...(await loadOptions())
|
|
12
|
-
...((await loginOptions()) as object)
|
|
11
|
+
...(await loadOptions())
|
|
13
12
|
});
|
|
14
13
|
|
|
15
|
-
const mod = await import(
|
|
14
|
+
const mod = await import(
|
|
15
|
+
/* webpackPreload: true */
|
|
16
|
+
'./bootstrap'
|
|
17
|
+
);
|
|
16
18
|
const bootstrapApp = mod.bootstrap || (window as any).bootstrap || (() => null);
|
|
17
19
|
|
|
18
20
|
return Promise.resolve(bootstrapApp(options)).then(removeProgress);
|
package/src/ng1.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import '@c8y/ng1-modules/core';
|
|
2
|
-
import '@c8y/ng1-modules/aclManagement/cumulocity.json';
|
|
3
2
|
import '@c8y/ng1-modules/dashboard2/cumulocity.json';
|
|
4
|
-
import '@c8y/ng1-modules/devicePropertyWidget/cumulocity.json';
|
|
5
3
|
import '@c8y/ng1-modules/qrCode/cumulocity.json';
|
|
6
4
|
import '@c8y/ng1-modules/deviceControlRelay/cumulocity.json';
|
|
7
5
|
import '@c8y/ng1-modules/deviceControlRelayArray/cumulocity.json';
|
|
8
6
|
import '@c8y/ng1-modules/administration-deviceUsers/cumulocity.json';
|
|
9
7
|
import '@c8y/ng1-modules/eventsBinary/cumulocity.json';
|
|
10
|
-
import '@c8y/ng1-modules/alarmAssets/cumulocity.json';
|
|
11
8
|
import '@c8y/ng1-modules/kpi/cumulocity.json';
|
|
12
|
-
import '@c8y/ng1-modules/deviceSelector/cumulocity.json';
|
|
13
9
|
import '@c8y/ng1-modules/smartRules/cumulocity.json';
|
|
14
10
|
import '@c8y/ng1-modules/relayWidget/cumulocity.json';
|
|
15
11
|
import '@c8y/ng1-modules/commandTemplates/cumulocity.json';
|
|
@@ -19,16 +15,12 @@ import '@c8y/ng1-modules/smartRestEditorUI/cumulocity.json';
|
|
|
19
15
|
import '@c8y/ng1-modules/simulators/cumulocity.json';
|
|
20
16
|
import '@c8y/ng1-modules/remoteAccess/cumulocity.json';
|
|
21
17
|
import '@c8y/ng1-modules/deviceActility/cumulocity.json';
|
|
22
|
-
import '@c8y/ng1-modules/devicemanagement-aclManagement/cumulocity.json';
|
|
23
18
|
import '@c8y/ng1-modules/devicemanagement-deviceManagement/cumulocity.json';
|
|
24
19
|
import '@c8y/ng1-modules/devicemanagement-deviceListMap/cumulocity.json';
|
|
25
|
-
import '@c8y/ng1-modules/devicemanagement-alarmList/cumulocity.json';
|
|
26
20
|
import '@c8y/ng1-modules/devicemanagement-deviceNetwork/cumulocity.json';
|
|
27
21
|
import '@c8y/ng1-modules/devicemanagement-eventList/cumulocity.json';
|
|
28
22
|
import '@c8y/ng1-modules/devicemanagement-availability/cumulocity.json';
|
|
29
23
|
import '@c8y/ng1-modules/devicemanagement-measurements/cumulocity.json';
|
|
30
|
-
import '@c8y/ng1-modules/devicemanagement-vendMeDeviceControl/cumulocity.json';
|
|
31
|
-
import '@c8y/ng1-modules/groupsHierarchy/cumulocity.json';
|
|
32
24
|
import '@c8y/ng1-modules/devicemanagement-tixiDeviceControl/cumulocity.json';
|
|
33
25
|
import '@c8y/ng1-modules/devicemanagement-logViewer/cumulocity.json';
|
|
34
26
|
import '@c8y/ng1-modules/fieldbusConfig/cumulocity.json';
|
|
@@ -38,7 +30,6 @@ import '@c8y/ng1-modules/modbusWidget4/cumulocity.json';
|
|
|
38
30
|
import '@c8y/ng1-modules/device-protocols/cumulocity.json';
|
|
39
31
|
import '@c8y/ng1-modules/device-protocol-lwm2m/cumulocity.json';
|
|
40
32
|
import '@c8y/ng1-modules/device-protocol-opcua-v2/cumulocity.json';
|
|
41
|
-
import '@c8y/ng1-modules/cockpit-alarmRecent/cumulocity.json';
|
|
42
33
|
import '@c8y/ng1-modules/assetTable/cumulocity.json';
|
|
43
34
|
import '@c8y/ng1-modules/dataPointTable/cumulocity.json';
|
|
44
35
|
import '@c8y/ng1-modules/eventList/cumulocity.json';
|
package/src/polyfills.ts
CHANGED
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
/***************************************************************************************************
|
|
38
38
|
* Zone JS is required by default for Angular itself.
|
|
39
39
|
*/
|
|
40
|
-
import 'zone.js
|
|
40
|
+
import 'zone.js'; // Included with Angular CLI.
|