Updated Angular to version 11

- ngx-videogular was replaced by @videogular/ngx-videogular
pull/280/head
Isaac Abadi 4 years ago
parent f425b9842f
commit 3f10986cdf

@ -6,7 +6,7 @@
[![GitHub issues badge](https://img.shields.io/github/issues/Tzahi12345/YoutubeDL-Material)](https://github.com/Tzahi12345/YoutubeDL-Material/issues) [![GitHub issues badge](https://img.shields.io/github/issues/Tzahi12345/YoutubeDL-Material)](https://github.com/Tzahi12345/YoutubeDL-Material/issues)
[![License badge](https://img.shields.io/github/license/Tzahi12345/YoutubeDL-Material)](https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/LICENSE.md) [![License badge](https://img.shields.io/github/license/Tzahi12345/YoutubeDL-Material)](https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/LICENSE.md)
YoutubeDL-Material is a Material Design frontend for [youtube-dl](https://rg3.github.io/youtube-dl/). It's coded using [Angular 9](https://angular.io/) for the frontend, and [Node.js](https://nodejs.org/) on the backend. YoutubeDL-Material is a Material Design frontend for [youtube-dl](https://rg3.github.io/youtube-dl/). It's coded using [Angular 11](https://angular.io/) for the frontend, and [Node.js](https://nodejs.org/) on the backend.
Now with [Docker](#Docker) support! Now with [Docker](#Docker) support!

@ -45,8 +45,6 @@
], ],
"optimization": true, "optimization": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false, "namedChunks": false,
"aot": true, "aot": true,
"extractLicenses": true, "extractLicenses": true,

12242
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -18,19 +18,20 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular-devkit/core": "^9.0.6", "@angular-devkit/core": "^11.0.4",
"@angular/animations": "^9.1.0", "@angular/animations": "^11.0.4",
"@angular/cdk": "^9.2.0", "@angular/cdk": "^11.0.2",
"@angular/common": "^9.1.0", "@angular/common": "^11.0.4",
"@angular/compiler": "^9.1.0", "@angular/compiler": "^11.0.4",
"@angular/core": "^9.0.7", "@angular/core": "^11.0.4",
"@angular/forms": "^9.1.0", "@angular/forms": "^11.0.4",
"@angular/localize": "^9.1.0", "@angular/localize": "^11.0.4",
"@angular/material": "^9.2.0", "@angular/material": "^11.0.2",
"@angular/platform-browser": "^9.1.0", "@angular/platform-browser": "^11.0.4",
"@angular/platform-browser-dynamic": "^9.1.0", "@angular/platform-browser-dynamic": "^11.0.4",
"@angular/router": "^9.1.0", "@angular/router": "^11.0.4",
"@ngneat/content-loader": "^5.0.0", "@ngneat/content-loader": "^5.0.0",
"@videogular/ngx-videogular": "^2.1.0",
"core-js": "^2.4.1", "core-js": "^2.4.1",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"filesize": "^6.1.0", "filesize": "^6.1.0",
@ -39,35 +40,34 @@
"ng-lazyload-image": "^7.0.1", "ng-lazyload-image": "^7.0.1",
"ngx-avatar": "^4.0.0", "ngx-avatar": "^4.0.0",
"ngx-file-drop": "^9.0.1", "ngx-file-drop": "^9.0.1",
"ngx-videogular": "^9.0.1", "rxjs": "^6.6.3",
"rxjs": "^6.5.3",
"rxjs-compat": "^6.0.0-rc.0", "rxjs-compat": "^6.0.0-rc.0",
"tslib": "^1.10.0", "tslib": "^2.0.0",
"typescript": "~3.7.5", "typescript": "~4.0.5",
"web-animations-js": "^2.3.2", "web-animations-js": "^2.3.2",
"zone.js": "~0.10.2" "zone.js": "~0.10.2"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^0.901.0", "@angular-devkit/build-angular": "^0.1100.4",
"@angular/cli": "^9.0.7", "@angular/cli": "^11.0.4",
"@angular/compiler-cli": "^9.0.7", "@angular/compiler-cli": "^11.0.4",
"@angular/language-service": "^9.0.7", "@angular/language-service": "^11.0.4",
"@types/core-js": "^2.5.2", "@types/core-js": "^2.5.2",
"@types/file-saver": "^2.0.1", "@types/file-saver": "^2.0.1",
"@types/jasmine": "2.5.45", "@types/jasmine": "~3.6.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^5.1.2", "codelyzer": "^6.0.0",
"electron": "^8.0.1", "electron": "^8.0.1",
"jasmine-core": "~2.6.2", "jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~4.1.0", "jasmine-spec-reporter": "~5.0.0",
"karma": "~1.7.0", "karma": "~5.0.0",
"karma-chrome-launcher": "~2.1.1", "karma-chrome-launcher": "~3.1.0",
"karma-cli": "~1.0.1", "karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1", "karma-coverage-istanbul-reporter": "~3.0.2",
"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": "~5.1.2", "protractor": "~7.0.0",
"ts-node": "~3.0.4", "ts-node": "~3.0.4",
"tslint": "~5.3.2" "tslint": "~6.1.0"
} }
} }

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

