2073 Commits

Author SHA1 Message Date
troyeguo
4e7f183c31 fix: update version to 2.2.9 in package.json 2026-02-19 14:49:17 +08:00
troyeguo
4ce289f876 fix: update platform checks to include Electron for iCloud Drive and item filtering 2026-02-18 11:04:04 +08:00
troyeguo
579c1cfc38 Merge pull request #1585 from koodo-reader/dev
fix: streamline token handling in prepareThirdConfig by modifying con…
2026-02-18 09:54:36 +08:00
troyeguo
3d4c754cfe fix: streamline token handling in prepareThirdConfig by modifying config directly v2.2.8 2026-02-18 09:31:37 +08:00
troyeguo
ebe3291b08 Merge pull request #1584 from koodo-reader/dev
update to 2.2.8
2026-02-18 08:50:29 +08:00
troyeguo
a081a59e91 fix: enhance token configuration in prepareThirdConfig for specific services 2026-02-18 07:59:33 +08:00
troyeguo
945ff0943c fix: update version to 2.2.8 and enhance token configuration in prepareThirdConfig 2026-02-18 07:31:06 +08:00
troyeguo
8a5d080fca Merge pull request #1583 from koodo-reader/dev
update to 2.2.7
2026-02-17 15:26:53 +08:00
troyeguo
fef72cd3ca fix bug v2.2.7 2026-02-17 15:25:18 +08:00
troyeguo
16544bc1fc fix: update error message for redeem code clarification in support and account settings 2026-02-17 14:52:16 +08:00
troyeguo
0be75f3483 chore: remove unused electronLanguages configuration from package.json 2026-02-17 12:01:52 +08:00
troyeguo
081f298c6c Refactor sync and login components to filter out iCloud option on non-Darwin platforms; remove Windows iCloud path detection from common utility 2026-02-17 10:38:43 +08:00
troyeguo
c1d7fbfa59 fix: update iCloud Drive error messages for clarity and detail
- Changed the error message when the Koodo Reader's folder is not found in the iCloud Drive to provide more specific instructions for users.
- Updated the toast notification duration for better visibility.
2026-02-16 17:22:21 +08:00
troyeguo
c8e9f47d48 Refactor cloud configuration handling in common utilities
- Added removal of sync utilities and cloud configuration in prepareThirdConfig.
- Integrated IPC call to close cloud service in Electron environment.
- Simplified getCloudConfig by directly returning the result of prepareThirdConfig without checking for token updates.
2026-02-16 16:04:32 +08:00
troyeguo
e4fe02cafb style(noteTag): add min-width to tag for consistent sizing 2026-02-16 11:04:13 +08:00
troyeguo
6d314a9e04 feat: log old and new access tokens during cloud config update 2026-02-15 22:14:47 +08:00
troyeguo
3c4b767267 fix: streamline cloud config token update logic 2026-02-15 22:14:19 +08:00
troyeguo
368a21839f Remove console.log statements from SortDialog and CardList components 2026-02-15 22:11:33 +08:00
troyeguo
3f353d0e02 fix bug 2026-02-15 18:55:59 +08:00
troyeguo
d307465db0 feat: Enhance iCloud Drive error message and update cloud config token handling 2026-02-15 15:38:17 +08:00
troyeguo
da1e0b79a8 Refactor OCR engine handling and improve voice list updates
- Updated ConvertDialog to handle new OCR engine "official-ai-ocr" and adjusted language list retrieval.
- Added UNSAFE_componentWillReceiveProps lifecycle method in TextToSpeech to refresh voice list when plugins change.
- Changed default OCR engine in Viewer component from "tesseract" to "paddle" for consistency.
- Modified isBookOffline method in BookUtil to pass the book path for existence checks.
2026-02-15 15:13:56 +08:00
troyeguo
3e8e1a9fdd fix: update translation for AI voice feature and adjust note sorting logic
- Updated Chinese translation for AI voice feature to indicate mobile preview option.
- Added console log for debugging sort code in SortDialog component.
- Adjusted CSS for note tags and card list items for better layout.
- Modified default note sort code from 2 to 1 in the manager actions.
- Enhanced exportBooks function to improve UI responsiveness during file export.
2026-02-14 17:34:17 +08:00
troyeguo
e40f4c6fe7 fix bug 2026-02-13 16:51:40 +08:00
troyeguo
e5731b71d4 feat: Add error handling for book export and update localization strings 2026-02-13 16:16:06 +08:00
troyeguo
d42b715b19 Refactor token management and remove debug logs
- Replaced direct token deletion calls with a new `handleClearToken` utility function in multiple components (SupportDialog, UpdateDialog, AccountSetting) to streamline token management.
- Removed unnecessary console log statements across various components to clean up the codebase.
- Deleted the unused `i18n-mobile-script.js` file.
- Updated the `handleExitApp` function to include token clearing before redirecting to the login page.
2026-02-13 11:13:09 +08:00
troyeguo
3078659ace Refactor importLocal component and add i18n mobile script for localization management
- Removed unused imports in the importLocal component.
- Added a new script to manage localization files, including:
  - Listing folders in the locales directory.
  - Identifying missing translation terms in English.
  - Merging missing terms into the English translation file.
  - Filling out missing terms in other language files based on the English reference.
