Commit Graph

19 Commits

Author SHA1 Message Date
Tunglies
f771f4720f refacture: Mihomo API integration (#2900)
* feat: add mihomo_api crate as a workspace member

Added a new mihomo_api crate to handle interactions with the Mihomo API. This modular approach provides a dedicated interface for fetching and managing proxy data from Mihomo servers. The implementation includes functionality to refresh and retrieve both proxies and provider proxies with proper error handling and timeouts. Added this crate as a workspace member and included it as a dependency in the main project.

* Refactors Mihomo API integration

Simplifies proxy fetching by removing the MihomoManager structure.

Updates the get_proxies and get_providers_proxies functions to directly use the mihomo_api module.

Removes unused Mihomo API related files and modules for cleaner codebase.

Enhances overall maintainability and performance.
2025-03-05 00:45:08 +08:00
Tunglies
2cd97c7785 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.
2025-03-03 19:31:44 +08:00
huzibaca
91f0f9f65e feat: encryption configuration properties 2024-11-20 07:27:42 +08:00
MystiPanda
75cd7dd4b9 chore: update & fmt & clippy 2024-06-12 10:00:22 +08:00
MystiPanda
444bcbfb30 fix: auto proxy changed by guard 2024-05-26 19:07:14 +08:00
MystiPanda
212021c878 feat: Support PAC Mode 2024-05-26 17:59:39 +08:00
GyDi
2667ed13f1 refactor: done 2022-11-18 18:18:41 +08:00
GyDi
ee68d80d0a refactor: wip 2022-11-15 01:33:50 +08:00
GyDi
b03c52a501 refactor: wip 2022-11-14 01:26:33 +08:00
GyDi
4668be6e24 chore: format rust code 2022-11-12 11:37:23 +08:00
GyDi
47c8ccb0e5 refactor: optimize 2022-09-11 20:58:55 +08:00
GyDi
7f6dac4271 feat: refactor 2022-08-12 03:20:55 +08:00
GyDi
178fd8e828 feat: adjust tun mode config 2022-08-11 03:26:08 +08:00
GyDi
1641e02a7d feat: reimplement enhanced mode 2022-08-11 02:55:10 +08:00
GyDi
9ad8f71d7c refactor: rename 2022-01-08 01:27:25 +08:00
GyDi
694a7760b7 feat: adjust code 2021-12-18 02:29:54 +08:00
GyDi
db802e959d chore: fix mod 2021-12-14 15:56:54 +08:00
GyDi
ef3b10fa8f feat: change the naming strategy 2021-12-14 00:40:41 +08:00
GyDi
5b826a3767 feat: init verge config struct 2021-12-13 02:29:02 +08:00