refactor(admin): consolidate duplicate configuration

Remove duplicate comment, captcha, filing, and website-security configuration paths.

Move front submission verification to the captcha scene matrix and retire obsolete admin routes and components.
This commit is contained in:
2026-08-13 02:26:17 +08:00
parent 0752a2fbf6
commit ab70a5eae9
32 changed files with 86 additions and 912 deletions
@@ -4,7 +4,6 @@ export const commonSchema = {
icon: 'fas fa-cog',
description: '管理站点常用开关、懒加载与备案信息等基础配置。',
defaults: {
comment_enabled: true,
lazyload_enabled: true,
lazyload_animation: 'blur',
lazyload_placeholder: '',
@@ -18,17 +17,10 @@ export const commonSchema = {
lazyload_other: true,
lazyload_widget: true,
icp_filing: '',
police_filing: '',
footer_text: '',
},
groups: [
{
key: 'comment',
title: '评论功能',
icon: 'fas fa-comment',
fields: [
{ key: 'comment_enabled', label: '开启评论', type: 'switch', default: true, help: '全局评论开关,关闭后所有文章不再显示评论区' },
],
},
{
key: 'performance',
title: '性能优化',
@@ -72,6 +64,7 @@ export const commonSchema = {
icon: '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: '显示在页脚的备案信息' },
{ key: 'footer_text', label: '页脚附加文字', type: 'input', placeholder: '自定义页脚文字', help: '显示在版权信息下方' },
],
},