Tunglies
537d27d10b
fix: clippy errors with new config ( #4428 )
...
* refactor: improve code quality with clippy fixes and standardized logging
- Replace dangerous unwrap()/expect() calls with proper error handling
- Standardize logging from log:: to logging\! macro with Type:: classifications
- Fix app handle panics with graceful fallback patterns
- Improve error resilience across 35+ modules without breaking functionality
- Reduce clippy warnings from 300+ to 0 in main library code
* chore: update Cargo.toml configuration
* refactor: resolve all clippy warnings
- Fix Arc clone warnings using explicit Arc::clone syntax across 9 files
- Add #[allow(clippy::expect_used)] to test functions for appropriate expect usage
- Remove no-effect statements from debug code cleanup
- Apply clippy auto-fixes for dbg\! macro removals and path statements
- Achieve zero clippy warnings on all targets with -D warnings flag
* chore: update Cargo.toml clippy configuration
* refactor: simplify macOS job configuration and improve caching
* refactor: remove unnecessary async/await from service and proxy functions
* refactor: streamline pnpm installation in CI configuration
* refactor: simplify error handling and remove unnecessary else statements
* refactor: replace async/await with synchronous locks for core management
* refactor: add workflow_dispatch trigger to clippy job
* refactor: convert async functions to synchronous for service management
* refactor: convert async functions to synchronous for UWP tool invocation
* fix: change wrong logging
* refactor: convert proxy restoration functions to async
* Revert "refactor: convert proxy restoration functions to async"
This reverts commit b82f5d250b .
* refactor: update proxy restoration functions to return Result types
* fix: handle errors during proxy restoration and update async function signatures
* fix: handle errors during proxy restoration and update async function signatures
* refactor: update restore_pac_proxy and restore_sys_proxy functions to async
* fix: convert restore_pac_proxy and restore_sys_proxy functions to async
* fix: await restore_sys_proxy calls in proxy restoration logic
* fix: suppress clippy warnings for unused async functions in proxy restoration
* fix: suppress clippy warnings for unused async functions in proxy restoration
2025-08-18 02:02:25 +08:00
Tunglies
c05bd31f6b
fix(sysinfo): update verge_version retrieval to use package_info instead of config
2025-05-28 18:50:03 +08:00
Tunglies
0b8d08d13b
Update logging macros usage in timer module
...
Replace log macros with custom logging macros in timer module
2025-04-05 11:36:38 +08:00
wonfen
7b5fd104de
fix : #3227 , use async operations to avoid blocking on
2025-04-01 12:52:59 +08:00
Tunglies
ad1f2bea3b
fix: unused Result
2025-03-31 21:44:12 +08:00
wonfen
cde8c4004f
feat: add is_admin field to export_diagnostic_info
2025-03-31 10:34:11 +08:00
Tunglies
7ede91599c
fix: standardize RunningMode handling between frontend and backend
...
This commit improves the type consistency between the Rust backend and TypeScript frontend by:
1. Modifying the Rust `get_running_mode()` command to return a String instead of RunningMode enum directly
2. Removing the RunningMode enum and IRunningMode interface from TypeScript types
3. Using string literals for mode comparison in frontend components
4. Standardizing on capitalized mode names (e.g., "Sidecar" instead of "sidecar")
These changes ensure proper serialization/deserialization between backend and frontend,
making the code more maintainable and reducing potential inconsistencies.
2025-03-26 22:04:16 +08:00
Tunglies
df5424d55e
feat: add logging module and update running mode terminology
2025-03-25 23:05:09 +08:00
Tunglies
5c0cde517f
fix: update system architecture retrieval method in PlatformSpecification
2025-03-20 06:20:19 +08:00
Tunglies
b57c6e408a
chore: git hooks for linter and formatter
2025-03-13 12:51:20 +08:00
Tunglies
1ee8786ab7
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.
2025-03-04 11:52:22 +08:00
Tunglies
aff504bddc
feat: add export diagnostic info functionality ( #2856 )
2025-03-03 05:58:12 +08:00