fix(ui): подключить фильтры статистики с проверкой срезов

This commit is contained in:
Denozordec committed 2026-09-14 22:27:12 +07:00
1 parent 52af82af42
commit 4fd844f977
5 files changed
+72 -37

No files matched your search

+14 -8
View File
@@ -1,46 +1,52 @@
import type { FilterFieldConfig } from "@/components/reui/filters"
import type { FilterField } from "@/components/reui/filters/filters-types"
export const STATISTICS_FILTER_FIELDS: FilterFieldConfig[] = [
export const STATISTICS_FILTER_FIELDS: FilterField[] = [
{
key: "country",
id: "country",
label: "Страна",
type: "text",
placeholder: "ISO, напр. US",
defaultOperator: "is",
operators: [{ value: "is", label: "равно" }],
},
{
key: "service",
id: "service",
label: "Сервис",
type: "text",
placeholder: "https, dns…",
defaultOperator: "is",
operators: [{ value: "is", label: "равно" }],
},
{
key: "asn",
id: "asn",
label: "ASN",
type: "text",
placeholder: "номер ASN",
defaultOperator: "is",
operators: [{ value: "is", label: "равно" }],
},
{
key: "serverId",
id: "serverId",
label: "Сервер",
type: "text",
placeholder: "id сервера",
defaultOperator: "is",
operators: [{ value: "is", label: "равно" }],
},
{
key: "userId",
id: "userId",
label: "Пользователь",
type: "text",
placeholder: "id пользователя",
defaultOperator: "is",
operators: [{ value: "is", label: "равно" }],
},
{
key: "iface",
id: "iface",
label: "Интерфейс",
type: "text",
placeholder: "ether1",
defaultOperator: "is",
operators: [{ value: "is", label: "равно" }],
},
]