- 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.
- 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.
- 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.
- Extracted search result retrieval logic into a separate method in SearchBox component for better readability and maintainability.
- Updated importDialog CSS to adjust positioning of elements for improved layout.
- Added conditional toast notifications in TextToSpeech component to only show messages when audio is enabled.
- Enhanced error handling in common utility functions by increasing toast duration for better user visibility.
- Modified SQL queries in BookUtil to use parameterized queries for improved security and performance.
- Improved case-insensitive search functionality in BookUtil to ensure consistent results regardless of input case.
- Simplified the rendering logic in the Background component by introducing a helper function to determine dark mode and shadow opacity.
- Updated BackgroundProps interface to include backgroundColor.
- Modified mapStateToProps in background index to include backgroundColor from the state.
- Enhanced deleteDialog component to fetch full details of deleted books before deletion.
- Added handleColor prop to PopupNote component for better color management.
- Updated language label for Portuguese in settingList.
- Improved performance in bookList and cardList components by optimizing data fetching.
- Refactored noteList component to streamline note handling and mapping.
- Cleaned up backup utility by removing unnecessary config backup steps.
- Added a prompt in Chinese for users to select books in the Google Drive Picker.
- Enhanced the Google Picker handling in the ImportDialog component to open an external URL for selection.
- Updated the displayed books count in the BookList component to a fixed value of 24.
- Improved logging for debugging purposes across various components, including ImportLocal and ContentList.
- Refactored backup functions to ensure proper directory creation for configuration files.
- Updated dependencies in yarn.lock for better compatibility and performance.
- Added translations for overwriting default text style, account deletion instructions, and related UI elements in zh-CN locale.
- Updated global CSS to adjust the width of custom confirmation dialog.
- Enhanced import and setting dialogs to include new settings for overwriting text style.
- Modified account settings to provide instructions for account deletion via mobile app.
- Updated sync settings to conditionally handle snapshot retrieval based on Electron environment.
- Improved error handling for CORS issues with a suggestion to use the desktop app.
- Ensured snapshot retrieval is only attempted in Electron environment.
- 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.
- 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.
- 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.
- Added ipcRenderer listener for "reading-finished" event to trigger handleFinishReading method.
- Consolidated logic in visibilitychange event to call handleFinishReading instead of duplicating fetch calls.
- Moved fetch logic into handleFinishReading method for better code organization and reusability.
- Consolidated click event handlers for bookmarks and chapter titles in NavList component.
- Added cursor pointer style to bookmark page list item title for better UX.
- Updated Background component to handle changes in reader mode state.
- Added console log for bookLocation in OperationPanel for debugging purposes.
- Integrated IPC call to clear all data in clearAllData utility function.
- Updated the SettingDialog component to include a new CSS class for setting tabs, improving styling and layout.
- Modified settingDialog.css to define styles for the new setting-tab class, ensuring proper width and text overflow handling.
- Enhanced importLocal.css to improve item layout with better line height and cursor styles.
- Refactored PopupRefer component to improve content extraction logic and added console logs for debugging.
- Added Tamil language support in settingList.tsx and integrated it into the i18n configuration.
- Updated router logic to handle language changes for Tamil.
- Adjusted navigationPanel.css to ensure proper overflow handling.
- Made minor adjustments to sidebar component and CSS for better tooltip integration and layout.
- 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.
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
- 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.
- 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.