From 1dbbc0a67a2152dee41e56a910a67e9fc7208931 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 7 Mar 2021 00:42:02 +0100 Subject: [PATCH] Fixing coding style --- src/app/app-routing.module.ts | 12 +- src/app/app.component.html | 2 +- src/app/app.component.ts | 48 ++--- src/app/app.module.ts | 55 +++--- src/app/auth/account/account.component.ts | 34 ++-- src/app/auth/auth-routing.module.ts | 8 +- src/app/auth/auth.module.ts | 4 +- src/app/auth/auth.service.ts | 18 +- src/app/auth/misc/auth.pipe.ts | 24 +-- .../auth/misc/authenticated-guard.service.ts | 40 ++-- .../misc/authorizer-interceptor.service.ts | 16 +- .../unauthorized/unauthorized.component.ts | 14 +- .../episodes-list/episodes-list.component.ts | 2 +- .../items-grid/items-grid.component.ts | 178 +++++++++--------- .../items-list/items-list.component.ts | 30 +-- .../people-list/people-list.component.ts | 19 +- .../show-grid/show-grid.component.ts | 24 +-- src/app/misc/custom-route-reuse-strategy.ts | 20 +- src/app/misc/horizontal-scroller.ts | 27 ++- src/app/misc/items-utils.ts | 8 +- src/app/misc/long-press.directive.ts | 18 +- src/app/misc/password-validator.ts | 22 +-- src/app/models/external-id.ts | 4 +- src/app/models/page.ts | 10 +- src/app/models/provider.ts | 4 +- src/app/models/resources/collection.ts | 6 +- src/app/models/resources/episode.ts | 6 +- src/app/models/resources/library-item.ts | 20 +- src/app/models/resources/library.ts | 4 +- src/app/models/resources/people.ts | 10 +- src/app/models/resources/resource.ts | 2 +- src/app/models/resources/season.ts | 6 +- src/app/models/resources/show.ts | 18 +- src/app/models/search-result.ts | 2 +- src/app/models/watch-item.ts | 2 +- .../pages/collection/collection.component.ts | 28 +-- .../metadata-edit/metadata-edit.component.ts | 97 +++++----- .../pages/not-found/not-found.component.ts | 16 +- .../pages/player/playbackMethodDetector.ts | 82 ++++---- src/app/pages/player/player.component.html | 4 +- src/app/pages/player/player.component.ts | 64 ++++--- src/app/pages/search/search.component.ts | 22 +-- .../show-details/show-details.component.html | 6 +- .../trailer-dialog.component.ts | 24 ++- src/app/services/api.service.ts | 46 ++--- src/app/services/item-resolver.service.ts | 2 +- src/app/services/page-resolver.service.ts | 36 ++-- src/app/services/pre-loader.service.ts | 2 +- src/app/services/startup.service.ts | 2 +- src/environments/environment.prod.ts | 2 +- src/environments/environment.ts | 2 +- src/main.ts | 9 +- src/polyfills.ts | 2 +- tslint.json | 16 +- 54 files changed, 590 insertions(+), 589 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 590d16a6..1e6f32eb 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,10 +1,10 @@ -import { NgModule } from '@angular/core'; +import { NgModule } from "@angular/core"; import { RouteReuseStrategy, RouterModule, Routes } from "@angular/router"; -import { ItemsGridComponent } from './components/items-grid/items-grid.component'; +import { ItemsGridComponent } from "./components/items-grid/items-grid.component"; import { CustomRouteReuseStrategy } from "./misc/custom-route-reuse-strategy"; -import { NotFoundComponent } from './pages/not-found/not-found.component'; -import { PageResolver } from './services/page-resolver.service'; -import { ShowDetailsComponent } from './pages/show-details/show-details.component'; +import { NotFoundComponent } from "./pages/not-found/not-found.component"; +import { PageResolver } from "./services/page-resolver.service"; +import { ShowDetailsComponent } from "./pages/show-details/show-details.component"; import { AuthGuard } from "./auth/misc/authenticated-guard.service"; import { LibraryItem } from "./models/resources/library-item"; import { @@ -92,7 +92,7 @@ const routes: Routes = [ // TODO implement an home page. - {path: "", pathMatch: 'full', redirectTo: "/browse"}, + {path: "", pathMatch: "full", redirectTo: "/browse"}, {path: "**", component: NotFoundComponent} ]; diff --git a/src/app/app.component.html b/src/app/app.component.html index 96ea298b..4a226deb 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -15,7 +15,7 @@