mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-24 08:12:19 +07:00
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.
This commit is contained in:
@@ -828,6 +828,12 @@
|
||||
"delDepleted": "Видалити вичерпаних",
|
||||
"delDepletedConfirmTitle": "Видалити вичерпаних клієнтів?",
|
||||
"delDepletedConfirmContent": "Видаляються всі клієнти, у яких вичерпана квота трафіку або сплив термін. Цю дію неможливо скасувати.",
|
||||
"exportClients": "Експортувати клієнтів",
|
||||
"importClients": "Імпортувати клієнтів",
|
||||
"import": "Імпорт",
|
||||
"delOrphans": "Видалити клієнтів без вхідного",
|
||||
"delOrphansConfirmTitle": "Видалити клієнтів без вхідного?",
|
||||
"delOrphansConfirmContent": "Видаляється кожен клієнт, не прив'язаний до жодного вхідного, разом із його записом трафіку. Цю дію неможливо скасувати.",
|
||||
"auth": "Авторизація",
|
||||
"hysteriaAuth": "Hysteria Auth",
|
||||
"uuid": "UUID",
|
||||
@@ -850,7 +856,10 @@
|
||||
"bulkCreatedMixed": "Створено: {ok}, не вдалось: {failed}",
|
||||
"bulkAdjusted": "Змінено клієнтів: {count}",
|
||||
"bulkAdjustedMixed": "Змінено: {ok}, пропущено: {skipped}",
|
||||
"delDepleted": "Видалено вичерпаних клієнтів: {count}"
|
||||
"delDepleted": "Видалено вичерпаних клієнтів: {count}",
|
||||
"delOrphans": "Видалено клієнтів без вхідного: {count}",
|
||||
"imported": "Імпортовано клієнтів: {count}",
|
||||
"importedMixed": "Імпортовано: {ok}, пропущено: {failed}"
|
||||
}
|
||||
},
|
||||
"groups": {
|
||||
|
||||
Reference in New Issue
Block a user