Commit Graph
3054 Commits
Author SHA1 Message Date
troyeguo 9bb3ec647c feat: update service handling in PopupAssist and PopupTrans for authenticated users 2026-08-23 11:22:03 +08:00
troyeguo 1cedef5380 Refactor PopupDict component to streamline dictionary service handling and reset configurations
- Added logic to set the default dictionary service to "official-ai-dict-plugin" for authenticated users.
- Updated state management to retrieve dictionary service from ConfigService consistently.
- Removed redundant checks and streamlined the flow for determining dictionary text retrieval.
- Cleared dictionary, translation, and AI service configurations upon token clearance in common.ts.
2026-08-23 11:13:10 +08:00
troyeguo 95056c60f8 Remove unnecessary console.log statements and refactor translation plugin functions for improved readability and consistency. 2026-08-22 14:42:20 +08:00
troyeguo ca3400bf18 fix: update voice list reference in plugin labels to SelfHostedVoiceList 2026-08-22 14:14:43 +08:00
troyeguo f9dd8924c1 feat: set update channel to 'dev' for versions above stable if not configured 2026-08-21 10:35:57 +08:00
troyeguo fa14e66f5f fix bug 2026-08-20 16:25:09 +08:00
troyeguo 39f7e2383a fix: add error handling for simultaneous activation of word definitions and fast reading mode 2026-08-20 11:18:27 +08:00
troyeguo 4dc6b6aa5a fix bug 2026-08-20 11:03:16 +08:00
troyeguo 70330cd90b fix: filter out null parsers in getParserRegex for improved parser reliability 2026-08-20 10:19:48 +08:00
troyeguo 7bd9fd7f09 refactor: replace setObjectConfig with deleteObjectConfig for cleaner deletion logic 2026-08-20 10:16:04 +08:00
troyeguo b4776188a5 fix: update localization for limited free status and adjust plugin display text 2026-08-20 09:57:46 +08:00
troyeguo 372362de7d Refactor TextToSpeech component to streamline sentence splitting logic and improve readability
- Removed redundant checks for PDF format when processing nodeTextList and visibleTextList.
- Consolidated sentence splitting logic into a single mapping operation for both nodeTextList and visibleTextList.
- Adjusted the speed parameter in the speech synthesis initialization from 20 to 10 for improved audio performance.
2026-08-19 15:39:36 +08:00
troyeguo 7042bcce2f Refactor TextToSpeech and Reader components for improved readability
- Cleaned up conditional statements in TextToSpeech and Reader components for better readability.
- Added console log for debugging purposes in TextToSpeech.
- Adjusted styling properties in Reader component for consistency.
- Enhanced toast message formatting in TextToSpeech for clarity.
2026-08-19 10:30:57 +08:00
troyeguo a2b8a22b1d Enhance update dialog logic and update channel selection
- Updated the logic in the UpdateInfo component to prevent updates from being applied if the stable version matches the current version and the update channel is not set to "dev".
- Added a default option "Please select" to the update channel selection in the AboutSetting component for better user experience.
2026-08-18 15:48:12 +08:00
troyeguo bdd3aa8271 feat: enhance isBookExist method to validate book file size
- Updated isBookExist method to accept an optional bookSize parameter.
- Added logic to check the file size of the existing book and delete it if it does not match the expected size.
- Modified calls to isBookExist throughout the codebase to include the book size.
2026-08-18 15:22:28 +08:00
troyeguo 58f8c06180 Refactor book path handling in BookUtil to improve clarity and consistency
- Renamed variable `_bookPath` to `libraryBookPath` for better readability.
- Simplified the logic for checking the existence of book files by consolidating conditions.
2026-08-18 15:02:16 +08:00
troyeguo 64fd83f9b3 fix: update development guidelines to clarify code submission process 2026-08-17 16:13:14 +08:00
troyeguo 97d63d3425 feat: add download queue management and improve download progress handling
- Added a new download queue system in BookUtil to manage concurrent downloads.
- Implemented waiting for ongoing downloads before starting a new one.
- Updated showDownloadProgress to streamline download progress tracking.
- Added a new translation for "Waiting for download..." in zh-CN locale.
2026-08-17 15:57:49 +08:00
troyeguo 97f773479f fix: pass file-specific key to IPC progress handlers for concurrent downloads
- add fileKey parameter to showDownloadProgress to track individual downloads
- update cloud-progress and picker-progress IPC handlers to return key-identified results
- add cloudProgressCache and pickerProgressCache for per-file progress tracking
- pass book.key as fileKey in redirectBook to isolate progress queries

Closes #0
2026-08-17 15:28:46 +08:00
troyeguo 1c639d975b fix: use unique toast id for concurrent download progress
- add toastId parameter to showDownloadProgress to support multiple concurrent downloads
- use book.key-based toast id in redirectBook to prevent progress overlap
- use distinct toast id in importDialog to avoid conflicts with book downloads

