perf(frontend): optimize initial bundle size with lazy-loaded dialogs and localized chart providers (#1110)

This commit is contained in:
brios
2026-05-18 23:05:10 +02:00
committed by GitHub
parent 4afc738dd4
commit c6cbdcfa11
32 changed files with 532 additions and 405 deletions
@@ -215,8 +215,8 @@ export class LibraryCreatorComponent {
return this.allBookFormats.some(f => this.getFormatWarning(f.type) !== null);
}
openDirectoryPicker(): void {
const ref = this.dialogLauncherService.openDirectoryPickerDialog();
async openDirectoryPicker(): Promise<void> {
const ref = await this.dialogLauncherService.openDirectoryPickerDialog().catch(() => null);
ref?.onClose.subscribe((selectedFolders: string[] | null) => {
if (selectedFolders && selectedFolders.length > 0) {
this.folders.update(current => {