feat(navigation): hard-switch to Zibll navigation and Font Awesome 5

This commit is contained in:
kate522 committed 2026-08-18 20:46:21 +08:00
1 parent 3c3ddac8be
commit a0b84977a2
630 files changed
+101647 -11293

No files matched your search

@@ -1,7 +1,7 @@
export const commentSchema = {
key: 'post_list.comment',
title: '评论设置',
icon: 'fas fa-comment-dots',
icon: 'fa fas fa-comment-dots',
description: '配置评论区的排序、分页、权限、工具栏与互动方式。',
defaults: {
comment_order: 'asc',
@@ -33,7 +33,7 @@ export const commentSchema = {
{
key: 'display',
title: '评论展示',
icon: 'fas fa-comment',
icon: 'fa fas fa-comment',
fields: [
{ key: 'comment_order', label: '评论排序', type: 'radio', default: 'asc', options: [
{ label: '正序 (旧→新)', value: 'asc' },
@@ -54,7 +54,7 @@ export const commentSchema = {
{
key: 'permissions',
title: '评论设置',
icon: 'fas fa-lock',
icon: 'fa fas fa-lock',
fields: [
{ key: 'comment_close_comments', label: '关闭评论', type: 'switch', default: false },
{ key: 'comment_edit_window', label: '作者自助编辑时限 (分钟)', type: 'number', default: 10, min: 0, max: 1440 },
@@ -63,7 +63,7 @@ export const commentSchema = {
{
key: 'toolbar',
title: '评论工具栏',
icon: 'fas fa-toolbox',
icon: 'fa fas fa-wrench',
fields: [
{ key: 'comment_smilie', label: 'Emoji 表情', type: 'switch', default: true },
{ key: 'comment_code', label: '代码插入', type: 'switch', default: true },
@@ -74,7 +74,7 @@ export const commentSchema = {
{
key: 'interaction',
title: '互动功能',
icon: 'fas fa-heart',
icon: 'fa fas fa-heart',
fields: [
{ key: 'comment_hot_threshold', label: '神评点赞阈值', type: 'number', default: 10, min: 1, max: 999, help: '点赞数达到该值后显示「神评」徽章', dependsOn: { key: 'comment_like_s', value: true } },
{ key: 'comment_like_s', label: '评论点赞', type: 'switch', default: true },
@@ -93,7 +93,7 @@ export const commentSchema = {
{
key: 'text',
title: '文案配置',
icon: 'fas fa-font',
icon: 'fa fas fa-font',
fields: [
{ key: 'comment_empty_text', label: '空评论提示', type: 'input', default: '暂无评论,来做第一个评论的人吧~' },
{ key: 'comment_title', label: '评论区标题', type: 'input', default: '评论' },
@@ -1,7 +1,7 @@
export const featureSchema = {
key: 'post_list.feature',
title: '文章功能',
icon: 'fas fa-magic',
icon: 'fa fas fa-magic',
description: '配置文章页的互动功能开关。',
defaults: {
feature_pdf_export: false,
@@ -13,7 +13,7 @@ export const featureSchema = {
{
key: 'tools',
title: '工具功能',
icon: 'fas fa-tools',
icon: 'fa fas fa-wrench',
fields: [
{ key: 'feature_print', label: '打印文章', type: 'switch', default: true },
{ key: 'feature_word_count', label: '字数统计', type: 'switch', default: true },
@@ -1,7 +1,7 @@
export const filterSchema = {
key: 'post_list.filter',
title: '高级筛选',
icon: 'fas fa-filter',
icon: 'fa fas fa-filter',
description: '为文章列表配置筛选栏、排序方式和分类筛选功能。',
defaults: {
filter_enabled: false,
@@ -21,7 +21,7 @@ export const filterSchema = {
{
key: 'basic',
title: '筛选基础',
icon: 'fas fa-filter',
icon: 'fa fas fa-filter',
fields: [
{ key: 'filter_enabled', label: '启用筛选栏', type: 'switch', default: false },
{ key: 'custom_filter_show', label: '筛选显示页面', type: 'checkbox', default: ['cat', 'tag'], options: [{ label: '分类页', value: 'cat' }, { label: '标签页', value: 'tag' }], help: '选择在哪些页面显示筛选栏', dependsOn: { key: 'filter_enabled', value: true } },
@@ -34,7 +34,7 @@ export const filterSchema = {
{
key: 'ajax',
title: 'AJAX 筛选维度',
icon: 'fas fa-layer-group',
icon: 'fa fas fa-clone',
fields: [
{ key: 'filter_cat_show_cat', label: '分类页:显示分类筛选', type: 'switch', default: true },
{ key: 'filter_cat_show_tag', label: '分类页:显示标签筛选', type: 'switch', default: false },
@@ -45,7 +45,7 @@ export const filterSchema = {
{
key: 'custom_filter',
title: '自定义筛选维度',
icon: 'fas fa-sliders-h',
icon: 'fa fas fa-sliders-h',
fields: [
{
key: 'custom_filter',
@@ -75,7 +75,7 @@ export const filterSchema = {
{
key: 'cat_custom_filter',
title: '按分类绑定筛选',
icon: 'fas fa-object-group',
icon: 'fa fas fa-object-group',
fields: [
{
key: 'cat_custom_filter',
@@ -2,7 +2,7 @@
export const listSchema = {
key: 'post_list.list',
title: '文章列表',
icon: 'fas fa-list',
icon: 'fa fas fa-list',
description: '文章列表模式、UI、标签和翻页行为。',
defaults: {
list_orderby: 'modified',
@@ -26,12 +26,12 @@ export const listSchema = {
paging_ajax_s: '1',
paging_ajax_ias_s: true,
ias_max: 3,
ajax_trigger: '<i class="fa fa-angle-right"></i>加载更多',
ajax_trigger: '<i class="fa fas fa-angle-right"></i>加载更多',
ajax_nomore: '没有更多内容了',
},
groups: [
{
key: 'order', title: '默认排序与置顶', icon: 'fas fa-sort', fields: [
key: 'order', title: '默认排序与置顶', icon: 'fa fas fa-sort', fields: [
{ key: 'list_orderby', label: '默认排序方式', type: 'radio', default: 'modified', options: [
{ label: '发布时间', value: 'date' }, { label: '更新时间', value: 'modified' }, { label: 'WP默认', value: 'default' },
] },
@@ -44,7 +44,7 @@ export const listSchema = {
],
},
{
key: 'display', title: '列表显示', icon: 'fas fa-eye', fields: [
key: 'display', title: '列表显示', icon: 'fa fas fa-eye', fields: [
{ key: 'target_blank', label: '新窗口打开文章', type: 'switch', default: false },
{ key: 'item_heading_bold', label: '列表标题粗体显示', type: 'switch', default: false },
{ key: 'post_list_author', label: '显示文章作者', type: 'switch', default: true },
@@ -58,7 +58,7 @@ export const listSchema = {
],
},
{
key: 'layout', title: '列表模式与 UI', icon: 'fas fa-th-large', fields: [
key: 'layout', title: '列表模式与 UI', icon: 'fa fas fa-th-large', fields: [
{ key: 'list_show_type', label: '列表样式', type: 'radio', default: 'separate', options: [
{ label: '分离', value: 'separate' }, { label: '无间距', value: 'no_margin' },
] },
@@ -91,13 +91,13 @@ export const listSchema = {
],
},
{
key: 'paging', title: '列表翻页', icon: 'fas fa-ellipsis-h', fields: [
key: 'paging', title: '列表翻页', icon: 'fa fas fa-ellipsis-h', fields: [
{ key: 'paging_ajax_s', label: '列表翻页模式', type: 'radio', default: '1', options: [
{ label: 'AJAX 追加列表翻页', value: '1' }, { label: '数字翻页按钮', value: '0' },
] },
{ key: 'paging_ajax_ias_s', label: 'AJAX 自动加载', type: 'switch', default: true, dependsOn: { key: 'paging_ajax_s', value: '1' } },
{ key: 'ias_max', label: '自动加载页数', type: 'number', default: 3, min: 0, max: 10, dependsOn: { key: 'paging_ajax_s', value: '1' } },
{ key: 'ajax_trigger', label: '翻页按钮文字', type: 'textarea', default: '<i class="fa fa-angle-right"></i>加载更多' },
{ key: 'ajax_trigger', label: '翻页按钮文字', type: 'textarea', default: '<i class="fa fas fa-angle-right"></i>加载更多' },
{ key: 'ajax_nomore', label: '列表全部加载完毕文案', type: 'textarea', default: '没有更多内容了' },
],
},
@@ -1,7 +1,7 @@
export const pageSchema = {
key: 'post_list.page',
title: '文章页面',
icon: 'fas fa-file-alt',
icon: 'fa fas fa-file-alt',
description: '配置单篇文章页面的布局、目录树、图片灯箱、版权区和互动功能。',
defaults: {
post_toc_enabled: true,
@@ -58,7 +58,7 @@ export const pageSchema = {
{
key: 'navigation',
title: '文章导航',
icon: 'fas fa-compass',
icon: 'fa fas fa-compass',
fields: [
{ key: 'post_toc_enabled', label: '目录树导航', type: 'switch', default: true, help: '自动生成文章目录树' },
{ key: 'post_toc_depth', label: '目录深度', type: 'number', default: 3, min: 1, max: 6, dependsOn: { key: 'post_toc_enabled', value: true } },
@@ -86,7 +86,7 @@ export const pageSchema = {
{
key: 'cover',
title: '封面展示',
icon: 'fas fa-image',
icon: 'fa fas fa-image',
fields: [
{ key: 'post_article_image_cover', label: '图片封面', type: 'switch', default: true, help: '文章有特色图时自动展示封面' },
{ key: 'post_article_image_cover_scale', label: '封面高度比例(%)', type: 'number', default: 35, min: 10, max: 100, dependsOn: { key: 'post_article_image_cover', value: true } },
@@ -98,7 +98,7 @@ export const pageSchema = {
{
key: 'media',
title: '媒体功能',
icon: 'fas fa-photo-video',
icon: 'fa fas fa-image',
fields: [
{ key: 'post_lightbox', label: '图片灯箱', type: 'switch', default: true, help: '点击图片放大查看' },
{ key: 'post_lightbox_thumbs', label: '灯箱缩略图', type: 'switch', default: true, dependsOn: { key: 'post_lightbox', value: true }, help: '灯箱底部显示缩略图导航' },
@@ -111,7 +111,7 @@ export const pageSchema = {
{
key: 'related',
title: '相关推荐',
icon: 'fas fa-random',
icon: 'fa fas fa-random',
fields: [
{ key: 'post_related_s', label: '显示相关推荐', type: 'switch', default: true },
{ key: 'post_related_type', label: '展示样式', type: 'radio', default: 'img', options: [
@@ -135,7 +135,7 @@ export const pageSchema = {
{
key: 'interactions',
title: '互动功能',
icon: 'fas fa-heart',
icon: 'fa fas fa-heart',
fields: [
{ key: 'post_like_enabled', label: '点赞', type: 'switch', default: true },
{ key: 'post_favorite_enabled', label: '收藏', type: 'switch', default: true },
@@ -156,7 +156,7 @@ export const pageSchema = {
{
key: 'content',
title: '内容插入',
icon: 'fas fa-pen-square',
icon: 'fa fas fa-pen-square',
fields: [
{ key: 'post_front_content', label: '文章头部内容', type: 'textarea', default: '', help: '显示在所有文章正文前方(支持 HTML)' },
{ key: 'post_after_content', label: '文章底部内容', type: 'textarea', default: '', help: '显示在所有文章正文后方(支持 HTML)' },
@@ -165,7 +165,7 @@ export const pageSchema = {
{
key: 'yiyan',
title: '一言',
icon: 'fas fa-quote-left',
icon: 'fa fas fa-quote-left',
fields: [
{ key: 'post_yiyan_header', label: '文章头部一言', type: 'switch', default: false, help: '在文章标题下方显示一言' },
{ key: 'post_yiyan_footer', label: '文章底部一言', type: 'switch', default: false, help: '在文章内容底部显示一言' },
@@ -175,7 +175,7 @@ export const pageSchema = {
{
key: 'meta',
title: '默认数值',
icon: 'fas fa-chart-bar',
icon: 'fa fas fa-chart-bar',
fields: [
{ key: 'post_default_views_min', label: '默认浏览最小值', type: 'number', default: 20, min: 0, max: 9999 },
{ key: 'post_default_views_max', label: '默认浏览最大值', type: 'number', default: 50, min: 1, max: 9999 },
@@ -1,7 +1,7 @@
export const paySchema = {
key: 'post_list.pay',
title: '付费内容',
icon: 'fas fa-yen-sign',
icon: 'fa fas fa-yen-sign',
description: '配置文章付费阅读、下载功能和购买用户显示。',
defaults: {
post_pay_enable: false,
@@ -20,7 +20,7 @@ export const paySchema = {
{
key: 'basic',
title: '付费设置',
icon: 'fas fa-coins',
icon: 'fa fas fa-database',
fields: [
{ key: 'post_pay_enable', label: '启用付费内容', type: 'switch', default: false },
{ key: 'post_pay_price_default', label: '默认价格', type: 'number', default: 0, min: 0, max: 9999, dependsOn: { key: 'post_pay_enable', value: true } },
@@ -33,7 +33,7 @@ export const paySchema = {
{
key: 'download',
title: '下载设置',
icon: 'fas fa-download',
icon: 'fa fas fa-download',
fields: [
{ key: 'post_download_enable', label: '启用下载功能', type: 'switch', default: false },
{ key: 'post_download_remote_s', label: '远程文件下载', type: 'switch', default: false, dependsOn: { key: 'post_download_enable', value: true } },
@@ -1,7 +1,7 @@
export const shareSchema = {
key: 'post_list.share',
title: '分享设置',
icon: 'fas fa-share-alt',
icon: 'fa fas fa-share-alt',
description: '配置微信分享凭据、海报分享和社交分享选项。',
defaults: {
share_wechat_s: false,
@@ -18,7 +18,7 @@ export const shareSchema = {
{
key: 'wechat',
title: '微信分享',
icon: 'fab fa-weixin',
icon: 'fa fab fa-weixin',
fields: [
{ key: 'share_wechat_s', label: '启用微信分享', type: 'switch', default: false, help: '启用后文章页将支持微信 JSAPI 分享' },
{ key: 'share_wechat_appid', label: 'AppID', type: 'input', default: '', dependsOn: { key: 'share_wechat_s', value: true }, help: '微信公众号 AppID' },
@@ -29,7 +29,7 @@ export const shareSchema = {
{
key: 'poster',
title: '海报分享',
icon: 'fas fa-image',
icon: 'fa fas fa-image',
fields: [
{ key: 'share_img_compatible_s', label: '兼容模式', type: 'switch', default: false, help: '启用后使用兼容模式生成分享海报' },
{ key: 'share_img_byimg', label: '海报默认图', type: 'media', default: '', help: '海报分享使用的默认背景图' },
@@ -1,7 +1,7 @@
export const submitSchema = {
key: 'post_list.submit',
title: '前台投稿',
icon: 'fas fa-paper-plane',
icon: 'fa fas fa-paper-plane',
description: '配置前台投稿表单字段、审核流程、附件权限和封面策略。',
defaults: {
front_submit_enabled: true,
@@ -37,7 +37,7 @@ export const submitSchema = {
{
key: 'basic',
title: '基础配置',
icon: 'fas fa-cog',
icon: 'fa fas fa-cog',
fields: [
{ key: 'front_submit_enabled', label: '开启前台投稿', type: 'switch', default: true, help: '允许用户在前台提交文章' },
{ key: 'front_submit_roles', label: '允许投稿的角色', type: 'input', default: 'author,editor,administrator', dependsOn: { key: 'front_submit_enabled', value: true }, help: '逗号分隔角色标识' },
@@ -51,7 +51,7 @@ export const submitSchema = {
{
key: 'fields',
title: '表单字段',
icon: 'fas fa-list-alt',
icon: 'fa fas fa-list-alt',
fields: [
{ key: 'front_submit_title', label: '标题', type: 'switch', default: true, dependsOn: { key: 'front_submit_enabled', value: true } },
{ key: 'front_submit_content', label: '正文', type: 'switch', default: true, dependsOn: { key: 'front_submit_enabled', value: true } },
@@ -69,7 +69,7 @@ export const submitSchema = {
{
key: 'review',
title: '审核策略',
icon: 'fas fa-tasks',
icon: 'fa fas fa-tasks',
fields: [
{
key: 'front_submit_review_mode',
@@ -90,7 +90,7 @@ export const submitSchema = {
{
key: 'editor',
title: '编辑器设置',
icon: 'fas fa-edit',
icon: 'fa fas fa-edit',
fields: [
{
key: 'front_submit_editor_mode',
@@ -111,7 +111,7 @@ export const submitSchema = {
{
key: 'paid',
title: '付费投稿权限',
icon: 'fas fa-coins',
icon: 'fa fas fa-database',
fields: [
{ key: 'post_article_pay_free_s', label: '允许设置免费', type: 'switch', default: true, dependsOn: { key: 'front_submit_enabled', value: true } },
{ key: 'post_article_pay_price_min', label: '最低价格', type: 'number', default: 0, min: 0, max: 9999, help: '投稿可设置的最低付费金额', dependsOn: { key: 'front_submit_enabled', value: true } },
@@ -7,7 +7,7 @@ const spareThumbnailDefault = [{ img: `${themeRoot}/assets/img/thumbnail.svg` }]
export const thumbSchema = {
key: 'post_list.thumb',
title: '列表缩略图',
icon: 'fas fa-images',
icon: 'fa fas fa-image',
description: '缩略图获取优先级:文章特色图像 > 外链特色图像 > 文章首图 > 分类封面图 > 备用缩略图 > 懒加载预载图。',
defaults: {
list_thumb_slides_s: true,
@@ -23,7 +23,7 @@ export const thumbSchema = {
{
key: 'source',
title: '图片来源',
icon: 'fas fa-image',
icon: 'fa fas fa-image',
fields: [
{ key: 'list_thumb_slides_s', label: '幻灯片缩略图', type: 'switch', default: true, help: '允许设置幻灯片为列表缩略图' },
{ key: 'list_thumb_video_s', label: '视频缩略图', type: 'switch', default: true, help: '鼠标移动到列表上自动播放' },