build: Use prettier for typescript

Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
Ralph Hopman
2025-01-15 11:59:30 +00:00
committed by Adam Saghy
parent 9d6cf1514a
commit cac1d11ad7
1812 changed files with 22516 additions and 16862 deletions
@@ -6,7 +6,6 @@ import { Injectable, EventEmitter } from '@angular/core';
*/
@Injectable()
export class ProgressBarService {
/** Progress bar update event. */
public updateProgressBar: EventEmitter<any>;
/** Denotes the number of requests currently running. */
@@ -50,5 +49,4 @@ export class ProgressBarService {
}
}
}
}
@@ -1,6 +1,6 @@
/** Angular Imports */
import { Injectable } from '@angular/core';
import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse} from '@angular/common/http';
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse } from '@angular/common/http';
/** rxjs Imports */
import { Observable } from 'rxjs';
@@ -14,11 +14,10 @@ import { ProgressBarService } from './progress-bar.service';
*/
@Injectable()
export class ProgressInterceptor implements HttpInterceptor {
/**
* @param {ProgressBarService} progressBarService Progress Bar Service.
*/
constructor(private progressBarService: ProgressBarService) { }
constructor(private progressBarService: ProgressBarService) {}
/**
* Intercepts a Http request to start loading the progress bar for a pending request
@@ -26,12 +25,10 @@ export class ProgressInterceptor implements HttpInterceptor {
*/
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
this.progressBarService.increase();
return next.handle(request)
.pipe(
finalize(
() => { this.progressBarService.decrease(); }
)
);
return next.handle(request).pipe(
finalize(() => {
this.progressBarService.decrease();
})
);
}
}