update ng12

This commit is contained in:
2021-05-21 10:10:45 +02:00
parent 932c6a2a63
commit a164af46f1
59 changed files with 7808 additions and 6772 deletions

View File

@@ -41,7 +41,13 @@
"src/styles/styles.less", "src/styles/styles.less",
"src/styles/shadow.less" "src/styles/shadow.less"
], ],
"scripts": [] "scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -54,7 +60,6 @@
"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,

View File

@@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/e2e", "outDir": "../out-tsc/e2e",
"module": "commonjs", "module": "commonjs",
"target": "es5", "target": "es2018",
"types": [ "types": [
"jasmine", "jasmine",
"jasminewd2", "jasminewd2",

14089
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,18 +11,18 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~9.1.2", "@angular/animations": "~12.0.1",
"@angular/cdk": "^9.2.1", "@angular/cdk": "^9.2.1",
"@angular/common": "~9.1.2", "@angular/common": "~12.0.1",
"@angular/compiler": "~9.1.2", "@angular/compiler": "~12.0.1",
"@angular/core": "~9.1.2", "@angular/core": "~12.0.1",
"@angular/fire": "^5.4.2", "@angular/fire": "^5.4.2",
"@angular/forms": "~9.1.2", "@angular/forms": "~12.0.1",
"@angular/material": "^9.2.1", "@angular/material": "^9.2.1",
"@angular/platform-browser": "~9.1.2", "@angular/platform-browser": "~12.0.1",
"@angular/platform-browser-dynamic": "~9.1.2", "@angular/platform-browser-dynamic": "~12.0.1",
"@angular/router": "~9.1.2", "@angular/router": "~12.0.1",
"@angular/service-worker": "~9.1.2", "@angular/service-worker": "~12.0.1",
"@fortawesome/angular-fontawesome": "^0.6.1", "@fortawesome/angular-fontawesome": "^0.6.1",
"@fortawesome/fontawesome-svg-core": "^1.2.28", "@fortawesome/fontawesome-svg-core": "^1.2.28",
"@fortawesome/free-solid-svg-icons": "^5.13.0", "@fortawesome/free-solid-svg-icons": "^5.13.0",
@@ -33,33 +33,33 @@
"ngx-perfect-scrollbar": "^9.0.0", "ngx-perfect-scrollbar": "^9.0.0",
"ngx-swiper-wrapper": "^9.0.1", "ngx-swiper-wrapper": "^9.0.1",
"rxjs": "~6.5.5", "rxjs": "~6.5.5",
"tslib": "^1.10.0", "tslib": "^2.0.0",
"zone.js": "~0.10.2" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/architect": "<0.900 || ^0.900.0-0 || ^9.0.0-0", "@angular-devkit/architect": "0.1200.1",
"@angular-devkit/build-angular": "~0.901.6", "@angular-devkit/build-angular": "~12.0.1",
"@angular/cli": "~9.1.6", "@angular/cli": "~12.0.1",
"@angular/compiler-cli": "~9.1.2", "@angular/compiler-cli": "~12.0.1",
"@angular/language-service": "~9.1.2", "@angular/language-service": "~12.0.1",
"@types/jasmine": "~3.3.8", "@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"@types/node": "^12.12.36", "@types/node": "^12.12.36",
"codelyzer": "^5.1.2", "codelyzer": "^6.0.0",
"firebase-tools": "^7.12.0", "firebase-tools": "^7.12.0",
"fuzzy": "^0.1.3", "fuzzy": "^0.1.3",
"inquirer": "^6.2.2", "inquirer": "^6.2.2",
"inquirer-autocomplete-prompt": "^1.0.1", "inquirer-autocomplete-prompt": "^1.0.1",
"jasmine-core": "~3.4.0", "jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~5.0.0",
"karma": "~4.1.0", "karma": "~5.0.0",
"karma-chrome-launcher": "~2.2.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.0.1", "karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~2.0.1", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.4.0", "karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~5.4.0", "protractor": "~7.0.0",
"ts-node": "~7.0.0", "ts-node": "~7.0.0",
"tslint": "~5.15.0", "tslint": "~6.1.0",
"typescript": "~3.8.3" "typescript": "~4.2.4"
} }
} }

View File

