Update to v11

This commit is contained in:
Sébastien André
2021-01-08 16:38:04 +01:00
parent 57575c0b81
commit d7c02d7fc0
22 changed files with 340 additions and 608 deletions

View File

@@ -30,23 +30,26 @@
}, },
"configurations": { "configurations": {
"production": { "production": {
"budgets": [{ "budgets": [
{
"type": "anyComponentStyle", "type": "anyComponentStyle",
"maximumWarning": "6kb" "maximumWarning": "6kb"
}], }
],
"optimization": true, "optimization": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"extractCss": true,
"namedChunks": false, "namedChunks": false,
"aot": true, "aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": false, "vendorChunk": false,
"buildOptimizer": true, "buildOptimizer": true,
"fileReplacements": [{ "fileReplacements": [
{
"replace": "src/environments/environment.ts", "replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts" "with": "src/environments/environment.prod.ts"
}] }
]
} }
} }
}, },

File diff suppressed because it is too large Load Diff

View File

@@ -12,16 +12,16 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^10.2.4", "@angular/animations": "^11.0.7",
"@angular/cdk": "^10.2.7", "@angular/cdk": "^11.0.3",
"@angular/common": "^10.2.4", "@angular/common": "^11.0.7",
"@angular/compiler": "^10.2.4", "@angular/compiler": "^11.0.7",
"@angular/core": "^10.2.4", "@angular/core": "^11.0.7",
"@angular/forms": "^10.2.4", "@angular/forms": "^11.0.7",
"@angular/material": "^10.2.7", "@angular/material": "^11.0.3",
"@angular/platform-browser": "^10.2.4", "@angular/platform-browser": "^11.0.7",
"@angular/platform-browser-dynamic": "^10.2.4", "@angular/platform-browser-dynamic": "^11.0.7",
"@angular/router": "^10.2.4", "@angular/router": "^11.0.7",
"bufferutil": "^4.0.3", "bufferutil": "^4.0.3",
"core-js": "^2.6.12", "core-js": "^2.6.12",
"fibers": "^5.0.0", "fibers": "^5.0.0",
@@ -29,29 +29,29 @@
"node-sass": "^4.14.1", "node-sass": "^4.14.1",
"rxjs": "^6.6.3", "rxjs": "^6.6.3",
"rxjs-compat": "^6.6.3", "rxjs-compat": "^6.6.3",
"tslib": "^1.14.1", "tslib": "^2.0.0",
"utf-8-validate": "^5.0.4", "utf-8-validate": "^5.0.4",
"zone.js": "^0.10.3" "zone.js": "^0.10.3"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^0.1100.6", "@angular-devkit/build-angular": "^0.1100.6",
"@angular/cli": "^10.2.1", "@angular/cli": "^11.0.6",
"@angular/compiler-cli": "^10.2.4", "@angular/compiler-cli": "^11.0.7",
"@angular/language-service": "^10.2.4", "@angular/language-service": "^11.0.7",
"@types/jasmine": "^2.8.17", "@types/jasmine": "~3.6.0",
"@types/jasminewd2": "^2.0.8", "@types/jasminewd2": "^2.0.8",
"@types/node": "^12.19.12", "@types/node": "^12.19.12",
"codelyzer": "^5.2.2", "codelyzer": "^6.0.0",
"jasmine-core": "~2.8.0", "jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~5.0.0",
"karma": "^5.2.3", "karma": "^5.2.3",
"karma-chrome-launcher": "~2.2.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "^1.2.1", "karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^0.2.2", "karma-jasmine-html-reporter": "^1.5.0",
"protractor": "^7.0.0", "protractor": "^7.0.0",
"ts-node": "~4.1.0", "ts-node": "~4.1.0",
"tslint": "~5.9.1", "tslint": "~6.1.3",
"typescript": "~3.9.7" "typescript": "~4.0.5"
} }
} }

View File

