-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcumulocity.config.ts
84 lines (82 loc) · 3.04 KB
/
cumulocity.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import type { ConfigurationOptions } from '@c8y/devkit';
import { author, description, version, name } from './package.json';
import { gettext } from '@c8y/ngx-components/gettext';
const defaultDescription = gettext(
'The Administration application enables account administrators to manage their users, roles, tenants, applications and business rules and lets them configure a number of settings for their account.'
);
export default {
runTime: {
author,
description: description || defaultDescription,
version,
name,
globalTitle: 'Cumulocity',
rightDrawer: true,
tabsHorizontal: true,
dynamicOptionsUrl: true,
contextHelp: true,
contentSecurityPolicy:
"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:; media-src 'self' blob:; img-src * data: blob:; font-src * data:; frame-src *; worker-src 'self' blob:;",
upgrade: true,
exports: [
{
module: 'BaseBrandingModule',
name: gettext('Branding base editor'),
path: '@c8y/ngx-components/branding/base-branding',
description: gettext('Allows to make basic changes to the tenants branding.'),
scope: 'self'
},
{
module: 'DarkThemeModule',
name: gettext('Branding dark theme editor'),
path: '@c8y/ngx-components/branding/dark-theme',
description: gettext('Allows editing the dark theme variables.'),
scope: 'self'
},
{
module: 'ExtraCssBrandingEditorModule',
name: gettext('Branding custom CSS editor'),
path: '@c8y/ngx-components/branding/extra-css-branding-editor',
description: gettext('Allows to add and edit a custom style sheet to the branding.'),
scope: 'self'
},
{
module: 'PlainBrandingEditorModule',
name: gettext('Branding JSON editor'),
path: '@c8y/ngx-components/branding/plain-branding-editor',
description: gettext('Allows to edit the plain JSON of the branding.'),
scope: 'self'
},
{
module: 'tranlationEditorProviders',
name: gettext('Translation editor'),
path: '@c8y/ngx-components/translation-editor',
description: gettext('Allows to edit translations.'),
scope: 'self'
}
],
remotes: {
[`c8y-timeseries-migration-plugin@${version.split('.')[0]}-stable`]: ['TimeseriesModule']
}
},
buildTime: {
federation: [
'@angular/animations',
'@angular/cdk',
'@angular/common',
'@angular/compiler',
'@angular/core',
'@angular/forms',
'@angular/platform-browser',
'@angular/platform-browser-dynamic',
'@angular/router',
'@angular/upgrade',
'@c8y/client',
'@c8y/ngx-components',
'angular',
'ngx-bootstrap',
'@ngx-translate/core',
'@ngx-formly/core'
]
}
} as const satisfies ConfigurationOptions;