Tunglies
6d112c387d
refactor: replace tokio::task::spawn_blocking with AsyncHandler::spawn_blocking for improved task management
2025-08-22 04:05:35 +08:00
Tunglies
499626b946
fix: resolve intermittent startup deadlock issues
...
- Optimize configuration access locks to prevent race conditions
- Enhance UI monitoring thread with non-blocking lock operations
- Improve window creation timing and synchronization
- Add comprehensive deadlock detection and debugging logs
- Simplify code structure with better error handling patterns
- Update changelog with user-friendly descriptions
2025-08-06 22:12:00 +08:00
Tunglies
44e8a035aa
fix: improve profile import validation and handle async lock correctly
...
fix: refactor import_profile function for improved readability and maintainability
2025-08-05 23:23:11 +08:00
Tunglies
a66393c609
feat: enhance profile import functionality with timeout and robust refresh strategy
2025-08-05 20:29:36 +08:00
Tunglies
764ef48fd1
refactor(Draft): Replace latest() with latest_ref() and data() with data_mut() in multiple files for improved mutability handling and consistency across the codebase ( #3987 )
...
* feat: add benchmarking for draft operations and new draft management structure
* Refactor Config Access: Replace `latest()` with `latest_ref()` and `data()` with `data_mut()` in multiple files for improved mutability handling and consistency across the codebase.
* refactor: remove DraftNew implementation and related benchmarks for cleaner codebase
2025-07-04 22:43:23 +08:00
Tunglies
a574ced428
Refactor logging statements to use the new formatting syntax for improved readability and consistency across the codebase. This includes updating error, warning, and info logs in various modules such as system commands, configuration, core functionalities, and utilities. Additionally, minor adjustments were made to string formatting in backup and proxy features to enhance clarity.
2025-06-27 23:30:59 +08:00
wonfen
1a6454ee79
perf: optimize profile switching logic with interrupt support to prevent freeze
2025-06-21 10:04:12 +08:00
Tunglies
a8257e8cb2
fix: unexpected behavior while pulling resources ( #3789 )
...
fix: unexpected behavior while pulling resources
在 commit 25cfd162f6 中引入新的 pnpm prepare 执行脚本指令,而 prepare 关键字与包管理器的生命周期脚本冲突。导致在运行 Workflow 的时候被执行两次资源拉取,并且被当做生命周期脚本的时候没有携带预期的 \`${{ matrix.target }}\`。这一行为进一步影响 macOS Intel X86 平台上的构建。
所影响的 issues: #3753 , #3771
2025-06-18 01:11:33 +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
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
wonfen
72783e3ff5
feat: add global mutex to prevent concurrent config updates
2025-06-01 20:54:14 +08:00
wonfen
af1689ee07
refactor: add debounce to optimize config updates and provider refresh handling
2025-05-25 21:34:48 +08:00
wonfen
b70e202201
refactor: simplify frontend event dispatch by restructuring notification system
2025-05-18 20:58:59 +08:00
wonfen
ff5a2c6ca4
feat: add backend config change listener to update frontend state
2025-05-04 13:28:08 +08:00
wonfen
d6a79316a6
feat: toggle next auto-update time on subscription card click and show update result feedback
2025-04-25 17:17:34 +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
1bd503a654
feat: add error prompt for initial config loading to prevent switching to invalid subscription
2025-03-30 10:56:30 +08:00
Tunglies
9ebde802d4
Update alpha workflow to trigger on src directory changes
2025-03-29 12:35:49 +08:00
Tunglies
e8e16f7d57
refactor(logging): replace log_err! with structured logging_error! calls
...
refactor(cm-service): better error handling from Backend to Frontend
2025-03-28 03:39:34 +08:00
Tunglies
e2046f3e48
refact(profile+core): replace println with logging! macros for structured logging
2025-03-28 01:48:55 +08:00
Tunglies
b57c6e408a
chore: git hooks for linter and formatter
2025-03-13 12:51:20 +08:00
Tunglies
9ee011514a
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
2025-03-01 22:52:43 +08:00