3x-ui/frontend/src/pages/settings
biohazardous-man 97f88fb1a9
feat(sub): modern xray JSON format with unified finalmask editor (#4912)
* feat(sub): add finalmask support to JSON subscriptions

* feat(sub): modern xray JSON format with unified finalmask editor

Drop the legacy JSON subscription format entirely and always emit the
modern xray shape:

- Flatten proxy outbounds (no vnext/servers) for vless/vmess/trojan/
  shadowsocks; hysteria was already flat.
- Express fragment/noise via streamSettings.finalmask instead of the
  legacy direct_out freedom dialer + dialerProxy sockopt.

The global finalmask (tcp/udp masks + quicParams) is stored as a single
setting (subJsonFinalMask) and merged into every generated stream,
replacing the separate subJsonFragment/subJsonNoises/subJsonQuicParams
settings.

Reuse the existing FinalMaskForm (used by inbound/outbound) for the
settings UI via a small bridge component; add a showAll prop so all
TCP/UDP/QUIC sections render for the global case. This supersedes the
hand-rolled Fragment/Noises/quicParams tabs with the full mask editor
(all mask types).

Note: this is a breaking change — JSON subscriptions now require a
recent xray client on the consumer side.

* fix

---------

Co-authored-by: biohazardous-man <biohazardous-man@users.noreply.github.com>
Co-authored-by: MHSanaei <ho3ein.sanaei@gmail.com>
2026-06-04 23:51:48 +02:00
..
catTabLabel.tsx feat(settings): sidebar submenu nav for settings and xray with icon tabs 2026-06-03 09:26:25 +02:00
GeneralTab.tsx feat(settings): sidebar submenu nav for settings and xray with icon tabs 2026-06-03 09:26:25 +02:00
SecurityTab.css fix(api-token): hash tokens at rest and show plaintext only once 2026-06-03 22:57:50 +02:00
SecurityTab.tsx fix(api-token): hash tokens at rest and show plaintext only once 2026-06-03 22:57:50 +02:00
SettingsPage.css Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
SettingsPage.tsx feat(settings): sidebar submenu nav for settings and xray with icon tabs 2026-06-03 09:26:25 +02:00
SubJsonFinalMaskForm.tsx feat(sub): modern xray JSON format with unified finalmask editor (#4912) 2026-06-04 23:51:48 +02:00
SubscriptionFormatsTab.css feat(settings): sidebar submenu nav for settings and xray with icon tabs 2026-06-03 09:26:25 +02:00
SubscriptionFormatsTab.tsx feat(sub): modern xray JSON format with unified finalmask editor (#4912) 2026-06-04 23:51:48 +02:00
SubscriptionGeneralTab.tsx feat(Clash): Add routing rules and enable routing option for Clash subscriptions (#4904) 2026-06-04 21:55:51 +02:00
TelegramTab.tsx feat(settings): sidebar submenu nav for settings and xray with icon tabs 2026-06-03 09:26:25 +02:00
TwoFactorModal.css Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
TwoFactorModal.tsx feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
uriPath.ts fix(settings): reject spaces, '\' and control chars in URI path settings 2026-05-30 23:29:08 +02:00