linting !wip

This commit is contained in:
TidusJar 2018-07-27 16:20:44 +01:00
parent 9bc95d9ebb
commit 4c99acef75
22 changed files with 155 additions and 163 deletions

View file

@ -61,5 +61,4 @@ export class IssuesComponent implements OnInit {
this.resolvedIssues = x; this.resolvedIssues = x;
}); });
} }
} }

View file

@ -125,7 +125,7 @@ export class LoginComponent implements OnDestroy, OnInit {
} }
public oauth() { public oauth() {
this.plexTv.GetPin(this.clientId, this.appName).subscribe(pin => { this.plexTv.GetPin(this.clientId, this.appName).subscribe((pin: any) => {
this.authService.login({ usePlexOAuth: true, password: "", rememberMe: true, username: "", plexTvPin: pin }).subscribe(x => { this.authService.login({ usePlexOAuth: true, password: "", rememberMe: true, username: "", plexTvPin: pin }).subscribe(x => {
if (window.frameElement) { if (window.frameElement) {

View file

@ -16,7 +16,6 @@ export class LoginOAuthComponent implements OnInit {
this.route.params this.route.params
.subscribe((params: any) => { .subscribe((params: any) => {
this.pin = params.pin; this.pin = params.pin;
}); });
} }
@ -40,7 +39,6 @@ export class LoginOAuthComponent implements OnInit {
}, err => { }, err => {
this.notify.error(err.statusText); this.notify.error(err.statusText);
this.router.navigate(["login"]); this.router.navigate(["login"]);
}); });
} }

View file

@ -155,7 +155,6 @@ export class MovieSearchGridComponent implements OnInit {
this.movieResultGrid.push(container); this.movieResultGrid.push(container);
container = <ISearchMovieResultContainer>{ movies: [] }; container = <ISearchMovieResultContainer>{ movies: [] };
} else { } else {
container.movies.push(movie); container.movies.push(movie);
} }
}); });

View file

@ -2,7 +2,7 @@
import { HttpClient, HttpHeaders } from "@angular/common/http"; import { HttpClient, HttpHeaders } from "@angular/common/http";
import { Injectable } from "@angular/core"; import { Injectable } from "@angular/core";
import { Observable } from "rxjs/Rx"; import { Observable } from "rxjs";
import { IPlexPin } from "../../interfaces"; import { IPlexPin } from "../../interfaces";
@ -10,7 +10,6 @@ import { IPlexPin } from "../../interfaces";
export class PlexTvService { export class PlexTvService {
constructor(private http: HttpClient, public platformLocation: PlatformLocation) { constructor(private http: HttpClient, public platformLocation: PlatformLocation) {
} }
public GetPin(clientId: string, applicationName: string): Observable<IPlexPin> { public GetPin(clientId: string, applicationName: string): Observable<IPlexPin> {

View file

@ -21,9 +21,9 @@ export class UserManagementComponent implements OnInit {
public bulkMovieLimit?: number; public bulkMovieLimit?: number;
public bulkEpisodeLimit?: number; public bulkEpisodeLimit?: number;
constructor(private readonly identityService: IdentityService, constructor(private identityService: IdentityService,
private readonly settingsService: SettingsService, private settingsService: SettingsService,
private readonly notificationService: NotificationService) { } private notificationService: NotificationService) { }
public ngOnInit() { public ngOnInit() {
this.users = []; this.users = [];

View file

@ -42,12 +42,12 @@ export class PlexComponent implements OnInit {
return; return;
} }
}); });
}, }
); );
} }
public oauth() { public oauth() {
this.plexTv.GetPin(this.clientId, "Ombi").subscribe(pin => { this.plexTv.GetPin(this.clientId, "Ombi").subscribe((pin: any) => {
this.plexService.oAuth({ wizard: true, pin }).subscribe(x => { this.plexService.oAuth({ wizard: true, pin }).subscribe(x => {
if (x.url) { if (x.url) {
window.location.href = x.url; window.location.href = x.url;

View file

@ -51,7 +51,6 @@ export class PlexOAuthComponent implements OnInit {
this.router.navigate(["login"]); this.router.navigate(["login"]);
}); });
}); });
}); });
}); });
}); });
@ -60,8 +59,6 @@ export class PlexOAuthComponent implements OnInit {
return; return;
} }
}); });
}); });
} }
} }

View file

@ -8,7 +8,7 @@
], ],
"max-line-length": [ "max-line-length": [
true, true,
200 250
], ],
"arrow-parens": false, "arrow-parens": false,
"radix": false, "radix": false,
@ -16,22 +16,22 @@
"indent": [ "indent": [
false false
], ],
"whitespace": [
false
],
"no-unused-expression": [ "no-unused-expression": [
true, true,
"allow-new" "allow-new"
], ],
"no-trailing-whitespace": [
false
],
"max-classes-per-file": [ "max-classes-per-file": [
false false
], ],
"no-shadowed-variable": false, "no-shadowed-variable": false,
"comment-format": [ "comment-format": [
false false
],
"no-namespace": [
false
],
"no-internal-module": [
false
] ]
} }
} }