@@ -1,24 +1,24 @@
import { TestBed, async } from '@angular/core/testing'; import { TestBed, waitForAsync } from '@angular/core/testing';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
describe('AppComponent', () => { describe('AppComponent', () => {
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ declarations: [
AppComponent AppComponent
], ],
}).compileComponents(); }).compileComponents();
})); }));
it('should create the app', async(() => { it('should create the app', waitForAsync(() => {
const fixture = TestBed.createComponent(AppComponent); const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance; const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy(); expect(app).toBeTruthy();
})); }));
it(`should have as title 'app'`, async(() => { it(`should have as title 'app'`, waitForAsync(() => {
const fixture = TestBed.createComponent(AppComponent); const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance; const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('app'); expect(app.title).toEqual('app');
})); }));
it('should render title in a h1 tag', async(() => { it('should render title in a h1 tag', waitForAsync(() => {
const fixture = TestBed.createComponent(AppComponent); const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges(); fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement; const compiled = fixture.debugElement.nativeElement;

View File

@@ -134,7 +134,8 @@ const appRoutes: Routes = [
imports: [ imports: [
RouterModule.forRoot( RouterModule.forRoot(
appRoutes, appRoutes,
{ enableTracing: !environment.production } // <-- debugging purposes only { enableTracing: !environment.production, relativeLinkResolution: 'legacy' } // <-- debugging purposes only
// <-- debugging purposes only
), ),
ReactiveFormsModule, ReactiveFormsModule,
FormsModule, FormsModule,

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { CreateUserComponent } from './create-user.component'; import { CreateUserComponent } from './create-user.component';
@@ -6,7 +6,7 @@ describe('CreateUserComponent', () => {
let component: CreateUserComponent; let component: CreateUserComponent;
let fixture: ComponentFixture<CreateUserComponent>; let fixture: ComponentFixture<CreateUserComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ CreateUserComponent ] declarations: [ CreateUserComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { DefaultComponent } from './default.component'; import { DefaultComponent } from './default.component';
@@ -6,7 +6,7 @@ describe('DefaultComponent', () => {
let component: DefaultComponent; let component: DefaultComponent;
let fixture: ComponentFixture<DefaultComponent>; let fixture: ComponentFixture<DefaultComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ DefaultComponent ] declarations: [ DefaultComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { ListOfAircraftsComponent } from './list-of-aircrafts.component'; import { ListOfAircraftsComponent } from './list-of-aircrafts.component';
@@ -6,7 +6,7 @@ describe('ListOfAircraftsComponent', () => {
let component: ListOfAircraftsComponent; let component: ListOfAircraftsComponent;
let fixture: ComponentFixture<ListOfAircraftsComponent>; let fixture: ComponentFixture<ListOfAircraftsComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ ListOfAircraftsComponent ] declarations: [ ListOfAircraftsComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { ListOfDzsComponent } from './list-of-dzs.component'; import { ListOfDzsComponent } from './list-of-dzs.component';
@@ -6,7 +6,7 @@ describe('ListOfDzsComponent', () => {
let component: ListOfDzsComponent; let component: ListOfDzsComponent;
let fixture: ComponentFixture<ListOfDzsComponent>; let fixture: ComponentFixture<ListOfDzsComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ ListOfDzsComponent ] declarations: [ ListOfDzsComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { ListOfGearsComponent } from './list-of-gears.component'; import { ListOfGearsComponent } from './list-of-gears.component';
@@ -6,7 +6,7 @@ describe('ListOfGearsComponent', () => {
let component: ListOfGearsComponent; let component: ListOfGearsComponent;
let fixture: ComponentFixture<ListOfGearsComponent>; let fixture: ComponentFixture<ListOfGearsComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ ListOfGearsComponent ] declarations: [ ListOfGearsComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { ListOfImagesComponent } from './list-of-images.component'; import { ListOfImagesComponent } from './list-of-images.component';
@@ -6,7 +6,7 @@ describe('ListOfImagesComponent', () => {
let component: ListOfImagesComponent; let component: ListOfImagesComponent;
let fixture: ComponentFixture<ListOfImagesComponent>; let fixture: ComponentFixture<ListOfImagesComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ ListOfImagesComponent ] declarations: [ ListOfImagesComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { ListOfJumpTypesComponent } from './list-of-jump-types.component'; import { ListOfJumpTypesComponent } from './list-of-jump-types.component';
@@ -6,7 +6,7 @@ describe('ListOfJumpTypesComponent', () => {
let component: ListOfJumpTypesComponent; let component: ListOfJumpTypesComponent;
let fixture: ComponentFixture<ListOfJumpTypesComponent>; let fixture: ComponentFixture<ListOfJumpTypesComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ ListOfJumpTypesComponent ] declarations: [ ListOfJumpTypesComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { ListOfJumpsComponent } from './list-of-jumps.component'; import { ListOfJumpsComponent } from './list-of-jumps.component';
@@ -6,7 +6,7 @@ describe('ListOfJumpsComponent', () => {
let component: ListOfJumpsComponent; let component: ListOfJumpsComponent;
let fixture: ComponentFixture<ListOfJumpsComponent>; let fixture: ComponentFixture<ListOfJumpsComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ ListOfJumpsComponent ] declarations: [ ListOfJumpsComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { LoginUserComponent } from './login-user.component'; import { LoginUserComponent } from './login-user.component';
@@ -6,7 +6,7 @@ describe('LoginUserComponent', () => {
let component: LoginUserComponent; let component: LoginUserComponent;
let fixture: ComponentFixture<LoginUserComponent>; let fixture: ComponentFixture<LoginUserComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ LoginUserComponent ] declarations: [ LoginUserComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { LoginComponent } from './login.component'; import { LoginComponent } from './login.component';
@@ -6,7 +6,7 @@ describe('LoginComponent', () => {
let component: LoginComponent; let component: LoginComponent;
let fixture: ComponentFixture<LoginComponent>; let fixture: ComponentFixture<LoginComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ LoginComponent ] declarations: [ LoginComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { NewAircraftComponent } from './new-aircraft.component'; import { NewAircraftComponent } from './new-aircraft.component';
@@ -6,7 +6,7 @@ describe('NewAircraftComponent', () => {
let component: NewAircraftComponent; let component: NewAircraftComponent;
let fixture: ComponentFixture<NewAircraftComponent>; let fixture: ComponentFixture<NewAircraftComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ NewAircraftComponent ] declarations: [ NewAircraftComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { NewDropZoneComponent } from './new-drop-zone.component'; import { NewDropZoneComponent } from './new-drop-zone.component';
@@ -6,7 +6,7 @@ describe('NewDropZoneComponent', () => {
let component: NewDropZoneComponent; let component: NewDropZoneComponent;
let fixture: ComponentFixture<NewDropZoneComponent>; let fixture: ComponentFixture<NewDropZoneComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ NewDropZoneComponent ] declarations: [ NewDropZoneComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { NewGearComponent } from './new-gear.component'; import { NewGearComponent } from './new-gear.component';
@@ -6,7 +6,7 @@ describe('NewGearComponent', () => {
let component: NewGearComponent; let component: NewGearComponent;
let fixture: ComponentFixture<NewGearComponent>; let fixture: ComponentFixture<NewGearComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ NewGearComponent ] declarations: [ NewGearComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { NewJumpTypeComponent } from './new-jump-type.component'; import { NewJumpTypeComponent } from './new-jump-type.component';
@@ -6,7 +6,7 @@ describe('NewJumpTypeComponent', () => {
let component: NewJumpTypeComponent; let component: NewJumpTypeComponent;
let fixture: ComponentFixture<NewJumpTypeComponent>; let fixture: ComponentFixture<NewJumpTypeComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ NewJumpTypeComponent ] declarations: [ NewJumpTypeComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { NewJumpComponent } from './new-jump.component'; import { NewJumpComponent } from './new-jump.component';
@@ -6,7 +6,7 @@ describe('NewJumpComponent', () => {
let component: NewJumpComponent; let component: NewJumpComponent;
let fixture: ComponentFixture<NewJumpComponent>; let fixture: ComponentFixture<NewJumpComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ NewJumpComponent ] declarations: [ NewJumpComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { SummaryComponent } from './summary.component'; import { SummaryComponent } from './summary.component';
@@ -6,7 +6,7 @@ describe('SummaryComponent', () => {
let component: SummaryComponent; let component: SummaryComponent;
let fixture: ComponentFixture<SummaryComponent>; let fixture: ComponentFixture<SummaryComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ SummaryComponent ] declarations: [ SummaryComponent ]
}) })

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { UserProfileComponent } from './user-profile.component'; import { UserProfileComponent } from './user-profile.component';
@@ -6,7 +6,7 @@ describe('UserProfileComponent', () => {
let component: UserProfileComponent; let component: UserProfileComponent;
let fixture: ComponentFixture<UserProfileComponent>; let fixture: ComponentFixture<UserProfileComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ UserProfileComponent ] declarations: [ UserProfileComponent ]
}) })