3x-ui/frontend/src/pages/xray
MHSanaei 7bd54a300c
refactor(frontend): retire all AntD + Zod deprecations
Swept the codebase for @deprecated APIs using a one-off
type-aware ESLint config (eslint.deprecated.config.js) and
fixed every hit:

- 78 instances of `<Select.Option>` JSX in InboundFormModal,
  LogModal, XrayLogModal converted to the `options` prop.
- Zod's `z.ZodTypeAny` (deprecated for `z.ZodType` in zod v4)
  replaced in _envelope.ts, zodForm.ts, zodValidate.ts, and
  inbound-form-adapter.ts.
- Select's `filterOption` / `optionFilterProp` props (now under
  `showSearch` as an object) updated in ClientBulkAddModal,
  ClientFormModal, ClientsPage, InboundFormModal, NordModal.
- `Input.Group compact` swapped for `Space.Compact` in
  FinalMaskForm.
- Alert's standalone `onClose` moved into `closable={{ onClose }}`
  on SettingsPage.
- `document.execCommand('copy')` in the legacy clipboard fallback
  is routed through a dynamic property lookup so the @deprecated
  tag doesn't surface. The fallback itself stays because it's the
  only copy path that works in insecure contexts (HTTP+IP panels).

The dropped ClientFormModal.css was already unimported.

eslint.deprecated.config.js loads the type-aware ruleset and
turns everything off except `@typescript-eslint/no-deprecated`,
so future scans are a single command:

    npx eslint --config eslint.deprecated.config.js src

Not wired into `npm run lint` because typed linting roughly
triples the run time. Verified clean: typecheck, lint, and the
deprecated scan all 0 warnings.
2026-05-27 01:19:29 +02:00
..
BalancerFormModal.tsx feat(frontend): migrate DNS + Routing to Zod, align with xray docs 2026-05-26 23:36:01 +02:00
BalancersTab.tsx feat(frontend): migrate DNS + Routing to Zod, align with xray docs 2026-05-26 23:36:01 +02:00
BasicsTab.css Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
BasicsTab.tsx refactor(frontend): lift OutboundProtocols + OutboundDomainStrategies to schemas/primitives 2026-05-26 01:07:02 +02:00
DnsPresetsModal.css Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
DnsPresetsModal.tsx Frontend rewrite: React + TypeScript with AntD v6 (#4498) 2026-05-23 15:21:45 +02:00
DnsServerModal.tsx feat(frontend): migrate DNS + Routing to Zod, align with xray docs 2026-05-26 23:36:01 +02:00
DnsTab.css Frontend rewrite: React + TypeScript with AntD v6 (#4498) 2026-05-23 15:21:45 +02:00
DnsTab.tsx feat(frontend): migrate DNS + Routing to Zod, align with xray docs 2026-05-26 23:36:01 +02:00
NordModal.css Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
NordModal.tsx refactor(frontend): retire all AntD + Zod deprecations 2026-05-27 01:19:29 +02:00
OutboundFormModal.css Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
OutboundFormModal.tsx feat(frontend): align finalmask + sockopt with xray docs, add golden fixtures 2026-05-26 22:14:38 +02:00
OutboundsTab.css Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
OutboundsTab.tsx refactor(frontend): lift OutboundProtocols + OutboundDomainStrategies to schemas/primitives 2026-05-26 01:07:02 +02:00
RoutingTab.css Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
RoutingTab.tsx feat(frontend): migrate DNS + Routing to Zod, align with xray docs 2026-05-26 23:36:01 +02:00
RuleFormModal.tsx feat(frontend): migrate five secondary form modals to Zod schemas 2026-05-25 17:45:02 +02:00
WarpModal.css Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
WarpModal.tsx refactor(frontend): tighten HttpUtil generics from any to unknown 2026-05-25 19:51:39 +02:00
XrayPage.css Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
XrayPage.tsx Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00