Closes #0
2026-08-17 15:21:41 +08:00
troyeguo 527eb468a7 feat(workflows): add dependency installation and TypeScript type check steps 2026-08-17 10:17:10 +08:00
troyeguo e3d5f588d8 fix(plugin): filter out voice plugins when not in Electron environment 2026-08-17 10:10:06 +08:00
troyeguo 9a9a350624 refactor(sync): remove deprecated Google Drive sync logic and related notifications 2026-08-17 10:02:38 +08:00
troyeguo c765c17c4a fix(zip): improve error handling during file zipping process to prevent promise hang 2026-08-16 18:02:48 +08:00
troyeguo 97914f5892 feat(backup): implement backup functionality using yazl for efficient file zipping 2026-08-16 17:55:25 +08:00
troyeguo 65c5a79bb2 fix(export): add total size check for book exports and log size 2026-08-16 17:28:31 +08:00
troyeguo 44971076af Refactor code structure for improved readability and maintainability 2026-08-16 16:57:06 +08:00
troyeguo cd9348df0f fix(importLocal): improve error handling in file reading process 2026-08-16 15:40:31 +08:00
troyeguo 10adc08e0e fix(importLocal): optimize file handling and size retrieval in handleFilePath method 2026-08-16 15:10:12 +08:00
troyeguo 67defd29ab feat(crypto): add file MD5 hashing functionality and update related APIs 2026-08-16 14:49:24 +08:00
troyeguo 17a5c8379d fix(locales): update translations for various languages
- Japanese: corrected translations for "Voice", "Sort by Date", and chapter navigation terms.
- Brazilian Portuguese: changed "Format" from "Formatar" to "Formato".
- Portuguese: updated "Format" from "Formatar" to "Formato".
- Swedish: improved translations for reading time and book page references.
- Tamil: changed "115 Yun" to "115 Yun" and improved other translations.
- Thai: corrected translations for update success message and "115 Yun".
- Tagalog: refined translations for built-in font, book name, and other phrases.
- Turkish: updated "Aliyun Drive" and "115 Yun" translations.
- Vietnamese: corrected "115 Yun" translation.
- Chinese (Macau and Taiwan): fixed translations for email sending limit message and theme terminology.
2026-08-16 08:02:11 +08:00
troyeguo f92c78766e fix bug 2026-08-15 18:41:42 +08:00
troyeguo 0377c8b54c fix bug 2026-08-15 15:00:59 +08:00
troyeguo 97d0e258e1 Translate font-related terms and various UI elements in zh-TW.json to Traditional Chinese for improved localization. 2026-08-15 14:15:40 +08:00
troyeguo ebf98095b6 Add new font management features and localization updates for Vietnamese, Simplified Chinese, Traditional Chinese, and Cantonese 2026-08-15 11:04:31 +08:00
troyeguo 912ab76b40 feat: add "Learn more" link for server region selection in account settings
fix: remove box-shadow from background and font setting styles
2026-08-15 10:59:13 +08:00
troyeguo ef8ee6d684 feat: add link for syncing library across devices in sync settings 2026-08-15 10:17:52 +08:00
troyeguo f80f9b6f5e refactor: update BookPathIndex to use Set for size storage and improve deduplication logic 2026-08-15 09:48:45 +08:00
troyeguo 45515fc47e feat: implement auto-import folder functionality with lightweight deduplication and refactor related components 2026-08-15 09:39:36 +08:00
troyeguo 31822a6f2d fix: improve formatting and structure in auto-import folder functionality 2026-08-15 08:55:23 +08:00
troyeguo 57e14e848f feat: enhance folder scanning with lightweight deduplication based on path and size 2026-08-14 18:55:27 +08:00
troyeguo 92fe8d164e fix: correct isFile method usage in file and folder checks 2026-08-14 18:41:28 +08:00
troyeguo 63a4620caa Add auto import folder functionality and localization updates
- Implemented auto import folder feature in the ImportLocal component.
- Added methods to scan and import books from specified folders.
- Created AutoImportDialog component for managing auto import folders.
- Integrated auto import functionality into the application startup process.
- Updated localization files for multiple languages to include new strings related to auto import.
- Enhanced UI for adding and removing auto import folders with appropriate feedback messages.
2026-08-14 18:35:02 +08:00
troyeguo ab867acca5 Refactor code structure for improved readability and maintainability 2026-08-14 11:18:02 +08:00
troyeguo 265f842e44 fix bug 2026-08-14 10:07:25 +08:00
troyeguo 657fbc6b3a feat: add keyboard shortcut indication for confirm action in PopupNote 2026-08-14 07:07:59 +08:00
troyeguo e9c3e14985 refactor: improve formatting of promise return types in aiRequest and chatStream functions 2026-08-13 17:28:41 +08:00
troyeguo 44f70a58e8 fix bug 2026-08-13 17:23:47 +08:00
troyeguo 016201383c fix bug 2026-08-13 16:23:00 +08:00
troyeguo af1f3095b3 fix: adjust submenu positioning to align with main menu rendering 2026-08-13 16:05:51 +08:00