Commit Graph
2 Commits
Author SHA1 Message Date
鲁树人 6571dc5344 feat: enhance platform provider with Tauri support and runtime detection
- Added `detectPlatformRuntime` function to determine if the app is running in a Tauri environment.
- Updated `createPlatformProvider` to switch between browser and Tauri providers based on runtime detection or explicit options.
- Introduced `TauriProvider` with default capabilities and methods, currently returning `NotImplementedError` for unimplemented features.
- Enhanced type definitions in `vite-env.d.ts` to include Tauri-specific environment variables.
- Added tests for Tauri provider functionality and runtime detection to ensure correct behavior across platforms.
2026-11-06 04:31:34 +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