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.
This commit is contained in:
Tunglies
2025-03-04 01:01:24 +08:00
parent 3b69465016
commit 1ba688727e
5 changed files with 81 additions and 29 deletions

View File

@@ -162,6 +162,8 @@ pub fn run() {
cmd::get_runtime_logs,
cmd::invoke_uwp_tool,
cmd::copy_clash_env,
cmd::get_proxies,
cmd::get_providers_proxies,
// verge
cmd::get_verge_config,
cmd::patch_verge_config,