@ -1,9 +1,9 @@
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
@ -11,19 +11,19 @@ describe('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;

@ -39,7 +39,10 @@ import { RouterModule } from '@angular/router';
import { AppRoutingModule } from './app-routing.module'; import { AppRoutingModule } from './app-routing.module';
import { MainComponent } from './main/main.component'; import { MainComponent } from './main/main.component';
import { PlayerComponent } from './player/player.component'; import { PlayerComponent } from './player/player.component';
import { VgCoreModule, VgControlsModule, VgOverlayPlayModule, VgBufferingModule } from 'ngx-videogular'; import { VgControlsModule } from '@videogular/ngx-videogular/controls';
import { VgBufferingModule } from '@videogular/ngx-videogular/buffering';
import { VgOverlayPlayModule } from '@videogular/ngx-videogular/overlay-play';
import { VgCoreModule } from '@videogular/ngx-videogular/core';
import { InputDialogComponent } from './input-dialog/input-dialog.component'; import { InputDialogComponent } from './input-dialog/input-dialog.component';
import { LazyLoadImageModule, IsVisibleProps } from 'ng-lazyload-image'; import { LazyLoadImageModule, IsVisibleProps } from 'ng-lazyload-image';
import { audioFilesMouseHovering, videoFilesMouseHovering, audioFilesOpened, videoFilesOpened } from './main/main.component'; import { audioFilesMouseHovering, videoFilesMouseHovering, audioFilesOpened, videoFilesOpened } from './main/main.component';

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

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

@ -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 ]
}) })

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -1,5 +1,5 @@
import { Component, OnInit, HostListener, EventEmitter, OnDestroy, AfterViewInit, ViewChild } from '@angular/core'; import { Component, OnInit, HostListener, EventEmitter, OnDestroy, AfterViewInit, ViewChild } from '@angular/core';
import { VgAPI } from 'ngx-videogular'; import { VgApiService } from '@videogular/ngx-videogular/core';
import { PostsService } from 'app/posts.services'; import { PostsService } from 'app/posts.services';
import { ActivatedRoute, Router } from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router';
import { MatDialog } from '@angular/material/dialog'; import { MatDialog } from '@angular/material/dialog';
@ -31,7 +31,7 @@ export class PlayerComponent implements OnInit, AfterViewInit, OnDestroy {
currentIndex = 0; currentIndex = 0;
currentItem: IMedia = null; currentItem: IMedia = null;
api: VgAPI; api: VgApiService;
api_ready = false; api_ready = false;
// params // params
@ -272,7 +272,7 @@ export class PlayerComponent implements OnInit, AfterViewInit, OnDestroy {
this.original_playlist = JSON.stringify(this.playlist); this.original_playlist = JSON.stringify(this.playlist);
} }
onPlayerReady(api: VgAPI) { onPlayerReady(api: VgApiService) {
this.api = api; this.api = api;
this.api_ready = true; this.api_ready = true;

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

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

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

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

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

@ -20,6 +20,6 @@
"es2016", "es2016",
"dom" "dom"
], ],
"module": "esnext" "module": "es2020"
} }
} }

@ -13,6 +13,9 @@
"curly": true, "curly": true,
"eofline": true, "eofline": true,
"forin": true, "forin": true,
"deprecation": {
"severity": "warning"
},
"import-blacklist": [ "import-blacklist": [
true true
], ],
@ -62,7 +65,6 @@
"no-trailing-whitespace": true, "no-trailing-whitespace": true,
"no-unnecessary-initializer": true, "no-unnecessary-initializer": true,
"no-unused-expression": true, "no-unused-expression": true,
"no-use-before-declare": true,
"no-var-keyword": true, "no-var-keyword": true,
"object-literal-sort-keys": false, "object-literal-sort-keys": false,
"one-line": [ "one-line": [

Loading…
Cancel
Save