feat : comment feature
This commit is contained in:
@@ -7,6 +7,8 @@ import { auditLog as auditLogTable, type AuditLogValue } from "@/db/schema";
|
||||
import { securityLog } from "@/lib/security/http";
|
||||
|
||||
export const AUDIT_ACTIONS = [
|
||||
"comment.hidden",
|
||||
"comment.restored",
|
||||
"guide.created",
|
||||
"guide.overview.saved",
|
||||
"guide.weapon.saved",
|
||||
@@ -40,6 +42,7 @@ export const AUDIT_ACTIONS = [
|
||||
] as const;
|
||||
|
||||
export const AUDIT_TARGET_TYPES = [
|
||||
"comment",
|
||||
"guide",
|
||||
"extra_section",
|
||||
"glossary_alias",
|
||||
@@ -173,6 +176,7 @@ export const AUDIT_TARGET_LABELS: Record<
|
||||
AuditTargetType,
|
||||
string
|
||||
> = {
|
||||
comment: "Comment",
|
||||
guide: "Guide",
|
||||
extra_section: "Extra section",
|
||||
glossary_alias: "Glossary",
|
||||
@@ -183,6 +187,8 @@ export const AUDIT_TARGET_LABELS: Record<
|
||||
};
|
||||
|
||||
export const AUDIT_ACTION_LABELS: Record<AuditAction, string> = {
|
||||
"comment.hidden": "ซ่อน Comment",
|
||||
"comment.restored": "กู้คืน Comment",
|
||||
"guide.created": "สร้าง Guide",
|
||||
"guide.overview.saved": "บันทึก Overview",
|
||||
"guide.weapon.saved": "บันทึก Weapons",
|
||||
|
||||
Reference in New Issue
Block a user