3x-ui/frontend/src/pages
MHSanaei 591a03ff96
feat(frontend): protocol tab Shadowsocks section (Pattern A)
Adds the Shadowsocks sub-form: method picker (from SSMethodSchema's
seven schema-aligned options), conditional password input gated on
isSS2022, network picker (tcp/udp/tcp,udp), ivCheck toggle.

Method change cascades through the Select's onChange — regenerating
the inbound-level password via RandomUtil.randomShadowsocksPassword.
The shadowsockses[] multi-user list reset is deferred until the
clients-management section lands.

Uses isSS2022 from lib/xray/protocol-capabilities to gate the password
field exactly the way the legacy modal did — keeps the form behavior
identical without referencing the legacy class.

SSMethodSchema.options drives the Select rather than the legacy
SSMethods const (which the inbound modal pulled from models/inbound.ts).
This commits to the schema-aligned 7-entry list for inbound; the
outbound divergence (9 entries with legacy aliases) is still pending
in OutboundFormModal — defer the UX decision to that rewrite.
2026-05-26 02:11:51 +02:00
..
api-docs refactor(frontend): port api-docs/endpoints to TypeScript 2026-05-25 15:29:26 +02:00
clients refactor(frontend): lift Protocols + TLS_FLOW_CONTROL consts to schemas/primitives 2026-05-26 00:51:52 +02:00
inbounds feat(frontend): protocol tab Shadowsocks section (Pattern A) 2026-05-26 02:11:51 +02:00
index refactor(frontend): tighten HttpUtil generics from any to unknown 2026-05-25 19:51:39 +02:00
login feat(frontend): add Zod runtime validation at API boundary 2026-05-25 16:02:27 +02:00
nodes feat(frontend): drive form validation from Zod schemas 2026-05-25 16:41:56 +02:00
settings feat(frontend): block invalid settings saves with Zod pre-save check 2026-05-25 17:55:21 +02:00
sub Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
xray refactor(frontend): lift outbound option dictionaries to schemas/primitives 2026-05-26 01:11:51 +02:00