fix(admin): make forum settings pages auditable

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-11-11 14:41:02 +08:00
1 parent 374de05059
commit 51d5b8a2a1
3 files changed
+118 -55

No files matched your search

+65 -19
View File
@@ -1,27 +1,73 @@
import { renderFaIcon, schemaPage } from './helpers'
const pages = [
['general', '全局设置'],
['home', '首页与列表'],
['publishing', '发布与审核'],
['access', '权限与版主'],
['replies', '回复与互动'],
['payment', '付费与积分'],
['urls', '链接设置'],
]
export const forumSection = {
key: 'forum',
label: '社区论坛',
icon: renderFaIcon('fa fas fa-comments'),
route: '/forum',
children: pages.map(([key, label]) => schemaPage({
key: `forum-${key}`,
name: `Forum_${key}`,
label,
title: label,
route: `/forum/${key}`,
canonicalDomain: 'forum',
section: key,
})),
children: [
schemaPage({
key: 'forum-general',
name: 'Forum_general',
label: '全局设置',
title: '全局设置',
route: '/forum/general',
canonicalDomain: 'forum',
section: 'general',
}),
schemaPage({
key: 'forum-home',
name: 'Forum_home',
label: '首页与列表',
title: '首页与列表',
route: '/forum/home',
canonicalDomain: 'forum',
section: 'home',
}),
schemaPage({
key: 'forum-publishing',
name: 'Forum_publishing',
label: '发布与审核',
title: '发布与审核',
route: '/forum/publishing',
canonicalDomain: 'forum',
section: 'publishing',
}),
schemaPage({
key: 'forum-access',
name: 'Forum_access',
label: '权限与版主',
title: '权限与版主',
route: '/forum/access',
canonicalDomain: 'forum',
section: 'access',
}),
schemaPage({
key: 'forum-replies',
name: 'Forum_replies',
label: '回复与互动',
title: '回复与互动',
route: '/forum/replies',
canonicalDomain: 'forum',
section: 'replies',
}),
schemaPage({
key: 'forum-payment',
name: 'Forum_payment',
label: '付费与积分',
title: '付费与积分',
route: '/forum/payment',
canonicalDomain: 'forum',
section: 'payment',
}),
schemaPage({
key: 'forum-urls',
name: 'Forum_urls',
label: '链接设置',
title: '链接设置',
route: '/forum/urls',
canonicalDomain: 'forum',
section: 'urls',
}),
],
}