feat(ui): redesign the overview page as a trend-first command deck
Replace the ten-small-cards overview with an action bar, four vitals
tiles carrying 72-sample sparklines seeded from /server/history, a
two-series throughput chart, a TCP/UDP connections chart, and a
grouped system strip (uptime xray|os, panel ram|threads, ip
addresses). StatusCard and XrayStatusCard are deleted; every modal
stays reachable from the action bar, the Xray error message moves
into a tooltip on the state pill, and the panel version text keeps
opening the update modal (the dev-channel switch lives there) even
when no update is available. Live values sit beside the
upload/download and tcp/udp legends, a health sentence appears only
when a vital crosses the shared warn/crit thresholds now exported
from models/status, and load average is left to System History.
The sidebar becomes an auto-collapsed 72px icon rail that expands as
an overlay on hover: rail width, brand-row height and menu paddings
are pinned so nothing shifts during the transition, the collapsed-menu
tooltips are disabled, hover state survives the per-page sidebar
remounts (with a matches(':hover') resync), and the manual collapse
trigger is gone.
Sparkline gains rgb()/rgba() support in its fill gradient, a
showLegend prop so pages stop reaching into its internals, and loses
a dependency-less repaint effect that doubled canvas paints. Chart
tooltips show clock time via the new TimeFormatter.formatClock;
accents come from theme tokens instead of status.cpu.color. Verified
by screenshot at 390/800/1150/1280/1400/1600px in light and dark,
en and fa-IR, plus programmatic geometry checks on the sidebar.
Locale files gain 8 keys and lose 9 dead ones across all 13
languages.
This commit is contained in:
1 parent
87ebcc7a6f
commit
c3fa73d5a0
30 files changed
+1467
-765
No files matched your search
@@ -106,7 +106,6 @@
|
||||
"routing": "التوجيه",
|
||||
"outbounds": "الصادرات",
|
||||
"apiDocs": "توثيق API",
|
||||
"link": "إدارة",
|
||||
"donate": "تبرع",
|
||||
"hosts": "المضيفات",
|
||||
"docs": "التوثيق",
|
||||
@@ -127,12 +126,9 @@
|
||||
},
|
||||
"index": {
|
||||
"cpu": "المعالج",
|
||||
"logicalProcessors": "المعالجات المنطقية",
|
||||
"frequency": "التردد",
|
||||
"swap": "التبديل",
|
||||
"storage": "تخزين",
|
||||
"memory": "الذاكرة",
|
||||
"threads": "خيوط",
|
||||
"xrayStatus": "Xray",
|
||||
"stopXray": "إيقاف",
|
||||
"restartXray": "إعادة تشغيل",
|
||||
@@ -153,7 +149,6 @@
|
||||
"xrayStatusRunning": "شغالة",
|
||||
"xrayStatusStop": "متوقفة",
|
||||
"xrayStatusError": "خطأ",
|
||||
"operationHours": "مدة التشغيل",
|
||||
"systemHistoryTitle": "تاريخ النظام",
|
||||
"historyTitleCpu": "استخدام المعالج",
|
||||
"historyTitleMem": "استخدام الذاكرة",
|
||||
@@ -171,7 +166,6 @@
|
||||
"historyTabLoad": "الحِمل",
|
||||
"historyTabConnections": "الاتصالات",
|
||||
"historyTabDiskUsage": "استخدام القرص",
|
||||
"charts": "الرسوم البيانية",
|
||||
"xrayMetricsTitle": "مقاييس Xray",
|
||||
"xrayTitleHeap": "ذاكرة الكومة المخصصة",
|
||||
"xrayTitleSys": "الذاكرة المحجوزة من نظام التشغيل",
|
||||
@@ -200,7 +194,6 @@
|
||||
"overallSpeed": "السرعة الكلية",
|
||||
"upload": "رفع",
|
||||
"download": "تنزيل",
|
||||
"totalData": "إجمالي البيانات",
|
||||
"sent": "مرسل",
|
||||
"received": "مستقبل",
|
||||
"xraySwitchVersionDialog": "هل تريد حقًا تغيير إصدار Xray؟",
|
||||
@@ -250,7 +243,18 @@
|
||||
"exportDatabasePgDesc": "انقر لتنزيل نسخة PostgreSQL (.dump) من قاعدة بياناتك الحالية إلى جهازك.",
|
||||
"importDatabasePgDesc": "انقر لاختيار ورفع نسخة احتياطية من PostgreSQL (.dump) أو قاعدة بيانات SQLite (.db) أو ملف ترحيل SQLite لاستعادة قاعدة البيانات. سيؤدي هذا إلى استبدال جميع البيانات الحالية.",
|
||||
"migrationDownload": "تنزيل ملف الترحيل",
|
||||
"migrationDownloadPgDesc": "انقر لتنزيل قاعدة بيانات SQLite بامتداد .db مبنية من بيانات PostgreSQL الخاصة بك، جاهزة لتشغيل هذه اللوحة على SQLite."
|
||||
"migrationDownloadPgDesc": "انقر لتنزيل قاعدة بيانات SQLite بامتداد .db مبنية من بيانات PostgreSQL الخاصة بك، جاهزة لتشغيل هذه اللوحة على SQLite.",
|
||||
"avg": "متوسط",
|
||||
"peak": "ذروة",
|
||||
"free": "متاح",
|
||||
"openSockets": "مقابس مفتوحة",
|
||||
"throughputSub": "إجمالي الواجهة",
|
||||
"avgWindow": "متوسط الفترة",
|
||||
"healthWarm": "{list} — مرتفع قليلاً",
|
||||
"healthCritical": "{list} — حرج",
|
||||
"panel": "اللوحة",
|
||||
"threads": "الخيوط",
|
||||
"uptime": "مدة التشغيل"
|
||||
},
|
||||
"inbounds": {
|
||||
"totalDownUp": "إجمالي المرسل/المستقبل",
|
||||
|
||||
@@ -107,7 +107,6 @@
|
||||
"routing": "Routing",
|
||||
"outbounds": "Outbounds",
|
||||
"apiDocs": "API Docs",
|
||||
"link": "Manage",
|
||||
"donate": "Donate",
|
||||
"docs": "Documentation",
|
||||
"openMenu": "Open menu"
|
||||
@@ -127,12 +126,9 @@
|
||||
},
|
||||
"index": {
|
||||
"cpu": "CPU",
|
||||
"logicalProcessors": "Logical Processors",
|
||||
"frequency": "Frequency",
|
||||
"swap": "Swap",
|
||||
"storage": "Storage",
|
||||
"memory": "RAM",
|
||||
"threads": "Threads",
|
||||
"xrayStatus": "Xray",
|
||||
"stopXray": "Stop",
|
||||
"restartXray": "Restart",
|
||||
@@ -153,7 +149,6 @@
|
||||
"xrayStatusRunning": "Running",
|
||||
"xrayStatusStop": "Stopped",
|
||||
"xrayStatusError": "Error",
|
||||
"operationHours": "Uptime",
|
||||
"systemHistoryTitle": "System History",
|
||||
"historyTitleCpu": "CPU Usage",
|
||||
"historyTitleMem": "Memory Usage",
|
||||
@@ -171,7 +166,6 @@
|
||||
"historyTabLoad": "Load",
|
||||
"historyTabConnections": "Connections",
|
||||
"historyTabDiskUsage": "Disk Usage",
|
||||
"charts": "Charts",
|
||||
"xrayMetricsTitle": "Xray Metrics",
|
||||
"xrayTitleHeap": "Allocated Heap Memory",
|
||||
"xrayTitleSys": "Memory Reserved from OS",
|
||||
@@ -200,7 +194,6 @@
|
||||
"overallSpeed": "Overall Speed",
|
||||
"upload": "Upload",
|
||||
"download": "Download",
|
||||
"totalData": "Total Data",
|
||||
"sent": "Sent",
|
||||
"received": "Received",
|
||||
"xraySwitchVersionDialog": "Do you really want to change the Xray version?",
|
||||
@@ -250,7 +243,18 @@
|
||||
"exportDatabasePgDesc": "Click to download a PostgreSQL dump (.dump) of your current database to your device.",
|
||||
"importDatabasePgDesc": "Click to select and upload a PostgreSQL backup (.dump), a SQLite database (.db), or a SQLite migration dump to restore your database. This replaces all current data.",
|
||||
"migrationDownload": "Download Migration",
|
||||
"migrationDownloadPgDesc": "Click to download a .db SQLite database built from your PostgreSQL data, ready to run this panel on SQLite."
|
||||
"migrationDownloadPgDesc": "Click to download a .db SQLite database built from your PostgreSQL data, ready to run this panel on SQLite.",
|
||||
"avg": "avg",
|
||||
"peak": "peak",
|
||||
"free": "free",
|
||||
"openSockets": "open sockets",
|
||||
"throughputSub": "Interface total",
|
||||
"avgWindow": "Avg over window",
|
||||
"healthWarm": "{list} — running warm",
|
||||
"healthCritical": "{list} — critical",
|
||||
"panel": "Panel",
|
||||
"threads": "Threads",
|
||||
"uptime": "Uptime"
|
||||
},
|
||||
"inbounds": {
|
||||
"totalDownUp": "Total Sent/Received",
|
||||
|
||||
@@ -106,7 +106,6 @@
|
||||
"routing": "Enrutamiento",
|
||||
"outbounds": "Salidas",
|
||||
"apiDocs": "Documentación de la API",
|
||||
"link": "Gestionar",
|
||||
"donate": "Donar",
|
||||
"hosts": "Hosts",
|
||||
"docs": "Documentación",
|
||||
@@ -127,12 +126,9 @@
|
||||
},
|
||||
"index": {
|
||||
"cpu": "CPU",
|
||||
"logicalProcessors": "Procesadores lógicos",
|
||||
"frequency": "Frecuencia",
|
||||
"swap": "Swap",
|
||||
"storage": "Almacenamiento",
|
||||
"memory": "Memoria",
|
||||
"threads": "Hilos",
|
||||
"xrayStatus": "Xray",
|
||||
"stopXray": "Detener",
|
||||
"restartXray": "Reiniciar",
|
||||
@@ -153,7 +149,6 @@
|
||||
"xrayStatusRunning": "En ejecución",
|
||||
"xrayStatusStop": "Detenido",
|
||||
"xrayStatusError": "Error",
|
||||
"operationHours": "Tiempo de Funcionamiento",
|
||||
"systemHistoryTitle": "Historial del Sistema",
|
||||
"historyTitleCpu": "Uso de CPU",
|
||||
"historyTitleMem": "Uso de Memoria",
|
||||
@@ -171,7 +166,6 @@
|
||||
"historyTabLoad": "Carga",
|
||||
"historyTabConnections": "Conexiones",
|
||||
"historyTabDiskUsage": "Uso de Disco",
|
||||
"charts": "Gráficos",
|
||||
"xrayMetricsTitle": "Métricas de Xray",
|
||||
"xrayTitleHeap": "Memoria Heap Asignada",
|
||||
"xrayTitleSys": "Memoria Reservada del SO",
|
||||
@@ -200,7 +194,6 @@
|
||||
"overallSpeed": "Velocidad general",
|
||||
"upload": "Subida",
|
||||
"download": "Descargar",
|
||||
"totalData": "Datos totales",
|
||||
"sent": "Enviado",
|
||||
"received": "Recibido",
|
||||
"xraySwitchVersionDialog": "¿Realmente deseas cambiar la versión de Xray?",
|
||||
@@ -250,7 +243,18 @@
|
||||
"exportDatabasePgDesc": "Haz clic para descargar un volcado de PostgreSQL (.dump) de tu base de datos actual en tu dispositivo.",
|
||||
"importDatabasePgDesc": "Haz clic para seleccionar y subir una copia de seguridad de PostgreSQL (.dump), una base de datos SQLite (.db) o un volcado de migración de SQLite para restaurar tu base de datos. Esto reemplaza todos los datos actuales.",
|
||||
"migrationDownload": "Descargar migración",
|
||||
"migrationDownloadPgDesc": "Haz clic para descargar una base de datos SQLite .db creada a partir de tus datos de PostgreSQL, lista para ejecutar este panel en SQLite."
|
||||
"migrationDownloadPgDesc": "Haz clic para descargar una base de datos SQLite .db creada a partir de tus datos de PostgreSQL, lista para ejecutar este panel en SQLite.",
|
||||
"avg": "media",
|
||||
"peak": "pico",
|
||||
"free": "libre",
|
||||
"openSockets": "sockets abiertos",
|
||||
"throughputSub": "Total de la interfaz",
|
||||
"avgWindow": "Media del periodo",
|
||||
"healthWarm": "{list} — algo elevado",
|
||||
"healthCritical": "{list} — crítico",
|
||||
"panel": "Panel",
|
||||
"threads": "Hilos",
|
||||
"uptime": "Tiempo activo"
|
||||
},
|
||||
"inbounds": {
|
||||
"totalDownUp": "Subidas/Descargas Totales",
|
||||
|
||||
Loaded 3 of 30 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user