mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 06:14:59 +00:00
88 files reformatted — zero logic changes: - All views, components, and JS modules wrapped to 80-char margin - Long property bindings, ternaries, and strings broken at natural points - Theme.qml theme definitions expanded to multi-line - StyleVariables tokens wrapped - Section comment rulers trimmed to 80 chars Trade-off: LOC increases from line wrapping (compact single-line properties now span 2-3 lines). Content unchanged. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
86 lines
2.0 KiB
JavaScript
86 lines
2.0 KiB
JavaScript
// ModeratorData.js — Mock data for ModeratorView
|
|
|
|
function defaultReportQueue() {
|
|
return [
|
|
{
|
|
id: 1, type: "spam",
|
|
user: "user42",
|
|
content: "Buy cheap watches...",
|
|
reported: "2 min ago"
|
|
},
|
|
{
|
|
id: 2, type: "abuse",
|
|
user: "troll99",
|
|
content: "Offensive language in post",
|
|
reported: "15 min ago"
|
|
},
|
|
{
|
|
id: 3, type: "off-topic",
|
|
user: "newbie1",
|
|
content: "Posted recipe in tech forum",
|
|
reported: "1 hour ago"
|
|
},
|
|
{
|
|
id: 4, type: "spam",
|
|
user: "bot_acct",
|
|
content: "Click here for free...",
|
|
reported: "3 hours ago"
|
|
}
|
|
]
|
|
}
|
|
|
|
function defaultRecentActions() {
|
|
return [
|
|
{
|
|
action: "Warned",
|
|
target: "user88",
|
|
reason: "Mild language",
|
|
time: "10 min ago"
|
|
},
|
|
{
|
|
action: "Muted",
|
|
target: "spammer3",
|
|
reason: "Spam (3rd offense)",
|
|
time: "1 hour ago"
|
|
},
|
|
{
|
|
action: "Approved",
|
|
target: "post #412",
|
|
reason: "False report",
|
|
time: "2 hours ago"
|
|
},
|
|
{
|
|
action: "Deleted",
|
|
target: "comment #89",
|
|
reason: "Hate speech",
|
|
time: "5 hours ago"
|
|
}
|
|
]
|
|
}
|
|
|
|
function buildStats(reportQueue, recentActions,
|
|
accentCyan) {
|
|
return [
|
|
{
|
|
label: "OPEN REPORTS",
|
|
value: reportQueue.length.toString(),
|
|
color: accentCyan
|
|
},
|
|
{
|
|
label: "ACTIONS TODAY",
|
|
value: recentActions.length.toString(),
|
|
color: "#6366F1"
|
|
},
|
|
{
|
|
label: "QUEUE TIME",
|
|
value: "~5m",
|
|
color: "#F59E0B"
|
|
},
|
|
{
|
|
label: "RESOLVED",
|
|
value: "23",
|
|
color: "#22C55E"
|
|
}
|
|
]
|
|
}
|