Commit Graph
2304 Commits
Author SHA1 Message Date
troyeguo fd15bdcab2 Refactor sentence splitting to avoid unsupported lookbehind in low-version iOS Safari
- Updated `splitSentences` function in `common.ts` to replace lookbehind regex with a compatible approach for older browsers.
- Modified `getSelectionSentence` function in `mouseEvent.ts` to similarly avoid lookbehind, ensuring better compatibility across different environments.
2026-10-02 15:45:30 +08:00
troyeguo b38e2c143c fix: enhance scroll handling in reading aid mode
- Added a condition to prevent default scroll behavior during reading aid mode when in scroll reader mode.
- Ensured that preventDefault is called before lock checks to avoid animation frame drops caused by native scrolling.
2026-10-02 11:57:37 +08:00
troyeguo 32d20aefaa Refactor content list component and utility function for improved readability
- Updated the ContentList component to use a more descriptive class name for the chapter title span.
- Modified the scrollContents utility function to target the new class name for better maintainability.
2026-10-02 11:31:29 +08:00
troyeguo 32b1d3856c feat: replace custom confirmation dialog with vexComfirmAsync for URL import 2026-10-01 15:14:52 +08:00
troyeguo 01aa348628 feat: add confirmation dialog for importing books from URL and enhance localization strings 2026-10-01 15:11:10 +08:00
troyeguo 224913b7d3 feat: streamline question sending logic and enhance textarea behavior 2026-10-01 14:57:11 +08:00
troyeguo 90e659f018 feat: enhance featured image observer setup and manage pending elements 2026-10-01 14:38:14 +08:00
troyeguo ea81cf218f feat: add authentication check for background image URLs and update related methods 2026-10-01 14:14:11 +08:00
troyeguo e85b6914d5 fix bug 2026-10-01 11:14:05 +08:00
troyeguo 0bf027851a Add Quick Erase feature to Annotation Dialog
- Added "Quick erase" option to the English and Chinese locale files.
- Implemented UI components and styles for the Quick Erase toggle in the Annotation Dialog.
- Updated the component state to manage the Quick Erase setting.
- Integrated Quick Erase functionality with the existing annotation configuration.
2026-10-01 11:02:06 +08:00
troyeguo 0955ac9775 feat: refactor eraser width handling and update related styles in AnnotationDialog 2026-10-01 10:41:46 +08:00
troyeguo 35ddc57b6d Add eraser functionality and related UI components
- Introduced "Eraser" and "Eraser size" translations in English and Chinese localization files.
- Updated icon font files to include a new "eraser-line" glyph.
- Modified CSS to accommodate eraser width selection and preview.
- Enhanced the AnnotationDialog component to manage eraser width selection and state.
- Updated the viewer component to retrieve and apply eraser width settings.
- Added ERASER_WIDTHS constant for configurable eraser sizes.
2026-10-01 10:33:51 +08:00
troyeguo 136a4f3e1c Enhance dropdown styling in BookList component for improved UI 2026-10-01 10:06:25 +08:00
troyeguo 70b1b94484 feat: add isAiStreaming state to manage AI streaming status in PopupDict 2026-10-01 09:45:31 +08:00
troyeguo ae6f18a1f2 feat: add disclaimer for AI-generated content in PopupDict 2026-10-01 09:42:17 +08:00
troyeguo 05050b5366 fix: remove redundant disclaimer rendering in PopupAssist 2026-10-01 09:38:09 +08:00
troyeguo 6c5324fe82 feat: add disclaimer for AI-generated content in PopupAssist 2026-10-01 09:36:03 +08:00
troyeguo bc426133d2 feat: add priority support and unlock Pro features to login list 2026-09-30 17:49:51 +08:00
troyeguo 29f5b27706 fix bug 2026-09-30 17:06:25 +08:00
troyeguo e9ca0528fb feat: update icon fonts and add new report icon
- Updated icomoon font files (eot, svg, ttf, woff) to include a new report icon.
- Modified style.css to define the new report icon with the unicode "\1f321".
- Refactored PopupAssist component to replace SVG icon with the new report icon class.
2026-09-30 15:57:54 +08:00
troyeguo f89f9466d5 feat: add reporting feature with predefined reasons and feedback handling in PopupAssist 2026-09-30 15:01:44 +08:00
troyeguo b9cc9a601c refactor: replace hardcoded language paths with dynamic language retrieval in multiple components 2026-09-30 11:18:44 +08:00
troyeguo 2fb57ded62 fix bug 2026-09-26 09:34:40 +08:00
troyeguo b40353531d Update localization files for Ukrainian, Vietnamese, Chinese (Simplified, Traditional, and Macau) with new translations and corrections for reading features, plugin warnings, and user interface elements. 2026-09-26 07:51:04 +08:00
troyeguo 7092eaeb24 Add new localization strings for various features in multiple languages
- Updated Swedish, Tamil, Thai, Tagalog, Turkish, Ukrainian, Vietnamese, Chinese (Simplified and Traditional) localization files.
- Added translations for features such as reading ruler, speed reading, ISBN, ratings, member login, and more.
- Included security warnings for custom plugins and instructions for importing notes and highlights.
- Enhanced user experience with additional prompts and settings related to book management and app functionality.
2026-09-26 07:33:02 +08:00
troyeguo 647c639bb5 feat: implement exit-reader functionality and remove console logs for cleaner code 2026-09-25 15:53:15 +08:00
troyeguo 8c9dd2bad7 feat: add console logs for reader window close events and improve exit handling in OperationPanel 2026-09-25 15:16:37 +08:00
troyeguo 0a980a0eab Enhance Text-to-Speech and Header Components
- Increased the delay in the TextToSpeech component from 10 to 20 milliseconds for improved performance.
- Added console logging in the Header component to track the 'reading-finished' event and the execution of the handleFinishReading method, aiding in debugging and monitoring sync behavior after reading completion.
2026-09-25 15:00:22 +08:00
troyeguo 5f0cf7332b fix bug 2026-09-25 10:21:20 +08:00
troyeguo b817b936e1 feat: enhance reading aid mode logic and improve event handling for scroll prevention 2026-09-23 16:17:08 +08:00
troyeguo 19403b96f0 feat: implement isReadingRawPDF utility and refactor related components for improved PDF handling 2026-09-23 10:31:31 +08:00
troyeguo 156bb19f54 fix: improve error handling for TTS voice retrieval and plugin voice list validation 2026-09-23 10:19:13 +08:00
troyeguo d1d44e475a Refactor zhipuTTSVoice.js for improved readability and consistency in formatting 2026-09-23 09:49:03 +08:00
troyeguo 4e8f65ad30 fix: improve error handling by rejecting with error messages in TTS voice plugins 2026-09-23 09:45:47 +08:00
troyeguo d2bbb482dc Refactor mouse event handling to use isReadingAidMode for scroll prevention
- Replaced isPreventScroll function with isReadingAidMode check in arrowKeys and bindHtmlEvent functions.
- This change simplifies the logic for determining when to prevent scrolling in reading modes.
2026-09-23 09:15:33 +08:00
troyeguo 07514ca438 Enhance UI elements in ContentList and BackgroundSetting components
- Increased margin-right in ContentList component for better spacing.
- Adjusted width in contentList.css for improved layout consistency.
- Modified margin-top in contentList.css for better alignment.
- Updated class names in BackgroundSetting component to include 'background-apple-button' for styling consistency across buttons.
2026-09-22 17:39:39 +08:00
troyeguo 73617808ad feat: update localization and settings for reading ruler height
- Added new localization string for "Reading ruler height" in zh-CN.json.
- Updated the title in the reading ruler slider configuration from "Line height" to "Reading ruler height" for better clarity.
2026-09-22 17:13:56 +08:00
troyeguo 86d04dfba3 Update render logic to conditionally display PopupMenu based on paragraph mode and speed reading state 2026-09-22 15:58:33 +08:00
troyeguo f4575b1aed Update reading ruler background opacity to 0.6 across components
- Changed default value of reading ruler background opacity from 0.5 to 0.6 in settingSwitch component.
- Updated initial state for reading ruler background opacity to 0.6 in sliderList component.
- Modified viewer component to parse reading ruler background opacity as 0.6.
2026-09-22 15:46:51 +08:00
troyeguo ca332f13f6 Update TTS output format to improve audio quality 2026-09-22 14:59:59 +08:00
troyeguo 8acc499315 Refactor applyTextRules method to improve readability and maintainability 2026-09-20 15:12:38 +08:00
troyeguo 053653951e Refactor plugin handling in SettingDialog and improve null safety in book and dict utilities 2026-09-20 14:55:35 +08:00
troyeguo bbbf9a76c0 Fix rating display in MetadataDialog and update supported image formats in importLocal component
- Ensure filled stars are not negative in MetadataDialog by using Math.max.
- Update the list of supported comic image formats in importLocal to include .tif, .tiff, and .heic while removing .avif, .apng, .ico, and .cur.
2026-09-20 11:03:00 +08:00
troyeguo ca65ef5eac fix bug 2026-09-20 09:52:01 +08:00
troyeguo 73362b2514 Refactor SettingDialog component: Simplify JSX structure and conditionally render new plugin section based on window.electronAPI 2026-09-20 08:53:50 +08:00
troyeguo c1e7f0b500 Add "Please reselect voices for all roles" translation in multiple languages and update voice selection logic in TextToSpeech component 2026-09-19 14:34:27 +08:00
troyeguo 1075f59457 fix: update TTS output format to improve audio quality 2026-09-19 10:51:36 +08:00
troyeguo bbcdaeaf6c refactor(restore): enhance validation for book formats and config values; improve error handling for cover formats 2026-09-19 10:22:03 +08:00
troyeguo 3712e256b2 feat(plugin): add security warning for custom plugins and refactor add new plugin handling 2026-09-19 10:02:41 +08:00
troyeguo 136548291e Refactor voice plugin handling and localization updates
- Removed localization strings for unsupported custom voice plugins in multiple languages.
- Updated the plugin settings component to handle custom voice plugins with new verification methods.
- Introduced new types and utility functions for custom voice plugins.
- Enhanced error handling and user feedback for TTS plugin operations.
- Cleaned up unused variables and conditions related to custom voice plugins in the plugin manager.
2026-09-19 09:43:13 +08:00