chore(ui): clear final prefer-inject bucket

Convert the remaining feature and core constructors flagged by prefer-inject to field injection so the last Angular inject() violations are removed across upload dialogs, core services, and bookdrop flows.

Validation: just ui lint
This commit is contained in:
James Cox
2026-04-22 17:26:50 -04:00
committed by Zach Yale
parent 4f7d38a306
commit 878cfa09c8
6 changed files with 23 additions and 34 deletions
@@ -1,4 +1,4 @@
import { Pipe, PipeTransform } from '@angular/core';
import {inject, Pipe, PipeTransform} from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
import { Observable } from 'rxjs';
@@ -9,7 +9,8 @@ import { map } from 'rxjs/operators';
pure: true
})
export class SecurePipe implements PipeTransform {
constructor(private http: HttpClient, private sanitizer: DomSanitizer) {}
private http = inject(HttpClient);
private sanitizer = inject(DomSanitizer);
transform(url: string): Observable<SafeUrl> {
return this.http.get(url, { responseType: 'blob' }).pipe(