feat(clients): add bulk enable/disable and move selection actions into More menu

Add bulkEnable/bulkDisable named endpoints backed by a shared internal impl, and consolidate the per-selection actions (attach, detach, add to group, ungroup, enable, disable, adjust, sub links) into the clients table's More dropdown so the toolbar only shows the selection count and delete. Translate the new enable/disable confirm dialogs and toasts across all 13 locales.
This commit is contained in:
MHSanaei
2026-06-25 19:21:42 +02:00
parent a4be5a0deb
commit e64e998194
20 changed files with 698 additions and 23 deletions
+10
View File
@@ -816,6 +816,12 @@
"attach": "附加",
"adjust": "調整",
"subLinks": "訂閱連結",
"enable": "啟用",
"disable": "停用",
"bulkEnableConfirmTitle": "啟用 {count} 個客戶端?",
"bulkEnableConfirmContent": "在每個已附加的入站上啟用所選的客戶端。配額已用盡或已過期的客戶端將被自動重新停用。",
"bulkDisableConfirmTitle": "停用 {count} 個客戶端?",
"bulkDisableConfirmContent": "在每個已附加的入站上停用所選的客戶端。他們將立即失去存取權限,但其記錄與流量將被保留。",
"selectedCount": "已選 {count} 項",
"attachSelected": "附加 ({count})",
"attachToInboundsTitle": "將 {count} 個客戶端附加到入站",
@@ -872,6 +878,10 @@
"allTrafficsReset": "所有客戶端流量已重設",
"bulkDeleted": "已刪除 {count} 個客戶端",
"bulkDeletedMixed": "已刪除 {ok} 個,失敗 {failed} 個",
"bulkEnabled": "已啟用 {count} 個客戶端",
"bulkEnabledMixed": "已啟用 {ok} 個,失敗 {failed} 個",
"bulkDisabled": "已停用 {count} 個客戶端",
"bulkDisabledMixed": "已停用 {ok} 個,失敗 {failed} 個",
"bulkCreated": "已建立 {count} 個客戶端",
"bulkCreatedMixed": "已建立 {ok} 個,失敗 {failed} 個",
"bulkAdjusted": "已調整 {count} 個客戶端",