Introduce Import and Advanced Export Features

- Added `ImportBookForm` component for importing DOCX files with chapter selection and metadata customization.
- Implemented advanced export options (PDF, DOCX, EPUB) with `ExportSetting` component.
- Developed utility methods for transforming books into exportable formats in `Export.ts`.
- Expanded database models and repositories to support import/export functionality.
- Enhanced localization for import/export flows and updated UI components for improved user experience.
This commit is contained in:
natreex
2026-03-11 11:52:25 -04:00
parent ceaecb19fc
commit 1a15692e40
6 changed files with 922 additions and 0 deletions

17
lib/models/Import.ts Normal file
View File

@@ -0,0 +1,17 @@
export interface ParsedChapterPreview {
index: number;
title: string;
wordCount: number;
}
export interface ParsedDocxResponse {
importId: string;
chapters: ParsedChapterPreview[];
}
export interface ImportChapterSelection {
index: number;
title: string;
wordCount: number;
selected: boolean;
}