Redirection hosts ui

This commit is contained in:
Jamie Curnow
2025-09-25 18:00:00 +10:00
parent 9339626933
commit e36c1b99a5
14 changed files with 626 additions and 71 deletions

View File

@@ -1,4 +1,4 @@
import { IconBoltOff, IconDisc, IconUser } from "@tabler/icons-react";
import { IconArrowsCross, IconBolt, IconBoltOff, IconDisc, IconUser } from "@tabler/icons-react";
import type { AuditLog } from "src/api/backend";
import { DateTimeFormat, intl } from "src/locale";
@@ -10,6 +10,8 @@ const getEventValue = (event: AuditLog) => {
switch (event.objectType) {
case "user":
return event.meta?.name;
case "proxy-host":
case "redirection-host":
case "dead-host":
return event.meta?.domainNames?.join(", ") || "N/A";
case "stream":
@@ -37,6 +39,12 @@ const getIcon = (row: AuditLog) => {
case "user":
ico = <IconUser size={16} className={c} />;
break;
case "proxy-host":
ico = <IconBolt size={16} className={c} />;
break;
case "redirection-host":
ico = <IconArrowsCross size={16} className={c} />;
break;
case "dead-host":
ico = <IconBoltOff size={16} className={c} />;
break;