@@ -51,7 +51,7 @@ const routes: Routes = [
]; ];
@NgModule({ @NgModule({
imports: [RouterModule.forRoot(routes, {preloadingStrategy: PreloadAllModules})], imports: [RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules, relativeLinkResolution: 'legacy' })],
exports: [RouterModule] exports: [RouterModule]
}) })
export class AppRoutingModule { export class AppRoutingModule {

View File

@@ -1,9 +1,9 @@
import {async, TestBed} from '@angular/core/testing'; import {TestBed, waitForAsync} from '@angular/core/testing';
import {RouterTestingModule} from '@angular/router/testing'; import {RouterTestingModule} from '@angular/router/testing';
import {AppComponent} from './app.component'; import {AppComponent} from './app.component';
describe('AppComponent', () => { describe('AppComponent', () => {
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [ imports: [
RouterTestingModule RouterTestingModule

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
import {async, TestBed} from '@angular/core/testing'; import {TestBed, waitForAsync} from '@angular/core/testing';
import {SongDataService} from './song-data.service'; import {SongDataService} from './song-data.service';
import {AngularFirestore} from '@angular/fire/firestore'; import {AngularFirestore} from '@angular/fire/firestore';
@@ -29,7 +29,7 @@ describe('SongDataService', () => {
expect(service).toBeTruthy(); expect(service).toBeTruthy();
}); });
it('should list songs', async(() => { it('should list songs', waitForAsync(() => {
const service: SongDataService = TestBed.get(SongDataService); const service: SongDataService = TestBed.get(SongDataService);
service.list$().subscribe(s => { service.list$().subscribe(s => {
expect(s).toEqual([ expect(s).toEqual([

View File

@@ -1,4 +1,4 @@
import {async, TestBed} from '@angular/core/testing'; import {TestBed, waitForAsync} from '@angular/core/testing';
import {SongService} from './song.service'; import {SongService} from './song.service';
import {SongDataService} from './song-data.service'; import {SongDataService} from './song-data.service';
@@ -25,7 +25,7 @@ describe('SongService', () => {
expect(service).toBeTruthy(); expect(service).toBeTruthy();
}); });
it('should list songs', async(() => { it('should list songs', waitForAsync(() => {
const service: SongService = TestBed.get(SongService); const service: SongService = TestBed.get(SongService);
service.list$().subscribe(s => { service.list$().subscribe(s => {
expect(s).toEqual([ expect(s).toEqual([

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; import {ComponentFixture, fakeAsync, TestBed, tick, waitForAsync} from '@angular/core/testing';
import {SongListComponent} from './song-list.component'; import {SongListComponent} from './song-list.component';
import {of} from 'rxjs'; import {of} from 'rxjs';
@@ -17,7 +17,7 @@ describe('SongListComponent', () => {
list: () => of(songs) list: () => of(songs)
}; };
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [SongListComponent], declarations: [SongListComponent],
providers: [ providers: [

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
import {SongComponent} from './song.component'; import {SongComponent} from './song.component';
import {of} from 'rxjs'; import {of} from 'rxjs';
@@ -12,7 +12,7 @@ describe('SongComponent', () => {
params: of({songId: '4711'}) params: of({songId: '4711'})
}; };
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [SongComponent], declarations: [SongComponent],
providers: [ providers: [

View File

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

View File

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

View File

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

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 {LogoutComponent} from './logout.component'; import {LogoutComponent} from './logout.component';
@@ -6,7 +6,7 @@ describe('LogoutComponent', () => {
let component: LogoutComponent; let component: LogoutComponent;
let fixture: ComponentFixture<LogoutComponent>; let fixture: ComponentFixture<LogoutComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [LogoutComponent] declarations: [LogoutComponent]
}) })

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -17,4 +17,4 @@ export const environment = {
* This import should be commented out in production mode because it will have a negative impact * This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown. * on performance if an error is thrown.
*/ */
// import 'zone.js/dist/zone-error'; // Included with Angular CLI. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

View File

@@ -55,7 +55,7 @@
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * Zone JS is required by default for Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
/*************************************************************************************************** /***************************************************************************************************

View File

@@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing'; import 'zone.js/testing';
import {getTestBed} from '@angular/core/testing'; import {getTestBed} from '@angular/core/testing';
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing'; import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';

View File

@@ -7,7 +7,7 @@
"declaration": false, "declaration": false,
"downlevelIteration": true, "downlevelIteration": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"module": "esnext", "module": "es2020",
"moduleResolution": "node", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,
"target": "es2015", "target": "es2015",

View File

@@ -1,13 +1,21 @@
{ {
"extends": "tslint:recommended", "extends": "tslint:recommended",
"rules": { "rules": {
"align": {
"options": [
"parameters",
"statements"
]
},
"array-type": false, "array-type": false,
"arrow-parens": false, "arrow-parens": false,
"arrow-return-shorthand": true,
"deprecation": { "deprecation": {
"severity": "warning" "severity": "warning"
}, },
"component-class-suffix": true, "component-class-suffix": true,
"contextual-lifecycle": true, "contextual-lifecycle": true,
"curly": true,
"directive-class-suffix": true, "directive-class-suffix": true,
"directive-selector": [ "directive-selector": [
true, true,
@@ -21,10 +29,17 @@
"app", "app",
"kebab-case" "kebab-case"
], ],
"eofline": true,
"import-blacklist": [ "import-blacklist": [
true, true,
"rxjs/Rx" "rxjs/Rx"
], ],
"import-spacing": true,
"indent": {
"options": [
"spaces"
]
},
"interface-name": false, "interface-name": false,
"max-classes-per-file": false, "max-classes-per-file": false,
"max-line-length": [ "max-line-length": [
@@ -79,11 +94,60 @@
"no-output-native": true, "no-output-native": true,
"no-output-on-prefix": true, "no-output-on-prefix": true,
"no-output-rename": true, "no-output-rename": true,
"semicolon": {
"options": [
"always"
]
},
"space-before-function-paren": {
"options": {
"anonymous": "never",
"asyncArrow": "always",
"constructor": "never",
"method": "never",
"named": "never"
}
},
"no-outputs-metadata-property": true, "no-outputs-metadata-property": true,
"template-banana-in-box": true, "template-banana-in-box": true,
"template-no-negated-async": true, "template-no-negated-async": true,
"typedef-whitespace": {
"options": [
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
]
},
"use-lifecycle-interface": true, "use-lifecycle-interface": true,
"use-pipe-transform-interface": true "use-pipe-transform-interface": true,
"variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-pascal-case"
]
},
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
}
}, },
"rulesDirectory": [ "rulesDirectory": [
"codelyzer" "codelyzer"