mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-17 00:31:00 +00:00
feat(ui): add select all / clear all shortcuts for inbound multi-select (#5175)
* feat(ui): add select all / clear all shortcuts for inbound multi-select Adds 'Select all' and 'Clear all' buttons above the inbound multi-select in: - ClientFormModal (add/edit client) - BulkAttachInboundsModal (bulk attach clients to inbounds) - BulkDetachInboundsModal (bulk detach clients from inbounds) - ClientBulkAddModal (add bulk clients) Extracts the repeated button logic into a reusable SelectAllClearButtons component. Includes i18n keys for all 13 supported languages with proper translations. Closes #5144 * refactor(form): decouple SelectAllClearButtons labels and harden select-all Accept optional selectAllLabel/clearLabel props so the generic form component is not tied to the client-inbound i18n keys (defaults unchanged). Compute the all-selected state by checking every option is present and union the current value on select-all, so it stays correct if value holds ids outside options. --------- Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
This commit is contained in:
@@ -703,6 +703,8 @@
|
||||
"duration": "المدة",
|
||||
"attachedInbounds": "الاتصالات الواردة المرتبطة",
|
||||
"selectInbound": "حدد اتصالاً واردًا واحدًا أو أكثر",
|
||||
"selectAllInbounds": "تحديد الكل",
|
||||
"clearAllInbounds": "مسح الكل",
|
||||
"noSubId": "هذا العميل ليس لديه subId، لا يوجد رابط قابل للمشاركة.",
|
||||
"noLinks": "لا توجد روابط للمشاركة — قم بإرفاق هذا العميل بأحد الاتصالات الواردة الداعمة للبروتوكول أولاً.",
|
||||
"link": "الرابط",
|
||||
|
||||
@@ -704,6 +704,8 @@
|
||||
"duration": "Duration",
|
||||
"attachedInbounds": "Attached inbounds",
|
||||
"selectInbound": "Select one or more inbounds",
|
||||
"selectAllInbounds": "Select all",
|
||||
"clearAllInbounds": "Clear all",
|
||||
"noSubId": "This client has no subId, no shareable link.",
|
||||
"noLinks": "No shareable links — attach this client to a protocol-capable inbound first.",
|
||||
"link": "Link",
|
||||
|
||||
@@ -703,6 +703,8 @@
|
||||
"duration": "Duración",
|
||||
"attachedInbounds": "Inbounds asociados",
|
||||
"selectInbound": "Selecciona uno o más inbounds",
|
||||
"selectAllInbounds": "Seleccionar todo",
|
||||
"clearAllInbounds": "Limpiar todo",
|
||||
"noSubId": "Este cliente no tiene subId, no hay enlace compartible.",
|
||||
"noLinks": "No hay enlaces compartibles — asocia primero este cliente a un inbound con protocolo válido.",
|
||||
"link": "Enlace",
|
||||
|
||||
@@ -703,6 +703,8 @@
|
||||
"duration": "مدت",
|
||||
"attachedInbounds": "اینباندهای متصل",
|
||||
"selectInbound": "یک یا چند اینباند انتخاب کنید",
|
||||
"selectAllInbounds": "انتخاب همه",
|
||||
"clearAllInbounds": "پاک کردن همه",
|
||||
"noSubId": "این کلاینت subId ندارد، لینک اشتراکگذاری وجود ندارد.",
|
||||
"noLinks": "لینکی برای اشتراکگذاری نیست — ابتدا این کلاینت را به یک اینباند با پروتکل سازگار متصل کنید.",
|
||||
"link": "لینک",
|
||||
|
||||
@@ -703,6 +703,8 @@
|
||||
"duration": "Durasi",
|
||||
"attachedInbounds": "Inbound terlampir",
|
||||
"selectInbound": "Pilih satu atau lebih inbound",
|
||||
"selectAllInbounds": "Pilih semua",
|
||||
"clearAllInbounds": "Hapus semua",
|
||||
"noSubId": "Klien ini tidak punya subId, tidak ada tautan yang bisa dibagikan.",
|
||||
"noLinks": "Tidak ada tautan yang bisa dibagikan — lampirkan klien ini ke inbound yang mendukung protokol terlebih dahulu.",
|
||||
"link": "Tautan",
|
||||
|
||||
@@ -703,6 +703,8 @@
|
||||
"duration": "期間",
|
||||
"attachedInbounds": "関連付けされたインバウンド",
|
||||
"selectInbound": "1 つ以上のインバウンドを選択",
|
||||
"selectAllInbounds": "すべて選択",
|
||||
"clearAllInbounds": "すべてクリア",
|
||||
"noSubId": "このクライアントには subId がなく、共有可能なリンクはありません。",
|
||||
"noLinks": "共有可能なリンクがありません — まずこのクライアントを対応するプロトコルのインバウンドに関連付けてください。",
|
||||
"link": "リンク",
|
||||
|
||||
@@ -703,6 +703,8 @@
|
||||
"duration": "Duração",
|
||||
"attachedInbounds": "Inbounds associados",
|
||||
"selectInbound": "Selecione um ou mais inbounds",
|
||||
"selectAllInbounds": "Selecionar tudo",
|
||||
"clearAllInbounds": "Limpar tudo",
|
||||
"noSubId": "Este cliente não tem subId, sem link compartilhável.",
|
||||
"noLinks": "Sem links compartilháveis — associe primeiro este cliente a um inbound compatível com o protocolo.",
|
||||
"link": "Link",
|
||||
|
||||
@@ -703,6 +703,8 @@
|
||||
"duration": "Длительность",
|
||||
"attachedInbounds": "Привязанные входящие",
|
||||
"selectInbound": "Выберите один или несколько входящих",
|
||||
"selectAllInbounds": "Выбрать всё",
|
||||
"clearAllInbounds": "Очистить всё",
|
||||
"noSubId": "У этого клиента нет subId, ссылка для общего доступа недоступна.",
|
||||
"noLinks": "Нет ссылок для общего доступа — сначала привяжите клиента к входящему с поддерживаемым протоколом.",
|
||||
"link": "Ссылка",
|
||||
|
||||
@@ -704,6 +704,8 @@
|
||||
"duration": "Süre",
|
||||
"attachedInbounds": "Bağlı Gelen Bağlantılar",
|
||||
"selectInbound": "Bir veya Daha Fazla Gelen Bağlantı Seçin",
|
||||
"selectAllInbounds": "Tümünü Seç",
|
||||
"clearAllInbounds": "Tümünü Temizle",
|
||||
"noSubId": "Bu kullanıcının subId'si yok, dolayısıyla paylaşılabilir bir bağlantısı bulunmuyor.",
|
||||
"noLinks": "Paylaşılabilir bağlantı yok — önce bu kullanıcıyı bir protokole sahip olan gelen bağlantıya bağlayın.",
|
||||
"link": "Bağlantı",
|
||||
@@ -1705,4 +1707,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -703,6 +703,8 @@
|
||||
"duration": "Тривалість",
|
||||
"attachedInbounds": "Прив'язані вхідні",
|
||||
"selectInbound": "Виберіть один або кілька вхідних",
|
||||
"selectAllInbounds": "Вибрати все",
|
||||
"clearAllInbounds": "Очистити все",
|
||||
"noSubId": "У цього клієнта немає subId, посилання для спільного доступу відсутнє.",
|
||||
"noLinks": "Немає посилань для спільного доступу — спочатку прив'яжіть цього клієнта до вхідного з підтримкою протоколу.",
|
||||
"link": "Посилання",
|
||||
|
||||
@@ -703,6 +703,8 @@
|
||||
"duration": "Thời hạn",
|
||||
"attachedInbounds": "Inbound đã gắn",
|
||||
"selectInbound": "Chọn một hoặc nhiều inbound",
|
||||
"selectAllInbounds": "Chọn tất cả",
|
||||
"clearAllInbounds": "Xóa tất cả",
|
||||
"noSubId": "Khách hàng này không có subId, không có liên kết chia sẻ.",
|
||||
"noLinks": "Không có liên kết chia sẻ — hãy gắn khách hàng này vào một inbound có giao thức tương thích trước.",
|
||||
"link": "Liên kết",
|
||||
|
||||
@@ -703,6 +703,8 @@
|
||||
"duration": "时长",
|
||||
"attachedInbounds": "关联入站",
|
||||
"selectInbound": "选择一个或多个入站",
|
||||
"selectAllInbounds": "全选",
|
||||
"clearAllInbounds": "全部清除",
|
||||
"noSubId": "该客户端没有 subId,无法生成共享链接。",
|
||||
"noLinks": "没有可共享的链接 — 请先将此客户端关联到支持协议的入站。",
|
||||
"link": "链接",
|
||||
|
||||
@@ -703,6 +703,8 @@
|
||||
"duration": "時長",
|
||||
"attachedInbounds": "關聯入站",
|
||||
"selectInbound": "選擇一個或多個入站",
|
||||
"selectAllInbounds": "全選",
|
||||
"clearAllInbounds": "全部清除",
|
||||
"noSubId": "此客戶端沒有 subId,無法產生共享連結。",
|
||||
"noLinks": "沒有可共享的連結 — 請先將此客戶端關聯至支援協定的入站。",
|
||||
"link": "連結",
|
||||
|
||||
Reference in New Issue
Block a user