feat: add traffic abuse risk assessment with color gradation

Add threshold inputs (total GB/day, per-node GB/day) to admin traffic
usage page. When set, rows get background color gradation (green to red)
and node cells get text color (blue to red) based on threshold ratios.
Conditional Risk column shows composite risk badge with level indicator.
7 i18n keys added across all 4 locales (ru, en, zh, fa).
This commit is contained in:
Fringg
2026-02-07 12:41:34 +03:00
parent 90b38e3ef2
commit a6507b2cfe
5 changed files with 309 additions and 54 deletions

View File

@@ -696,7 +696,14 @@
"statusDisabled": "已禁用",
"customDates": "自定义日期",
"dateFrom": "从",
"dateTo": "到"
"dateTo": "到",
"totalThreshold": "总流量GB/天",
"nodeThreshold": "节点GB/天",
"risk": "风险",
"riskLow": "低",
"riskMedium": "中",
"riskHigh": "高",
"riskCritical": "严重"
},
"paymentMethods": {
"title": "支付方法",