Commit Graph

1745 Commits

Author SHA1 Message Date
troyeguo
e8a0cf7440 feat: add CORS handling and improve UI elements
- Added translations for CORS-related error messages in Chinese.
- Enhanced ImageViewer to display alt text in alerts for footnotes.
- Adjusted PopupAssist component styles for better layout and added emoji to questions.
- Updated PopupRefer to handle additional text formatting cases.
- Improved popupTrans styles with increased border-radius for buttons.
- Added emoji to sample questions in settings for better user experience.
- Implemented CORS testing in sync settings to ensure data source accessibility.
- Updated viewer component to include indentation setting from config.
- Changed login button text from "Log in" to "Continue" for consistency.
- Introduced testCORS function to validate CORS support for data sources.
2025-08-28 15:46:18 +08:00
troyeguo
31aa599f88 feat: restrict lemmatization feature to authenticated users
- Added a check in the SettingDialog component to display an error toast when the user attempts to toggle the lemmatize word setting without authentication.
- Removed references to the lemmatize word setting from general and plugin settings components, including state management and interface definitions.
- Updated the reading setting list to comment out the lemmatize word setting.
- Adjusted CSS for the scrollbar in the note tags container.
- Implemented a reset sync records feature in the SyncSetting component with a success toast notification.
- Cleaned up console logs in the Reader component.
v2.1.2
2025-08-24 14:36:33 +08:00
troyeguo
d698222cb4 Fix popup menu positioning logic for scroll and non-scroll reader modes
- Updated the positioning logic in the PopupMenu component to handle cases where the reader mode is set to "scroll".
- Added a condition to adjust the vertical position (posY) of the popup menu based on the reader mode and page size.
- Ensured that the popup menu displays correctly when the available height is less than 188 pixels.
2025-08-22 17:45:04 +08:00
troyeguo
32b4828a16 Refactor color option styles and adjust height; update dialog positioning; enhance delete dialog logic; streamline import local component; modify popup option dimensions; adjust content list padding; clean up plugin settings state; improve mouse event handling; refine dictionary error messaging. 2025-08-22 11:07:52 +08:00
troyeguo
d3f4dca801 Refactor: Remove feedback dialog and related functionality
- Deleted FeedbackDialog component and its associated styles and interfaces.
- Removed feedback handling from various components and Redux actions.
- Updated AboutDialog to include a "Support" option instead of feedback.
- Adjusted translations to reflect the removal of feedback-related texts.
- Cleaned up unused imports and state management related to feedback.
2025-08-21 20:02:05 +08:00
troyeguo
9e92a76eaa refactor: update IPC event name for Google Picker and enhance handling of picker actions
refactor: improve success message for added books in ImportLocal component
v2.1.1
2025-08-17 16:56:28 +08:00
troyeguo
9cde3ec1f6 feat: integrate Google Picker functionality with IPC communication and update picker handling 2025-08-17 16:10:23 +08:00
troyeguo
24929eebd6 fix: secure Electron app by disabling insecure content and removing experimental features 2025-08-17 11:40:04 +08:00
troyeguo
84e6967b96 feat(i18n): update OneDrive label and add clear success message in Chinese translation
fix(driveList): change OneDrive label from "Experimental" to "full access"

fix(header): ensure chat box is added on authentication for both Electron and web

