chore: upgrade to Angular 15

This commit is contained in:
Tom Fong 2023-06-11 12:17:04 +08:00
parent 68dbecdbee
commit f5dd413a93
5 changed files with 2043 additions and 2159 deletions

4151
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -16,17 +16,17 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^14.2.3",
"@angular/animations": "^15.2.9",
"@angular/cdk": "^14.2.2",
"@angular/common": "^14.2.3",
"@angular/core": "^14.2.3",
"@angular/forms": "^14.3.0",
"@angular/localize": "^14.3.0",
"@angular/common": "^15.2.9",
"@angular/core": "^15.2.9",
"@angular/forms": "^15.2.9",
"@angular/localize": "^15.2.9",
"@angular/material": "^14.2.2",
"@angular/material-moment-adapter": "^14.2.7",
"@angular/platform-browser": "^14.2.3",
"@angular/platform-browser-dynamic": "^14.3.0",
"@angular/router": "^14.3.0",
"@angular/platform-browser": "^15.2.9",
"@angular/platform-browser-dynamic": "^15.2.9",
"@angular/router": "^15.2.9",
"@awesome-cordova-plugins/aes-256": "^6.3.0",
"@awesome-cordova-plugins/chooser": "^6.2.0",
"@awesome-cordova-plugins/core": "^6.3.0",
@ -54,11 +54,11 @@
"@ionic/angular": "^6.7.5",
"@ionic/storage": "^3.0.6",
"@ionic/storage-angular": "^3.0.6",
"@ng-bootstrap/ng-bootstrap": "^13.1.1",
"@ng-bootstrap/ng-bootstrap": "^14.2.0",
"@ngx-translate/core": "^13.0.0",
"@ngx-translate/http-loader": "^6.0.0",
"@techiediaries/ngx-qrcode": "^9.1.0",
"bootstrap": "^4.6.2",
"bootstrap": "^5.3.0",
"cordova-plugin-aes256-encryption": "^2.0.1",
"cordova-plugin-chooser": "^1.3.2",
"cordova-plugin-screen-orientation": "^3.0.3",
@ -79,11 +79,11 @@
"zone.js": "^0.11.8"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.2.11",
"@angular/cli": "^14.2.11",
"@angular/compiler": "^14.2.3",
"@angular/compiler-cli": "^14.2.3",
"@angular/language-service": "^14.3.0",
"@angular-devkit/build-angular": "^15.2.8",
"@angular/cli": "^15.2.8",
"@angular/compiler": "^15.2.9",
"@angular/compiler-cli": "^15.2.9",
"@angular/language-service": "^15.2.9",
"@capacitor/cli": "^4.8.0",
"@ionic/angular-toolkit": "^6.1.0",
"@ionic/cli": "6.20.1",

View file

@ -7,13 +7,6 @@ import {
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: {
context(path: string, deep?: boolean, filter?: RegExp): {
keys(): string[];
<T>(id: string): T;
};
};
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
@ -21,7 +14,3 @@ getTestBed().initTestEnvironment(
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

View file

@ -715,4 +715,4 @@ body {
}
/* Importing Bootstrap SCSS file. */
@import "~bootstrap/scss/bootstrap";
@import "bootstrap/scss/bootstrap";

View file

@ -10,9 +10,13 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"target": "ES2022",
"module": "es2020",
"lib": ["es2018", "dom"]
"lib": [
"es2018",
"dom"
],
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,