Commit Graph

8 Commits

  • 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.
  • feat(sysinfo): Add diagnostic information enhancements (#2880)
    Enhanced the PlatformSpecification struct with additional diagnostic information including:
    - Added Verge version information to diagnostic output
    - Added running mode information (Service/Sidecar/Not Running)
    - Improved Debug implementation to display all diagnostic fields
    - Implemented asynchronous detection of core running mode
    
    This change helps users provide more complete system information when reporting issues.
  • 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.
  • refactor: rename cmds module to cmd for better consistency (#2830)
    - Renamed `cmds` module to `cmd` for better naming consistency
    - Reorganized command modules into separate files under src/cmd/
    - Updated all imports and references to use the new module name
    - Fixed missing dependency in webdav.rs to reference core::backup
    - Updated tray module to use new cmd namespace
    - Improved uwp.rs module structure using platform-specific implementations
    - Removed unnecessary imports from various command files