diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 3f25e4c..1e6eeaa 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -3,6 +3,6 @@ import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: '', - styles: [] + styles: [], }) export class AppComponent {} diff --git a/client/src/app/auth.interceptor.ts b/client/src/app/auth.interceptor.ts index 5545958..cef95dd 100644 --- a/client/src/app/auth.interceptor.ts +++ b/client/src/app/auth.interceptor.ts @@ -1,10 +1,4 @@ -import { - HttpErrorResponse, - HttpEvent, - HttpHandler, - HttpInterceptor, - HttpRequest -} from '@angular/common/http'; +import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { Observable, throwError } from 'rxjs'; @@ -14,10 +8,7 @@ import { catchError } from 'rxjs/operators'; export class AuthInterceptor implements HttpInterceptor { constructor(private router: Router) {} - intercept( - req: HttpRequest, - next: HttpHandler - ): Observable> { + intercept(req: HttpRequest, next: HttpHandler): Observable> { return next.handle(req).pipe( catchError((error: HttpErrorResponse) => { if (error && error.status === 402) { diff --git a/client/src/app/login/login.component.html b/client/src/app/login/login.component.html index d31bfdf..0e0ce26 100644 --- a/client/src/app/login/login.component.html +++ b/client/src/app/login/login.component.html @@ -8,14 +8,7 @@
- + @@ -24,13 +17,7 @@
- + @@ -40,16 +27,13 @@
-
+
{{ error }}
diff --git a/client/src/app/main-layout/main-layout.component.ts b/client/src/app/main-layout/main-layout.component.ts index 626457a..d29c161 100644 --- a/client/src/app/main-layout/main-layout.component.ts +++ b/client/src/app/main-layout/main-layout.component.ts @@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-main-layout', templateUrl: './main-layout.component.html', - styleUrls: ['./main-layout.component.scss'] + styleUrls: ['./main-layout.component.scss'], }) export class MainLayoutComponent implements OnInit { constructor() {} diff --git a/client/src/app/navbar/add-new-torrent/add-new-torrent.component.html b/client/src/app/navbar/add-new-torrent/add-new-torrent.component.html index 8f094ca..3d3a58f 100644 --- a/client/src/app/navbar/add-new-torrent/add-new-torrent.component.html +++ b/client/src/app/navbar/add-new-torrent/add-new-torrent.component.html @@ -22,13 +22,7 @@
-
- Cannot add torrent: {{ error | json }} -
+
Cannot add torrent: {{ error | json }}
- - +
diff --git a/client/src/app/navbar/add-new-torrent/add-new-torrent.component.ts b/client/src/app/navbar/add-new-torrent/add-new-torrent.component.ts index 9cc7b6e..4c3b9bd 100644 --- a/client/src/app/navbar/add-new-torrent/add-new-torrent.component.ts +++ b/client/src/app/navbar/add-new-torrent/add-new-torrent.component.ts @@ -67,39 +67,25 @@ export class AddNewTorrentComponent implements OnInit { this.error = null; if (this.magnetLink) { - this.torrentService - .uploadMagnet( - this.magnetLink, - this.autoDownload, - this.autoUnpack, - this.autoDelete - ) - .subscribe( - () => { - this.cancel(); - }, - (err) => { - this.error = err.error; - this.saving = false; - } - ); + this.torrentService.uploadMagnet(this.magnetLink, this.autoDownload, this.autoUnpack, this.autoDelete).subscribe( + () => { + this.cancel(); + }, + (err) => { + this.error = err.error; + this.saving = false; + } + ); } else if (this.selectedFile) { - this.torrentService - .uploadFile( - this.selectedFile, - this.autoDownload, - this.autoUnpack, - this.autoDelete - ) - .subscribe( - () => { - this.cancel(); - }, - (err) => { - this.error = err.error; - this.saving = false; - } - ); + this.torrentService.uploadFile(this.selectedFile, this.autoDownload, this.autoUnpack, this.autoDelete).subscribe( + () => { + this.cancel(); + }, + (err) => { + this.error = err.error; + this.saving = false; + } + ); } else { this.cancel(); } diff --git a/client/src/app/navbar/navbar.component.html b/client/src/app/navbar/navbar.component.html index f81a529..4974659 100644 --- a/client/src/app/navbar/navbar.component.html +++ b/client/src/app/navbar/navbar.component.html @@ -1,8 +1,4 @@ -