3x-ui/frontend/src/pages
MHSanaei 5c902ca298
feat(frontend): inbound Hysteria stream sub-form (auth + udpIdleTimeout + masquerade)
Restore the inbound side of Hysteria stream configuration that was
previously hidden — the legacy modal exposed these knobs but the
Pattern A rewrite gated them out.

schemas/protocols/stream/hysteria.ts:
- HysteriaMasqueradeSchema covers the inbound-only masquerade wire
  shape: type ('proxy'|'file'|'string'), dir, url, rewriteHost,
  insecure, content, headers, statusCode. The three masquerade types
  cover the spectrum: reverse-proxy upstream, serve static files, or
  return a fixed string body.
- HysteriaStreamSettingsSchema gains 3 inbound-side optional fields:
  protocol, udpIdleTimeout, masquerade. Outbound side is untouched
  (the legacy class accepted both wire shapes via the same struct).

InboundFormModal.tsx:
- New hysteria stream sub-form section in streamTab, gated by
  protocol === HYSTERIA. Fields: version (disabled, locked to 2),
  auth, udpIdleTimeout, masquerade Switch + nested type-Select with
  three conditional sub-blocks (proxy URL+rewriteHost+insecure,
  file dir, string statusCode+body+headers).
- onValuesChange cascade: switching TO hysteria seeds streamSettings
  with the hysteria branch (forcing network='hysteria' + TLS); switching
  AWAY from hysteria snaps back to TCP so the standard network
  selector has a valid starting point.

masquerade headers use the HeaderMapEditor v1 component.
2026-05-26 13:44:00 +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): inbound Hysteria stream sub-form (auth + udpIdleTimeout + masquerade) 2026-05-26 13:44:00 +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 feat(frontend): link import on outbound modal (vmess/vless/trojan/ss/hy2) 2026-05-26 13:28:04 +02:00