wonfen
c0f3d35e13
fix: resolve namespace issue
2025-06-17 19:47:24 +08:00
wonfen
fc30fab9cd
feat: unify window manager and optimize window show/hide logic
2025-06-17 13:02:47 +08:00
wonfen
a67e8388a9
fix: restore window from tray when status bar icon is present
2025-06-17 12:59:05 +08:00
wonfen
ac7307b1f7
feat: enhance profile management and proxy refresh with improved event listening and state updates
2025-06-17 11:38:53 +08:00
Tunglies
4068e5ec9c
fix: clippy error in 26acce94a4 (diff-3a1c371e65c9809233eadec0aed9dfc09813f06b4d622ffd5a613ae6020048c8R298)
2025-06-17 08:24:10 +08:00
Just want to protect you
ea71181692
fix : js script escape error issue introduced #3751 ( #3759 )
...
* refactoring fix js script is too strict
* fix:format
---------
Co-authored-by: Ahao <108321411+xuanyuan0408@users.noreply.github.com >
2025-06-16 21:04:40 +08:00
wonfen
9b46c1a991
refactor: unify log output format
2025-06-16 21:03:45 +08:00
wonfen
26acce94a4
feat: add clash_core config validation & auto-fix to default; fixed "No such file or directory (os error 2)"
2025-06-16 20:27:02 +08:00
wonfen
dd505e4d58
perf: optimize layout initialization and enhance backend notification mechanism
2025-06-15 19:35:12 +08:00
wonfen
dd0e9d4e1b
fix: enhance hotkey handling in lightweight mode and improve window management
2025-06-15 17:40:59 +08:00
Tunglies
032e5bf32e
fix: add macOS specific activation policy handling for silent start ( #3740 )
...
* fix: add macOS specific activation policy handling for silent start
* fix: resolve abnormal Dock icon launch during macOS silent startup
2025-06-15 05:10:15 +08:00
Tunglies
799783d3ef
fix: ensure app exits gracefully when an instance is already running
2025-06-14 02:43:58 +08:00
Just want to protect you
77fb40506f
fix the JS script error when escaping special characters to prevent special airport names from causing the script to fail to work ( #3717 )
...
* fix the JS script error
* update logs
* remove unused references
* update logs
* fix special escape test
* optimize:unescape of special characters in JS strings
* fix unaligned annotations
---------
Co-authored-by: Ahao <108321411+xuanyuan0408@users.noreply.github.com >
2025-06-13 22:59:48 +08:00
wonfen
5858f05c13
perf: async app startup loading to prevent UI freeze
2025-06-13 22:59:16 +08:00
Tunglies
eef348b8dc
fix: add conditional compilation for localhost URL in dev mode
2025-06-13 03:11:35 +08:00
希亚的西红柿
4e54b61380
fix: silent start does not take effect ( #3708 )
...
* fix: light mode error
* feat: optimize the logic
* fix: clippy issues
2025-06-12 23:39:03 +08:00
Tunglies
2c7c416f60
fix: simplify mutable reference handling in with_lightweight_status function
2025-06-12 21:26:22 +08:00
rebecca554owen
4f474e1098
feat: add proxy auto scroll toggle setting ( #3674 )
...
* feat: add proxy auto scroll toggle setting
* refactor: rename enable_proxy_auto_scroll to enable_hover_jump_navigator
* 参考 Unified Delay 调整式样
2025-06-11 13:21:24 +08:00
Tunglies
07738dd82d
feat: implement lightweight mode state management and initialization #3344 , d05952e945
2025-06-11 04:20:50 +08:00
Tunglies
b591a90100
feat: add Linux-specific tray icon builder configuration
2025-06-11 01:04:56 +08:00
Tunglies
db3cfdf66f
refactor: update icon variable naming for clarity and adjust macOS logging import
2025-06-11 00:51:34 +08:00
Tunglies
5cf3e1a817
refactor: streamline macOS-specific code by consolidating conditional imports and logic in sysopt, tray, lightweight, and mihomo modules
2025-06-11 00:19:06 +08:00
Tunglies
cbcab72a7c
refactor: simplify version check logic in run_core_by_service and update tray menu function call
2025-06-10 23:37:09 +08:00
wonfen
d05b1c3130
feat: clean up redundant profiles files
2025-06-09 13:48:38 +08:00
Tunglies
689042df60
refactor: use Box to store large config objects and add memory usage tests
...
- Refactored config-related structs to use Box for storing large objects (e.g., IRuntime, IProfiles, PrfItem) to reduce stack memory usage and improve performance.
- Updated related methods and assignments to handle Boxed types correctly.
- Added and improved unit tests to compare memory usage between Boxed and non-Boxed config objects, demonstrating the memory efficiency of Box.
- Test output now shows the size difference between stack-allocated and heap-allocated (Box) config objects.
2025-06-06 14:54:48 +08:00
Tunglies
564fe15df2
refactor(tests): update format_bytes_speed test cases for consistent output
2025-06-06 14:13:48 +08:00
Tunglies
30015dfd67
refactor(state/proxy): use Box<Value> for providers_proxies to reduce struct size
...
- Changed providers_proxies from Value to Box<Value> in CmdProxyState
- Reduces struct size from 32 bytes to 8 bytes, optimizing memory usage
2025-06-06 12:46:58 +08:00
Tunglies
80f550d67e
refactor(proxy): enhance proxy state management and refresh logic
2025-06-05 20:10:28 +08:00
Tunglies
fee6a586d7
feat: implement CmdProxyState for managing proxy refresh state and add state management module
...
refactor: remove unnecessary macOS conditional compilation directive
2025-06-05 19:34:24 +08:00
wonfen
72783e3ff5
feat: add global mutex to prevent concurrent config updates
2025-06-01 20:54:14 +08:00
Tunglies
2d59177256
fix: update default window width to 940 pixels
2025-05-31 17:05:53 +08:00
Ahao
d0c3a306bc
close the Default DNS Enable button
2025-05-30 18:33:10 +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
9416de6442
fix(config): auto complete and patch secret field when loading config
...
- Ensure the 'secret' field is present and non-empty during config loading
- Auto-fill with default value if missing to improve compatibility and security
- Update config guard logic for robustness
2025-05-28 17:26:26 +08:00
Tunglies
c507c483fb
refactor: update tauri-plugin-autostart source to use git repository and set macos launchagent name
2025-05-26 22:26:52 +08:00
Tunglies
32ee1b36d2
refactor: replace isServiceAvailable with getRunningMode for service status checks
2025-05-26 16:08:16 +08:00
wonfen
4840e07da8
refactor: remove redundant logic
2025-05-25 21:56:04 +08:00
wonfen
af1689ee07
refactor: add debounce to optimize config updates and provider refresh handling
2025-05-25 21:34:48 +08:00
Tunglies
10e3010324
feat(config): add new allowed origins for CORS in clash.rs ( #3569 )
...
Include "https://yacd.metacubex.one ", "https://metacubex.github.io ",
and "https://board.zash.run.place " to the list of allowed origins for
both HTTP and WebSocket configurations.
2025-05-24 16:56:35 +08:00
Tunglies
464f8095ab
fix: update CORS allow-origins to support tauri local development
...
- Replaced 'http://localhost ' and 'http://127.0.0.1 ' with 'tauri://localhost' and 'http://tauri.localhost ' for enhanced compatibility with Tauri development environment.
- Ensures proper CORS configuration for local testing.
2025-05-22 19:18:48 +08:00
Tunglies
8b800f679b
optimize and enforce external-controller-cors config for all users
...
- Refactored config guard logic to always inject secure defaults for external-controller-cors (allow-origins: ['http://localhost ', 'http://127.0.0.1 '], allow-private-network: true).
- Ensures both new and existing user configs are automatically upgraded for enhanced CORS security.
- Improves configuration migration and future maintainability.
fix: add http://localhost:3000 to CORS allow-origins for tauri dev server compatibility
2025-05-22 14:36:21 +08:00
Tunglies
b1c31f7a6f
Revert "fix: ensure app state is saved on exit and window events for better state management"
...
This reverts commit 9af0803e9b .
chore: update UPDATELOG
2025-05-22 11:19:38 +08:00
Tunglies
d49618786e
chore: temporarily deprecate tauri-plugin-window-state integration
...
- Remove or disable usage of tauri-plugin-window-state due to compatibility or stability concerns.
- Will revisit and re-enable after further evaluation or upstream fixes.
2025-05-22 10:22:16 +08:00
Tunglies
866ec2720d
Revert "feat: integrate window state management for improved window restoration and logging"
...
This reverts commit c9a9e934f4 .
2025-05-22 10:17:42 +08:00
Tunglies
9af0803e9b
fix: ensure app state is saved on exit and window events for better state management
2025-05-22 09:54:25 +08:00
Tunglies
c9a9e934f4
feat: integrate window state management for improved window restoration and logging
2025-05-22 03:02:02 +08:00
Tunglies
32ebc8d174
refactor: simplify event handling in CoreManager by removing unnecessary match statement
2025-05-20 23:01:32 +08:00
Tunglies
4024b72954
feat: enhance auto log cleaning options with 1-day retention and update related configurations
2025-05-20 22:34:02 +08:00
wonfen
b70e202201
refactor: simplify frontend event dispatch by restructuring notification system
2025-05-18 20:58:59 +08:00
wonfen
8d99af4c15
chore: simplify service logging
2025-05-18 17:53:57 +08:00