mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-05 05:00:06 +00:00
fix: block button
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"GrpcAuthFailed": "gRPC 认证失败",
|
"GrpcAuthFailed": "gRPC 认证失败",
|
||||||
"APITokenInvalid": "API 令牌无效",
|
"APITokenInvalid": "API 令牌无效",
|
||||||
"UserInvalid": "用户无效",
|
"UserInvalid": "用户无效",
|
||||||
"BlockByUser": "被用户封禁",
|
"BlockByUser": "被管理员封禁",
|
||||||
"BlockIdentifier": "封禁标识",
|
"BlockIdentifier": "封禁标识",
|
||||||
"UserId": "用户 ID",
|
"UserId": "用户 ID",
|
||||||
"ConnectedAt": "连接时间",
|
"ConnectedAt": "连接时间",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"GrpcAuthFailed": "gRPC 認證失敗",
|
"GrpcAuthFailed": "gRPC 認證失敗",
|
||||||
"APITokenInvalid": "API 令牌無效",
|
"APITokenInvalid": "API 令牌無效",
|
||||||
"UserInvalid": "使用者無效",
|
"UserInvalid": "使用者無效",
|
||||||
"BlockByUser": "被使用者封鎖",
|
"BlockByUser": "被管理员封鎖",
|
||||||
"BlockIdentifier": "封鎖標識符",
|
"BlockIdentifier": "封鎖標識符",
|
||||||
"UserId": "使用者 ID",
|
"UserId": "使用者 ID",
|
||||||
"ConnectedAt": "連接時間",
|
"ConnectedAt": "連接時間",
|
||||||
|
|||||||
@@ -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> = {
|
||||||
|
|||||||
Reference in New Issue
Block a user