Remove ExportBook component and integrate new export workflows
- Deleted `ExportBook` component and its usage in `BookCard.tsx`. - Integrated improved book export workflows in `BookSettingOption` for better user experience. - Updated database models and repositories to support export options with chapter/version selection. - Added localization support for export-related messages and tooltips. - Upgraded dependencies to include libraries required for export formats (e.g., DOCX, PDF, EPUB). - Bumped app version to 0.4.1.
This commit is contained in:
@@ -48,6 +48,21 @@ export type TiptapNode = {
|
||||
};
|
||||
|
||||
|
||||
export type ExportFormat = 'epub' | 'pdf' | 'docx';
|
||||
|
||||
export interface ChapterExportInfo {
|
||||
chapterId: string;
|
||||
title: string;
|
||||
chapterOrder: number;
|
||||
availableVersions: number[];
|
||||
}
|
||||
|
||||
export interface ChapterExportSelection {
|
||||
chapterId: string;
|
||||
version: number;
|
||||
selected: boolean;
|
||||
}
|
||||
|
||||
export const chapterVersions: SelectBoxProps[] = [
|
||||
{value: '1', label: 'chapterVersions.prompt'},
|
||||
{value: '2', label: 'chapterVersions.draft'},
|
||||
|
||||
Reference in New Issue
Block a user