Commit Graph
4 Commits
Author SHA1 Message Date
鲁树人 d424837e66 feat: integrate platform capabilities for enhanced download management
- Refactored `DownloadAll` component to utilize platform capabilities for download types, improving flexibility in handling various download methods.
- Introduced `buildEnabledDownloadModes` function to determine available download modes based on user settings and platform capabilities.
- Updated `FileRow` and `PanelGeneral` components to conditionally render download options based on platform capabilities.
- Added tests for new functionalities in `DownloadAll`, `FileRow`, and `PanelGeneral` to ensure correct behavior under different platform conditions.
- Enhanced error handling for unsupported download methods, providing clearer feedback to users.
2026-11-01 11:32:04 +09:00
鲁树人 b5fdc8ebbe feat: integrate platform provider with enhanced crypto handling and new AppLayout component
- Added a new `AppLayout` component to manage navigation and routing within the application.
- Refactored `AppRoot` to utilize `PlatformLoadGuard` for ensuring platform readiness before rendering.
- Introduced `useAppStore` hook for accessing the Redux store directly.
- Updated `SDKVersion` and `PanelQingTing` components to leverage the new platform provider for crypto operations.
- Enhanced error handling with `PlatformNotInitializedError` for better user feedback on uninitialized platform states.
- Added tests for new functionalities and ensured compatibility with the updated platform architecture.
2026-11-01 11:18:24 +09:00
鲁树人 cb5531e9e4 feat: enhance settings persistence with platform provider integration
- Updated `persistSettings` to accept a `PlatformProvider`, enabling dynamic loading and saving of production settings.
- Refactored settings loading to handle null cases and invalid JSON gracefully.
- Introduced a new `browserSettingsIo` module for managing settings storage in the browser.
- Added comprehensive tests for `persistSettings` and `browserSettingsIo` to ensure correct functionality and error handling.
- Integrated the updated settings persistence into `AppRoot` for improved platform-specific behavior.
2026-11-01 10:54:13 +09:00
鲁树人 cc688b85bd feat: implement platform provider architecture and integrate into AppRoot
- Introduced a new platform provider architecture to manage platform-specific functionalities.
- Created `PlatformProvider`, `PlatformContext`, and related capabilities for handling downloads and key imports.
- Integrated the platform provider into `AppRoot`, allowing for dynamic platform management.
- Added error handling classes for unsupported and unimplemented methods.
- Updated tests to validate the new platform provider functionalities and capabilities.
2026-11-01 10:46:52 +09:00