1024 Commits

Author SHA1 Message Date
troyeguo
882ba25647 Fix padding declaration in tag-list-item for consistency 2025-09-29 08:19:21 +08:00
troyeguo
77efa60bad Fix padding declaration in tag-list-item for consistency 2025-09-29 08:17:49 +08:00
troyeguo
191252c9a6 Refactor book and card list components for improved sorting and filtering
- Updated bookList component to enhance book sorting logic based on user preferences.
- Modified cardList component to sort notes before displaying, ensuring the correct order based on the selected sort code.
- Adjusted cardList CSS to increase item height for better layout.
- Fixed noteList component styling by changing margin properties for better alignment.
- Commented out align-items property in note-list-header for potential layout adjustments.
- Removed unnecessary opacity setting in noteTag CSS for cleaner design.
2025-09-28 17:00:20 +08:00
troyeguo
ba44612d37 Refactor PopupRefer component to remove unnecessary console logs and streamline text content validation; enhance Login component to display a warning message for Microsoft login in China. 2025-09-28 09:59:18 +08:00
troyeguo
81fab659c7 Enhance PopupRefer component to handle content length restrictions
- Updated logic to check if the parent element's text content length is less than or equal to 3000 characters before traversing up the DOM.
- Added functionality to concatenate text content between anchor tags, ensuring the combined length does not exceed 3000 characters.
- Adjusted validation to ensure that text content length is checked against 3000 characters instead of 300.
2025-09-27 20:52:34 +08:00
troyeguo
bdecfc3578 Enhance UI and functionality across components
- Updated noteTag CSS to include opacity for better visibility.
- Adjusted cardList CSS scrollbar width and opacity for a cleaner look; added cursor pointer for better user interaction.
- Modified generalSetting component logic to improve error handling when confirming actions.
2025-09-27 15:29:05 +08:00
troyeguo
ec317cdc3d Remove unnecessary right padding from text input in cardList CSS 2025-09-27 11:02:22 +08:00
troyeguo
f6ca83f848 refactor(SettingDialog): remove pagination settings and related logic 2025-09-26 20:08:34 +08:00
troyeguo
9c75764811 feat(BookList): implement infinite scroll and dynamic book count display 2025-09-26 20:07:30 +08:00
troyeguo
f189d9c34d refactor(BookList): simplify book list rendering and remove unused pagination handlers 2025-09-26 19:18:52 +08:00
troyeguo
9dacea7832 style: update card and note list styles for improved layout and loading behavior 2025-09-26 18:24:15 +08:00
troyeguo
84a8974177 fix(popupRefer): add validation for empty or long text content
fix(progressPanel): improve percentage display precision
feat(thirdparty): add warning for 115 cloud sync
fix(login): update service recommendation text
refactor(bookCoverItem): simplify percentage display logic
refactor(bookCardItem): simplify percentage display logic
docs(translation): update Chinese locale strings
2025-09-26 15:32:07 +08:00
troyeguo
950fadf589 feat: add Yandex Disk support and update drive configurations
- Added Yandex Disk as a supported drive option in ImportDialog and SyncSetting components.
- Updated driveList to include Yandex Disk with appropriate configurations.
- Reorganized driveList entries for better clarity and consistency.
- Increased timeout duration for third-party requests from 6 seconds to 10 seconds in request utilities.
2025-09-24 16:30:45 +08:00
troyeguo
d95d7909b4 Remove console.log statements from UpdateInfo and PopupRefer components to clean up the code and reduce unnecessary logging. 2025-09-21 08:44:12 +08:00
troyeguo
f410c42fe5 Add logging for chapter resolution in PopupRefer component 2025-09-20 20:00:08 +08:00
troyeguo
0825f9379f Implement code changes to enhance functionality and improve performance 2025-09-20 15:01:26 +08:00
troyeguo
19930e9597 refactor: simplify architecture targets in package.json and comment out asset filters in upload.sh 2025-09-20 10:46:25 +08:00
troyeguo
e75bd1bdf2 Implement code changes to enhance functionality and improve performance 2025-09-20 10:35:04 +08:00
troyeguo
c7e70bc3f4 Filter out specific asset files from GitHub release downloads in upload.sh 2025-09-20 10:00:55 +08:00
troyeguo
aa60e5b6ae fix bug 2025-09-19 22:24:32 +08:00
troyeguo
5d1c277f6c feat: add download progress tracking and browser download option for Windows
- Added "Download in Browser" option for Windows users in the update dialog.
- Implemented download progress tracking with state management for progress, downloaded size, and total size.
- Updated translation files for Chinese (Simplified and Traditional) to reflect changes in download terminology.
- Refactored download logic to handle both Windows and non-Windows environments.
2025-09-16 17:27:10 +08:00
troyeguo
3dfb9a872f fix: update access token expiration for yiyiwu service to 30 minutes 2025-09-15 17:39:49 +08:00
troyeguo
43d5b24882 Refactor scrollbar styles for improved visibility and remove dark mode support 2025-09-14 16:18:38 +08:00
troyeguo
c5c9a6bdaf Enhance scrollbar styles for scrolling HTML viewer
- Implement custom scrollbar styles for both standard and WebKit browsers.
- Set scrollbar to be thin and transparent by default.
- Display scrollbar on hover with a semi-transparent background.
- Add dark mode support for scrollbar visibility against dark backgrounds.
- Improve user experience with smooth transitions on scrollbar interactions.
2025-09-14 16:13:07 +08:00
troyeguo
b809a24b5b fix: update margin in content list CSS and improve third-party request handling
- Adjusted margin-left in contentList.css from 18px to 15px for better layout.
- Refactored thirdparty.ts to handle refresh tokens more robustly, ensuring access tokens are included for specific services and improving error handling during authorization.
2025-09-14 15:48:05 +08:00
troyeguo
d2aab1515a Refactor: Remove console log for auth URL in ImportDialog and reduce timeout durations in third-party request functions
- Removed unnecessary console log statement in ImportDialog component when opening the auth URL.
- Reduced timeout duration from 10 seconds to 6 seconds in onSyncCallback, encryptToken, and decryptToken functions for improved responsiveness.
2025-09-14 09:36:58 +08:00
troyeguo
1720070469 Refactor PopupRefer integration and simplify conditional rendering in Viewer
- Updated import from PopupMenu to PopupRefer in popupRefer component.
- Removed unused action imports in popupRefer component.
- Simplified conditional rendering for PopupRefer in Viewer component by removing format check for currentBook.
2025-09-13 17:52:34 +08:00
troyeguo
917a1166fd Refactor progress percentage display and enhance content list expansion logic
- Updated the display logic for reading progress percentage in BookCardItem, BookCoverItem, and BookListItem components to use fixed decimal formatting.
- Implemented automatic expansion of content list items in ContentList component based on the current chapter's location.
- Added methods to check and expand parent paths for the current chapter in the content list.
- Modified the rendering logic to support expanded items in the content list.
- Adjusted the navigation panel to prevent mouse events based on search state.
- Improved progress panel input handling to ensure proper default value formatting.
- Enhanced viewer component to conditionally render elements based on book format.
2025-09-13 17:01:08 +08:00
troyeguo
4a9b48e014 Enhance user feedback and styling
- Added padding-bottom to the importLocal component's CSS for improved layout.
- Reduced the duration of error toast notifications from 8000ms to 6000ms in thirdparty.ts to provide a more concise user experience.
- Implemented a timeout mechanism in the loginRegister function to notify users about potential connection issues when the server region is not set to China, with a toast notification duration of 6000ms.
2025-09-13 16:04:05 +08:00
troyeguo
77afae29c4 Refactor code structure for improved readability and maintainability 2025-09-11 18:36:36 +08:00
troyeguo
061f8adcf3 Refactor code structure for improved readability and maintainability 2025-09-11 08:12:27 +08:00
troyeguo
8c1f2a28bd Add support for 115 Yun (yiyiwu) cloud storage
- Updated translation file to include "115 Yun" in Chinese.
- Modified import dialog to handle authentication for "yiyiwu" and log the auth URL.
- Added "115 Yun" to the drive list with necessary configurations.
- Enhanced sync settings to support "yiyiwu" for syncing options.
2025-09-10 15:36:31 +08:00
troyeguo
3ca30dbb8a Add Dubox support and localization
- Added Dubox to the drive list with support for desktop and phone.
- Included Dubox in the sync settings to allow for synchronization.
- Updated localization files to include the Chinese translation for Dubox.
2025-09-08 17:44:47 +08:00
troyeguo
54248f7ddb fix: reduce timeout duration for reload after clearing settings 2025-09-07 17:00:24 +08:00
troyeguo
ccc41e63b6 Refactor PopupMenu and SearchBox components; remove console logs, enhance search state handling, and improve book selection logic
- Removed debug console logs from PopupMenu component.
- Updated SearchBox to handle navigation search state more effectively after search results are processed.
- Introduced handleIndexFilter method in SelectBook to streamline book selection based on search results.
- Adjusted state mapping in SelectBook index to include search-related props.
- Enhanced book location handling in CardList to include chapter information for PDF format.
- Added mouse leave event handling in NavigationPanel to manage search state.
- Cleaned up unnecessary console logs in SyncSetting component.
- Improved highlighter rendering logic in Viewer to accommodate PDF format and chapter indexing.
- Simplified conditionals in Reader component related to navigation locking.
2025-09-07 11:11:36 +08:00
troyeguo
66f217497a feat: add timeout error message for connection issues in mainland China
- Added a localized error message for request timeouts, suggesting users switch server regions to China.
- Refactored delete dialog component to directly delete bookmarks and notes without a separate method.
- Improved sync status handling in the header component to ensure toast notifications are managed correctly.
- Updated general settings to reload manager after clearing data.
- Implemented timeout handling in third-party request functions to notify users of potential connection issues based on server region and language.
2025-09-06 16:00:46 +08:00
troyeguo
a0ee1e2c02 feat: add option to export books with original file names
- Added a new translation key for exporting books with original names in Chinese locale.
- Updated DeleteDialog component to handle search state when deleting books.
- Enhanced MoreAction component to use a utility function for generating book names during export.
- Improved error handling in ImportLocal component to include book names in error messages.
- Adjusted PopupMenu component to ensure proper positioning of the popup.
- Introduced a new setting option for exporting books with original names in general settings.
- Updated interfaces to include new props and state for handling search and export options.
- Implemented logic in export utility to conditionally use original file names based on user settings.
- Enhanced error messages in the reader request module to provide more context on dictionary lookups.
2025-09-05 17:42:17 +08:00
troyeguo
118143d7dc Add translations, update popup links, adjust card list height, enhance sync settings UI, modify login page images, remove Vercel config, and add mobile QR code for Chinese language. 2025-09-04 17:35:35 +08:00
troyeguo
6973acbdea Refactor code structure for improved readability and maintainability 2025-09-04 12:19:16 +08:00
troyeguo
5868b552f6 feat: update appId for appx configuration and refine update dialog logic 2025-09-02 16:45:58 +08:00
troyeguo
479530431d feat: update version to 2.1.4, remove isDisableUpdate state from settings, and add appx configuration 2025-09-02 16:24:44 +08:00
troyeguo
4fdd5850da feat: Clear token and code box on email change in account settings
- Added functionality to clear the token in the state and reset the code input box when the email format is validated.
- Removed unnecessary navigation and sync record generation in general settings after changing storage location.
2025-09-01 10:22:26 +08:00
troyeguo
bdac73b907 Refactor PopupMenu positioning logic and remove unnecessary console logs
- Updated PopupMenu component to improve positioning logic based on the popup's rectangle dimensions.
- Removed console log statements from SettingSwitch and Reader components to clean up the code.
- Cleaned up CORS testing utility by removing debug logs while maintaining functionality.
2025-08-31 15:29:21 +08:00
troyeguo
ae744b55ab Merge branch 'master' of https://github.com/koodo-reader/koodo-reader 2025-08-31 11:35:25 +08:00
troyeguo
3722e8542f feat: update translations, enhance color option styling, and improve setting switch functionality
- Added a new translation for menu button visibility in Chinese.
- Adjusted the margin-top of color option elements for better spacing.
- Modified the setting switch component to handle reset logic and added confirmation dialog for hiding the menu button.
2025-08-31 11:35:05 +08:00
troyeguo
2ea4f175c2 feat: add logging for mouse leave events and enhance navigation panel logic 2025-08-31 11:34:47 +08:00
troyeguo
6280cbf627 Add email format validation to account and login components
- Introduced an email format validation on blur event for the email input field in both the AccountSetting and Login components.
- Display an error toast message when the entered email format is invalid.
- Added a new translation key for "Invalid email format" in the Chinese locale file.
2025-08-30 18:32:38 +08:00
troyeguo
4dd82cec8e feat: add delay to chatwoot SDK initialization; improve popup menu positioning logic; append referer parameter to FAQ URL 2025-08-28 18:21:46 +08:00
troyeguo
0cfb646e52 feat: replace upgradePro with generateSyncRecord in multiple components; enhance error handling in database service 2025-08-28 17:59:26 +08:00
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