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:
natreex
2026-03-05 16:31:56 -05:00
parent 94cac463fb
commit ceaecb19fc
16 changed files with 780 additions and 245 deletions

View File

@@ -207,6 +207,11 @@
"title": "Create a series",
"description": "Create a series to group multiple books.",
"badge": "SERIES"
},
"importBook": {
"title": "Import a book",
"description": "Import a book from a DOCX file.",
"badge": "IMPORT"
}
}
},
@@ -640,9 +645,27 @@
"objectsList": "Objects list",
"bookGoals": "Book goals",
"quillsense": "QuillSense Settings",
"export": "Export Book",
"save": "Save",
"notAvailable": "Option not available"
},
"exportOption": {
"title": "Export Your Book",
"description": "Choose the format and chapters to export.",
"format": "Format",
"selectFormat": "Select a format",
"chapters": "Chapters",
"selectAll": "Select all",
"deselectAll": "Deselect all",
"version": "Version",
"export": "Export",
"exporting": "Exporting...",
"noChapters": "No chapters available for export.",
"success": "Book exported successfully!",
"cancelled": "Export cancelled.",
"error": "Error exporting the book.",
"loadingChapters": "Loading chapters..."
},
"noBookHome": {
"title": "Your work is waiting for its first words",
"description": "This work does not have any chapters yet. To start writing, create your first chapter.",
@@ -987,6 +1010,7 @@
"characters": "Characters",
"spells": "Spell Book",
"quillsense": "QuillSense (AI)",
"export": "Export",
"objects": "Objects",
"goals": "Goals"
},
@@ -1333,5 +1357,51 @@
"enable_characters": "Enable character management for this book",
"enable_worlds": "Enable world management for this book",
"enable_locations": "Enable location management for this book"
},
"importBook": {
"header": {
"title": "Import a Book"
},
"pickFile": "Choose a DOCX file",
"parsing": "Analyzing file...",
"chaptersDetected": "{count} chapters detected",
"noChaptersDetected": "No chapters detected in the file",
"fields": {
"title": {
"label": "Book Title",
"placeholder": "Enter the title"
},
"subTitle": {
"label": "Subtitle",
"placeholder": "Enter the subtitle"
},
"summary": {
"label": "Summary",
"placeholder": "Enter a summary"
},
"type": {
"label": "Book Type"
},
"version": {
"label": "Chapter Version"
}
},
"chapters": {
"title": "Chapters to import",
"words": "{count} words",
"selectAll": "Select all",
"deselectAll": "Deselect all"
},
"submit": "Import",
"importing": "Importing...",
"success": "Book imported successfully",
"error": {
"titleRequired": "Book title is required",
"typeRequired": "Book type is required",
"noChaptersSelected": "Select at least one chapter",
"parseFailed": "Error analyzing the file",
"importFailed": "Error during import",
"invalidFormat": "Invalid format. Only DOCX files are accepted"
}
}
}