feat(forum): add complete forum workflows
This commit is contained in:
1 parent
a254cbd3e9
commit
ee65fc7fd2
39 files changed
+3425
-4
No files matched your search
@@ -0,0 +1,27 @@
|
||||
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,
|
||||
})),
|
||||
}
|
||||
@@ -8,6 +8,7 @@ import { extensionsSection } from './extensions'
|
||||
import { themeInfoSection } from './theme-info'
|
||||
import { docsSection } from './docs'
|
||||
import { toolsSection } from './tools'
|
||||
import { forumSection } from './forum'
|
||||
|
||||
const SECTION_DEFAULT_CHILDREN = {
|
||||
global: 'global-common',
|
||||
@@ -18,6 +19,7 @@ const SECTION_DEFAULT_CHILDREN = {
|
||||
payment: 'payment-knowledge',
|
||||
extensions: 'extensions-system',
|
||||
tools: 'tools-import-export',
|
||||
forum: 'forum-general',
|
||||
'theme-info': 'theme-info-dashboard',
|
||||
docs: 'docs-dashboard',
|
||||
}
|
||||
@@ -43,6 +45,7 @@ export const ADMIN_SECTIONS = [
|
||||
attachSectionDefaultRoute(permissionsSection),
|
||||
attachSectionDefaultRoute(usersSection),
|
||||
attachSectionDefaultRoute(paymentSection),
|
||||
attachSectionDefaultRoute(forumSection),
|
||||
attachSectionDefaultRoute(extensionsSection),
|
||||
attachSectionDefaultRoute(toolsSection),
|
||||
attachSectionDefaultRoute(themeInfoSection),
|
||||
|
||||
Reference in new issue
Block a user