refactor(reader): simplify mouse enter logic for panels to improve readability and maintainability
2025-08-17 10:54:44 +08:00
troyeguo
34c18ca022 fix: update OS matrix in release workflow and adjust GCC installation condition
feat: remove Google Drive Picker dependency and update translations for import feedback
2025-08-17 08:20:13 +08:00
troyeguo
e89b8ac1f0 Remove console.log statements from various components to clean up the code and reduce unnecessary logging. This includes the ImportDialog, NoteTag, PopupNote, PopupRefer, SyncSetting, and common utility functions. 2025-08-17 07:59:07 +08:00
troyeguo
d1d90feef3 Enhance UI components: Adjust dropdown widths and import options positioning
- Set width of language setting dropdowns in ConvertDialog to 70px for better alignment.
- Modify the positioning of the more options dropdown in ImportLocal based on component width.
- Increase the width of the more options dropdown in ImportLocal from 180px to 200px for improved usability.
2025-08-16 16:35:07 +08:00
troyeguo
f815613e72 Refactor icon font files and update styles
- Updated icon font files (eot, svg, ttf, woff) with new versions.
- Changed the icon class from `.icon-all` to `.icon-ai-assist` in style.css.
- Removed unnecessary border styles from background components.
- Added onMouseLeave event to the more options dropdown in ImportLocal component.
- Cleaned up CSS for more option items in importLocal.css.
- Added console log for debugging link jumps in PopupRefer component.
- Set background color to transparent for book list items.
- Adjusted padding for chapter and book names in pageWidget background styles.
- Updated plugin setting component to include new icon type for AI assist.
- Improved getTargetHref function for better href extraction from events.
2025-08-16 15:47:07 +08:00
troyeguo
5c70e8a592 feat: add auto download option for cloud books and update related settings
- Added translation for "Auto download cloud books" and its description in Chinese.
- Updated ColorOption component to adjust positioning.
- Refactored NoteTag component to handle new isShowPopupNote prop and adjust rendering logic.
- Enhanced PopupNote component to include tag handling and improved styling for note tags.
- Updated PopupRefer and PopupTrans components to handle additional logic and translations.
- Modified sync settings to include autoOffline option for better storage management.
- Adjusted CSS styles across various components for improved layout and visibility.
- Implemented mouse movement detection in Reader component to enhance user interaction.
- Cleaned up unused code and improved overall component structure for maintainability.
2025-08-15 16:57:08 +08:00
troyeguo
8b5949ba07 feat: Add clear all data functionality and confirmation prompt
- Implemented a new feature to clear all user data, including local and session storage, indexed DB, and file system data.
- Added a confirmation dialog that prompts the user to type 'CLEAR' to confirm the action.
- Updated the translation files to include new strings for the clear data feature.
- Enhanced the PopupRefer component to process HTML content and convert blob images to base64 format.
2025-08-14 21:42:06 +08:00
troyeguo
958afb3303 feat: enhance Google Picker integration for improved file selection and folder navigation 2025-08-14 14:59:21 +08:00
troyeguo
1b2f63d25d feat: Integrate Google Picker for file import functionality
- Added GooglePickerUtil class to handle Google Picker API interactions.
- Implemented handleGooglePicker method in ImportDialog to initiate file selection.
- Created handlePickerCallback to process selected files and handle imports.
- Updated driveList to remove experimental Google Drive option.
- Adjusted syncSetting component to remove references to the experimental Google Drive.
- Added a placeholder function showGooglePicker in common utilities.
- Updated yarn.lock to include @googleworkspace/drive-picker-element dependency.
2025-08-14 11:24:46 +08:00
troyeguo
b908d4aeba feat: enhance content list and settings dialogs
- Added new icons for collapse and all functionalities in the icon font.
- Introduced a header in the content list to display total chapters and toggle expand/collapse functionality.
- Removed the expand content option from settings dialogs and state management.
- Updated styles for the new content header and expand/collapse buttons.
- Added translations for new UI elements in the Chinese locale.
2025-08-13 16:32:10 +08:00
troyeguo
75e9cdfa61 fix: streamline package.json modification for Linux arm64 build using jq 2025-08-12 09:34:27 +08:00
troyeguo
cf41e2bfd9 fix: update release workflow to include multiple OS targets and modify package.json for Linux x64 builds 2025-08-12 09:27:30 +08:00
troyeguo
d8b7abe5f9 fix: update release workflow for Ubuntu 24.04-arm by refining OS conditions and installing necessary packages 2025-08-12 09:01:09 +08:00
troyeguo
bb39345e74 fix: add ARM64 target for deb packaging in package.json and set environment variable for Ubuntu 24.04-arm 2025-08-12 08:51:03 +08:00
troyeguo
29a7fe009b fix: remove ARM64 target from build configuration in package.json 2025-08-12 08:24:43 +08:00
troyeguo
5a71317002 fix: remove GCC installation step for Ubuntu in release workflow 2025-08-12 07:44:12 +08:00
troyeguo
731898cde5 fix: update build configuration to use Ubuntu 24.04-arm and adjust product naming in package.json 2025-08-12 07:35:25 +08:00
troyeguo
991b167f3a fix: update build configuration to use Ubuntu for release workflow and adjust product naming in package.json 2025-08-12 06:59:38 +08:00
troyeguo
9c1ab7f6a0 fix: refine Windows build configurations and artifact naming in release workflow 2025-08-11 22:42:22 +08:00
troyeguo
f398ec8b33 fix: adjust condition for building Electron app on Windows platforms 2025-08-11 22:21:45 +08:00
troyeguo
7ef6de8b6d fix: update build matrix to include additional Windows platforms 2025-08-11 22:18:55 +08:00
troyeguo
5c1d874107 fix: update clean step to remove build folder in Windows workflow 2025-08-11 21:55:05 +08:00
troyeguo
751613ec21 fix: remove redundant clean step for build folder in Windows workflow 2025-08-11 21:54:01 +08:00
troyeguo
478555fabf fix: add clean step for build and dist folders in Windows workflow 2025-08-11 21:52:54 +08:00
troyeguo
ee6145553a fix: update artifact name format for arm64 build in release workflow 2025-08-11 21:24:31 +08:00
troyeguo
5ed3bd21a3 fix: restrict build matrix to only Windows platform 2025-08-11 21:06:17 +08:00
troyeguo
3645c9ab72 fix: update workflow and package.json to support Windows 11 ARM architecture 2025-08-11 21:04:43 +08:00
troyeguo
77c2d1efa1 Refactor code structure for improved readability and maintainability 2025-08-11 20:18:04 +08:00
troyeguo
051084fa93 Remove unnecessary console log in PopupAssist component during ask mode handling v2.1.0 2025-08-10 10:41:26 +08:00
troyeguo
75d0793f4b fix(main): ensure main window is created if destroyed and app is ready 2025-08-09 15:56:57 +08:00
troyeguo
46c6df97ba refactor(main): reorganize single instance handling and restore file path logging 2025-08-09 15:08:55 +08:00
troyeguo
e696f6fd1a refactor(main): streamline single instance handling and remove redundant file writes 2025-08-09 12:07:17 +08:00
troyeguo
b0d027cd0e feat(settings): add option to disable auto scroll between chapters
- Added new translations for disabling auto scroll functionality in Chinese.
- Updated SettingDialog component to include a new setting for disabling auto scroll.
- Modified the interface to include the new isDisableAutoScroll state.
- Updated the reading settings list to include the new auto scroll option.
- Refactored SyncSetting component to remove unused state variables and include necessary ones.
- Adjusted mouse event handling to respect the new auto scroll setting.
- Minor update to user request handling for server region check.
2025-08-09 10:46:56 +08:00
troyeguo
0054d118fd refactor: clean up imports and improve response handling in PopupAssist component 2025-08-08 17:59:50 +08:00
troyeguo
a63f955c63 Enhance authentication URL handling for Microsoft services based on server region
- Updated the import dialog to use region-specific callback URLs for Microsoft and other drives when the server region is set to "china".
- Modified the header component to account for the new "web.koodoreader.cn" hostname.
- Adjusted account settings to utilize region-specific callback URLs for Microsoft during login.
- Enhanced sync settings to ensure the correct callback URL is used based on the server region for Microsoft and related drives.
- Updated viewer component to include server region in state management.
- Refined login component to handle region-specific callback URLs for Microsoft.
- Adjusted user request utility to use the appropriate callback URL based on the service and server region.
2025-08-08 17:40:55 +08:00
troyeguo
137c435cb8 pt-BR Translation Update 2025-08-06 17:06:44 +08:00
troyeguo
910777a1b6 fix bug 2025-08-06 17:05:44 +08:00
troyeguo
530abc271f fix: prevent unnecessary parent element traversal in PopupRefer component v2.0.9 2025-08-03 17:46:54 +08:00
troyeguo
d9878bf5b7 feat: bump version to 2.0.9; add readerMode prop to TextToSpeech interface and update related components 2025-08-03 15:00:02 +08:00
troyeguo
ba22949e23 feat: implement IPC handler for opening folders and files in the explorer 2025-08-02 17:24:45 +08:00
troyeguo
f843a4703f feat: add auto maximize window setting and update related UI components 2025-08-02 16:52:30 +08:00
troyeguo
6f4febc628 feat: replace openExternalUrl with openInBrowser for consistent URL handling across components v2.0.8 2025-07-27 15:58:26 +08:00