导入 AKSRT 主题开发源码
This commit is contained in:
1 parent
9681dd3d48
commit
1268a55dd0
595 files changed
+127705
No files matched your search
@@ -0,0 +1,64 @@
|
||||
export const otherSchema = {
|
||||
key: 'forum.other',
|
||||
title: '其它设置',
|
||||
icon: 'fas fa-cog',
|
||||
description: '投票、版主申请说明、标题字数限制和 URL 别名配置。',
|
||||
defaults: {
|
||||
bbs_vote_number_type: 'percent',
|
||||
bbs_vote_max: 8,
|
||||
bbs_apply_moderator_desc: '欢迎有热情的用户申请成为版主,协助管理社区秩序。',
|
||||
bbs_term_thumb: '',
|
||||
bbs_post_lists_hide_pay_s: false,
|
||||
bbs_post_title_strlen_limit: 30,
|
||||
bbs_t_placeholder: '请输入标题',
|
||||
bbs_c_placeholder: '请输入内容',
|
||||
bbs_rewrite_suffix_html_s: false,
|
||||
bbs_plate_rewrite_slug: 'board',
|
||||
bbs_posts_rewrite_slug: 'topic',
|
||||
bbs_posts_edit_rewrite_slug: 'topic-edit',
|
||||
bbs_posts_show_in_rest_s: false,
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
key: 'vote',
|
||||
title: '投票',
|
||||
icon: 'fas fa-poll',
|
||||
fields: [
|
||||
{ key: 'bbs_vote_number_type', label: '投票显示', type: 'select', default: 'percent', options: [{ label: '百分比', value: 'percent' }, { label: '票数', value: 'number' }] },
|
||||
{ key: 'bbs_vote_max', label: '选项上限', type: 'number', default: 8, min: 2, max: 20 },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'moderator_apply',
|
||||
title: '版主申请',
|
||||
icon: 'fas fa-user-plus',
|
||||
fields: [
|
||||
{ key: 'bbs_apply_moderator_desc', label: '申请说明', type: 'textarea', default: '欢迎有热情的用户申请成为版主,协助管理社区秩序。' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'misc',
|
||||
title: '杂项',
|
||||
icon: 'fas fa-sliders-h',
|
||||
fields: [
|
||||
{ key: 'bbs_term_thumb', label: '标签默认缩略图', type: 'media', default: '' },
|
||||
{ key: 'bbs_post_lists_hide_pay_s', label: '列表隐藏付费标记', type: 'switch', default: false },
|
||||
{ key: 'bbs_post_title_strlen_limit', label: '标题字数限制', type: 'number', default: 30, min: 5, max: 100, help: '最小 5,最大 100' },
|
||||
{ key: 'bbs_t_placeholder', label: '标题占位符', type: 'input', default: '请输入标题' },
|
||||
{ key: 'bbs_c_placeholder', label: '内容占位符', type: 'input', default: '请输入内容' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'url',
|
||||
title: 'URL / 别名',
|
||||
icon: 'fas fa-link',
|
||||
fields: [
|
||||
{ key: 'bbs_rewrite_suffix_html_s', label: '.html 后缀', type: 'switch', default: false },
|
||||
{ key: 'bbs_plate_rewrite_slug', label: '版块别名', type: 'input', default: 'board' },
|
||||
{ key: 'bbs_posts_rewrite_slug', label: '帖子别名', type: 'input', default: 'topic' },
|
||||
{ key: 'bbs_posts_edit_rewrite_slug', label: '编辑别名', type: 'input', default: 'topic-edit' },
|
||||
{ key: 'bbs_posts_show_in_rest_s', label: '古腾堡编辑器', type: 'switch', default: false, help: '开启后帖子可使用 Gutenberg' },
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in new issue
Block a user