Tunglies
d6a48deb5a
refactor(config): use bitflags for tracking update operations
...
Replace multiple boolean variables with a bitflag approach for tracking
required update operations in the patch_verge function. This improves
code maintainability and potentially performance by:
1. Using a single integer variable with bit operations instead of multiple booleans
2. Defining clear flags as enum variants for better code readability
3. Simplifying flag checks with bitwise operations
The UpdateFlags enum provides a clear and type-safe way to represent
different types of updates needed when patching Verge configuration.
2025-03-15 18:42:57 +08:00
Tunglies
e98ce0c2ae
Optimize hotkey management to reduce lock contention and improve performance
...
- Minimize mutex lock durations in update() by processing data outside critical sections
- Pre-allocate collections to avoid unnecessary reallocations
- Replace forEach-style loops with more efficient for loops
- Add defensive null checks when accessing app_handle
- Improve error handling with more robust Option unwrapping
- Enhance code readability with descriptive comments
2025-03-15 17:52:14 +08:00
Tunglies
8118fc754c
structure: move out crate_mihomo_api
2025-03-15 14:47:02 +08:00
Tunglies
1ec7a0f23c
refactor: update request method handling to use reqwest::Method enum
...
fix: duplicated checks tray menu
2025-03-15 13:23:17 +08:00
Tunglies
488e8ef1d5
fix: optimize speed rate update logic for small values
2025-03-14 22:40:56 +08:00
wonfen
1f99cee78b
feat: home page
2025-03-14 13:31:34 +08:00
Tunglies
c25015ed54
Revert "feat: add trigger updater workflow to GitHub actions for release and alpha workflows"
...
This reverts commit aaefc5b479149a48740fbcc7c0e4a1370bf1d903.
2025-03-14 02:00:55 +08:00
Tunglies
aaefc5b479
feat: add trigger updater workflow to GitHub actions for release and alpha workflows
2025-03-14 01:31:19 +08:00
GKarbon
1c58816c73
chore: correct typo in src/locales/en.json ( #2978 )
...
This pull request corrects a typo in src/locales/en.json by replacing “than” with “then”, gives more accurate instructions.
2025-03-14 01:04:44 +08:00
Christine.
0fd99358aa
fix: build failed due to vite unexpected output dir config. ( #2981 )
2025-03-14 00:57:17 +08:00
Tunglies
d4012bace9
chore: remove tray icon configuration from Linux app settings
2025-03-13 19:03:27 +08:00
Tunglies
af7660686d
fix: increase request timeout to 60 seconds for better reliability
2025-03-13 15:16:54 +08:00
Tunglies
b57c6e408a
chore: git hooks for linter and formatter
2025-03-13 12:51:20 +08:00
Mimi
124934b012
feat: additional macos tray event handling option for menu display ( #2958 )
2025-03-13 10:08:38 +08:00
MaqicXu
1bef6d085d
refactor(timer): enhance timer initialization and task handling ( #2956 )
...
- Add initialization flag to prevent duplicate timer initialization
- Improve logging for better debugging and monitoring
- Refactor async task function with proper error handling
- Add more detailed log messages throughout the timer lifecycle
2025-03-12 22:36:25 +08:00
Christine.
c73927c5ba
chore: Change default TUN stack from 'mixed' to 'gvisor' ( #2967 )
2025-03-12 21:45:14 +08:00
Tunglies
692deb6012
fix: windows unmatched tray
2025-03-12 13:55:11 +08:00
Tunglies
8ec499f631
fix: windows different tray icon display
2025-03-12 13:28:04 +08:00
Tunglies
2bcd653a56
feat: update systray creation to use TrayIconBuilder and pass app reference
...
fix: macos systray duplicated icon
2025-03-12 13:04:15 +08:00
Tunglies
0f10952979
feat: add alpha update endpoints to tauri configuration
2025-03-11 01:31:31 +08:00
Tunglies
58fa67100f
feat: add support for alpha updates and enhance updater functionality
...
feat: improve release handling by adding creation logic for non-existent releases
2025-03-11 01:27:17 +08:00
Tunglies
8e294916c4
rm: label issues workflow
2025-03-10 01:01:12 +08:00
Tunglies
6877e0c95d
chore: rename "DNS Settings" to "DNS Overwrite" in UI for consistency
...
This change updates the label for the DNS toggle setting from "DNS Settings" to "DNS Overwrite"
in the ClashVerge settings interface. The change provides better consistency with the translation
keys and more clearly communicates the function of the setting, which is to override system DNS.
The corresponding translation keys have been updated in both English and Chinese localization files.
2025-03-10 00:57:55 +08:00
Tunglies
37a333a023
feat: add scheduled workflow and commit change check to alpha build
2025-03-09 17:42:13 +08:00
Tunglies
48f1da963a
refactor: update MihomoManager to handle traffic WebSocket URL and authorization
2025-03-09 14:44:15 +08:00
wonfen
e1905aced4
feat: enhance latency test logging and error handling
2025-03-09 04:22:34 +08:00
wonfen
f18202a3a4
refactor: improve webSocket connection handling and error recovery
2025-03-09 04:22:01 +08:00
wonfen
c1a9de4d66
feat: add icon file content check to prevent saving failed downloads
2025-03-09 02:34:57 +08:00
Tunglies
18f86874ee
refactor: migrate clash client info retrieval to MihomoManager
2025-03-09 00:40:16 +08:00
Tunglies
e6686e0b82
rm: clash-api dead code
2025-03-09 00:29:14 +08:00
Tunglies
4bf166986d
refactor: improve request handling and response processing in MihomoManager
2025-03-09 00:27:12 +08:00
Tunglies
0f60d84f6c
refactor: streamline clash delay test and improve API interactions
2025-03-09 00:04:48 +08:00
Tunglies
15e54df67c
refactor: streamline clash mode handling and improve API interactions
2025-03-08 22:41:14 +08:00
wonfen
4cb6ad7736
feat: optimize icon cache download and DNS view styling
2025-03-08 13:31:20 +08:00
wonfen
e27a32395a
refactor: restructure DNS setting logic
2025-03-08 11:25:00 +08:00
wonfen
eddcf209c1
refactor: refine DNS handling to follow config and merge settings
2025-03-08 03:34:25 +08:00
wonfen
10a151d411
fix: regex for first character matching
2025-03-07 14:07:10 +08:00
wonfen
54d5586a60
perf: faster app exit
2025-03-07 13:44:07 +08:00
TianHua Liu
30ca547e50
fix: Notice @ts-ignore ( #2896 )
...
thx
2025-03-07 12:46:30 +08:00
0XE
a1944d1a90
feat: Add x-data-grid component localization ( #2925 )
...
thx
2025-03-07 12:45:56 +08:00
wonfen
c2b35fdaa5
test: remove entitlements.plist items
2025-03-07 06:49:24 +08:00
Tunglies
805b54d81e
Update dependencies and refactor encryption logic
...
Updates multiple dependencies to their latest versions in Cargo.lock and Cargo.toml.
Refactors encryption logic to use updated getrandom API.
Improves tray speed rate display by using ab_glyph for font rendering.
2025-03-06 18:56:31 +08:00
wonfen
e3579dac65
feat: enable dns settings by default
2025-03-06 14:40:35 +08:00
wonfen
f80591242e
feat: add dns settings
2025-03-06 14:30:43 +08:00
Christine.
69cb9769c1
add: missing i18n text. ( #2917 )
2025-03-05 22:28:28 +08:00
0XE
efd42d9da0
fix: ISSUES #2727 ( #2913 )
2025-03-05 14:20:07 +08:00
Christine.
21a6340095
workflow: remove renaming behavior. ( #2909 )
2025-03-05 11:41:15 +08:00
Tunglies
6c96724dce
feat(mihomo): refactor MihomoManager for global access and improve proxy retrieval ( #2906 )
2025-03-05 10:58:54 +08:00
wonfen
ebb194d2a2
feat: add admin permission prompt for system service
2025-03-05 10:22:57 +08:00
Tunglies
1a51a92b70
test: crate_mihomo_api additional headers
2025-03-05 08:14:37 +08:00