feat : comment feature
CI / Verify (push) Successful in 2m30s
CI / Build immutable images and deploy (push) Successful in 3m9s

This commit is contained in:
2026-10-08 01:40:08 +07:00 Unverified
parent 8c8815cda5
commit 5812d99715
65 changed files with 27013 additions and 10 deletions
+6
View File
@@ -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",