@c8y/cockpit 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 +68 -3
- package/package.json +16 -14
- package/src/app/app.module.ts +0 -6
- 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 { version, description, author, name } from './package.json';
|
|
2
|
+
import { version, description, author, name, license } from './package.json';
|
|
3
3
|
import { gettext } from '@c8y/ngx-components/gettext';
|
|
4
4
|
import { cockpitWidgetsExports } from '@c8y/ngx-components/widgets/cockpit-exports';
|
|
5
5
|
|
|
@@ -20,14 +20,23 @@ export default {
|
|
|
20
20
|
sensorAppOneLink: 'http://onelink.to/pca6qe',
|
|
21
21
|
sensorPhone: true,
|
|
22
22
|
contentSecurityPolicy:
|
|
23
|
-
"base-uri 'none'; default-src 'self' 'unsafe-inline' http: https: ws: wss:; connect-src 'self' http: https: ws: wss: data:; 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:;",
|
|
23
|
+
"base-uri 'none'; default-src 'self' 'unsafe-inline' http: https: ws: wss:; connect-src 'self' http: https: ws: wss: data:; script-src 'self' *.bugherd.com *.twitter.com *.twimg.com *.aptrinsic.com 'unsafe-inline' 'unsafe-eval' data: blob:; style-src * 'unsafe-inline' blob:; img-src * data: blob:; font-src * data:; frame-src *; worker-src 'self' blob:;",
|
|
24
24
|
dynamicOptionsUrl: true,
|
|
25
25
|
contextHelp: true,
|
|
26
|
+
license,
|
|
26
27
|
upgrade: true,
|
|
28
|
+
importMap: {
|
|
29
|
+
lit: '@c8y/html-repo/lit',
|
|
30
|
+
leaflet: '@c8y/html-repo/leaflet',
|
|
31
|
+
echarts: '@c8y/html-repo/echarts',
|
|
32
|
+
angular: '@c8y/html-repo/angular',
|
|
33
|
+
styles: '@c8y/html-repo/styles',
|
|
34
|
+
fetch: '@c8y/html-repo/fetch'
|
|
35
|
+
},
|
|
27
36
|
exports: [
|
|
28
37
|
...cockpitWidgetsExports,
|
|
29
38
|
{
|
|
30
|
-
name: 'Reports',
|
|
39
|
+
name: 'Dashboards: Reports',
|
|
31
40
|
module: 'ReportDashboardModule',
|
|
32
41
|
path: '@c8y/ngx-components/report-dashboard',
|
|
33
42
|
description: 'Reports list and navigator items reports',
|
|
@@ -103,6 +112,62 @@ export default {
|
|
|
103
112
|
path: '@c8y/ngx-components/datapoint-explorer',
|
|
104
113
|
description: 'Enables visualization of data points',
|
|
105
114
|
scope: 'self'
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'Dashboards: Dashboard manager',
|
|
118
|
+
module: 'DashboardManagerModule',
|
|
119
|
+
path: '@c8y/ngx-components/dashboard-manager',
|
|
120
|
+
description: 'Type dashboards manager.',
|
|
121
|
+
scope: 'self'
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'Dashboards: Add device dashboards',
|
|
125
|
+
module: 'AddDeviceContextDashboardModule',
|
|
126
|
+
path: '@c8y/ngx-components/context-dashboard/device/add',
|
|
127
|
+
description: 'Allows to add dashboards on device level.',
|
|
128
|
+
scope: 'self'
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'Dashboards: View device dashboards',
|
|
132
|
+
module: 'ViewDeviceContextDashboardModule',
|
|
133
|
+
path: '@c8y/ngx-components/context-dashboard/device/view',
|
|
134
|
+
description: 'Allows to view dashboards on device level.',
|
|
135
|
+
scope: 'self'
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'Dashboards: Add asset/group dashboards',
|
|
139
|
+
module: 'AddAssetContextDashboardModule',
|
|
140
|
+
path: '@c8y/ngx-components/context-dashboard/asset/add',
|
|
141
|
+
description: 'Allows to add dashboards on asset/group level.',
|
|
142
|
+
scope: 'self'
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'Dashboards: View asset/group dashboards',
|
|
146
|
+
module: 'ViewAssetContextDashboardModule',
|
|
147
|
+
path: '@c8y/ngx-components/context-dashboard/asset/view',
|
|
148
|
+
description: 'Allows to view dashboards on asset/group level.',
|
|
149
|
+
scope: 'self'
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'Dashboards: Cockpit home dashboard',
|
|
153
|
+
module: 'CockpitDashboardModule',
|
|
154
|
+
path: '@c8y/ngx-components/context-dashboard/cockpit-home-dashboard',
|
|
155
|
+
description: 'The home dashboard of the cockpit app, shown when cockpit is opened.',
|
|
156
|
+
scope: 'self'
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'Dashboard details advanced tab',
|
|
160
|
+
module: 'DashboardDetailsAdvancedTabModule',
|
|
161
|
+
path: '@c8y/ngx-components/dashboard-details-advanced-tab',
|
|
162
|
+
description: 'Dashboard details tab for advanced settings.',
|
|
163
|
+
scope: 'self'
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'Exports',
|
|
167
|
+
module: 'exportsProviders',
|
|
168
|
+
path: '@c8y/ngx-components/exports',
|
|
169
|
+
description: 'Exports',
|
|
170
|
+
scope: 'self'
|
|
106
171
|
}
|
|
107
172
|
]
|
|
108
173
|
},
|
package/package.json
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c8y/cockpit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1022.4.2",
|
|
4
4
|
"description": "This package is used to scaffold a cockpit 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/
|
|
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
|
+
"@c8y/html-repo": "1022.4.2",
|
|
12
|
+
"@angular/cdk": "^19.2.18",
|
|
13
|
+
"@angular/upgrade": "^19.2.14",
|
|
13
14
|
"angular": "1.8.3",
|
|
14
|
-
"ngx-bootstrap": "
|
|
15
|
-
"rxjs": "
|
|
15
|
+
"ngx-bootstrap": "19.0.2",
|
|
16
|
+
"rxjs": "7.8.1"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
|
-
"@c8y/options": "
|
|
19
|
-
"@c8y/devkit": "
|
|
19
|
+
"@c8y/options": "1022.4.2",
|
|
20
|
+
"@c8y/devkit": "1022.4.2"
|
|
20
21
|
},
|
|
21
22
|
"peerDependencies": {
|
|
22
|
-
"@angular/common": ">=
|
|
23
|
+
"@angular/common": ">=19 <20"
|
|
23
24
|
},
|
|
24
|
-
"author": "Cumulocity GmbH"
|
|
25
|
+
"author": "Cumulocity GmbH",
|
|
26
|
+
"license": "Apache-2.0"
|
|
25
27
|
}
|
package/src/app/app.module.ts
CHANGED
|
@@ -9,10 +9,6 @@ import {
|
|
|
9
9
|
UPGRADE_ROUTES
|
|
10
10
|
} from '@c8y/ngx-components/upgrade';
|
|
11
11
|
import { SubAssetsModule } from '@c8y/ngx-components/sub-assets';
|
|
12
|
-
import {
|
|
13
|
-
CockpitDashboardModule,
|
|
14
|
-
DashboardManagerModule
|
|
15
|
-
} from '@c8y/ngx-components/context-dashboard';
|
|
16
12
|
import { ReportsModule } from '@c8y/ngx-components/reports';
|
|
17
13
|
import { BinaryFileDownloadModule } from '@c8y/ngx-components/binary-file-download';
|
|
18
14
|
import { CockpitConfigModule } from '@c8y/ngx-components/cockpit-config';
|
|
@@ -29,8 +25,6 @@ import { PendingMoRequestModule } from '@c8y/ngx-components/pending-mo-request';
|
|
|
29
25
|
ReportsModule,
|
|
30
26
|
NgUpgradeModule,
|
|
31
27
|
DashboardUpgradeModule,
|
|
32
|
-
CockpitDashboardModule,
|
|
33
|
-
DashboardManagerModule,
|
|
34
28
|
BinaryFileDownloadModule,
|
|
35
29
|
SubAssetsModule.config(),
|
|
36
30
|
CockpitConfigModule,
|
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
|
}
|