Commit Graph
364 Commits
Author SHA1 Message Date
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 be176725b6 Refactor OCR language mapping and improve regex patterns for clarity 2026-07-09 12:24:50 +08:00
troyeguo a4a6074170 Refactor parseWithSystemOCR to simplify return value and improve logging 2026-07-09 12:18:42 +08:00
troyeguo 491b49b821 Refactor code structure for improved readability and maintainability 2026-07-09 12:08:23 +08:00
troyeguo 3a5f83d0fa fix bug 2026-06-28 15:27:09 +08:00
troyeguo cca64a444a Remove tray template image for macOS and adjust icon settings 2026-06-16 11:25:55 +08:00
troyeguo 471022f3fd Remove template image setting from tray icon creation 2026-06-16 11:09:02 +08:00
troyeguo aa511c5e98 Update tray icon for macOS and increment version to 2.3.8 2026-06-16 10:37: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 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 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 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 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
Fahad Bin Hussain 29c5830ecc Address native theme review comments 2026-05-29 10:44:13 +06:00
Fahad Bin Hussain 1f21f27654 Make native title bar follow app skin 2026-05-27 22:39:29 +06:00
troyeguo 75c38331a7 feat: implement deep link handling for cold starts and second-instance launches 2026-05-24 14:23:57 +08:00
troyeguo e68e5a113a feat(dict): implement file selection dialog for importing dictionaries 2026-05-19 15:39:45 +08:00
troyeguo 0d60cdf331 refactor(ipc): rename file selection handlers for clarity 2026-05-19 15:30:39 +08:00
troyeguo 3b1ca57add feat(reader): enhance close handling for reader and tab interactions
- Added separate IPC listeners for "before-reader-close" and "before-tab-close" to manage close events more effectively.
- Updated the onBeforeClose method to send signals for both reader and tab closures, ensuring proper cleanup and state management.
2026-05-19 08:42:51 +08:00
troyeguo e2c102a589 feat: add functionality to copy book and note links to clipboard 2026-05-17 18:31:54 +08:00
troyeguo 419998e327 feat: enhance backup and restore processes with progress updates and improved file handling 2026-05-17 17:59:06 +08:00
troyeguo 33d6aa0b51 Refactor PopupDict and Viewer components; remove console logs, enhance KOReader sync functionality, and add book path retrieval method
- Removed unnecessary console logs from PopupDict and handleFetchPlugins functions.
- Updated Viewer component to utilize XPath navigation if KOReader sync is enabled.
- Introduced getBookPath method in BookUtil to retrieve the book's file path based on its key and format.
- Enhanced KOReader sync logic to include timestamp checks and partial MD5 calculation for books.
2026-05-15 21:04:11 +08:00
troyeguo 3558e6397b feat: enhance biometric authentication by adding window handle support and improving PowerShell script execution 2026-05-15 09:50:09 +08:00
troyeguo f495284f0e feat: enhance error handling in biometric authentication and improve logging 2026-05-15 09:26:33 +08:00
troyeguo 07aff91b66 feat: implement biometric authentication support with Windows Hello and Touch ID 2026-05-15 08:35:42 +08:00
troyeguo 0a29f0ca02 feat: implement PIN-based authentication and enhance UI for protection settings 2026-05-14 20:02:35 +08:00
troyeguo 4329a1213b feat: implement protection settings with password, PIN, and biometric authentication 2026-05-14 18:29:08 +08:00
troyeguo 66a4c87444 Remove unnecessary console logs from various components to clean up the codebase and improve readability. 2026-05-06 09:52:01 +08:00
troyeguo d28aa4c7fc fix: improve translation for chapter title description in Chinese locale 2026-05-01 09:52:44 +08:00
troyeguo abb2a764dd feat: implement backup functionality using streaming zip creation 2026-04-30 17:24:49 +08:00
troyeguo 48a30d6e5b refactor: enforce minimum window dimensions and improve reader window close logic 2026-04-29 16:07:15 +08:00
troyeguo c24303a7d0 refactor: adjust minimum window dimensions for main application 2026-04-29 15:19:21 +08:00
troyeguo b4ae26b88d refactor: move heatmap rendering to a new position in Stats component 2026-04-29 15:13:34 +08:00
troyeguo 35df7f3df8 Refactor PopupOption component styles: inline color and font size for setting icon
- Updated the PopupOption component to apply inline styles for the setting icon, changing its color to #8a8f9f and font size to 24px.
- Removed the corresponding CSS class definition for .setting-icon from popupOption.css to streamline styles.
2026-04-28 22:10:28 +08:00
troyeguo cebf9391de Refactor code structure for improved readability and maintainability 2026-04-28 16:30:26 +08:00
troyeguo ee98fea65f feat: add book path selection feature in edit dialog
- Added a new field for selecting and displaying the book path in the edit dialog.
- Integrated Electron's IPC to allow users to select a book path from the file system.
- Updated the state management to include the book path and ensure it is saved with the book details.
- Enhanced the UI to provide options for locating and selecting the book path.
- Added corresponding styles for the new book path UI elements.
2026-04-27 15:35:50 +08:00
troyeguo f1cead8c2e feat: implement reading time tracking with event-driven storage management 2026-04-24 10:28:57 +08:00
troyeguo 19bc092bb4 fix: remove nodeIntegrationInSubFrames option from webPreferences in createMainWin 2026-04-23 08:08:23 +08:00
troyeguo 640aefa392 Remove unnecessary console.log statement from discord RPC clear handler 2026-04-17 17:56:30 +08:00
troyeguo 5af3ad03b2 Update icon fonts and enhance settings dialogs
- Updated icon font files (eot, svg, ttf, woff) with new versions.
- Modified CSS to reference updated font files with new query strings.
- Added new "Reading" section in the settings dialog sidebar.
- Restored "Background" option in the settings dialog sidebar.
- Enhanced backup dialog to handle settings more effectively.
- Added success toast notifications for dropdown list actions.
- Adjusted reading status filter dropdown width for better UI.
2026-04-16 15:17:38 +08:00
troyeguo 529bc0cc19 refactor: replace console.log with console.info for consistent logging 2026-04-14 09:10:18 +08:00
troyeguo 18b5f65ea4 Enhance removeSyncUtil method to clear queue before deletion of sync utility 2026-04-13 12:23:54 +08:00
troyeguo 58c1e5268f Refactor code structure for improved readability and maintainability 2026-04-09 16:19:32 +08:00
troyeguo 30f6553b11 feat: add Discord Rich Presence support
- Added translation for "Enable Discord Rich Presence" and its description in Chinese.
- Introduced a new setting option for enabling Discord Rich Presence in the settings panel.
- Implemented functionality to update Discord Rich Presence with the current book information when reading.
- Added methods to clear Discord Rich Presence when the reader is closed.
- Updated the percentage display in the reading progress to show as a percentage.
2026-04-07 09:37:59 +08:00
troyeguo dbfa3c7732 feat: implement quit behavior to minimize to tray functionality 2026-03-30 09:44:29 +08:00