1921 Commits

Author SHA1 Message Date
troyeguo
62b6a09bff Merge pull request #1564 from koodo-reader/dev
feat: add custom confirmation dialog width for better responsiveness
2025-12-21 15:37:29 +08:00
troyeguo
86951d5dd3 feat: add custom confirmation dialog width for better responsiveness v2.2.4 2025-12-21 15:33:45 +08:00
troyeguo
b41ecb663b Merge pull request #1563 from koodo-reader/dev
update to 2.2.4
2025-12-21 10:55:53 +08:00
troyeguo
4e84ed7772 fix: update translation for sync issue and remove debug logs
- Updated the translation for the sync issue in `zh-CN` locale to specify the correct folder path for KoodoReader.
- Removed unnecessary console log statements from `PopupBox`, `Header`, and `backup` functions to clean up the code.
- Added a placeholder method `dumpDatabase` in `DatabaseService` for future implementation.
2025-12-21 10:51:19 +08:00
troyeguo
0c82228003 feat: Enhance popup functionality and improve login handling
- Updated PopupBox to send menuMode type when checking URL window status.
- Modified PopupDict and PopupTrans to include a type parameter when opening external URLs.
- Refactored Header component to ensure 'isFinshReading' is set correctly and added logging for sync operations.
- Improved AccountSetting component to streamline login and binding processes, ensuring proper error handling and user feedback.
- Enhanced openExternalUrl utility to accept a type parameter for better URL handling in Electron.
- Added console logging for configuration string during backup to assist in debugging.
2025-12-20 17:15:47 +08:00
troyeguo
060cabd5f9 feat: Refactor cloud sync handling and add user info fetching in relevant components 2025-12-19 08:34:40 +08:00
troyeguo
dc2c147f28 fix: update version number to 2.2.4 in package.json 2025-12-18 22:00:57 +08:00
troyeguo
19c373178f Remove unnecessary console.log statements across various components to clean up the codebase and improve performance. 2025-12-18 20:41:28 +08:00
troyeguo
9c74a09735 feat: Enhance Koodo Sync functionality and user experience
- Added new translations for Koodo Sync feature in Chinese.
- Refactored backup dialog component to streamline imports.
- Updated header component to prompt users to enable Koodo Sync for improved synchronization experience.
- Modified account settings to handle cloud synchronization upon login.
- Integrated cloud sync functionality into sync settings and login components.
- Implemented new utility functions for handling cloud sync tokens and configurations.
- Improved error handling and user feedback during sync operations.
2025-12-18 19:53:53 +08:00
troyeguo
8b46d6c3b1 fix: Update sync issue message for clarity and conciseness 2025-12-17 19:07:39 +08:00
troyeguo
59378b253c feat: Enhance PopupBox and PopupDict components with URL visibility control
- Added `isShowUrl` state to `PopupBox` and `PopupDict` components to manage URL display based on Electron environment.
- Implemented logic in `PopupBox` to hide the component when `isShowUrl` is true and menu mode is either "dict" or "trans".
- Updated interfaces for `PopupBox` and `PopupDict` to include `isShowUrl` state.
- Modified `Header` component to await backup operations for improved synchronization.
- Added functionality in `GeneralSetting` to read and apply configuration from `config.json` upon changing storage location.
- Enhanced `SettingDialog` with bold styling for new plugin indication.
- Added console logging for debugging highlighters in `Viewer` component.
2025-12-17 17:48:13 +08:00
troyeguo
5667fbff30 feat: add debug log retrieval feature and improve error handling
- Added a new translation key for "Get debug logs" in Chinese localization.
- Implemented a UI element in the settings to trigger debug log retrieval.
- Enhanced error handling across various components to display error messages using toast notifications.
- Updated the sync settings to inform users about Aliyun Drive's restrictions.
- Added a new dependency `electron-log` for improved logging capabilities.
2025-12-17 11:29:02 +08:00
troyeguo
3dc74a41fa feat: add email format validation and improve sync record reset instructions
- Added email format validation in login and account settings.
- Enhanced user feedback for resetting sync records with detailed instructions in the sync settings.
- Introduced a version comparison utility function for better version handling in update checks.
- Updated Chinese translations for improved clarity on sync issues.
2025-12-16 17:45:31 +08:00
troyeguo
0b8e76785b feat: Implement logging mechanism to send console logs from main process to renderer 2025-12-15 21:38:07 +08:00
troyeguo
9027bbaa21 Refactor ContentList to handle chapter scrolling and state updates more efficiently; add server region toggle in AccountSetting; optimize viewer component for TXT format handling. 2025-12-15 21:27:33 +08:00
troyeguo
ad49fd55e4 feat: Add confirmation dialogs for server region change and sync option modification
- Added a confirmation dialog for changing the server region, prompting the user to log out first.
- Implemented a confirmation dialog when changing the default sync option if there are online books not downloaded locally.
- Introduced a new utility function `vexComfirmAsync` for handling confirmation dialogs asynchronously.
- Updated translations for new confirmation messages in Chinese.
- Refactored logout handling in account settings to improve code readability and maintainability.
- Adjusted the visibility change handler in the book list component to simplify logic.
- Minor adjustments to error handling and toast notifications across components.
2025-12-15 19:27:41 +08:00
troyeguo
1e3a6cda6a feat: add resize and visibility change listeners for book list component 2025-12-15 10:12:09 +08:00
troyeguo
15c95cec91 feat: add additional supported languages in electronLanguages 2025-12-14 18:41:36 +08:00
troyeguo
8203b6d42e Remove toast notification for China server region selection in account and login components 2025-12-14 14:32:12 +08:00
troyeguo
caa89e3439 Refactor drive and login list handling to remove isCNAvailable checks
- Updated BackupDialog and ImportDialog components to directly use driveList without filtering based on isCNAvailable.
- Removed isCNAvailable property from driveList and loginList constants.
- Simplified login option selection in AccountSetting and Login components by eliminating region-based filtering.
- Adjusted SyncSetting component to utilize the full driveList without CN availability checks.
- Updated yarn.lock to reflect changes in megajs dependency version.
2025-12-13 16:16:56 +08:00
troyeguo
05cf34bc4d style: update input field styling in SortShelfDialog component 2025-12-12 18:34:58 +08:00
troyeguo
babd663cb5 fix: update public API URL to koodoreader.com 2025-12-11 17:41:23 +08:00
troyeguo
d0d30c3784 Update German translation 2025-12-11 10:19:49 +08:00
troyeguo
a814101082 fix bug 2025-12-11 10:18:58 +08:00
troyeguo
dae8a5da6d Merge pull request #1561 from koodo-reader/dev
update to 2.2.3
v2.2.3
2025-12-03 09:53:31 +08:00
troyeguo
e6d49f0c2e fix bug 2025-12-03 09:51:21 +08:00
troyeguo
c754a841fd feat: Set default server region to global if not configured during auth check 2025-12-02 17:52:41 +08:00
troyeguo
d50b168c1a fix indentation 2025-12-02 16:34:17 +08:00
troyeguo
4179828f0d fix bug 2025-12-02 15:51:52 +08:00
troyeguo
4a2e1e988c feat: Enhance reading state management and sync functionality
- Added a flag to prevent multiple sync operations in the Header component.
- Updated visibility change event to handle reading completion state.
- Set reading completion state when the operation panel closes.
- Adjusted beforeunload event to mark reading as finished when not in Electron.
2025-12-02 14:54:22 +08:00
troyeguo
9b5db560db fix: remove unnecessary await from resetKoodoSync calls in header and syncSetting components 2025-12-02 10:43:07 +08:00
troyeguo
6d8e9bc4c6 Refactor header and card list components; remove console logs and improve sync handling
- Removed unnecessary console log statements from Header and CardList components to clean up the code.
- Updated handleFinishReading method in Header to ensure that the cloud sync operation is awaited properly after setting the sync state.
- Ensured that the "isFinshReading" flag is set correctly after the sync operation.
2025-12-01 17:20:45 +08:00
troyeguo
3722242504 feat: add Koodo Sync reset functionality and update translations
- Added a new translation for the scenario where a data source already contains a library.
- Implemented resetKoodoSync function to handle enabling and disabling Koodo Sync.
- Updated the header component to utilize the resetKoodoSync function.
- Modified sync settings component to call resetKoodoSync when changing sync options and added a toast notification for existing cloud data.
- Introduced isCloudEmpty method in ConfigUtil to check if the cloud data is empty before merging.
2025-12-01 15:32:41 +08:00
troyeguo
7464166e56 Refactor: Update server region handling and improve sync functionality
- Replaced direct access to server region in BackupDialog with a utility function `getServerRegion`.
- Adjusted sort functionality in SortDialog to simplify rendering of sort options.
- Added logging for reading finish events in Header and improved handling of sync state changes.
- Simplified card sorting logic in CardList by removing unnecessary utility function calls.
- Removed redundant setting of "isFinshReading" in OperationPanel and Reader components.
- Updated showTaskProgress to accept a callback for sync state changes.
- Adjusted mouse event timing in mouseEvent utility for better responsiveness.
- Enhanced request handling in user, thirdparty, and reader request utilities to include server region.
2025-12-01 14:00:05 +08:00
troyeguo
f999fea0d9 fix: update productName in package.json to include 'DEV' for dev branch builds 2025-11-30 17:03:59 +08:00
troyeguo
a2b22d2bb9 fix: correct escaping in package.json modification for Windows in release workflow 2025-11-30 14:52:07 +08:00
troyeguo
1fd28696a4 feat: modify package.json for dev branch to append '-dev' to productName based on OS 2025-11-30 14:46:49 +08:00
troyeguo
aacbbde9e1 chore: bump version to 2.2.3 in package.json 2025-11-30 09:46:47 +08:00
troyeguo
76659ab084 fix: correct grammar in redemption instructions for server regions in translation files 2025-11-30 09:29:21 +08:00
troyeguo
bd99e3ace5 Remove unnecessary console.log statements across multiple components to clean up the codebase and improve readability. 2025-11-29 17:59:13 +08:00
troyeguo
48900bb22e feat: update error messages and improve server region selection
- Enhanced the error message for failed tasks to include reauthorization instructions in the Chinese translation.
- Added console logs for debugging purposes in the header component during sync operations.
- Refactored server region selection logic to display the current region for authenticated users and provide a dropdown for unauthenticated users.
- Updated the task progress function to reflect the new error message for failed tasks.
- Modified book download logic to retrieve and download covers from the cloud.
2025-11-29 15:18:48 +08:00
troyeguo
b09b84ad3b Refactor BookUtil.reloadBooks to accept currentBook parameter; update related components to pass currentBook during reload. Optimize resize event handling in Viewer component with debounce. Adjust handleFinishReading and handleSuccess methods in Header component for better sync logic. Add serverRegion setting in loginRegister function. Implement scale event throttling in mouseEvent utility. 2025-11-28 21:18:02 +08:00
troyeguo
7785848deb feat: add redemption instructions for different server regions in translations and dialogs
- Updated translation.json to include messages for redeeming codes based on purchase source (website or Tabao).
- Enhanced supportDialog and accountSetting components to display appropriate toast messages when a specific response code (10009) is received, guiding users on how to redeem their codes based on their server region.
- Modified configUtil to streamline the process of fetching sync data by type.
2025-11-28 15:18:08 +08:00
troyeguo
e84415374e feat: add email sending functionality and improve user feedback
- Added translation for "Send email" and "Email copied to clipboard" in Chinese.
- Implemented email copy to clipboard feature in AboutDialog component.
- Enhanced navigation logic in Header component to check mode before redirecting.
- Updated state mapping in Header container to include mode.
- Removed unused imports in AccountSetting component.
- Simplified download logic in Viewer component to improve error handling.
2025-11-27 17:13:08 +08:00
troyeguo
877fdc127a Refactor: Simplify getWebsiteUrl and getPublicUrl functions by using getServerRegion for consistency 2025-11-27 15:44:20 +08:00
troyeguo
60fd157b65 Refactor: Replace ConfigService.getItem("serverRegion") with getServerRegion() for consistency across components 2025-11-27 15:26:28 +08:00
troyeguo
22c53cb1a9 Refactor: Replace hardcoded WEBSITE_URL with dynamic getWebsiteUrl function across multiple components 2025-11-27 15:14:54 +08:00
troyeguo
29f12a10a0 Fix: Update method to retrieve Koodo sync configuration in SyncSetting component 2025-11-23 17:46:47 +08:00
troyeguo
44c8fb2462 Refactor book components to streamline state updates and improve offline status handling
- Updated `BookCardItem`, `BookCoverItem`, and `BookListItem` components to consolidate state updates for cover existence and offline status.
- Removed redundant state updates in lifecycle methods for better performance.
- Enhanced `PopupTrans` component by moving the "Add" button to a more logical position and removing duplicate code.
- Improved CSS for `PopupTrans` to enhance layout and scrollbar visibility.
- Removed unused `resetKoodoSync` function from user request utilities to clean up codebase.
v2.2.2
2025-11-16 15:14:35 +08:00
troyeguo
b7dd041530 Refactor PopupMenu selection logic for PDF format handling and remove unnecessary console logs in Header component 2025-11-16 08:58:41 +08:00