2635 Commits

Author SHA1 Message Date
troyeguo
579913b6ea Merge pull request #1614 from koodo-reader/dev
update to 2.3.6
2026-06-11 21:05:25 +08:00
troyeguo
be697e5c42 fix bug 2026-06-11 21:04:47 +08:00
troyeguo
db2210a4ea Increase concurrency limit for audio processing from 5 to 10 for improved performance 2026-06-11 18:49:26 +08:00
troyeguo
9d68be0d51 Reduce concurrent limit for audio processing from 10 to 5 to enhance stability 2026-06-11 17:42:19 +08:00
troyeguo
b147573119 Reduce default speech speed from 10 to 5 in TextToSpeech component for improved clarity 2026-06-11 17:41:08 +08:00
troyeguo
d8fc769ead Reduce concurrent limit for audio processing from 20 to 10 to improve stability and performance. 2026-06-11 16:59:21 +08:00
troyeguo
a62cdc89f8 Increase concurrency limits in TTS processing and add logging for getTTSAudio parameters 2026-06-11 11:40:12 +08:00
troyeguo
aa42441ced Remove debug logging from checkReachPageEnd function in common.ts 2026-06-10 19:16:35 +08:00
troyeguo
7be6780450 Enhance Text-to-Speech functionality and Sync Settings validation
- Updated `checkReachPageEnd` function to include `currentBook` parameter for better handling of multi-role voice books.
- Added logging for debugging purposes to track page end checks.
- Modified conditions in `SyncSetting` component to restrict WebDAV access based on authentication status and Electron environment.
2026-06-10 18:44:09 +08:00
troyeguo
70c6bee590 Fix: Remove unnecessary isElectron check for webdav authentication 2026-06-09 22:34:59 +08:00
troyeguo
72c164927a fix bug 2026-06-09 15:15:26 +08:00
troyeguo
3403fa9788 Remove console log statements from MetadataDialog and TextToSpeech components to clean up the code. 2026-06-09 14:33:58 +08:00
troyeguo
d2f5f09b65 feat: enhance book addition logic to support local file saving or localforage storage 2026-06-08 18:03:37 +08:00
troyeguo
54e7ed29fb fix: update URL prompt text for clarity in English and Chinese translations 2026-06-08 17:38:57 +08:00
troyeguo
0d9368c823 feat: add device name retrieval via IPC and update user request logic 2026-06-08 17:24:58 +08:00
troyeguo
ebb67296a7 Refactor metadata fetching logic in MetadataDialog component
- Improved error handling by checking for response code and data presence.
- Consolidated state updates for loading and error messages.
- Added console log for debugging metadata search results.
2026-06-08 17:12:21 +08:00
troyeguo
589b8305e1 fix: update Chinese translations for sync features and improve text matching logic
- Updated translations in zh-CN.json for clarity and consistency in sync feature descriptions.
- Added console log for debugging in TextToSpeech component to track visible text list.
- Enhanced string comparison in findLastMatchIndex function to ignore leading/trailing whitespace.
2026-06-08 15:07:13 +08:00
troyeguo
d1420e4169 Refactor word synchronization logic into WordSyncManager class
- Removed the syncWordToEudic and syncWordToAnki methods from PopupDict class.
- Introduced WordSyncManager to handle synchronization with Eudic and Anki.
- Updated the saveWord method to utilize the new WordSyncManager for syncing words.
2026-06-06 16:47:34 +08:00
troyeguo
68c4d89241 refactor: consolidate and enhance guidelines for Electron main process, Go server, i18n, and TypeScript/React 2026-06-06 15:47:30 +08:00
troyeguo
b5b5b83c63 fix bug 2026-06-06 11:52:57 +08:00
troyeguo
5856c516ac refactor: simplify IPC listener management and enhance restore functionality 2026-06-05 17:29:02 +08:00
troyeguo
360b5d042b refactor: remove unused CSS import and update TypeScript configuration 2026-06-05 16:17:29 +08:00
troyeguo
174f000936 refactor: remove private access modifier from utility methods in ImportLocal component 2026-06-05 15:51:50 +08:00
troyeguo
8535da00ad Refactor components to improve logging and remove console statements
- Removed unnecessary console logs from ImportLocal, TextToSpeech, Header, and Viewer components to clean up the code and enhance performance.
- Streamlined the components for better readability and maintainability by eliminating debug statements that are no longer needed.
2026-06-03 15:44:10 +08:00
troyeguo
193393bc8d Update default.css styles for improved UI consistency
- Added background color for .protection-overlay to enhance visual distinction.
- Combined styles for .plugin-tab-bar and .pin-keypad-container for streamlined styling.
- Ensured consistent background settings across related components.
2026-06-03 08:46:13 +08:00
troyeguo
6e172670d1 Update styles and components for pin keypad functionality
- Added new styles for pin keypad elements in dark.css and default.css, enhancing visual consistency.
- Refactored component rendering in ProtectionOverlay and MoreSetting to streamline pin key display logic.
- Removed unnecessary background color definitions in protection.css for cleaner styling.
- Updated theme utility to include new selectors for biometric and pin key elements, improving theme management.
2026-06-03 08:32:24 +08:00
troyeguo
cc9ccefb70 Add directory handle verification to LocalFileManager
- Introduced a new method to verify the usability of the directory handle in LocalFileManager, ensuring it is not stale or invalid.
- Updated permission handling logic to clear stored access if the directory handle is found to be unusable.
- Enhanced overall robustness of file access management by checking handle validity before proceeding with operations.
2026-06-02 18:49:41 +08:00
troyeguo
70a6eec5e8 Refactor header component to improve logging and status checks
- Added console logs to display permission status, local usage configuration, and support status in the Header component for better debugging.
- Enhanced the clarity of the code by providing insights into the current state of local file management and configuration settings.
2026-06-02 18:39:18 +08:00
troyeguo
c5757dc704 Refactor macOS tray icon handling to improve resizing logic
- Commented out the previous tray icon path and creation logic for macOS to streamline the code.
- Updated the tray icon resizing to ensure better quality and clarity in the status bar.
- Maintained the non-template image setting for improved visual fidelity.
2026-06-02 18:13:48 +08:00
troyeguo
90faa9d845 Refactor macOS tray icon handling for improved clarity and functionality
- Updated the logic for setting the tray icon path based on the operating system.
- Changed the icon to use a dedicated template image for macOS, ensuring better appearance in the status bar.
- Removed unnecessary resizing logic for the tray icon, simplifying the code.
2026-06-02 18:09:06 +08:00
troyeguo
99d4feff12 Update macOS tray icon handling for better appearance
- Adjusted the tray icon resizing logic for macOS to ensure proper display in the status bar.
- Changed the icon to remain non-template to avoid rendering issues with the app's full-color icon.
- Enhanced the quality of the resized icon for improved visual fidelity.
2026-06-02 17:41:47 +08:00
troyeguo
baa6b0b85c Refactor ImportLocal component to streamline supported formats check
- Simplified the filtering logic for supported formats in the ImportLocal component by removing unnecessary file types from the check.
- Improved code readability by consolidating the filter conditions into a single line.
- Ensured that only relevant formats are considered for import, enhancing user experience.
2026-06-02 17:32:48 +08:00
troyeguo
15bc656749 Refactor synchronization conditions in ImportLocal and Manager components
- Updated the cloud synchronization logic in ImportLocal and Manager components to check for the 'isDisableAutoSync' setting before executing the sync function.
- Improved code readability by consolidating the conditional statements for synchronization.
- Ensured consistent behavior across components when handling book imports and synchronization.
2026-06-02 15:07:35 +08:00
troyeguo
3e96ea294c Refactor cloud synchronization logic in ImportLocal and Manager components
- Updated the cloud synchronization calls in ImportLocal and Manager components to conditionally execute based on the default sync option setting.
- Improved code readability by consolidating the cloud sync function calls into a single conditional statement.
- Ensured consistent handling of synchronization after importing books across both components.
2026-06-02 10:25:44 +08:00
troyeguo
4cab7cb6bd Implement fullscreen functionality in OperationPanel component
- Added state management for fullscreen mode in OperationPanel, allowing users to toggle fullscreen and persist the setting.
- Introduced event listeners for fullscreen changes to update the component state accordingly.
- Updated UI elements to reflect the current fullscreen status with appropriate icons and text.
- Enhanced fullscreen handling in common utility functions to support both web and Electron environments.
2026-06-02 10:18:51 +08:00
troyeguo
e43d987be1 Refactor components for improved functionality and UI consistency
- Updated color codes in emptyCover component for better visual consistency.
- Added HTML entity decoding in ImportLocal component to handle special characters in titles.
- Adjusted width of popupNote component for responsive design.
- Enhanced page number handling in PageWidget and ProgressPanel components to prevent errors when page info is unavailable.
- Removed deprecated warning message in accountSetting component for cleaner UI.
- Slightly adjusted sidebar width for better layout.
2026-06-02 10:11:21 +08:00
troyeguo
42752f0d41 Enhance ImportLocal component with URL import functionality
- Added IPC listener for "import-url-from-link" to handle external URL imports.
- Updated handleURLImport method to accept an external URL parameter, improving flexibility.
- Ensured proper cleanup of IPC listener in component lifecycle to prevent memory leaks.
- Refactored URL handling logic for better readability and maintainability.
2026-06-01 11:44:27 +08:00
troyeguo
e0660be64e Add @mozilla/readability dependency and enhance HTML import functionality in ImportLocal component
- Introduced the @mozilla/readability library to improve HTML content extraction from URLs.
- Enhanced the importHtmlFromURL method to fetch, parse, and sanitize HTML content, ensuring relative URLs are converted to absolute.
- Added utility functions for escaping HTML and making URLs absolute within the imported content.
- Updated type definitions to include Readability class for TypeScript support.
2026-06-01 11:16:08 +08:00
troyeguo
4126067539 Implement throttling for resize event handlers across multiple components
- Introduced a `throttle` utility function to optimize resize event handling in the Background, ImportLocal, Header, BookList, Viewer, and main application logic.
- Replaced existing resize event listeners with throttled versions to improve performance and reduce unnecessary re-renders.
- Ensured proper cleanup of event listeners in component lifecycle methods to prevent memory leaks.
2026-05-31 18:06:43 +08:00
troyeguo
38b5cc977c Refactor components to remove console.log statements for cleaner code
- Removed unnecessary console.log statements from BookCardItem, MetadataDialog, SelectBook, TextToSpeech, common utility functions, CoverUtil, and DatabaseService components.
- Improved code readability and maintainability by eliminating debug logs that are no longer needed.
2026-05-31 17:52:59 +08:00
troyeguo
5a00ae3094 Enhance ImportLocal and Manager components with cloud synchronization functionality
- Integrated `cloudSyncFunc` into the ImportLocal component to trigger synchronization after importing books.
- Updated the Manager component to call `cloudSyncFunc` after importing a book.
- Added `cloudSyncFunc` to the props in both ImportLocal and Manager interfaces and their respective state mappings.
2026-05-31 17:27:15 +08:00
troyeguo
3956bd4f18 Implement auxiliary window URL loading logic to handle navigation and reloading
- Added `loadUrlInAuxWindow` function to manage URL loading in auxiliary windows, ensuring proper handling of same-origin navigation and reloading.
- Updated IPC handler for opening URLs to utilize the new loading function for both dictionary and translation windows.
2026-05-31 17:13:09 +08:00
troyeguo
0453cd0f72 Refactor book item components to use original file names when configured
- Updated BookCardItem, BookCoverItem, and BookListItem components to conditionally display the original file name without extension based on user settings.
- Introduced getFileNameWithoutExtension utility function to handle file name extraction.
- Removed redundant code in ImportLocal component related to name assignment.
- Adjusted DictSetting component to utilize the new utility for dictionary file name handling.
2026-05-31 15:52:31 +08:00
troyeguo
48ad5a8d8a Implement scroll reset on setting mode change in SettingDialog component 2026-05-31 15:38:05 +08:00
troyeguo
f5b77ef1bc Update localization files to enhance font installation instructions across multiple languages, clarifying that installed fonts will automatically appear in the dropdown list after restarting the application. 2026-05-31 15:34:00 +08:00
troyeguo
79efe9a42a chore: remove IMA sync option due to potential legal issues 2026-05-31 14:39:19 +08:00
troyeguo
28391d21e3 chore: add pull request template for translation contributions 2026-05-31 09:17:16 +08:00
troyeguo
9405eb6a7f update es translation 2026-05-30 15:07:01 +08:00
troyeguo
e0ab19e8ce fix bug 2026-05-30 15:06:06 +08:00
troyeguo
441b1c5dd6 chore: remove outdated pull request template for translations 2026-05-29 17:53:15 +08:00