Sline
afee21dae4
refactor: unify Mihomo WS subscription with shared hook ( #5719 )
...
* refactor: unify Mihomo WS subscription with shared hook
* refactor: relocate clash log hook and streamline services
* docs: Changelog.md
2025-12-04 14:58:03 +08:00
xmk23333
b77cc012e1
refactor: streamline app initialization and enhance WebSocket cleanup logic
2025-10-20 13:15:51 +08:00
oomeow
7be790c6fb
chore: remove unused file and improve traffic monitor
2025-10-19 16:34:45 +08:00
oomeow
7fc238c27b
refactor: invock mihomo api by use tauri-plugin-mihomo ( #4926 )
...
* feat: add tauri-plugin-mihomo
* refactor: invock mihomo api by use tauri-plugin-mihomo
* chore: todo
* chore: update
* chore: update
* chore: update
* chore: update
* fix: incorrect delay status and update pretty config
* chore: update
* chore: remove cache
* chore: update
* chore: update
* fix: app freezed when change group proxy
* chore: update
* chore: update
* chore: add rustfmt.toml to tauri-plugin-mihomo
* chore: happy clippy
* refactor: connect mihomo websocket
* chore: update
* chore: update
* fix: parse bigint to number
* chore: update
* Revert "fix: parse bigint to number"
This reverts commit 74c006522e .
* chore: use number instead of bigint
* chore: cleanup
* fix: rule data not refresh when switch profile
* chore: update
* chore: cleanup
* chore: update
* fix: traffic graph data display
* feat: add ipc connection pool
* chore: update
* chore: clippy
* fix: incorrect delay status
* fix: typo
* fix: empty proxies tray menu
* chore: clippy
* chore: import tauri-plugin-mihomo by using git repo
* chore: cleanup
* fix: mihomo api
* fix: incorrect delay status
* chore: update tauri-plugin-mihomo dep
chore: update
2025-10-08 12:32:40 +08:00
Tunglies
409571f54b
refactor: remove unused notification permission hook and related code
2025-09-18 19:13:23 +08:00
Tunglies
475a09bb54
feat: comprehensive oxlint cleanup - remove unused code
...
🧹 Cleanup Summary:
- Fixed 83 oxlint warnings across 50+ files
- Removed unused imports, variables, and functions
- Maintained all functional code and error handling
- Improved bundle size and code maintainability
📝 Key Changes:
- Cleaned unused React hooks (useState, useEffect, useClashInfo)
- Removed unused Material-UI imports (useTheme, styled components)
- Deleted unused interfaces and type definitions
- Fixed spread operator usage and boolean casting
- Simplified catch parameters where appropriate
🎯 Files Modified:
- React components: home.tsx, settings, profiles, etc.
- Custom hooks: use-*.ts files
- Utility functions and type definitions
- Configuration files
✅ Result: 0 oxlint warnings (from 83 warnings)
🔧 All functionality preserved
📦 Reduced bundle size through dead code elimination
2025-08-22 18:48:56 +08:00
Tunglies
1f78d576a3
feat: migrate logs API from REST to IPC streaming ( #4277 )
...
* feat: migrate logs API from REST to IPC streaming
- Replace REST API `/logs` calls with IPC streaming implementation
- Add new `src-tauri/src/ipc/logs.rs` with `LogsMonitor` for real-time log streaming
- Implement duplicate stream prevention with level tracking
- Add frontend-backend communication via Tauri commands for log management
- Remove WebSocket compatibility, maintain IPC-only mode
- Fix duplicate monitoring task startup when toggling log service
- Add proper task lifecycle management with JoinHandle cleanup
* refactor: remove dead code from logs.rs to fix clippy warnings
- Remove unused `timestamp` field from LogItem struct
- Remove unused `client` field from LogsMonitor struct
- Remove unused methods: `is_fresh`, `get_current_monitoring_level`, `get_current_logs`
- Simplify LogsMonitor initialization by removing client dependency
- All clippy warnings with -D warnings now resolved
* refactor: extract duplicate fmt_bytes function to utils module
- Create new utils/format.rs module with fmt_bytes function
- Remove duplicate fmt_bytes implementations from traffic.rs and memory.rs
- Update imports to use shared utils::format::fmt_bytes
- Add comprehensive unit tests for fmt_bytes function
- Ensure DRY principle compliance and code maintainability
2025-07-30 23:11:21 +08:00
wonfen
628de70e89
chore: remove unused imports
2025-06-23 00:09:17 +08:00
wonfen
f18202a3a4
refactor: improve webSocket connection handling and error recovery
2025-03-09 04:22:01 +08:00
wonfen
3ecf4bc238
feat: refactor logging system into a global service
2025-03-02 04:20:38 +08:00
wonfen
48d68f5766
refactor: Simplify log data management and improve search functionality
2025-02-19 13:06:15 +08:00
huzibaca
2737fb2d87
fix: when the window is hidden, close the websocket connection, reduce the risk of memory leaks
2024-12-07 16:47:41 +08:00
huzibaca
39a3c3d3a7
fix: password failed due to character escaping
2024-11-25 02:48:56 +08:00
huzibaca
a7a661e60f
feat: logger support all level filters
2024-11-19 01:40:45 +08:00
huzibaca
a507d7567f
refactor: remove useSWRSubscription and use useEffect
2024-11-18 16:41:17 +08:00
huzibaca
e8c0051be3
refactor: use zustand store, rewrite log clearing logic
2024-11-18 06:48:23 +08:00
huzibaca
9ebd96611a
refactor: logger fetch logic
2024-11-18 05:58:06 +08:00
huzibaca
c35ab2e1cd
chore: update
2024-10-29 10:15:07 +08:00
dongchengjie
6ee5e560cc
fix : #1261
2024-06-29 05:02:06 +08:00
Sukka
18f0177fce
refactor(log): use swr subscription ( #1220 )
2024-06-17 10:48:37 +08:00