mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 12:51:26 +08:00
* feat: implement local backup functionality - Added new IPC channels for local backup operations including backup, restore, list, delete, and set directory. - Enhanced BackupManager with methods for handling local backups and integrated auto-sync capabilities. - Updated settings to include local backup configurations and integrated UI components for managing local backups. - Localized new features in English, Japanese, Russian, and Chinese. * refactor: enhance BackupManager and LocalBackupModals for improved file handling - Updated BackupManager to specify the type of result array for better type safety. - Refactored showBackupModal in LocalBackupModals to use useCallback and generate a more descriptive default file name based on device type and timestamp. * refactor: update localBackupDir path in BackupManager for consistency - Changed localBackupDir to use the temp directory instead of userData for better alignment with backup storage practices. * refactor: enforce localBackupDir parameter in BackupManager methods - Updated BackupManager methods to require localBackupDir as a parameter, removing fallback to a default value for improved clarity and consistency in backup operations. - Removed the localBackupDir property from the class, streamlining the backup management process. * fix: update localization strings for improved clarity and consistency - Revised English, Russian, Chinese, and Traditional Chinese localization strings for better user understanding. - Adjusted phrases related to backup and restore processes to enhance clarity. - Standardized terminology across different languages for consistency. * fix: update Chinese localization strings for consistency and clarity - Revised export menu strings in zh-cn.json to improve formatting and consistency. - Removed spaces in phrases for a more streamlined appearance. * feat(settings): add option to disable hardware acceleration - Introduced a new setting to allow users to disable hardware acceleration. - Added corresponding IPC channel and configuration management methods. - Updated UI components to reflect the new setting and prompt for app restart. - Localized confirmation messages for hardware acceleration changes in multiple languages. * udpate migrate * format code * feat(i18n): add localized error messages for backup directory selection - Introduced new error messages for selecting a backup directory in multiple languages, including English, Japanese, Russian, Simplified Chinese, and Traditional Chinese. - Added checks in the LocalBackupSettings component to ensure the selected directory is not the same as the application data or installation paths, and that it has write permissions. * format * update migrate * refactor(LocalBackup): streamline local backup directory validation and enhance settings UI - Removed translation dependency in LocalBackupModals for error handling. - Added comprehensive validation for local backup directory in LocalBackupSettings, including checks for app data path, install path, and write permissions. - Introduced a clear directory button in the settings UI to reset the local backup directory. - Updated the auto-sync logic to account for local backup settings. * refactor(LocalBackupManager): remove redundant error messages for invalid local backup directory - Eliminated repeated error message calls for invalid local backup directory in the LocalBackupManager component. - Streamlined the validation logic to enhance code clarity and maintainability. |
||
|---|---|---|
| .. | ||
| config | ||
| IpcChannel.ts | ||