feat(api): enhance IP list management with new entry operations and improved error handling
Build and Push EvoFirewall Docker Image / build-and-push (push) Successful in 1m50s
Build and Push EvoFirewall Docker Image / create-release (push) Skipped

- Added endpoints for adding and deleting entries in IP lists.
- Refactored list creation logic to handle manual list types more effectively.
- Updated refresh logic to rebuild manual list entries.
- Improved error handling for entry operations to ensure data integrity.
- Enhanced response structure for list detail retrieval.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-07-20 23:01:23 +07:00
co-authored by Cursor
parent 7f0c1009de
commit 3f7672ab7c
11 changed files with 805 additions and 205 deletions
+13 -5
View File
@@ -26,9 +26,13 @@ const STATUS_VARIANT: Record<string, BadgeVariant> = {
revoked: 'secondary',
disabled: 'secondary',
static: 'secondary',
domains: 'info-light',
domains: 'secondary',
manual: 'secondary',
json_url: 'info-light',
evobgp_community: 'info-light',
ip: 'info-light',
cidr: 'secondary',
hostname: 'warning-light',
unknown: 'outline',
}
@@ -63,10 +67,14 @@ const STATUS_LABELS: Record<string, string> = {
degraded: 'Slow',
down: 'Down',
expired: 'Истёк',
static: 'static',
domains: 'domains',
json_url: 'json_url',
evobgp_community: 'evobgp_community',
static: 'Ручной',
domains: 'Ручной',
manual: 'Ручной',
json_url: 'JSON по URL',
evobgp_community: 'EvoBGP community',
ip: 'IP',
cidr: 'CIDR',
hostname: 'Домен',
unknown: 'Неизвестно',
}