Commit Graph
2887 Commits
Author SHA1 Message Date
troyeguo 6507bb902b Remove "Hide menu button" option from settings and localization files
- Deleted the "Hide menu button" setting from the reader settings component and its related actions, reducers, and state management.
- Removed corresponding translations for "Hide menu button" from various localization files (e.g., ar.json, bg.json, bn.json, etc.).
2026-07-14 10:37:23 +08:00
troyeguo a4b6edbec1 refactor: update CSS styles for improved visibility and consistency in Reader component 2026-07-14 10:26:23 +08:00
troyeguo be7fb80a55 refactor: unify readingFinishedHandler setup and cleanup in Header and BookList components 2026-07-14 08:49:47 +08:00
troyeguo 08e835dca0 Refactor code structure for improved readability and maintainability 2026-07-14 08:29:42 +08:00
troyeguo 04ab4ce038 Refactor voice list handling to use KookitConfig constants
- Replaced references to officialVoiceList and azureTTSVoiceList with KookitConfig.OfficialVoiceList and KookitConfig.AzureTTSVoiceList respectively in handleFetchPlugins function.
2026-07-14 08:08:15 +08:00
troyeguo f51790c9d3 Remove unused settings and localization entries for navigation, AI, audiobook, scale, and PDF conversion buttons 2026-07-13 19:12:32 +08:00
troyeguo 888f28a5a2 refactor: remove unused restoreFromConfigJson function and clean up imports 2026-07-13 18:34:28 +08:00
troyeguo 67089f018f fix: update htmlBook prop handling to prevent unnecessary updates 2026-07-13 18:32:08 +08:00
troyeguo a79ce176fe feat: implement throttling for mousemove events to improve performance 2026-07-13 18:13:47 +08:00
troyeguo da93d3dc09 fix: update mouse position calculation to use screen coordinates 2026-07-13 18:04:54 +08:00
troyeguo 7716286032 feat: add text-to-speech option and enhance speech dialog UI 2026-07-13 16:51:25 +08:00
troyeguo f186f0c645 fix: prevent notification settings from being overridden on unread message update 2026-07-13 16:02:29 +08:00
troyeguo 170e8067ef feat: add mouse position event handling for edge proximity detection 2026-07-13 15:57:39 +08:00
troyeguo 846218d8f6 feat: add loading toast during cloud restore process 2026-07-13 15:23:50 +08:00
troyeguo fd6187fa21 refactor: update drive value from 'local' to 'folder' across the application
- Changed the drive value from 'local' to 'folder' in driveList constant.
- Updated condition checks in SyncSetting component to reflect the new drive value.
- Modified the handleAutoCloudSync function to use 'folder' instead of 'local' for default sync option.
2026-07-13 15:16:56 +08:00
troyeguo 2405b0b25e Enhance background color handling for specific books
- Updated the Viewer component to set the current book key and handle background color when a book is identified as a separate style book.
- Ensured that the current book key is cleared when the book does not match the specified criteria.
- Made similar adjustments in the Reader component to maintain consistency in background color handling.
2026-07-13 15:08:58 +08:00
troyeguo e1dac9957b refactor: remove unused ocrEngineKey variable in Viewer component 2026-07-13 14:51:00 +08:00
troyeguo 135fde511b feat: enhance cloud drive label display with Pro designation for premium options 2026-07-13 14:47:54 +08:00
troyeguo 589fac27e7 feat: implement default OCR engine and language selection logic in ConvertDialog and Viewer components 2026-07-13 14:38:24 +08:00
troyeguo 539686b3f0 Refactor OCR engine integration: remove MinerU Agent API references
- Removed MinerU Agent API option from the OCR engine list and related components.
- Updated ConvertDialog and Viewer components to exclude MinerU Agent logic.
- Deleted parseWithMineruAgent function from common request utilities.
2026-07-13 14:12:49 +08:00
troyeguo e98c3c92d5 feat: filter out 'annotation' notes in various components and queries 2026-07-12 18:19:37 +08:00
troyeguo f48a027da3 feat: fetch updated note record on annotation change in PageWidget 2026-07-12 17:58:10 +08:00
troyeguo cb194c7f08 feat: enhance language options display in ConvertDialog with Pro label for official AI OCR 2026-07-12 17:38:19 +08:00
troyeguo 78d9e718e2 feat: implement language selection logic for OCR engines in ConvertDialog component 2026-07-12 17:33:37 +08:00
troyeguo b8850d7b3c fix: refactor condition check for system-ocr in ConvertDialog component 2026-07-12 17:21:51 +08:00
troyeguoandCopilot Autofix powered by AI ad555de933 Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-12 17:20:48 +08:00
troyeguo 79c2f9bfe5 fix: update localization for local folder terminology in Chinese and drive list 2026-07-12 16:46:37 +08:00
troyeguo 006b0dba0b Remove unnecessary console.log statements from various components to clean up the codebase and improve readability. 2026-07-12 16:15:21 +08:00
troyeguo 356b64528e feat: migrate chat functionality to preload.js and remove preload.chat.js 2026-07-12 15:55:58 +08:00
troyeguo 6bbc3101a0 feat: implement chat functionality with IPC communication and preload script 2026-07-12 15:42:20 +08:00
troyeguo 2a03555ab6 feat: enable notifications based on user settings in Header component 2026-07-12 15:10:17 +08:00
troyeguo e43178c550 feat: add local drive option and update sync settings
- Added a new drive option "Local" to the drive list with support for desktop.
- Updated SyncSetting component to handle local drive selection, including path selection via Electron.
- Modified the auto cloud sync handler to account for the new local drive option.
2026-07-12 14:20:56 +08:00
troyeguo c1417ee26e refactor: reorder fetch calls and background color handling in Reader component 2026-07-12 09:51:53 +08:00
troyeguo f21a35ffca feat: implement background color handling for separate style books in Reader component 2026-07-12 09:42:09 +08:00
troyeguo 764cefce39 Enhance text highlighting logic in TextToSpeech and NavigationPanel components
- Updated conditions to include text orientation configuration when highlighting audio nodes in the TextToSpeech component.
- Modified the highlighting logic in the NavigationPanel component to also consider text orientation configuration.
2026-07-12 09:22:51 +08:00
troyeguo cc13d30840 Fix popup position calculation by passing chapterDocIndex to getPageSize method 2026-07-12 08:39:21 +08:00
troyeguo 594a70bab9 Add validation for default sync option before initiating cloud sync
- Added a check to ensure that a default sync option is set before allowing the user to proceed with cloud sync.
- If no default sync option is found, a toast notification prompts the user to add a data source in the settings.
- Adjusted the handling of the setting mode to switch to "sync" for authenticated users and "account" for unauthenticated users.
2026-07-12 06:42:09 +08:00
troyeguo 952382a924 refactor: simplify toast message handling in multiple components 2026-07-12 06:22:13 +08:00
troyeguo b3c80e198a fix: adjust margin for list items in setting dialog CSS 2026-07-11 20:34:19 +08:00
troyeguo e12f3dab89 Enhance composition handling in ContentList component
- Set temporary and navigation locks when composition starts to prevent unintended interactions.
- Clear locks when composition ends, ensuring normal navigation behavior resumes.
2026-07-11 19:43:24 +08:00
troyeguo ce0c2fceda Add option to hide sync progress bar during synchronization 2026-07-11 19:01:33 +08:00
troyeguo 731bd525ad Update text and background color indices in ThemeList based on applied colors 2026-07-11 18:34:06 +08:00
troyeguo 9d56057f93 Add pending color states for background and text color in ThemeList 2026-07-11 18:32:04 +08:00
troyeguo 86e72e5fca Adjust popup menu position calculation for improved visibility across chapters 2026-07-11 18:24:06 +08:00
troyeguo 7b686b2092 Add Enter key functionality to create notes and adjust margin for color pickers 2026-07-11 18:01:09 +08:00
troyeguo a82b655cec Remove "Local" option from data source selection in sync settings 2026-07-11 16:51:13 +08:00
troyeguo aaaaf3c699 Update localization strings and enhance support dialog with new member benefits 2026-07-11 16:20:36 +08:00
troyeguo e1c36e5df7 Implement code changes to enhance functionality and improve performance 2026-07-11 15:48:59 +08:00
troyeguo e77fefb879 Refactor toast messages to include "Sync and backup first" prompt and adjust driveList to mark all drives as Pro. Remove unnecessary authentication checks in third-party token functions. 2026-07-11 15:37:14 +08:00
troyeguo 261aa9a96f Refactor header component by removing data change detection and sync methods
- Removed `isDataChange` state from Header component and related logic for detecting data modifications.
- Eliminated `syncFromLocation` and `syncToLocation` methods, simplifying the sync process.
- Updated the header rendering logic to remove references to data change state.
- Cleaned up unused imports and functions related to last sync time from config JSON.
- Adjusted sync settings component to remove local sync option handling.
2026-07-11 15:06:37 +08:00