Add traffic, reports, settings, and health features to ban system admin panel

- Introduced new interfaces for traffic, reports, settings, and health responses in the ban system API.
- Implemented API calls for fetching traffic statistics, top users, settings management, and health status.
- Enhanced the AdminBanSystem component to display traffic statistics, recent violations, report summaries, and system health.
- Updated localization files to include new keys for traffic, reports, settings, and health sections.
This commit is contained in:
PEDZEO
2026-01-16 20:52:23 +03:00
parent 246c51d642
commit 5de8a2e576
4 changed files with 654 additions and 5 deletions

View File

@@ -18,7 +18,8 @@
"and": "и",
"edit": "Редактировать",
"delete": "Удалить",
"currency": "₽"
"currency": "₽",
"refresh": "Обновить"
},
"nav": {
"dashboard": "Главная",
@@ -758,7 +759,11 @@
"punishments": "Баны",
"nodes": "Ноды",
"agents": "Агенты",
"violations": "Нарушения"
"violations": "Нарушения",
"traffic": "Трафик",
"reports": "Отчёты",
"settings": "Настройки",
"health": "Здоровье"
},
"stats": {
"activeUsers": "Активных пользователей",
@@ -939,6 +944,45 @@
"noViolations": "Нарушений не обнаружено",
"yes": "Да",
"no": "Нет"
},
"traffic": {
"title": "Статистика трафика",
"enabled": "Мониторинг трафика",
"topUsers": "Топ по трафику",
"username": "Пользователь",
"bytesTotal": "Всего",
"bytesLimit": "Лимит",
"status": "Статус",
"overLimit": "Превышен",
"ok": "OK",
"recentViolations": "Последние нарушения"
},
"reports": {
"title": "Отчёты за период",
"period": "Период",
"currentUsers": "Активных пользователей",
"currentIps": "Уникальных IP",
"topViolators": "Топ нарушителей",
"username": "Пользователь",
"count": "Нарушений"
},
"settings": {
"title": "Настройки системы",
"general": "Общие",
"limits": "Лимиты",
"notifications": "Уведомления",
"whitelist": "Белый список",
"saved": "Настройка сохранена",
"error": "Ошибка сохранения"
},
"health": {
"title": "Состояние системы",
"systemStatus": "Статус системы",
"healthy": "Здорова",
"degraded": "Деградация",
"unhealthy": "Проблема",
"components": "Компоненты",
"uptime": "Аптайм"
}
},
"profile": {