3178 Commits
Author SHA1 Message Date
troyeguo 3179fe1ccc fix(import): optimize key retrieval for existing records in importNotesData 2026-09-13 17:21:37 +08:00
troyeguo a2e8c39287 feat(import): add functionality to import notes, highlights, and dictionary history from CSV or JSON files 2026-09-13 17:13:34 +08:00
troyeguo 2d557ca733 feat(export): add exportType field to exportNotes, exportHighlights, and exportDictionaryHistory 2026-09-13 16:19:37 +08:00
troyeguo 39b37ba665 feat(export): include bookMd5 in exportNotes, exportHighlights, and exportDictionaryHistory 2026-09-13 16:07:23 +08:00
troyeguo 43ef9d11d9 fix(PopupDict): reload audio players when dictText is updated 2026-09-13 15:34:21 +08:00
troyeguo 52ef556f56 fix(ImportLocal): ensure recordPath is used for database records to prevent empty paths 2026-09-13 15:34:11 +08:00
troyeguo 5d1a5ac4cd refactor(PopupOption): improve handleCopy method for better text copying logic 2026-09-13 11:41:48 +08:00
troyeguo e67d9daaf9 refactor(ImportLocal): replace 'any' type with 'File' for improved type safety 2026-09-13 11:16:53 +08:00
troyeguo c54136679f refactor(ImportLocal): remove redundant type annotations for file variable 2026-09-13 11:14:36 +08:00
troyeguo 7e1d98bf3e fix(importLocal): enhance file path handling to ensure valid disk paths are used 2026-09-13 11:00:53 +08:00
troyeguo 5f4a3a359f feat(transCache): implement translation cache management for improved performance 2026-09-13 09:26:21 +08:00
troyeguo b117c26895 fix(selectBook): adjust submenu positioning for notes, highlights, and words 2026-09-12 17:47:16 +08:00
troyeguo d8db403e7f feat(export): add JSON format support for export functions and enhance export options 2026-09-12 17:43:54 +08:00
troyeguo 6e9fc1bc0a Fix image resizing issue in ImageViewer component
- Restore default width constraint to prevent image from flashing in original size when switching images.
2026-09-12 17:09:01 +08:00
troyeguo 485014faff feat(export): enhance export functions to return detailed status results 2026-09-12 16:37:14 +08:00
troyeguo 8f8e7ea42d feat(restore): update restore functions to return detailed status results 2026-09-12 16:30:40 +08:00
troyeguo 3aab231ca1 feat(backup): update backup function to return detailed status results 2026-09-12 16:27:19 +08:00
troyeguo 6c605aabbf feat(tts): implement text rules for speech synthesis and apply them before reading 2026-09-12 16:08:44 +08:00
troyeguo b863dfffc3 Remove unused import of ConfigService in themeUtil.ts 2026-09-12 15:24:36 +08:00
troyeguo 49a5a8b2c5 feat(theme): implement dynamic theming with CSS variables and add theme.css for light/dark modes 2026-09-12 15:04:04 +08:00
troyeguo 9193bef4e0 fix: add !important to background-color for background-apple-button to ensure proper styling 2026-09-12 14:56:48 +08:00
troyeguo 59ad859ec7 refactor: clean up unused CSS styles and improve file size handling in ImportLocal component 2026-09-12 14:55:51 +08:00
troyeguo a9898668e3 feat: style background-apple-button and apply it to location change buttons 2026-09-12 14:36:18 +08:00
troyeguo bd4de14097 feat: add update notification for outdated Koodo Reader version in Chinese locale and user login flow 2026-09-12 11:06:00 +08:00
troyeguo cf56d3b2f3 feat(BookUtil): enhance searchBooksByKeyword to include book key in search criteria 2026-09-12 10:49:27 +08:00
troyeguo 07c0cc8176 refactor: remove unused imports and functions from header and common utilities
- Removed `getChatLocale` function from common utilities as it was not being used.
- Deleted unused imports in the header component, including `getChatLocale` and `SyncService`.
2026-09-12 10:43:18 +08:00
troyeguo dcd6329f58 feat: implement getOfficialDictLang utility function and update dict language retrieval 2026-09-12 09:08:28 +08:00
troyeguo 3f3653b8d0 Refactor ContentList component layout and styles
- Changed the main container for book content name from <span> to <div> for better semantic structure.
- Updated the layout of chapter titles to use flexbox for improved alignment and spacing.
- Adjusted styles in contentList.css to support the new layout, ensuring consistent spacing and alignment of chapter title elements.
2026-09-11 17:50:33 +08:00
troyeguo 720c4acb1c feat(ContentList): add chapter pages tracking and display
- Introduced `chapterPages` state to store the pages of each chapter.
- Updated state when new `htmlBook` is received to include chapter pages.
- Added event listener for `chapter-pages` to handle scrolling to chapters.
- Displayed chapter page numbers next to chapter labels in the content list.
2026-09-11 17:37:39 +08:00
troyeguo c098655265 feat: add experimental option to show total page number in reader settings
- Added a new setting for displaying the total page number in the reader settings interface.
- Updated the localization file to include the new setting label in Chinese.
- Modified the component state and interface to manage the new setting.
- Included the new setting in the reader settings list for configuration.
2026-09-11 15:08:00 +08:00
troyeguo d6f06cb932 feat: add success and error messages for AI title recognition in edit dialog 2026-09-11 14:43:25 +08:00
troyeguo 68c8d324ae refactor: update AI title analysis terminology and improve button styling in edit dialog 2026-09-11 14:38:29 +08:00
troyeguo e5f8dc86df feat: add AI title analysis feature in edit dialog
- Added "Analyze title with AI" functionality to the edit dialog, allowing users to analyze book titles using AI.
- Implemented a new button in the edit dialog for triggering the title analysis.
- Updated English and Chinese localization files to include the new feature.
- Enhanced the edit dialog's CSS for better layout and user experience.
2026-09-11 11:05:23 +08:00
troyeguo ed8fbe4e15 feat: add AI-based book title and author recognition during import
- Introduced a new feature that utilizes AI to recognize book titles and authors when importing books if no title is parsed from the metadata.
- Updated English, Simplified Chinese, Traditional Chinese, and Cantonese localization files to include new strings for the AI recognition feature.
- Implemented the `analyzeBookMetadata` method in the `ImportLocal` component to handle the AI analysis.
- Added a new setting option for enabling/disabling the AI recognition feature in the general settings.
2026-09-11 09:59:53 +08:00
troyeguo 7037836943 feat: add analyzeBookTitle function to handle book title analysis requests 2026-09-11 08:22:17 +08:00
troyeguo deb3164886 Increase opacity of book rating count for better visibility in metadata dialog 2026-09-10 17:11:27 +08:00
troyeguo 57aff212da Adjust font sizes and line heights in metadata dialog for improved readability; increase button height for better accessibility. 2026-09-10 16:33:05 +08:00
troyeguo 1ea8ab962e feat: add ISBN display and copy functionality in metadata dialog
- Added ISBN field to the metadata dialog for book details.
- Implemented copy-to-clipboard feature for ISBN with a toast notification on success.
- Updated styles for the ISBN display and copy button for better user experience.
2026-09-10 16:23:51 +08:00
troyeguo f909f84679 Enhance metadata dialog: sanitize and parse description HTML, format rating display 2026-09-10 16:06:41 +08:00
troyeguo 1d6da45937 feat: add rating and publication details to MetadataDialog and enhance styling 2026-09-10 16:01:57 +08:00
troyeguo 6de9346914 Refactor MetadataDialog to use rating_source and update CloudBookItem interface
- Removed the hardcoded source string and replaced it with rating_source from the item in MetadataDialog component.
- Updated the CloudBookItem interface to include additional properties: isbn, rating_source, rating, rating_count, categories, pub_date, language, and pages.
2026-09-10 15:54:52 +08:00
troyeguo e1b6a562a4 feat: enhance reading modes and plugin fetching logic
- Introduced `isReadingAidMode` utility to determine if reading aid features are active.
- Updated the Viewer component to conditionally apply styles based on reading aid mode.
- Modified plugin fetching logic to check user authentication status before displaying limited free options for self-hosted voices.
- Enhanced mouse event handling to prevent default scrolling behavior in paragraph mode, allowing for segment navigation instead.
- Improved scroll event handling to ensure proper behavior in different reading modes.
2026-09-08 17:35:04 +08:00
troyeguo 32c781b315 fix: update isPDF property for paragraph mode setting to true 2026-09-08 10:15:37 +08:00
troyeguo d3a7b8484f Add FAQ section and improve settings UI
- Added "FAQ" translation to zh-CN locale.
- Updated AboutSetting component to include a new FAQ section with a link to the FAQ page based on the user's language.
- Cleaned up code formatting in the AboutSetting component for better readability.
- Removed commented-out code in the Viewer component related to total page display.
2026-09-07 18:07:10 +08:00
troyeguo 71f179c5a2 feat: add progress tracking for book export process 2026-09-07 17:20:19 +08:00
troyeguo 03e6ba0fc7 Add commented out configuration for total page display in Viewer component 2026-09-07 17:13:04 +08:00
troyeguo 19d466cab2 feat: implement exclusive mode handling for reader settings
- Added `exclusiveModeNames` array to define modes that should be mutually exclusive.
- Introduced `handleExclusiveOff` method to disable other exclusive modes when one is enabled.
- Updated click handlers for `isReadingRuler`, `isSpeedReading`, and `isParagraphMode` to call `handleExclusiveOff` when enabling their respective modes.
2026-09-07 15:31:30 +08:00
troyeguo c4cadd8ed5 feat: add merge word functionality and state management in reader settings 2026-09-07 10:07:15 +08:00
troyeguo 7317fcd466 feat: update viewer and settings components to manage background visibility based on text orientation and page border settings 2026-09-07 09:39:44 +08:00
troyeguo a8af344ea0 feat: add speed reading functionality and settings 2026-09-07 09:33:14 +08:00