Commit Graph

1105 Commits

Author SHA1 Message Date
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
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
Ahao
d3dbc11b1b modify the port detection range to prevent the use of system ports (#3587)
Co-authored-by: Ahao <108321411+xuanyuan0408@users.noreply.github.com>
2025-05-25 17:05:08 +08:00
Ahao
fa1f9875d9 fix dependency issues 2025-05-24 19:58:37 +08:00
Tunglies
7466139320 fix(ControllerViewer): remove isRestarting condition from button and input disabled states 2025-05-24 17:04:32 +08:00
Tunglies
7a5bcf67c5 refactor(ControllerViewer): replace manual core restart logic with service call to restartCore 2025-05-24 17:00:25 +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
5b2f946828 feat: restrict proxy group selection to Selector type in home node card
- Only Selector-type groups are available for selection in the group dropdown on the home page node card.
- Node (proxy) selection remains unrestricted.
- Improves user experience and avoids confusion with non-selector groups.
2025-05-22 11:38:26 +08:00
Tunglies
b4595d7886 fix: add fallback to first proxy in group if 'now' is missing and prioritize selector-type groups
- When the current group or its 'now' field is missing, fallback to the first proxy in the group's list to ensure a valid active node is always selected.
- When no current group is found, prioritize groups of type 'Selector' for selection, improving compatibility with custom or extended proxy groups.
2025-05-22 10:10:26 +08:00
Ahao
1dbfc96ebf optimize port setting exit and save mechanism 2025-05-21 15:27:43 +08:00
Ahao
250dcf569c beradaptasi dengan bahasa terjemahan terbaru 2025-05-21 10:58:49 +08:00
Ahao
0ef552d384 optimize the icon of API controller 2025-05-21 10:31:13 +08:00
Tunglies
998ded5e0b refactor: remove unused imports and adjust button height in logs and rules pages 2025-05-21 10:25:50 +08:00
Tunglies
d60c3b4d64 feat: improve initialization logic to prevent duplicated initialization and improve logging in Layout component 2025-05-21 00:22:47 +08:00
Ahao
29fd97e402 remove redundant fields 2025-05-20 23:07:50 +08:00
Ahao
400efa00ec optimized the random port and key mechanism to prevent random freezing! optimized the save mechanism, using smooth functions to prevent the client from freezing! Optimized the translation problem! 2025-05-20 22:51:11 +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
Ahao
7cd1816866 optimized port settings and added one-click random API port and key/separate refresh button 2025-05-20 18:49:16 +08:00
Ahao
5983ac5449 Fix getDelayFix hook issue 2025-05-20 18:15:05 +08:00
wonfen
cc5ebec0cb feat: add state management for core switching, upgrading and restart functionality 2025-05-18 18:37:09 +08:00
Ahao
1d2fd06507 synchronous Languag (#3534)
* fixed the issue of IP field assignment conflict

* updated the shuffling algorithm and added a deduplication detection mechanism

* fixed an issue with .window-state.json files not being deleted via the NSIS installer

* adaptation translation

* update language

* standardized the format

---------

Co-authored-by: Ahao <108321411+xuanyuan0408@users.noreply.github.com>
2025-05-18 17:57:41 +08:00
Tunglies
00e3f13bc9 fix: profile-view wrong type of http request timeout value 2025-05-18 00:52:59 +08:00
Ahao
2a897ecf8a adaptation translation (#3532)
* fixed the issue of IP field assignment conflict

* updated the shuffling algorithm and added a deduplication detection mechanism

* fixed an issue with .window-state.json files not being deleted via the NSIS installer

* adaptation translation

---------

Co-authored-by: Ahao <108321411+xuanyuan0408@users.noreply.github.com>
2025-05-17 19:48:44 +08:00
wonfen
e1d6c74e4f refactor: extract service installation logic to custom hook and optimize related component handling 2025-05-17 19:11:17 +08:00
wonfen
f4e57a2831 fix: retain traffic data when switching chart time range 2025-05-16 18:03:02 +08:00
wonfen
9d89eeb974 perf: optimize event listeners in update viewer and test item components with proper cleanup on unmount
(cherry picked from commit 2e4e939e0b05040c8f38248f3663978a0212cd50)
2025-05-16 16:10:37 +08:00
Ahao
7acbb5da4f updated the shuffling algorithm and added a deduplication detection mechanism (#3521) 2025-05-16 12:26:50 +08:00
Tunglies
92ae277e3a chore: remove incorrect type comment 2025-05-15 22:34:09 +08:00
wonfen
6c5488be70 fix: theme color not following system preference 2025-05-15 16:51:35 +08:00
Ahao
316e1d4268 fixed the issue of IP field assignment conflict (#3513)
Co-authored-by: Ahao <108321411+xuanyuan0408@users.noreply.github.com>
2025-05-14 23:13:52 +08:00
wonfen
b0a82bc7ad feat: remove custom window button 2025-05-14 22:15:02 +08:00
wonfen
7f0ebbd83d feat: use OS default window manager 2025-05-14 21:32:26 +08:00
Ahao
4f86f3c0ec refactored IP detection and added zashboard redirect URL (#3510)
* Fixed the language display size issue and updated the translation synchronously!

* Fixed Russian language display issue

* refactored IP detection and added zashboard redirect URL

---------

Co-authored-by: Ahao <108321411+xuanyuan0408@users.noreply.github.com>
2025-05-14 20:32:45 +08:00
Tunglies
c100b9c54d feat: log levels to 'warn' in mihomo default settings and verge default settings; 2025-05-14 16:06:02 +08:00
THR-hub
ebc9fc5eba Fix issue when reinstalled the DNS overwrite button may show a wrong status. (#3505) 2025-05-14 12:57:37 +08:00
Ahao
29ae70bbf6 Fixed the language display size issue and updated the translation synchronously! (#3507)
* Fixed the language display size issue and updated the translation synchronously!

* Fixed Russian language display issue

---------

Co-authored-by: Ahao <108321411+xuanyuan0408@users.noreply.github.com>
2025-05-14 12:20:45 +08:00
wonfen
becc51bcd2 feat: replace traffic chart rendering component for performance improvement and React 19 compatibility 2025-05-14 12:16:59 +08:00
wonfen
1993e5dd51 chore: upgrade to react 19 2025-05-14 10:47:33 +08:00
wonfen
d1a2bd78d7 perf: improve install status detection to ensure frontend consistency 2025-05-13 23:34:30 +08:00
Ahao
a5521404b6 Added support for the Japanese language and improved multilingual translation in the Rev module. Note: This update affects various labels, descriptions, and messages throughout the entire file. (#3502)
* May 13, 2025, 15:30 – Added support for the Japanese language and improved multilingual translation in the Rev module. Note: This update affects various labels, descriptions, and messages throughout the entire file. If you encounter any issues, please report them via GitHub Issues. By: Ahaohaohao

* update

* bug fixes

---------

Co-authored-by: Ahao <108321411+xuanyuan0408@users.noreply.github.com>
2025-05-13 18:19:43 +08:00
Taiizor
8aa7b34197 feat(i18n): Add Turkish (tr-TR) localization (#3498)
* Add Turkish language support

Added Turkish (tr) translations to the application by creating a new locale file `tr.json` and updating the language options in `setting-verge-basic.tsx` and `i18n.ts` to include Turkish.

* Update Turkish translations for proxy terminology

Revised Turkish translations in `tr.json` to replace 'Proxy' with 'Vekil' for consistency and clarity. This change affects various labels, descriptions, and messages throughout the file.
2025-05-13 07:32:37 +08:00
Tunglies
1ddbe7c2cc feat: add service uninstall functionality and improve service operation flow 2025-05-13 01:56:19 +08:00
Tunglies
6578cd8c51 fix: TUN switch button logical bug 2025-05-13 01:11:20 +08:00
Tunglies
5b6c9be99f feat: better service status and TUN mode usable checks in Setting Page 2025-05-12 19:04:21 +08:00
wonfen
d587ed09a5 fix: # 3479, set all fontLigatures to false 2025-05-11 23:05:47 +08:00
wonfen
10576780ed feat: add hosts settings to DNS settings and enhance DNS config validation 2025-05-11 22:55:31 +08:00
wonfen
b37b121afb chore: disable tray speed by default 2025-05-11 19:25:32 +08:00
wonfen
8cae9d4e0a refactor: use async approach to restructure UI startup logic and resolve various freeze issues during launch 2025-05-10 01:26:03 +08:00