feat(Moderation): implement moderation reports feature

- Added moderationRouter to handle moderation-related API routes.
- Introduced new methods in AdminController for fetching all regions, region types, and creating regions.
- Enhanced adminRouter with routes for moderation reports and status updates.
- Updated navigationController to include moderation reports in the admin menu.
- Implemented frontend components for reporting messages in the forum and managing moderation reports.
- Added internationalization support for moderation-related texts in multiple languages.
This commit is contained in:
Torsten Schulz (local)
2026-04-27 14:52:19 +02:00
parent aadae9c05f
commit 5b151c4770
36 changed files with 1162 additions and 17 deletions

View File

@@ -309,6 +309,46 @@
"error": "Cleanup failed."
}
},
"map": {
"title": "Falukant Map Editor (Regions)",
"description": "Draw rectangles on the Falukant map and assign them to regions.",
"tabs": {
"regions": "Positions",
"distances": "Distances"
},
"regionList": "Regions",
"noCoords": "No coordinates set",
"currentRect": "Current rectangle",
"hintDraw": "Select a region and drag a rectangle on the map to set its position.",
"saveAll": "Save all changed regions",
"createRegion": {
"title": "Create new region",
"type": "Region type",
"selectType": "Select type",
"parent": "Parent region",
"selectParent": "Select parent",
"noParent": "— no parent —",
"name": "Name",
"create": "Create region",
"creating": "Creating…",
"error": "Could not create region."
},
"connectionsTitle": "Connections (region_distance)",
"source": "From",
"target": "To",
"selectSource": "Select source",
"selectTarget": "Select target",
"mode": "Transport mode",
"modeLand": "Land",
"modeWater": "Water",
"modeAir": "Air",
"distance": "Distance",
"saveConnection": "Save connection",
"pickOnMap": "Pick on map",
"errorSaveConnection": "Could not save the connection.",
"errorDeleteConnection": "Could not delete the connection.",
"confirmDeleteConnection": "Delete connection?"
},
"createNPC": {
"title": "Create NPCs",
"region": "City",
@@ -485,6 +525,29 @@
"event": "Event"
}
}
},
"moderationReports": {
"title": "[Admin] - Moderation Reports",
"intro": "Review reported content, update status, and document moderation notes.",
"statusFilter": "Status filter",
"reload": "Reload",
"empty": "No reports found.",
"target": "Target",
"reason": "Reason",
"reporter": "Reported by",
"createdAt": "Created at",
"actions": "Actions",
"notePlaceholder": "Moderation note",
"apply": "Apply status",
"applySuccess": "Status was updated.",
"applyError": "Status could not be updated.",
"loadError": "Reports could not be loaded.",
"status": {
"open": "Open",
"in_review": "In review",
"resolved": "Resolved",
"rejected": "Rejected"
}
}
}
}

View File

@@ -178,6 +178,7 @@
"adminUsers": "Users",
"adminUserStatistics": "User statistics",
"adminContacts": "Contact requests",
"adminModerationReports": "Moderation reports",
"adminUserRights": "Rights",
"adminForums": "Forum administration",
"adminChatRooms": "Chat rooms",

View File

@@ -66,6 +66,7 @@
},
"m-administration": {
"contactrequests": "Contact requests",
"moderationReports": "Moderation reports",
"users": "Users",
"userrights": "User rights",
"m-users": {

View File

@@ -255,7 +255,12 @@
"last": "Last page",
"page": "Page <<page>> of <<of>>"
},
"createNewMesssage": "Send reply"
"createNewMesssage": "Send reply",
"reportAction": "Report",
"reportPrompt": "Short report reason (e.g. spam, abuse, violence):",
"reportReasonTooShort": "Please enter at least 3 characters as reason.",
"reportSubmitted": "Report was sent to moderation.",
"reportError": "Report could not be sent."
},
"friendship": {
"error": {