- 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.
18 lines
350 B
TypeScript
18 lines
350 B
TypeScript
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;
|
|
}
|