Commit Graph

9 Commits

Author SHA1 Message Date
c0mrade 9a2aea038a chore: add uv package manager and ruff linter configuration
- Add pyproject.toml with uv and ruff configuration
- Pin Python version to 3.13 via .python-version
- Add Makefile commands: lint, format, fix
- Apply ruff formatting to entire codebase
- Remove unused imports (base64 in yookassa/simple_subscription)
- Update .gitignore for new config files
2026-01-24 17:45:27 +03:00
Egor 782d910f25 Add files via upload 2026-01-17 01:50:34 +03:00
PEDZEO 1a990bd776 Refactor settings handling in AdminBanSystem to improve response parsing
- Introduced a new helper function `_parse_setting_response` to streamline the parsing of settings responses from the API.
- Updated the `get_settings`, `get_setting`, `set_setting`, and `toggle_setting` endpoints to utilize the new parsing function, enhancing code readability and maintainability.
- Improved handling of settings data formats, allowing for both detailed metadata and simple values.
2026-01-16 21:04:48 +03:00
PEDZEO b0f83f3534 Новые вкладки в AdminBanSystem:
1. Traffic (Трафик) - статистика трафика, топ пользователей по трафику, последние нарушения
  2. Reports (Отчёты) - отчёты за период (6h, 12h, 24h, 48h, 72h), статистика активных пользователей и IP, топ нарушителей
  3. Settings (Настройки) - управление настройками системы банов, группировка по категориям, переключатели для bool, ввод для int
  4. Health (Здоровье) - статус системы (healthy/degraded/unhealthy), аптайм, статус компонентов
2026-01-16 20:51:28 +03:00
PEDZEO 723a49f1f1 Fix stats mapping: uptime from tcp_metrics, agents count from connected_nodes
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 19:25:20 +03:00
PEDZEO e31c9118b3 ● Готово! Исправил маппинг для нод и агентов. 2026-01-16 19:21:31 +03:00
PEDZEO 7ef416eff2 Implement logging for Ban System API checks and add endpoint for raw stats retrieval
- Added logging for Ban System API status checks, including whether the system is enabled and its configured URL.
- Introduced a new endpoint `/stats/raw` to fetch raw statistics from the Ban System API for debugging purposes.
- Enhanced logging to capture raw stats response for better monitoring.
2026-01-16 18:51:19 +03:00
PEDZEO 29d0190a05 Исправил маппинг полей. 2026-01-16 18:41:21 +03:00
PEDZEO b392a99f56 Интеграция системы мониторинга банов 2026-01-16 15:17:02 +03:00