fix(ui): restore frontend verification after eslint cleanup
- Reader and metadata typing: - align ebook and cbx reader event, progress, dialog, and helper types with the stricter checks surfaced by the ESLint cleanup - replace unsafe non-null assertions and broad event assumptions with guarded access in reader, metadata, and shelf flows - Template and component compatibility: - tighten menu item typing for Angular template checking and normalize overlay and card click handlers to use explicit DOM event types - repair chart, preferences, and websocket factory typings that broke standalone typecheck and production build validation - Tests: - fix the magic shelf form-array assertion so the frontend test suite compiles cleanly under the stricter checker - Validation: - `just ui check` - `just ui typecheck` - `just ui test`
This commit is contained in:
@@ -1069,7 +1069,7 @@ export class CbxReaderComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
@HostListener('document:mouseleave', ['$event'])
|
||||
@HostListener('document:mouseleave')
|
||||
onMouseLeave(): void {
|
||||
this.visibilityManager.handleMouseLeave();
|
||||
if (this.isMagnifierActive) {
|
||||
|
||||
@@ -72,7 +72,7 @@ export class CbxNoteDialogComponent implements OnChanges {
|
||||
this.selectedColor = color;
|
||||
}
|
||||
|
||||
onOverlayClick(event: MouseEvent): void {
|
||||
onOverlayClick(event: Event): void {
|
||||
if ((event.target as HTMLElement).classList.contains('dialog-overlay')) {
|
||||
this.onCancel();
|
||||
}
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ export class CbxShortcutsHelpComponent {
|
||||
this.closed.emit();
|
||||
}
|
||||
|
||||
onOverlayClick(event: MouseEvent): void {
|
||||
onOverlayClick(event: Event): void {
|
||||
if ((event.target as HTMLElement).classList.contains('dialog-overlay')) {
|
||||
this.onClose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user