(front) Update to Angular 13

This commit is contained in:
2022-11-04 23:50:54 +01:00
parent 754ee9213c
commit a10c9ae060
6 changed files with 4255 additions and 6548 deletions

View File

@@ -25,6 +25,7 @@
!.vscode/extensions.json !.vscode/extensions.json
# misc # misc
/.angular/cache
/.sass-cache /.sass-cache
/connect.lock /connect.lock
/coverage /coverage

View File

@@ -100,19 +100,6 @@
"scripts": [] "scripts": []
} }
}, },
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": { "e2e": {
"builder": "@angular-devkit/build-angular:protractor", "builder": "@angular-devkit/build-angular:protractor",
"options": { "options": {

10748
dashboard/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,15 +11,15 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~12.2.2", "@angular/animations": "~13.3.11",
"@angular/common": "~12.2.2", "@angular/common": "~13.3.11",
"@angular/compiler": "~12.2.2", "@angular/compiler": "~13.3.11",
"@angular/core": "~12.2.2", "@angular/core": "~13.3.11",
"@angular/forms": "~12.2.2", "@angular/forms": "~13.3.11",
"@angular/localize": "~12.2.2", "@angular/localize": "~13.3.11",
"@angular/platform-browser": "~12.2.2", "@angular/platform-browser": "~13.3.11",
"@angular/platform-browser-dynamic": "~12.2.2", "@angular/platform-browser-dynamic": "~13.3.11",
"@angular/router": "~12.2.2", "@angular/router": "~13.3.11",
"@ng-bootstrap/ng-bootstrap": "^10.0.0", "@ng-bootstrap/ng-bootstrap": "^10.0.0",
"bootstrap": "^3.3.7", "bootstrap": "^3.3.7",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",
@@ -27,10 +27,9 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~12.2.2", "@angular-devkit/build-angular": "~13.3.9",
"@angular/cli": "~12.2.2", "@angular/cli": "~13.3.9",
"@angular/compiler-cli": "~12.2.2", "@angular/compiler-cli": "~13.3.11",
"@angular/localize": "^12.2.2",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
@@ -44,6 +43,6 @@
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.3.0", "ts-node": "~8.3.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.3.5" "typescript": "~4.6.4"
} }
} }

View File

@@ -22,16 +22,6 @@ import '@angular/localize/init';
* BROWSER POLYFILLS * BROWSER POLYFILLS
*/ */
/** IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** /**
* By default, zone.js will patch all possible macroTask and DomEvents * By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags * user can disable parts of macroTask/DomEvents patch by setting following flags

View File

@@ -17,7 +17,9 @@ declare const require: {
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);