-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Upgrade to Web SDK v1020.28.6
- Loading branch information
1 parent
16d452b
commit eb69207
Showing
23 changed files
with
19,262 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. | ||
# For additional information regarding the format and rule options, please see: | ||
# https://github.com/browserslist/browserslist#queries | ||
|
||
# For the full list of supported browsers by the Angular framework, please see: | ||
# https://angular.io/guide/browser-support | ||
|
||
# You can see what browsers were selected by your queries by running: | ||
# npx browserslist | ||
|
||
last 2 Chrome versions | ||
last 1 Firefox version | ||
last 2 Edge major versions | ||
last 2 Safari major versions | ||
last 2 iOS major versions | ||
Firefox ESR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Editor configuration, see https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.ts] | ||
quote_type = single | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files. | ||
|
||
# Compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
/bazel-out | ||
|
||
# Node | ||
/node_modules | ||
npm-debug.log | ||
yarn-error.log | ||
|
||
# IDEs and editors | ||
.idea/ | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# Visual Studio Code | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
.history/* | ||
|
||
# Miscellaneous | ||
/.angular/cache | ||
.sass-cache/ | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
testem.log | ||
/typings | ||
|
||
# System files | ||
.DS_Store | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846 | ||
"recommendations": ["angular.ng-template"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "ng serve", | ||
"type": "chrome", | ||
"request": "launch", | ||
"preLaunchTask": "npm: start", | ||
"url": "http://localhost:4200/" | ||
}, | ||
{ | ||
"name": "ng test", | ||
"type": "chrome", | ||
"request": "launch", | ||
"preLaunchTask": "npm: test", | ||
"url": "http://localhost:9876/debug.html" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558 | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "start", | ||
"isBackground": true, | ||
"problemMatcher": { | ||
"owner": "typescript", | ||
"pattern": "$tsc", | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": { | ||
"regexp": "(.*?)" | ||
}, | ||
"endsPattern": { | ||
"regexp": "bundle generation complete" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "npm", | ||
"script": "test", | ||
"isBackground": true, | ||
"problemMatcher": { | ||
"owner": "typescript", | ||
"pattern": "$tsc", | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": { | ||
"regexp": "(.*?)" | ||
}, | ||
"endsPattern": { | ||
"regexp": "bundle generation complete" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"administration": { | ||
"projectType": "application", | ||
"schematics": { | ||
"@schematics/angular:component": { | ||
"style": "less", | ||
"standalone": false | ||
}, | ||
"@schematics/angular:directive": { | ||
"standalone": false | ||
}, | ||
"@schematics/angular:pipe": { | ||
"standalone": false | ||
} | ||
}, | ||
"root": "", | ||
"sourceRoot": "src", | ||
"prefix": "app", | ||
"architect": { | ||
"build": { | ||
"builder": "@c8y/devkit:build", | ||
"options": { | ||
"outputPath": "dist/administration", | ||
"polyfills": [ | ||
"zone.js" | ||
], | ||
"tsConfig": "tsconfig.app.json", | ||
"inlineStyleLanguage": "less", | ||
"assets": [ | ||
"src/favicon.ico", | ||
"src/assets" | ||
], | ||
"styles": [ | ||
"src/styles.less" | ||
], | ||
"scripts": [], | ||
"aot": false, | ||
"main": "src/main.ts", | ||
"buildOptimizer": false, | ||
"allowedCommonJsDependencies": [ | ||
"regenerator-runtime/runtime", | ||
"@cordobo/qrcode", | ||
"zone.js/dist/zone", | ||
"chroma-js" | ||
] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"budgets": [ | ||
{ | ||
"type": "initial", | ||
"maximumWarning": "500kb", | ||
"maximumError": "1mb" | ||
}, | ||
{ | ||
"type": "anyComponentStyle", | ||
"maximumWarning": "2kb", | ||
"maximumError": "4kb" | ||
} | ||
], | ||
"outputHashing": "all", | ||
"buildOptimizer": false | ||
}, | ||
"development": { | ||
"optimization": false, | ||
"extractLicenses": false, | ||
"sourceMap": true | ||
} | ||
}, | ||
"defaultConfiguration": "production" | ||
}, | ||
"serve": { | ||
"builder": "@c8y/devkit:dev-server", | ||
"configurations": { | ||
"production": { | ||
"buildTarget": "administration:build:production" | ||
}, | ||
"development": { | ||
"buildTarget": "administration:build:development" | ||
} | ||
}, | ||
"defaultConfiguration": "development" | ||
}, | ||
"extract-i18n": { | ||
"builder": "@c8y/devkit:extract-i18n" | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"polyfills": [ | ||
"zone.js", | ||
"zone.js/testing" | ||
], | ||
"tsConfig": "tsconfig.spec.json", | ||
"inlineStyleLanguage": "less", | ||
"assets": [ | ||
"src/favicon.ico", | ||
"src/assets" | ||
], | ||
"styles": [ | ||
"src/styles.less" | ||
], | ||
"scripts": [] | ||
} | ||
}, | ||
"deploy": { | ||
"builder": "@c8y/devkit:deploy", | ||
"configurations": { | ||
"production": { | ||
"buildTarget": "administration:build:production" | ||
}, | ||
"development": { | ||
"buildTarget": "administration:build:development" | ||
} | ||
}, | ||
"defaultConfiguration": "production" | ||
}, | ||
"compile-i18n": { | ||
"builder": "@c8y/devkit:compile-i18n" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
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' | ||
} | ||
] | ||
}, | ||
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; |
Oops, something went wrong.