mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
linting !wip
This commit is contained in:
parent
9bc95d9ebb
commit
4c99acef75
22 changed files with 155 additions and 163 deletions
|
@ -61,5 +61,4 @@ export class IssuesComponent implements OnInit {
|
||||||
this.resolvedIssues = x;
|
this.resolvedIssues = x;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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"]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
|
@ -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 = [];
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue