feat(api): enhance IP list management with new entry operations and improved error handling
- 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:
@@ -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: 'Неизвестно',
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user