mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-16 10:05:00 +03:00
feat(nodes): add distinct purple indicator when panel is online but Xray core failed (#5040)
* feat(nodes): add distinct purple indicator when panel is online but Xray core failed Currently nodes only show binary online/offline based on panel API reachability. This adds a third state: - Green: panel reachable + Xray healthy - Purple pulsing dot + "Online (Xray Error)": panel API works (management actions still available) but the node Xray process is in error or stopped. Tooltip shows the remote xrayError. - Red: unreachable (unchanged) Backend now captures xray.state + xray.errorMsg from /panel/api/server/status heartbeats and probes. New fields on Node + NodeSummary, forwarded for transitive nodes. Frontend Zod + NodeList rendering + dedicated .xray-error-dot CSS (color #722ED1) + i18n key. Color chosen purple per feedback after initial implementation. Refs: worktree xray-failed-in-nodes * fix: remove invalid JSON comment causing CI failures * chore: regenerate OpenAPI schemas and types for xray error indicators * chore: regenerate examples and schemas for xray error indicators * chore: regenerate missing openapi.json examples * fix --------- Co-authored-by: Rqzbeh <rqzbeh@users.noreply.github.com> Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
This commit is contained in:
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "متصل",
|
||||
"offline": "غير متصل",
|
||||
"unknown": "غير معروف"
|
||||
"unknown": "غير معروف",
|
||||
"xrayError": "خطأ Xray",
|
||||
"xrayStopped": "متوقف"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "فشل تحميل النودز",
|
||||
|
||||
@@ -897,7 +897,9 @@
|
||||
"statusValues": {
|
||||
"online": "Online",
|
||||
"offline": "Offline",
|
||||
"unknown": "Unknown"
|
||||
"unknown": "Unknown",
|
||||
"xrayError": "Xray Error",
|
||||
"xrayStopped": "Stopped"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "Failed to load nodes",
|
||||
|
||||
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "En línea",
|
||||
"offline": "Sin conexión",
|
||||
"unknown": "Desconocido"
|
||||
"unknown": "Desconocido",
|
||||
"xrayError": "Error de Xray",
|
||||
"xrayStopped": "Detenido"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "Error al cargar los nodos",
|
||||
|
||||
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "آنلاین",
|
||||
"offline": "آفلاین",
|
||||
"unknown": "نامشخص"
|
||||
"unknown": "نامشخص",
|
||||
"xrayError": "خطای Xray",
|
||||
"xrayStopped": "متوقف"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "بارگذاری نودها ناموفق",
|
||||
|
||||
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "Online",
|
||||
"offline": "Offline",
|
||||
"unknown": "Tidak diketahui"
|
||||
"unknown": "Tidak diketahui",
|
||||
"xrayError": "Kesalahan Xray",
|
||||
"xrayStopped": "Berhenti"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "Gagal memuat node",
|
||||
|
||||
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "オンライン",
|
||||
"offline": "オフライン",
|
||||
"unknown": "不明"
|
||||
"unknown": "不明",
|
||||
"xrayError": "Xray エラー",
|
||||
"xrayStopped": "停止"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "ノードの読み込みに失敗しました",
|
||||
|
||||
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "Online",
|
||||
"offline": "Offline",
|
||||
"unknown": "Desconhecido"
|
||||
"unknown": "Desconhecido",
|
||||
"xrayError": "Erro do Xray",
|
||||
"xrayStopped": "Parado"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "Falha ao carregar os nós",
|
||||
|
||||
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "В сети",
|
||||
"offline": "Не в сети",
|
||||
"unknown": "Неизвестно"
|
||||
"unknown": "Неизвестно",
|
||||
"xrayError": "Ошибка Xray",
|
||||
"xrayStopped": "Остановлен"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "Не удалось загрузить узлы",
|
||||
|
||||
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "Çevrimiçi",
|
||||
"offline": "Çevrimdışı",
|
||||
"unknown": "Bilinmiyor"
|
||||
"unknown": "Bilinmiyor",
|
||||
"xrayError": "Xray Hatası",
|
||||
"xrayStopped": "Durduruldu"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "Düğümler yüklenemedi",
|
||||
|
||||
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "У мережі",
|
||||
"offline": "Не в мережі",
|
||||
"unknown": "Невідомо"
|
||||
"unknown": "Невідомо",
|
||||
"xrayError": "Помилка Xray",
|
||||
"xrayStopped": "Зупинено"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "Не вдалося завантажити вузли",
|
||||
|
||||
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "Trực tuyến",
|
||||
"offline": "Ngoại tuyến",
|
||||
"unknown": "Không xác định"
|
||||
"unknown": "Không xác định",
|
||||
"xrayError": "Lỗi Xray",
|
||||
"xrayStopped": "Đã dừng"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "Không tải được danh sách nút",
|
||||
|
||||
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "在线",
|
||||
"offline": "离线",
|
||||
"unknown": "未知"
|
||||
"unknown": "未知",
|
||||
"xrayError": "Xray 错误",
|
||||
"xrayStopped": "已停止"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "加载节点失败",
|
||||
|
||||
@@ -896,7 +896,9 @@
|
||||
"statusValues": {
|
||||
"online": "上線",
|
||||
"offline": "離線",
|
||||
"unknown": "未知"
|
||||
"unknown": "未知",
|
||||
"xrayError": "Xray 錯誤",
|
||||
"xrayStopped": "已停止"
|
||||
},
|
||||
"toasts": {
|
||||
"list": "載入節點失敗",
|
||||
|
||||
Reference in New Issue
Block a user