feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
This commit is contained in:
1 parent
3c3ddac8be
commit
a0b84977a2
630 files changed
+101647
-11293
No files matched your search
@@ -1,7 +1,7 @@
|
||||
export const codeHighlightSchema = {
|
||||
key: 'global.code-highlight',
|
||||
title: '代码高亮',
|
||||
icon: 'fas fa-code',
|
||||
icon: 'fa fas fa-code',
|
||||
description: '代码块语法高亮主题、行号、最大高度等配置。',
|
||||
defaults: {
|
||||
highlight_kg: true,
|
||||
@@ -15,7 +15,7 @@ export const codeHighlightSchema = {
|
||||
{
|
||||
key: 'basic',
|
||||
title: '代码高亮设置',
|
||||
icon: 'fas fa-highlighter',
|
||||
icon: 'fa fas fa-pen',
|
||||
fields: [
|
||||
{ key: 'highlight_kg', label: '代码高亮开关', type: 'switch', default: true },
|
||||
{ key: 'highlight_hh', label: '显示行号', type: 'switch', default: false },
|
||||
@@ -26,7 +26,7 @@ export const codeHighlightSchema = {
|
||||
{
|
||||
key: 'theme',
|
||||
title: '主题设置',
|
||||
icon: 'fas fa-palette',
|
||||
icon: 'fa fas fa-paint-brush',
|
||||
fields: [
|
||||
{
|
||||
key: 'highlight_zt',
|
||||
|
||||
@@ -6,7 +6,7 @@ const defaultThumbnail = themeRoot ? `${themeRoot}/assets/img/thumbnail.svg` : '
|
||||
export const commonSchema = {
|
||||
key: 'global.common',
|
||||
title: '常用功能',
|
||||
icon: 'fas fa-cog',
|
||||
icon: 'fa fas fa-cog',
|
||||
description: '管理站点常用开关、懒加载与备案信息等基础配置。',
|
||||
defaults: {
|
||||
lazy_posts_thumb: true,
|
||||
@@ -27,7 +27,7 @@ export const commonSchema = {
|
||||
{
|
||||
key: 'performance',
|
||||
title: '性能优化',
|
||||
icon: 'fas fa-tachometer-alt',
|
||||
icon: 'fa fas fa-tachometer-alt',
|
||||
fields: [
|
||||
{ key: 'lazy_posts_thumb', label: '文章缩略图懒加载', type: 'switch', default: true, help: '滚动到图像附近时再加载真实图片。' },
|
||||
{
|
||||
@@ -47,7 +47,7 @@ export const commonSchema = {
|
||||
{
|
||||
key: 'lazyload-scope',
|
||||
title: '懒加载范围',
|
||||
icon: 'fas fa-layer-group',
|
||||
icon: 'fa fas fa-clone',
|
||||
fields: [
|
||||
{ key: 'lazy_avatar', label: '头像懒加载', type: 'switch', default: true },
|
||||
{ key: 'lazy_posts_content', label: '文章内容图片懒加载', type: 'switch', default: false },
|
||||
@@ -61,7 +61,7 @@ export const commonSchema = {
|
||||
{
|
||||
key: 'filing',
|
||||
title: '备案信息',
|
||||
icon: 'fas fa-shield-alt',
|
||||
icon: 'fa fas fa-shield-alt',
|
||||
fields: [
|
||||
{ key: 'icp_filing', label: 'ICP 备案号', type: 'input', placeholder: '例如:京ICP备12345678号', help: '显示在页脚的备案信息' },
|
||||
{ key: 'police_filing', label: '公安备案号', type: 'input', placeholder: '例如:公网安备11000000000000号', help: '显示在页脚的备案信息' },
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const customCodeSchema = {
|
||||
key: 'global.custom-code',
|
||||
title: '自定义代码',
|
||||
icon: 'fas fa-code',
|
||||
icon: 'fa fas fa-code',
|
||||
description: '自定义 CSS、JS 代码注入。',
|
||||
defaults: {
|
||||
custom_css: '',
|
||||
@@ -13,7 +13,7 @@ export const customCodeSchema = {
|
||||
{
|
||||
key: 'css',
|
||||
title: '自定义 CSS',
|
||||
icon: 'fab fa-css3-alt',
|
||||
icon: 'fa fab fa-css3',
|
||||
fields: [
|
||||
{ key: 'custom_css', label: '自定义 CSS', type: 'code', language: 'css', placeholder: '/* 在此输入自定义 CSS */', rows: 10, help: '将在页面 <head> 中加载' },
|
||||
],
|
||||
@@ -21,7 +21,7 @@ export const customCodeSchema = {
|
||||
{
|
||||
key: 'code',
|
||||
title: '头部 & 底部代码',
|
||||
icon: 'fas fa-code',
|
||||
icon: 'fa fas fa-code',
|
||||
fields: [
|
||||
{ key: 'head_code', label: '头部 HTML 代码', type: 'code', placeholder: '<!-- 支持 meta/link/style/script 等任意 HTML -->', rows: 6, help: '在 <head> 中输出,支持 meta/link/style/script 等任意 HTML' },
|
||||
{ key: 'foot_code', label: '底部 HTML 代码', type: 'code', placeholder: '<!-- 在 </body> 前输出 -->', rows: 6, help: '在页面底部 </body> 前输出,支持任意 HTML' },
|
||||
@@ -30,7 +30,7 @@ export const customCodeSchema = {
|
||||
{
|
||||
key: 'stats',
|
||||
title: '统计代码',
|
||||
icon: 'fas fa-chart-bar',
|
||||
icon: 'fa fas fa-chart-bar',
|
||||
fields: [
|
||||
{ key: 'trackcode', label: '统计代码', type: 'code', placeholder: '<!-- 百度统计 / GA / CNZZ / 51la -->', rows: 6, help: '百度统计、Google Analytics、CNZZ、51la 等统计代码,自动在 head 中输出' },
|
||||
],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const emailSchema = {
|
||||
key: 'global.email',
|
||||
title: '邮件配置',
|
||||
icon: 'fas fa-envelope',
|
||||
icon: 'fa fas fa-envelope',
|
||||
description: 'SMTP 发信配置、邮件事件开关与模板自定义。',
|
||||
defaults: {
|
||||
email_footer_text: '',
|
||||
@@ -19,7 +19,7 @@ export const emailSchema = {
|
||||
{
|
||||
key: 'global',
|
||||
title: '全局设置',
|
||||
icon: 'fas fa-cog',
|
||||
icon: 'fa fas fa-cog',
|
||||
fields: [
|
||||
{ key: 'email_footer_text', label: '邮件页脚文字', type: 'textarea', rows: 2, placeholder: '留空则使用站点名称', help: '附加在每封邮件底部的文字' },
|
||||
{ key: 'email_site_branding', label: '显示站点品牌', type: 'switch', default: true, help: '在邮件开头显示「[站点名]」前缀' },
|
||||
@@ -45,7 +45,7 @@ export const emailSchema = {
|
||||
{
|
||||
key: 'branding',
|
||||
title: '邮件品牌',
|
||||
icon: 'fas fa-signature',
|
||||
icon: 'fa fas fa-pen',
|
||||
fields: [
|
||||
{ key: 'mail_showname', label: '发件人名称', type: 'input', default: '', help: '覆盖系统默认发件人名称' },
|
||||
{ key: 'mail_title_prefix', label: '主题前缀', type: 'input', default: '', help: '自动添加在所有邮件主题前面,如【站点名】' },
|
||||
@@ -56,7 +56,7 @@ export const emailSchema = {
|
||||
{
|
||||
key: 'reg_verify_link',
|
||||
title: '注册验证链接',
|
||||
icon: 'fas fa-link',
|
||||
icon: 'fa fas fa-link',
|
||||
fields: [
|
||||
{ key: 'email_reg_verify_link_enabled', label: '启用', type: 'switch', default: true, help: '注册后发送验证链接邮件' },
|
||||
{ key: 'email_reg_verify_link_subject', label: '主题(留空使用默认)', type: 'input', placeholder: '验证你的邮箱地址' },
|
||||
@@ -67,7 +67,7 @@ export const emailSchema = {
|
||||
{
|
||||
key: 'reg_verify_code',
|
||||
title: '注册验证码',
|
||||
icon: 'fas fa-keyboard',
|
||||
icon: 'fa fas fa-keyboard',
|
||||
fields: [
|
||||
{ key: 'email_reg_verify_code_enabled', label: '启用', type: 'switch', default: true, help: '注册后发送 6 位验证码邮件' },
|
||||
{ key: 'email_reg_verify_code_subject', label: '主题(留空使用默认)', type: 'input', placeholder: '邮箱验证码' },
|
||||
@@ -78,7 +78,7 @@ export const emailSchema = {
|
||||
{
|
||||
key: 'reg_success',
|
||||
title: '注册成功通知',
|
||||
icon: 'fas fa-check-circle',
|
||||
icon: 'fa fas fa-check-circle',
|
||||
fields: [
|
||||
{ key: 'email_reg_success_enabled', label: '启用', type: 'switch', default: true, help: '邮箱验证成功后发送通知邮件' },
|
||||
{ key: 'email_reg_success_subject', label: '主题(留空使用默认)', type: 'input', placeholder: '邮箱验证成功' },
|
||||
@@ -89,7 +89,7 @@ export const emailSchema = {
|
||||
{
|
||||
key: 'password_reset',
|
||||
title: '密码重置',
|
||||
icon: 'fas fa-unlock-alt',
|
||||
icon: 'fa fas fa-unlock-alt',
|
||||
fields: [
|
||||
{ key: 'email_password_reset_enabled', label: '启用', type: 'switch', default: true, help: '发送密码重置链接邮件' },
|
||||
{ key: 'email_password_reset_subject', label: '主题(留空使用默认)', type: 'input', placeholder: '重置密码' },
|
||||
@@ -100,7 +100,7 @@ export const emailSchema = {
|
||||
{
|
||||
key: 'change_code',
|
||||
title: '邮箱变更验证码',
|
||||
icon: 'fas fa-shield-alt',
|
||||
icon: 'fa fas fa-shield-alt',
|
||||
fields: [
|
||||
{ key: 'email_change_code_enabled', label: '启用', type: 'switch', default: true, help: '变更邮箱时发送验证码邮件' },
|
||||
{ key: 'email_change_code_subject', label: '主题(留空使用默认)', type: 'input', placeholder: '邮箱验证码' },
|
||||
@@ -111,7 +111,7 @@ export const emailSchema = {
|
||||
{
|
||||
key: 'change_notice',
|
||||
title: '邮箱变更通知',
|
||||
icon: 'fas fa-bell',
|
||||
icon: 'fa fas fa-bell',
|
||||
fields: [
|
||||
{ key: 'email_change_notice_enabled', label: '启用', type: 'switch', default: true, help: '邮箱变更成功后向旧邮箱发送通知' },
|
||||
{ key: 'email_change_notice_subject', label: '主题(留空使用默认)', type: 'input', placeholder: '账号邮箱已变更' },
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const floatingSchema = {
|
||||
key: 'global.floating',
|
||||
title: '右侧悬浮按钮',
|
||||
icon: 'fas fa-ellipsis-v',
|
||||
icon: 'fa fas fa-ellipsis-v',
|
||||
description: '页面右侧浮动按钮的显示与配置。',
|
||||
defaults: {},
|
||||
groups: [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const i18nSchema = {
|
||||
key: 'global.i18n',
|
||||
title: '多语言翻译',
|
||||
icon: 'fas fa-language',
|
||||
icon: 'fa fas fa-language',
|
||||
description: '配置站点语言、语言切换器和翻译管理。',
|
||||
defaults: {
|
||||
i18n_enabled: false,
|
||||
@@ -16,7 +16,7 @@ export const i18nSchema = {
|
||||
{
|
||||
key: 'basic',
|
||||
title: '基础配置',
|
||||
icon: 'fas fa-globe',
|
||||
icon: 'fa fas fa-globe',
|
||||
fields: [
|
||||
{ key: 'i18n_enabled', label: '启用多语言', type: 'switch', default: false, help: '开启后站点将支持多语言切换' },
|
||||
{
|
||||
@@ -43,7 +43,7 @@ export const i18nSchema = {
|
||||
{
|
||||
key: 'languages',
|
||||
title: '语言管理',
|
||||
icon: 'fas fa-language',
|
||||
icon: 'fa fas fa-language',
|
||||
fields: [
|
||||
{ key: 'i18n_available_langs', label: '可用语言列表', type: 'textarea', default: 'zh-CN|简体中文\nen|English\nzh-TW|繁體中文\nja|日本語\nko|한국어\nfr|Français\nde|Deutsch\nes|Español\nru|Русский', dependsOn: { key: 'i18n_enabled', value: true }, help: '每行一个语言:语言代码|显示名称(9 种内置语言)' },
|
||||
{ key: 'i18n_nomenclature', label: '自定义术语', type: 'code', default: '', dependsOn: { key: 'i18n_enabled', value: true }, help: 'JSON 格式自定义翻译术语(key => 翻译),对齐 zibll nomenclature' },
|
||||
@@ -52,7 +52,7 @@ export const i18nSchema = {
|
||||
{
|
||||
key: 'display',
|
||||
title: '展示设置',
|
||||
icon: 'fas fa-eye',
|
||||
icon: 'fa fas fa-eye',
|
||||
fields: [
|
||||
{
|
||||
key: 'i18n_switcher_position',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const layoutSchema = {
|
||||
key: 'global.layout',
|
||||
title: '显示 & 布局',
|
||||
icon: 'fas fa-desktop',
|
||||
icon: 'fa fas fa-desktop',
|
||||
description: '全局布局风格、颜色方案、字体设置。',
|
||||
defaults: {
|
||||
theme_mode: 'time-auto',
|
||||
@@ -29,7 +29,7 @@ export const layoutSchema = {
|
||||
{
|
||||
key: 'loading-animation',
|
||||
title: '加载动画',
|
||||
icon: 'fas fa-spinner',
|
||||
icon: 'fa fas fa-spinner',
|
||||
fields: [
|
||||
{ key: 'qj_loading', label: '全站加载动画', type: 'switch', default: false, help: '开启后页面加载时显示全屏加载动画覆盖层' },
|
||||
{
|
||||
@@ -57,7 +57,7 @@ export const layoutSchema = {
|
||||
{
|
||||
key: 'color',
|
||||
title: '色彩方案',
|
||||
icon: 'fas fa-palette',
|
||||
icon: 'fa fas fa-paint-brush',
|
||||
fields: [
|
||||
{
|
||||
key: 'theme_mode',
|
||||
@@ -110,7 +110,7 @@ export const layoutSchema = {
|
||||
{
|
||||
key: 'layout',
|
||||
title: '布局设置',
|
||||
icon: 'fas fa-columns',
|
||||
icon: 'fa fas fa-columns',
|
||||
fields: [
|
||||
{ key: 'container_max_width', label: '内容最大宽度 (px)', type: 'select', default: 1200, options: [
|
||||
{ label: '1200px', value: 1200 },
|
||||
@@ -133,7 +133,7 @@ export const layoutSchema = {
|
||||
{
|
||||
key: 'sidebar-scope',
|
||||
title: '侧边栏显示范围',
|
||||
icon: 'fas fa-th-list',
|
||||
icon: 'fa fas fa-th-list',
|
||||
fields: [
|
||||
{ key: 'sidebar_home_enabled', label: '首页侧边栏', type: 'switch', default: true, dependsOn: { key: 'sidebar_enabled', value: true } },
|
||||
{ key: 'sidebar_category_enabled', label: '分类页侧边栏', type: 'switch', default: true, dependsOn: { key: 'sidebar_enabled', value: true } },
|
||||
@@ -146,7 +146,7 @@ export const layoutSchema = {
|
||||
{
|
||||
key: 'typography',
|
||||
title: '字体设置',
|
||||
icon: 'fas fa-font',
|
||||
icon: 'fa fas fa-font',
|
||||
fields: [
|
||||
{ key: 'font_family', label: '正文字体', type: 'select', default: 'system', options: [
|
||||
{ label: '系统默认', value: 'system' },
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const logoSchema = {
|
||||
key: 'global.logo',
|
||||
title: 'LOGO & 品牌',
|
||||
icon: 'fas fa-image',
|
||||
icon: 'fa fas fa-image',
|
||||
description: '管理站点 Logo、站点图标和品牌标识。',
|
||||
defaults: {
|
||||
site_logo: '',
|
||||
@@ -15,7 +15,7 @@ export const logoSchema = {
|
||||
{
|
||||
key: 'logo',
|
||||
title: 'Logo 设置',
|
||||
icon: 'fas fa-image',
|
||||
icon: 'fa fas fa-image',
|
||||
fields: [
|
||||
{ key: 'site_logo', label: '站点 Logo', type: 'media', help: '建议尺寸 300x80,支持 PNG/SVG 透明背景' },
|
||||
{ key: 'site_logo_dark', label: '暗色模式 Logo', type: 'media', help: '暗色模式下显示的 Logo,留空则使用默认 Logo' },
|
||||
@@ -26,7 +26,7 @@ export const logoSchema = {
|
||||
{
|
||||
key: 'favicon',
|
||||
title: '站点图标',
|
||||
icon: 'fas fa-fingerprint',
|
||||
icon: 'fa fas fa-id-badge',
|
||||
fields: [
|
||||
{ key: 'site_favicon', label: '浏览器图标 (Favicon)', type: 'media', help: '建议 32x32 或 16x16 的 ICO/PNG 文件' },
|
||||
{ key: 'site_icon', label: '移动端图标', type: 'media', help: '建议 192x192 的 PNG,用于移动端添加到桌面' },
|
||||
|
||||
@@ -1,76 +1,50 @@
|
||||
export const searchSchema = {
|
||||
key: 'global.search',
|
||||
title: '搜索功能',
|
||||
icon: 'fas fa-search',
|
||||
description: '搜索模式、内容类型切换、搜索建议、热门搜索配置。',
|
||||
icon: 'fa fas fa-search',
|
||||
description: 'Zibll 原始搜索字段、内容类型、历史、热门词与分类配置。',
|
||||
defaults: {
|
||||
search_mode: 'default',
|
||||
search_type: 'default',
|
||||
search_history_enabled: true,
|
||||
hot_search_enabled: true,
|
||||
hot_search_keywords: '',
|
||||
search_type: true,
|
||||
search_type_in: 'post',
|
||||
search_history: true,
|
||||
search_popular_key: true,
|
||||
search_placeholder: '开启精彩搜索',
|
||||
search_suggestions_enabled: false,
|
||||
search_posts: true,
|
||||
'404_search_s': true,
|
||||
search_no_page: true,
|
||||
search_exclude_cats: '',
|
||||
search_exclude_cats: [],
|
||||
search_cat: true,
|
||||
search_cat_in: '',
|
||||
search_more_cat_obj: true,
|
||||
search_more_cat_obj: [],
|
||||
search_custom_key_s: true,
|
||||
search_custom_key: 'title,content',
|
||||
search_facets: false,
|
||||
search_facets_order: 'category\ntag',
|
||||
search_type_post: true,
|
||||
search_type_user: false,
|
||||
search_type_category: true,
|
||||
search_type_tag: true,
|
||||
search_default_type: 'post',
|
||||
search_ms_enabled: false,
|
||||
search_ms_api_url: '',
|
||||
search_ms_api_key: '',
|
||||
search_ms_index_prefix: 'aksrt',
|
||||
search_ms_synonyms: '',
|
||||
search_custom_key: ['title', 'content', 'excerpt', 'post_tag', 'forum_topic', 'shop_cat', 'shop_discount'],
|
||||
search_facets: {},
|
||||
search_ms_s: false,
|
||||
search_ms_opt: { api_url: 'http://127.0.0.1:7700', api_key: '', index_prefix: 'aksrt', synonyms: [{ key: 'wordpress', val: 'wp,wordp,wordpre' }] },
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
key: 'basic',
|
||||
title: '搜索基础',
|
||||
icon: 'fas fa-search',
|
||||
icon: 'fa fas fa-search',
|
||||
fields: [
|
||||
{
|
||||
key: 'search_mode',
|
||||
label: '搜索模式',
|
||||
type: 'radio',
|
||||
default: 'default',
|
||||
options: [
|
||||
{ label: '默认搜索', value: 'default' },
|
||||
{ label: 'AJAX 实时搜索', value: 'ajax' },
|
||||
{ label: '跳转搜索', value: 'redirect' },
|
||||
],
|
||||
},
|
||||
{ key: 'search_placeholder', label: '搜索框提示文字', type: 'input', placeholder: '开启精彩搜索' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'content-types',
|
||||
title: '搜索内容类型',
|
||||
icon: 'fas fa-layer-group',
|
||||
icon: 'fa fas fa-clone',
|
||||
fields: [
|
||||
{ key: 'search_type_post', label: '文章', type: 'switch', default: true },
|
||||
{ key: 'search_type_user', label: '用户', type: 'switch', default: false },
|
||||
{ key: 'search_type_category', label: '分类', type: 'switch', default: true },
|
||||
{ key: 'search_type_tag', label: '标签', type: 'switch', default: true },
|
||||
{ key: 'search_type', label: '显示切换搜索类型按钮', type: 'switch', default: true },
|
||||
{
|
||||
key: 'search_default_type',
|
||||
label: '默认类型',
|
||||
type: 'select',
|
||||
key: 'search_type_in',
|
||||
label: '默认搜索类型',
|
||||
type: 'radio',
|
||||
default: 'post',
|
||||
options: [
|
||||
{ label: '文章', value: 'post' },
|
||||
{ label: '用户', value: 'user' },
|
||||
{ label: '分类', value: 'category' },
|
||||
{ label: '标签', value: 'tag' },
|
||||
],
|
||||
},
|
||||
],
|
||||
@@ -78,51 +52,70 @@ export const searchSchema = {
|
||||
{
|
||||
key: 'features',
|
||||
title: '搜索功能',
|
||||
icon: 'fas fa-magic',
|
||||
icon: 'fa fas fa-magic',
|
||||
fields: [
|
||||
{ key: 'search_history_enabled', label: '搜索历史', type: 'switch', default: true, help: '记录用户最近的搜索关键词' },
|
||||
{ key: 'hot_search_enabled', label: '热门搜索', type: 'switch', default: true, help: '在搜索框下方展示热门搜索词' },
|
||||
{ key: 'hot_search_keywords', label: '热门搜索关键词', type: 'textarea', placeholder: '每行一个关键词', dependsOn: { key: 'hot_search_enabled', value: true }, rows: 3, help: '手动设置热门搜索关键词,留空则自动统计' },
|
||||
{ key: 'search_suggestions_enabled', label: '搜索建议', type: 'switch', default: false, help: '输入时显示搜索建议(需要 AJAX 搜索模式)' },
|
||||
{ key: 'search_history', label: '搜索历史', type: 'switch', default: true, help: '显示用户最近的搜索关键词' },
|
||||
{ key: 'search_popular_key', label: '热门搜索', type: 'switch', default: true, help: '展示网站热门搜索关键词' },
|
||||
{ key: '404_search_s', label: '404 页面搜索', type: 'switch', default: true, help: '在 404 页面显示搜索功能' },
|
||||
{ key: 'search_posts', label: '搜索框热门文章', type: 'switch', default: true, help: '在搜索面板中显示热门文章列表' },
|
||||
{ key: 'search_no_page', label: '排除页面', type: 'switch', default: true, help: '搜索结果中排除页面(仅显示文章)' },
|
||||
{ key: 'search_exclude_cats', label: '排除分类', type: 'textarea', placeholder: '分类 ID,逗号分隔', rows: 2, default: '', help: '搜索结果中排除的分类 ID(逗号分隔)' },
|
||||
{ key: 'search_exclude_cats', label: '排除分类', type: 'taxonomy_select', taxonomy: ['category', 'shop_cat'], multiple: true, default: [], help: '搜索结果中排除的文章或商品分类' },
|
||||
{ key: 'search_custom_key_s', label: '自定义匹配范围', type: 'switch', default: true, help: '启用后可配置搜索匹配字段范围' },
|
||||
{ key: 'search_custom_key', label: '匹配字段', type: 'textarea', placeholder: 'title,content,excerpt,category,tag,author', rows: 2, default: 'title,content', dependsOn: { key: 'search_custom_key_s', value: true }, help: '搜索匹配字段(逗号分隔:title/content/excerpt/category/tag/author)' },
|
||||
{ key: 'search_facets', label: '搜索结果筛选', type: 'switch', default: false, help: '启用搜索结果 taxonomy 筛选面板' },
|
||||
{ key: 'search_facets_order', label: '筛选排序', type: 'textarea', rows: 3, default: 'category\ntag', dependsOn: { key: 'search_facets', value: true }, help: '筛选 fieldset 显示顺序(每行一个 taxonomy slug)' },
|
||||
{ key: 'search_custom_key', label: '匹配字段', type: 'checkbox', default: ['title', 'content', 'excerpt', 'post_tag', 'forum_topic', 'shop_cat', 'shop_discount'], dependsOn: { key: 'search_custom_key_s', value: true }, options: [
|
||||
{ label: '标题', value: 'title' }, { label: '内容', value: 'content' }, { label: '简介', value: 'excerpt' },
|
||||
{ label: '分类', value: 'category' }, { label: '标签', value: 'post_tag' }, { label: '专题', value: 'topics' },
|
||||
{ label: '评论', value: 'coment' }, { label: '作者昵称', value: 'user' },
|
||||
{ label: '[帖子]话题', value: 'forum_topic' }, { label: '[帖子]标签', value: 'forum_tag' },
|
||||
{ label: '[商品]分类', value: 'shop_cat' }, { label: '[商品]特色标签', value: 'shop_tag' }, { label: '[商品]优惠活动', value: 'shop_discount' },
|
||||
] },
|
||||
{ key: 'search_facets', label: '搜索筛选', type: 'fieldset', sanitizeType: 'array', default: {}, dependsOn: { key: 'search_ms_s', value: false }, help: '搜索结果中显示的筛选列表;启用 Meilisearch 后由搜索引擎生成关联筛选。', fields: [
|
||||
{ key: 'category', label: '[文章] 分类', type: 'taxonomy_select', taxonomy: 'category', multiple: true, default: [] },
|
||||
{ key: 'topics', label: '[文章] 专题', type: 'taxonomy_select', taxonomy: 'topics', multiple: true, default: [] },
|
||||
{ key: 'post_tag', label: '[文章] 标签', type: 'taxonomy_select', taxonomy: 'post_tag', multiple: true, default: [] },
|
||||
{ key: 'plate_id', label: '[论坛帖子] 板块 ID', type: 'input', default: '' },
|
||||
{ key: 'forum_topic', label: '[论坛帖子] 话题', type: 'taxonomy_select', taxonomy: 'forum_topic', multiple: true, default: [] },
|
||||
{ key: 'forum_tag', label: '[论坛帖子] 标签', type: 'taxonomy_select', taxonomy: 'forum_tag', multiple: true, default: [] },
|
||||
{ key: 'shop_cat', label: '[商品] 分类', type: 'taxonomy_select', taxonomy: 'shop_cat', multiple: true, default: [] },
|
||||
{ key: 'shop_discount', label: '[商品] 优惠活动', type: 'taxonomy_select', taxonomy: 'shop_discount', multiple: true, default: [] },
|
||||
{ key: 'shop_tag', label: '[商品] 特色标签', type: 'taxonomy_select', taxonomy: 'shop_tag', multiple: true, default: [] },
|
||||
] },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'category-search',
|
||||
title: '分类搜索',
|
||||
icon: 'fas fa-folder-open',
|
||||
icon: 'fa fas fa-folder-open',
|
||||
fields: [
|
||||
{ key: 'search_cat', label: '启用分类搜索', type: 'switch', default: true, help: '在搜索框旁显示分类选择器' },
|
||||
{ key: 'search_cat_in', label: '默认分类', type: 'input', default: '', help: '默认搜索的分类 ID(留空为全部分类)' },
|
||||
{ key: 'search_more_cat_obj', label: '显示更多分类', type: 'switch', default: true, help: '展开显示全部分类列表' },
|
||||
{ key: 'search_cat_in', label: '默认分类', type: 'taxonomy_select', taxonomy: 'category', multiple: false, default: '', help: '留空为全部分类' },
|
||||
{ key: 'search_more_cat_obj', label: '允许选择的更多分类', type: 'taxonomy_select', taxonomy: 'category', multiple: true, default: [] },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'popular',
|
||||
title: '热门搜索',
|
||||
icon: 'fas fa-fire',
|
||||
icon: 'fa fas fa-fire',
|
||||
fields: [
|
||||
{ key: 'search_popular_title', label: '标题', type: 'input', default: '热门搜索', help: '热门搜索区域标题,留空使用默认' },
|
||||
{ key: 'search_popular_key_num', label: '显示数量', type: 'number', default: 20, min: 1, max: 50, help: '热门搜索显示条数' },
|
||||
{ key: 'search_popular_sticky', label: '置顶词(每行一个)', type: 'textarea', rows: 3, default: '', help: '置顶搜索词始终显示在最前面' },
|
||||
{ key: 'search_popular_key_num', label: '显示数量', type: 'number', default: 20, min: 10, max: 50, step: 2, help: '热门搜索显示条数' },
|
||||
{ key: 'search_popular_sticky', label: '置顶关键词', type: 'input', default: '', help: '使用逗号分隔;可追加 &type=user 指定搜索类型' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'meilisearch',
|
||||
title: 'Meilisearch 集成',
|
||||
icon: 'fas fa-bolt',
|
||||
title: 'Meilisearch 智能搜索',
|
||||
icon: 'fa fas fa-bolt',
|
||||
fields: [
|
||||
{ key: 'search_ms_enabled', label: '启用 Meilisearch', type: 'switch', default: false, help: '启用后搜索请求将发送至 Meilisearch 服务器' },
|
||||
{ key: 'search_ms_api_url', label: 'API 地址', type: 'input', default: '', help: 'Meilisearch 服务器 URL(如 http://localhost:7700)' },
|
||||
{ key: 'search_ms_api_key', label: 'API Key', type: 'input', default: '', help: 'Meilisearch Search API Key(只读密钥)' },
|
||||
{ key: 'search_ms_index_prefix', label: '索引前缀', type: 'input', default: 'aksrt', help: '索引名称前缀(实际索引名为 {prefix}_posts)' },
|
||||
{ key: 'search_ms_synonyms', label: '同义词(JSON)', type: 'textarea', rows: 3, default: '', help: 'Meilisearch 同义词配置,JSON 格式(如 {"手机": ["phone","mobile"]})' },
|
||||
{ key: 'search_ms_s', label: '启用 Meilisearch', type: 'switch', default: false },
|
||||
{ key: 'search_ms_opt', label: 'Meilisearch 参数', type: 'fieldset', sanitizeType: 'array', dependsOn: { key: 'search_ms_s', value: true }, default: { api_url: 'http://127.0.0.1:7700', api_key: '', index_prefix: 'aksrt', synonyms: [{ key: 'wordpress', val: 'wp,wordp,wordpre' }] }, fields: [
|
||||
{ key: 'api_url', label: 'API 地址', type: 'input', default: 'http://127.0.0.1:7700' },
|
||||
{ key: 'api_key', label: 'API 密钥', type: 'input', default: '' },
|
||||
{ key: 'index_prefix', label: '索引前缀', type: 'input', default: 'aksrt' },
|
||||
{ key: 'synonyms', label: '同义词', type: 'repeater', default: [{ key: 'wordpress', val: 'wp,wordp,wordpre' }], addText: '添加同义词', fields: [
|
||||
{ key: 'key', label: '关键词', type: 'input', default: '' },
|
||||
{ key: 'val', label: '同义词', type: 'textarea', default: '' },
|
||||
] },
|
||||
] },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const seoSchema = {
|
||||
key: 'global.seo',
|
||||
title: 'SEO 优化',
|
||||
icon: 'fas fa-search',
|
||||
icon: 'fa fas fa-search',
|
||||
description: '站点标题、描述、关键词与 AI SEO。AI 生成入口在文章「独立 SEO」框;连接配置在「扩展 → AI 连接配置」。优先使用 WordPress AI Connectors。',
|
||||
defaults: {
|
||||
seo_enabled: true,
|
||||
@@ -34,7 +34,7 @@ export const seoSchema = {
|
||||
{
|
||||
key: 'basic',
|
||||
title: 'SEO 基础',
|
||||
icon: 'fas fa-globe',
|
||||
icon: 'fa fas fa-globe',
|
||||
fields: [
|
||||
{
|
||||
key: 'seo_enabled',
|
||||
@@ -60,7 +60,7 @@ export const seoSchema = {
|
||||
{
|
||||
key: 'ai-seo',
|
||||
title: 'AI SEO 提示词',
|
||||
icon: 'fas fa-robot',
|
||||
icon: 'fa fab fa-android',
|
||||
description: '留空则使用内置 Zibll 风格默认提示词。填写后作为 system instruction 覆盖默认。',
|
||||
fields: [
|
||||
{
|
||||
@@ -98,7 +98,7 @@ export const seoSchema = {
|
||||
{
|
||||
key: 'baidu',
|
||||
title: '百度推送',
|
||||
icon: 'fas fa-paper-plane',
|
||||
icon: 'fa fas fa-paper-plane',
|
||||
fields: [
|
||||
{ key: 'seo_baidu_push', label: '启用百度自动推送', type: 'switch', default: false },
|
||||
{ key: 'seo_baidu_normal', label: '普通收录推送', type: 'switch', default: false },
|
||||
@@ -109,7 +109,7 @@ export const seoSchema = {
|
||||
{
|
||||
key: 'image',
|
||||
title: '图片 SEO',
|
||||
icon: 'fas fa-image',
|
||||
icon: 'fa fas fa-image',
|
||||
fields: [
|
||||
{ key: 'seo_image_optimize', label: '优化搜索引擎图片展示', type: 'switch', default: true },
|
||||
{ key: 'seo_image_default', label: '默认分享图 / SEO 图', type: 'media', default: '' },
|
||||
@@ -120,7 +120,7 @@ export const seoSchema = {
|
||||
{
|
||||
key: 'redirect',
|
||||
title: '外链重定向',
|
||||
icon: 'fas fa-external-link-alt',
|
||||
icon: 'fa fas fa-external-link-alt',
|
||||
fields: [
|
||||
{ key: 'seo_go_link', label: '启用外链重定向', type: 'switch', default: true },
|
||||
{ key: 'seo_go_link_nonce', label: '启用外链鉴权', type: 'switch', default: true },
|
||||
@@ -131,7 +131,7 @@ export const seoSchema = {
|
||||
{
|
||||
key: 'advanced',
|
||||
title: '高级 SEO',
|
||||
icon: 'fas fa-sliders-h',
|
||||
icon: 'fa fas fa-sliders-h',
|
||||
fields: [
|
||||
{ key: 'seo_no_category', label: '分类 URL 去掉 category', type: 'switch', default: false },
|
||||
{ key: 'seo_jsonld', label: '启用 JSON-LD', type: 'switch', default: true },
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const systemNoticeSchema = {
|
||||
key: 'global.system-notice',
|
||||
title: '弹窗通知',
|
||||
icon: 'fas fa-bullhorn',
|
||||
icon: 'fa fas fa-bullhorn',
|
||||
description: '全站弹窗公告配置,支持按用户身份定向、多按钮组、弹窗尺寸与过期周期。',
|
||||
defaults: {
|
||||
system_notice_enabled: true,
|
||||
@@ -32,7 +32,7 @@ export const systemNoticeSchema = {
|
||||
{
|
||||
key: 'basic',
|
||||
title: '公告设置',
|
||||
icon: 'fas fa-bullhorn',
|
||||
icon: 'fa fas fa-bullhorn',
|
||||
fields: [
|
||||
{ key: 'system_notice_enabled', label: '启用系统公告', type: 'switch', default: true },
|
||||
{
|
||||
@@ -56,7 +56,7 @@ export const systemNoticeSchema = {
|
||||
{
|
||||
key: 'buttons',
|
||||
title: '按钮组(留空则不显示)',
|
||||
icon: 'fas fa-th-large',
|
||||
icon: 'fa fas fa-th-large',
|
||||
fields: [
|
||||
{ key: 'system_notice_btn1_text', label: '按钮 1 文案', type: 'input', default: '', dependsOn: { key: 'system_notice_enabled', value: true } },
|
||||
{ key: 'system_notice_btn1_link', label: '按钮 1 链接', type: 'input', default: '', dependsOn: { key: 'system_notice_enabled', value: true }, help: '可选,填写后按钮变为链接' },
|
||||
@@ -107,7 +107,7 @@ export const systemNoticeSchema = {
|
||||
{
|
||||
key: 'style',
|
||||
title: '样式设置',
|
||||
icon: 'fas fa-paint-brush',
|
||||
icon: 'fa fas fa-paint-brush',
|
||||
fields: [
|
||||
{
|
||||
key: 'system_notice_size',
|
||||
@@ -124,7 +124,7 @@ export const systemNoticeSchema = {
|
||||
},
|
||||
{ key: 'system_notice_radius', label: '按钮圆角', type: 'switch', default: false, dependsOn: { key: 'system_notice_enabled', value: true }, help: '开启后弹窗按钮使用圆角样式' },
|
||||
{ key: 'system_notice_class', label: '公告样式类', type: 'input', default: '', dependsOn: { key: 'system_notice_enabled', value: true } },
|
||||
{ key: 'system_notice_title_icon', label: '标题图标', type: 'input', default: '', dependsOn: { key: 'system_notice_enabled', value: true }, help: '如 fas fa-bullhorn' },
|
||||
{ key: 'system_notice_title_icon', label: '标题图标', type: 'input', default: '', dependsOn: { key: 'system_notice_enabled', value: true }, help: '如 fa fas fa-bullhorn' },
|
||||
{ key: 'system_notice_title_class', label: '标题背景配色', type: 'select', default: '', dependsOn: { key: 'system_notice_enabled', value: true }, options: [
|
||||
{ label: '无', value: '' },
|
||||
{ label: '炫彩黄', value: 'jb-yellow' },
|
||||
@@ -140,7 +140,7 @@ export const systemNoticeSchema = {
|
||||
{
|
||||
key: 'expire',
|
||||
title: '过期设置',
|
||||
icon: 'fas fa-clock',
|
||||
icon: 'fa fas fa-clock',
|
||||
fields: [
|
||||
{ key: 'system_notice_expires', label: '弹窗周期(小时)', type: 'number', default: 24, min: 0, max: 720, dependsOn: { key: 'system_notice_enabled', value: true }, help: '0 表示永不过期' },
|
||||
],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const tabbarSchema = {
|
||||
key: 'global.tabbar',
|
||||
title: '手机底部Tab',
|
||||
icon: 'fas fa-mobile-alt',
|
||||
icon: 'fa fas fa-mobile-alt',
|
||||
description: '移动端底部导航栏配置。',
|
||||
defaults: {},
|
||||
groups: [],
|
||||
|
||||
Reference in new issue
Block a user