fix: block button

This commit is contained in:
naiba
2024-12-23 19:47:57 +08:00
parent 5bd24668c7
commit 73bb668c83
5 changed files with 5 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ export function HeaderBlockButtonGroup<E, U>({
<> <>
<AlertDialog> <AlertDialog>
<AlertDialogTrigger asChild> <AlertDialogTrigger asChild>
<IconButton variant="destructive" icon="trash" /> <IconButton variant="destructive" icon="ban" />
</AlertDialogTrigger> </AlertDialogTrigger>
<AlertDialogContent className="sm:max-w-lg"> <AlertDialogContent className="sm:max-w-lg">
<AlertDialogHeader> <AlertDialogHeader>

View File

@@ -168,7 +168,7 @@
"GrpcAuthFailed": "gRPC authentication failed", "GrpcAuthFailed": "gRPC authentication failed",
"APITokenInvalid": "API token is invalid", "APITokenInvalid": "API token is invalid",
"UserInvalid": "User is invalid", "UserInvalid": "User is invalid",
"BlockByUser": "Blocked by user", "BlockByUser": "Blocked by admin",
"BlockIdentifier": "Block identifier", "BlockIdentifier": "Block identifier",
"UserId": "User ID", "UserId": "User ID",
"ConnectedAt": "Connected at", "ConnectedAt": "Connected at",

View File

@@ -168,7 +168,7 @@
"GrpcAuthFailed": "gRPC 认证失败", "GrpcAuthFailed": "gRPC 认证失败",
"APITokenInvalid": "API 令牌无效", "APITokenInvalid": "API 令牌无效",
"UserInvalid": "用户无效", "UserInvalid": "用户无效",
"BlockByUser": "被用户封禁", "BlockByUser": "被管理员封禁",
"BlockIdentifier": "封禁标识", "BlockIdentifier": "封禁标识",
"UserId": "用户 ID", "UserId": "用户 ID",
"ConnectedAt": "连接时间", "ConnectedAt": "连接时间",

View File

@@ -168,7 +168,7 @@
"GrpcAuthFailed": "gRPC 認證失敗", "GrpcAuthFailed": "gRPC 認證失敗",
"APITokenInvalid": "API 令牌無效", "APITokenInvalid": "API 令牌無效",
"UserInvalid": "使用者無效", "UserInvalid": "使用者無效",
"BlockByUser": "被使用者封鎖", "BlockByUser": "被管理员封鎖",
"BlockIdentifier": "封鎖標識符", "BlockIdentifier": "封鎖標識符",
"UserId": "使用者 ID", "UserId": "使用者 ID",
"ConnectedAt": "連接時間", "ConnectedAt": "連接時間",

View File

@@ -15,6 +15,7 @@ export const wafBlockReasons: Record<number, string> = {
1: i18n.t("LoginFailed"), 1: i18n.t("LoginFailed"),
2: i18n.t("BruteForceAttackingToken"), 2: i18n.t("BruteForceAttackingToken"),
3: i18n.t("BruteForceAttackingAgentSecret"), 3: i18n.t("BruteForceAttackingAgentSecret"),
4: i18n.t("BlockByUser"),
} }
export const wafBlockIdentifiers: Record<number, string> = { export const wafBlockIdentifiers: Record<number, string> = {