65 Commits

Author SHA1 Message Date
Tunglies
3d32d2d08f feat(hotkey): macos support CMD+W to close window as default 2025-03-20 13:02:26 +08:00
Tunglies
7fa1767645 feat: implement auto lightweight mode timer functionality
This commit implements the automatic lightweight mode feature with timer functionality:

- Rename configuration properties from auto_enter_lite_mode to enable_auto_light_weight_mode and auto_enter_lite_mode_delay to auto_light_weight_minutes for better clarity
- Add window event listeners to detect when window is closed or gets focus
- Implement timer system to automatically enter lightweight mode after configured time
- Remove exit_lightweight_mode function as it's no longer needed with the new implementation
- Update UI components to reflect the new property names
- Add logging for lightweight mode operations
- Initialize lightweight mode based on user configuration at startup

The feature now allows users to set a timer that will automatically enter lightweight mode
after closing the main window, which can be cancelled by focusing the window again.
2025-03-20 06:01:38 +08:00
Tunglies
33d54b27f4 feat: implement lightweight mode functionality and update related settings 2025-03-20 03:23:14 +08:00
wonfen
f8dbc7bea0 feat: lite mode settings 2025-03-20 01:44:43 +08:00
Tunglies
3e2148e236 feat: add macOS application menu integration 2025-03-18 18:40:53 +08:00
wonfen
b078560ac1 feat: sync auto-start status 2025-03-17 09:48:44 +08:00
wonfen
f4cb978118 feat: unlock test page 2025-03-16 12:15:35 +08:00
wonfen
9fd75f0efb feat: home page 2025-03-14 13:31:34 +08:00
Tunglies
a7f66c3d65 chore: git hooks for linter and formatter 2025-03-13 12:51:20 +08:00
wonfen
bd6c4e00c4 refactor: restructure DNS setting logic 2025-03-08 11:25:00 +08:00
Tunglies
f771f4720f
refacture: Mihomo API integration (#2900)
* feat: add mihomo_api crate as a workspace member

Added a new mihomo_api crate to handle interactions with the Mihomo API. This modular approach provides a dedicated interface for fetching and managing proxy data from Mihomo servers. The implementation includes functionality to refresh and retrieve both proxies and provider proxies with proper error handling and timeouts. Added this crate as a workspace member and included it as a dependency in the main project.

* Refactors Mihomo API integration

Simplifies proxy fetching by removing the MihomoManager structure.

Updates the get_proxies and get_providers_proxies functions to directly use the mihomo_api module.

Removes unused Mihomo API related files and modules for cleaner codebase.

Enhances overall maintainability and performance.
2025-03-05 00:45:08 +08:00
Tunglies
8f95c28050 feat(proxy): add proxy commands and integrate with API
Add new proxy.rs module with get_proxies and get_providers_proxies commands.
Update mod.rs and lib.rs to re-export and register proxy commands.
Update API.ts to use invoke for proxy commands.
Minor formatting improvements in module/mihomo.rs.
2025-03-04 01:01:24 +08:00
wonfen
dd510b2ee9 feat: show service mode installation prompts in user mode 2025-03-03 14:42:31 +08:00
Tunglies
6cb7d48530
feat: add export diagnostic info functionality (#2856) 2025-03-03 05:58:12 +08:00
Tunglies
d370868222 fix: windows/linux runtime crash 2025-03-03 02:27:45 +08:00
Tunglies
7898f3a119 fix: macos frameless title 2025-03-02 04:30:58 +08:00
Tunglies
1ad4941ed8
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
Christine.
391a494af6
fix: build failed with Windows (#2825) 2025-03-01 19:52:42 +08:00
Tunglies
f5f54c0f0e
fix: macos dock display icon and text (#2818) 2025-03-01 02:29:40 -08:00
wonfen
ee00defe43 feat: enhance script validation and error handling 2025-02-26 05:21:14 +08:00
wonfen
b8a0b6f1f4 fix: crash caused by global_hotkey 2025-02-10 12:39:07 +08:00
Tunglies
b14db06955
perf: imporve clash mode switching performance on the main window (#2667) 2025-02-09 07:45:46 +08:00
Tunglies
215dcee3f1
feat: option to enable global hotkey (#2665) 2025-02-09 07:45:22 +08:00
huzibaca
cd8df52aad
revert: update deps 2025-01-14 12:41:52 +08:00
huzibaca
80a18c9172
chore: update deps 2025-01-12 23:10:15 +08:00
huzibaca
7d84279370
fix: syntax issues 2024-12-31 04:50:12 +08:00
huzibaca
aa18c4870d
chore: deeplink uses the latest API 2024-12-08 15:54:46 +08:00
huzibaca
ee13bb559e
chore: remove unused code 2024-11-21 11:24:19 +08:00
huzibaca
708e5d1941
fix: auto launch does not worki 2024-11-20 03:52:19 +08:00
huzibaca
4e2d9d6acd
fix: windows cannot save window state(2) 2024-11-20 00:27:53 +08:00
huzibaca
94259f9515
fix: windows cannot save window state 2024-11-19 23:32:32 +08:00
huzibaca
221b732472
refactor: logger fetch logic 2024-11-18 05:58:06 +08:00
huzibaca
ff297957c7
chore: update 2024-11-17 01:01:36 +08:00
huzibaca
7489f5e62d
chore: update 2024-11-17 00:46:35 +08:00
huzibaca
3759239dac
feat: add webdav backup 2024-11-12 02:55:02 +08:00
huzibaca
c3e24d7b96
chore: update 2024-11-08 21:46:15 +08:00
huzibaca
ab7775e1ef
fix: wrong window state save point 2024-11-04 09:53:40 +08:00
huzibaca
08bf70681c
feat: use tauri_plugin_window_state 2024-10-30 18:52:53 +08:00
huzibaca
00bc6a6301
revert: feat: use tauri-plugin-persisted-scope 2024-10-30 18:28:55 +08:00
huzibaca
c5916cf5ec
feat: use tauri-plugin-persisted-scope 2024-10-30 16:37:47 +08:00
huzibaca
4213a5fad1
chore: window hide replaces window minimize 2024-10-30 13:51:58 +08:00
huzibaca
dce72a16f0
chore: remove useless hooks
the window is not closed, it is minimized, so the position still exists
2024-10-30 10:06:54 +08:00
huzibaca
d10323701a
fix: performance issues caused by closing windows on mac 2024-10-30 06:27:29 +08:00
huzibaca
2ab75db9c9
chore: update 2024-10-23 09:26:14 +08:00
huzibaca
1cb7cd8859
Merge branch 'fix-linux-errors' into fix-migrate-tauri2-errors
* fix-linux-errors:
  chore: try to fix service not started on linux
2024-10-20 21:57:41 +08:00
huzibaca
199700cf09
fix: mac commad+q global hijack is not released 2024-10-20 06:06:47 +08:00
huzibaca
ee78b7898b
chore: try to fix service not started on linux 2024-10-20 04:48:42 +08:00
huzibaca
12690ed464
chore: remove windows esc shortcut key 2024-10-14 13:45:26 +08:00
huzibaca
3f3fad0db7
feat: Modify startup logic and install services by default 2024-10-10 00:34:36 +08:00
huzibaca
fc5c959a55
chore: unified hotkey registration 2024-09-25 15:45:12 +08:00