chore(ui): clear eslint no-unused-vars bucket
- Frontend lint cleanup: - remove unused imports, constants, locals, and callback parameters across the UI codebase - keep template and callback signatures intact where bindings still pass event arguments by explicitly consuming the values instead of changing behavior - Metadata and reader surfaces: - trim dead symbols in the metadata editor, viewer, search, and reader flows without mixing in broader refactors - preserve existing runtime behavior while tightening the code paths that the ESLint bucket touches - Validation: - ran `just ui lint` and cleared the `@typescript-eslint/no-unused-vars` bucket; the command still fails on the remaining ESLint backlog - ran `just ui check`; deps and typecheck pass, and the remaining failure is the outstanding ESLint backlog
This commit is contained in:
@@ -157,6 +157,7 @@ export class BookUploaderComponent implements OnInit {
|
||||
}
|
||||
|
||||
onRemoveTemplatingFile(event: Event, file: File, removeFileCallback: FileRemoveCallback, _index?: number): void {
|
||||
void _index;
|
||||
// Remove from our tracking array
|
||||
this.files = this.files.filter(f => f.file !== file);
|
||||
|
||||
@@ -172,6 +173,7 @@ export class BookUploaderComponent implements OnInit {
|
||||
}
|
||||
|
||||
uploadFiles(_event: FileUploadHandlerEvent): void {
|
||||
void _event;
|
||||
if (this.value === 'library' && (!this.selectedLibrary || !this.selectedPath)) {
|
||||
this.messageService.add({
|
||||
severity: 'warn',
|
||||
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
import {Component, inject, OnDestroy} from '@angular/core';
|
||||
import {NotificationEventService} from '../../websocket/notification-event.service';
|
||||
import {LogNotification} from '../../websocket/model/log-notification.model';
|
||||
import {Tag} from 'primeng/tag';
|
||||
import {TranslocoService} from '@jsverse/transloco';
|
||||
import {Subject} from 'rxjs';
|
||||
import {takeUntil} from 'rxjs/operators';
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ export class MetadataProgressWidgetComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
for (const [taskId, task] of Object.entries(tasks)) {
|
||||
for (const taskId of Object.keys(tasks)) {
|
||||
this.lastUpdateMap.set(taskId, now);
|
||||
|
||||
if (this.timeoutHandles.has(taskId)) {
|
||||
|
||||
@@ -13,7 +13,6 @@ import {DialogLauncherService} from '../../../services/dialog-launcher.service';
|
||||
import {BookDialogHelperService} from '../../../../features/book/components/book-browser/book-dialog-helper.service';
|
||||
import {IconDisplayComponent} from '../../../components/icon-display/icon-display.component';
|
||||
import {Tooltip} from 'primeng/tooltip';
|
||||
import {MenuItem} from 'primeng/api';
|
||||
import {IconSelection} from '../../../service/icon-picker.service';
|
||||
import {TranslocoPipe} from '@jsverse/transloco';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, computed, effect, ElementRef, inject, OnDestroy, ViewChild} from '@angular/core';
|
||||
import {Component, effect, ElementRef, inject, OnDestroy, ViewChild} from '@angular/core';
|
||||
import {MenuItem} from 'primeng/api';
|
||||
import {LayoutService} from '../layout-main/service/app.layout.service';
|
||||
import {Router, RouterLink} from '@angular/router';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DOCUMENT, isPlatformBrowser } from '@angular/common';
|
||||
import { effect, inject, Injectable, PLATFORM_ID, signal } from '@angular/core';
|
||||
import { $t, updatePreset, updateSurfacePalette } from '@primeuix/themes';
|
||||
import { $t } from '@primeuix/themes';
|
||||
import Aura from '@primeuix/themes/aura';
|
||||
import { AppState } from '../model/app-state.model';
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ export function createRxStompConfig(authService: AuthService): RxStompConfig {
|
||||
}
|
||||
},
|
||||
debug: (msg: string): void => {
|
||||
void msg;
|
||||
// console.log(new Date(), msg);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user