1
0
mirror of https://github.com/NginxProxyManager/nginx-proxy-manager.git synced 2025-11-01 05:31:05 +03:00

Streams polish

This commit is contained in:
Jamie Curnow
2025-09-25 00:14:00 +10:00
parent 100a7e3ff8
commit 9339626933
5 changed files with 62 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
import { IconBoltOff, IconUser } from "@tabler/icons-react";
import { IconBoltOff, IconDisc, IconUser } from "@tabler/icons-react";
import type { AuditLog } from "src/api/backend";
import { DateTimeFormat, intl } from "src/locale";
@@ -12,6 +12,8 @@ const getEventValue = (event: AuditLog) => {
return event.meta?.name;
case "dead-host":
return event.meta?.domainNames?.join(", ") || "N/A";
case "stream":
return event.meta?.incomingPort || "N/A";
default:
return `UNKNOWN EVENT TYPE: ${event.objectType}`;
}
@@ -38,6 +40,9 @@ const getIcon = (row: AuditLog) => {
case "dead-host":
ico = <IconBoltOff size={16} className={c} />;
break;
case "stream":
ico = <IconDisc size={16} className={c} />;
break;
}
return ico;