2026-02-12 18:04:33 +08:00
troyeguo
b8bddc2413 feat: Add trial expiration check for Pro renewal in Header component 2026-02-12 09:42:06 +08:00
troyeguo
0233966e2e feat: Add comparison feature for Free and Pro plans, update UI elements
- Added translation for "Compare Free and Pro features" in Chinese.
- Updated CSS to remove bold font weight from certain elements for better UI consistency.
- Changed toast notification ID from "import-book" to "add-book" for clarity.
- Added console log for debugging raw node list in TextToSpeech component.
- Implemented renewal notification for Pro users in Header component.
- Updated HeaderState interface to include isRenewPro state.
- Enhanced AccountSetting component to include a clickable link for comparing plans when not authenticated.
- Added a similar clickable link in the Login component for plan comparison.
- Removed unnecessary bold font weight from login CSS for improved styling.
2026-02-11 17:53:46 +08:00
troyeguo
30aa06f90b feat: add loading toast for book import and improve plugin handling
- Added a loading toast message during the book import process to enhance user feedback.
- Introduced a new translation key for "Importing" in the Chinese locale.
- Refactored plugin fetching logic to create new objects for voice items, improving code readability and maintainability.
2026-02-11 17:05:30 +08:00
troyeguo
f129e6dc9a Refactor upload functions and improve token management
- Removed the uploadBookToCloud method from ImportLocal component to streamline the code.
- Updated PopupRefer component to enhance the navigation logic and state management.
- Added isTokenExpired utility function to check token validity for various services.
- Ensured await is used for uploadBook calls in BookUtil and CoverUtil to maintain proper asynchronous flow.
- Enhanced restoreFromfilePath function with additional logging for debugging purposes.
- Modified getCloudSyncToken to handle specific error codes more gracefully.
- Improved SyncService to utilize the new isTokenExpired function for better cache management.
2026-02-11 15:47:57 +08:00
troyeguo
ab930a03ce Refactor styles and enhance error handling
- Updated the margin-top for account login tips in settingDialog.css for better layout.
- Added console log to display current data in NavList component for debugging purposes.
- Implemented error handling in the login component to check for missing parameters before proceeding with login.
- Added console log in the reader component to track the book object for debugging.
2026-02-09 16:30:25 +08:00
troyeguo
65d07ab821 feat: add new translations and UI improvements
- Added new Chinese translations for export prompts, trial information, and folder selection.
- Updated the AboutDialog component to remove success toast on export.
- Enhanced the setting dialog with new account login tips.
- Modified the SortDialog to fetch notes after sorting and improved sorting UI.
- Updated ImportLocal component to truncate book names in success/error messages.
- Added a title for tags in the NoteTag component.
- Adjusted styles in various components for better UI consistency.
- Implemented sorting functionality for notes based on user preferences.
- Updated the ConfigUtil to support sorting notes by key or percentage.
- Enhanced the export functionality to handle large book exports in Electron.
2026-02-07 17:41:07 +08:00
troyeguo
0760ff27af Merge branch 'dev' of https://github.com/koodo-reader/koodo-reader into dev 2026-02-07 10:06:54 +08:00
troyeguo
2f024fdae9 refactor: remove error log retrieval from AccountSetting component 2026-02-07 10:06:28 +08:00
troyeguo
6ce0b092d2 Merge pull request #1582 from koodo-reader/feature-kookit-sync
Feature kookit sync
2026-02-07 10:06:08 +08:00
troyeguo
713ba52068 Refactor authentication token handling and sync service logic
- Removed redundant token validation and error handling from the Header component.
- Introduced `prepareThirdConfig` function to streamline token refresh and validation for third-party services.
- Updated `getCloudConfig` to utilize the new `prepareThirdConfig` for better token management.
- Simplified `SyncService` to eliminate unnecessary dependencies on third-party requests during initialization.
- Enhanced error handling and user feedback for token authorization failures in the third-party request module.
2026-02-06 21:39:42 +08:00
troyeguo
1d75d7f926 feat: add authentication token validation and error handling in sync process
- Added a new translation string for invalid authentication token message in Chinese.
- Implemented token validation in the header component, displaying error messages for invalid tokens and failed tasks.
- Updated user info handling to ensure synchronization token is set correctly.
- Refactored task progress display logic to improve user feedback during data transfer.
- Introduced a new utility function to fetch task statistics for better sync management.
2026-02-06 19:15:49 +08:00
troyeguo
f0a63719be feat: enhance OCR functionality and localization support
- Added new translations for "More accurate", "Chinese", and "Official AI OCR" in the Chinese locale.
- Refactored OCR language list to dynamically generate options based on authentication status.
- Introduced a new function `getOcrPaddleLangList` to fetch OCR language options with localization.
- Updated the ConvertDialog component to handle user authentication for accessing the Official AI OCR feature.
- Integrated the `getOcrResult` function to handle OCR requests with error handling and user feedback.
- Modified viewer and reader components to include authentication checks for server region settings.
- Ensured consistent use of localization across dropdown labels and error messages.
2026-02-03 16:12:22 +08:00
troyeguo
b0aeab3455 Refactor code structure for improved readability and maintainability 2026-02-02 09:34:19 +08:00
troyeguo
efd579a978 fix: Refactor encryptToken call to use local settingDrive variable 2026-01-31 16:28:09 +08:00
troyeguo
dedb1445df fix bug 2026-01-31 16:23:13 +08:00
troyeguo
98cd3c1087 feat: Add iCloud Drive folder error message and enhance sync settings
- Added a new translation for the error message when the iCloud Drive folder is not found in the default path.
- Updated the Header component to log cloud sync records and compare results for better debugging.
- Enhanced the SyncSetting component to handle iCloud Drive path retrieval and provide user feedback on binding success or failure.
- Modified the getICloudDrivePath function to improve path detection for macOS and Windows, ensuring compatibility with the Koodo Reader application.
- Cleaned up the code in various utility files for better readability and maintainability.
2026-01-31 15:50:18 +08:00
troyeguo
55af214e62 Add iCloud support and handle setup failure in sync settings 2026-01-29 15:41:03 +08:00
troyeguo
eac9dfa307 Merge pull request #1581 from koodo-reader/dev
format with prettier
2026-01-28 16:59:25 +08:00
troyeguo
89f9aa32d2 Merge branch 'prettier' into dev 2026-01-28 16:51:14 +08:00
troyeguo
0525424a87 Refactor code structure for improved readability and maintainability 2026-01-28 16:50:53 +08:00
troyeguo
f90054781d Merge pull request #1580 from koodo-reader/prettier
format with prettier
2026-01-28 16:43:27 +08:00
troyeguo
a6ece38a1d Merge branch 'prettier' of https://github.com/koodo-reader/koodo-reader into prettier 2026-01-28 16:42:41 +08:00
troyeguo
c2a653d7d5 fix bug 2026-01-28 16:42:36 +08:00
troyeguo
9483cbb07d Add Prettier as a dependency and update configuration settings 2026-01-28 16:42:20 +08:00