3x-ui/frontend/src
MHSanaei 0b0b6250d6
feat(clients): orphan cleanup + export/import via CodeMirror modals
Add three client-management actions to the Clients page More menu:

- Delete unattached clients: removes every client with no inbound
  attachment, cascading its traffic rows, IP log, and external links
  (POST /clients/delOrphans).
- Export clients: shows the {client, inboundIds} list in a read-only
  CodeMirror viewer with copy/download (GET /clients/export returns the
  array in the standard envelope).
- Import clients: pastes that JSON into an editable CodeMirror editor,
  mirroring Import an Inbound (POST /clients/import takes a { data }
  body). Attached clients go through the create-and-attach path; items
  with no inboundIds are restored as bare records; existing emails are
  never overwritten and are reported as skipped.

Document the new endpoints in api-docs and translate the new strings
into all supported languages.
2026-06-21 23:06:10 +02:00
..
api feat(hosts): managed Hosts for per-host subscription link overrides (#5409) 2026-06-17 12:06:55 +02:00
components feat(memory): add memory threshold alerts (#5366) 2026-06-21 17:45:33 +02:00
entries Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
generated feat(memory): add memory threshold alerts (#5366) 2026-06-21 17:45:33 +02:00
hooks feat(clients): orphan cleanup + export/import via CodeMirror modals 2026-06-21 23:06:10 +02:00
i18n refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
layouts feat(hosts): managed Hosts for per-host subscription link overrides (#5409) 2026-06-17 12:06:55 +02:00
lib fix(tls): default OCSP stapling to off for new inbound certs 2026-06-21 19:15:57 +02:00
models feat(memory): add memory threshold alerts (#5366) 2026-06-21 17:45:33 +02:00
pages feat(clients): orphan cleanup + export/import via CodeMirror modals 2026-06-21 23:06:10 +02:00
schemas fix(tls): default OCSP stapling to off for new inbound certs 2026-06-21 19:15:57 +02:00
styles feat(hosts): managed Hosts for per-host subscription link overrides (#5409) 2026-06-17 12:06:55 +02:00
test fix(tls): default OCSP stapling to off for new inbound certs 2026-06-21 19:15:57 +02:00
utils fix(frontend): guard IntlUtil.formatDate against out-of-range timestamps (#5468) 2026-06-21 17:26:47 +02:00
env.d.ts feat(postgres): in-panel backup/restore and consistent CLI backend 2026-05-31 17:53:34 +02:00
main.tsx Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
queryClient.ts feat(frontend): TanStack Query + React Router migration & in-panel API docs (#4541) 2026-05-24 21:34:52 +02:00
routes.tsx feat(hosts): managed Hosts for per-host subscription link overrides (#5409) 2026-06-17 12:06:55 +02:00