mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix: add i18n keys for Traffic tab, prevent sort mutation
- Add traffic tab/section locale keys to ru, en, zh, fa - Use spread copy before .sort() to avoid mutating React Query cache
This commit is contained in:
@@ -1493,9 +1493,19 @@
|
||||
"tabs": {
|
||||
"overview": "Overview",
|
||||
"nodes": "Nodes",
|
||||
"traffic": "Traffic",
|
||||
"squads": "Squads",
|
||||
"sync": "Sync"
|
||||
},
|
||||
"traffic": {
|
||||
"noData": "No traffic data available",
|
||||
"totalDownload": "Download",
|
||||
"totalUpload": "Upload",
|
||||
"totalTraffic": "Total",
|
||||
"online": "online",
|
||||
"inbounds": "Inbounds",
|
||||
"outbounds": "Outbounds"
|
||||
},
|
||||
"overview": {
|
||||
"system": "System",
|
||||
"usersOnline": "Online",
|
||||
|
||||
@@ -2755,9 +2755,19 @@
|
||||
"tabs": {
|
||||
"overview": "نمای کلی",
|
||||
"nodes": "گرهها",
|
||||
"traffic": "ترافیک",
|
||||
"squads": "گروهها",
|
||||
"sync": "همگامسازی"
|
||||
},
|
||||
"traffic": {
|
||||
"noData": "داده ترافیکی موجود نیست",
|
||||
"totalDownload": "دانلود",
|
||||
"totalUpload": "آپلود",
|
||||
"totalTraffic": "مجموع",
|
||||
"online": "آنلاین",
|
||||
"inbounds": "ورودیها",
|
||||
"outbounds": "خروجیها"
|
||||
},
|
||||
"nodes": {
|
||||
"confirmRestartAll": "آیا مطمئنید میخواهید همه گرهها را راهاندازی مجدد کنید؟",
|
||||
"disable": "غیرفعال",
|
||||
|
||||
@@ -1514,9 +1514,19 @@
|
||||
"tabs": {
|
||||
"overview": "Обзор",
|
||||
"nodes": "Ноды",
|
||||
"traffic": "Трафик",
|
||||
"squads": "Сквады",
|
||||
"sync": "Синхронизация"
|
||||
},
|
||||
"traffic": {
|
||||
"noData": "Нет данных о трафике",
|
||||
"totalDownload": "Загрузка",
|
||||
"totalUpload": "Отдача",
|
||||
"totalTraffic": "Всего",
|
||||
"online": "онлайн",
|
||||
"inbounds": "Inbounds",
|
||||
"outbounds": "Outbounds"
|
||||
},
|
||||
"overview": {
|
||||
"system": "Система",
|
||||
"usersOnline": "Онлайн",
|
||||
|
||||
@@ -2763,9 +2763,19 @@
|
||||
"tabs": {
|
||||
"overview": "概览",
|
||||
"nodes": "节点",
|
||||
"traffic": "流量",
|
||||
"squads": "小队",
|
||||
"sync": "同步"
|
||||
},
|
||||
"traffic": {
|
||||
"noData": "暂无流量数据",
|
||||
"totalDownload": "下载",
|
||||
"totalUpload": "上传",
|
||||
"totalTraffic": "总计",
|
||||
"online": "在线",
|
||||
"inbounds": "入站",
|
||||
"outbounds": "出站"
|
||||
},
|
||||
"nodes": {
|
||||
"confirmRestartAll": "确定要重启所有节点吗?",
|
||||
"disable": "禁用",
|
||||
|
||||
@@ -928,7 +928,7 @@ function TrafficTab({ data, isLoading, onRefresh }: TrafficTabProps) {
|
||||
<p className="mb-2 text-xs font-medium text-dark-400">
|
||||
{t('admin.remnawave.traffic.inbounds', 'Inbounds')}
|
||||
</p>
|
||||
{node.inbounds
|
||||
{[...node.inbounds]
|
||||
.sort((a, b) => b.totalBytes - a.totalBytes)
|
||||
.map((ib) => (
|
||||
<div
|
||||
@@ -953,7 +953,7 @@ function TrafficTab({ data, isLoading, onRefresh }: TrafficTabProps) {
|
||||
<p className="mb-2 text-xs font-medium text-dark-400">
|
||||
{t('admin.remnawave.traffic.outbounds', 'Outbounds')}
|
||||
</p>
|
||||
{node.outbounds
|
||||
{[...node.outbounds]
|
||||
.sort((a, b) => b.totalBytes - a.totalBytes)
|
||||
.map((ob) => (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user