Commit Graph

3 Commits

  • feat(proxy): add proxy commands and integrate with API
    Add new proxy.rs module with get_proxies and get_providers_proxies commands.
    Update mod.rs and lib.rs to re-export and register proxy commands.
    Update API.ts to use invoke for proxy commands.
    Minor formatting improvements in module/mihomo.rs.
  • feat: add Mihomo API modules and manager (#2869)
    • Introduce new API caller implementations for Mihomo in model and module layers.
    • Add configuration and API integration files under /src-tauri/src/config/api and /src-tauri/src/model/api.
    • Implement a singleton MihomoAPICaller with async API call support and integration tests.
    • Create a new MihomoManager module to refresh and fetch proxies from the API.
    • Update Cargo.lock and Cargo.toml with additional dependencies (async-trait, env_logger, mockito, tempfile, etc.) related to the Mihomo API support.