chore(ui): clear reader settings prefer-inject bucket
Convert reader settings and shared setup/custom-font components to field injection so these UI surfaces follow the project inject() convention without changing behavior. Validation: just ui lint
This commit is contained in:
@@ -29,15 +29,12 @@ export class CustomFontsComponent implements OnInit {
|
||||
|
||||
readonly maxFonts = 10;
|
||||
|
||||
private customFontService = inject(CustomFontService);
|
||||
private messageService = inject(MessageService);
|
||||
private confirmationService = inject(ConfirmationService);
|
||||
private dialogService = inject(DialogService);
|
||||
private t = inject(TranslocoService);
|
||||
|
||||
constructor(
|
||||
private customFontService: CustomFontService,
|
||||
private messageService: MessageService,
|
||||
private confirmationService: ConfirmationService,
|
||||
private dialogService: DialogService
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.loadFonts();
|
||||
}
|
||||
|
||||
+3
-6
@@ -18,6 +18,9 @@ import {TranslocoDirective, TranslocoPipe, TranslocoService} from '@jsverse/tran
|
||||
})
|
||||
export class FontUploadDialogComponent implements OnDestroy {
|
||||
@ViewChild('fileInput') fileInput!: ElementRef<HTMLInputElement>;
|
||||
private customFontService = inject(CustomFontService);
|
||||
private messageService = inject(MessageService);
|
||||
private dialogRef = inject(DynamicDialogRef);
|
||||
private readonly t = inject(TranslocoService);
|
||||
|
||||
isUploading = false;
|
||||
@@ -32,12 +35,6 @@ export class FontUploadDialogComponent implements OnDestroy {
|
||||
readonly maxFonts = 10;
|
||||
readonly acceptedFormats = ['.ttf', '.otf', '.woff', '.woff2'];
|
||||
|
||||
constructor(
|
||||
private customFontService: CustomFontService,
|
||||
private messageService: MessageService,
|
||||
private dialogRef: DynamicDialogRef
|
||||
) {}
|
||||
|
||||
onUploadZoneClick(): void {
|
||||
if (this.isUploading) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user