refactor(admin): fold code highlight and system notice into 常用功能

The 代码高亮 and 系统公告 schemas existed but appeared in no menu, so their
routes were never generated (routes come from the sidebar constants). The
reference keeps both inside the 常用功能 panel rather than as their own
entries, so follow that structure instead of adding sidebar items.

- global/common now carries three groups after the lazy-load ones:
  代码高亮 (switch / line numbers / buttons / max height / light+dark theme)
  and 弹窗通知 (policy, content, 4 buttons, size, radius, icon, expiry)
- group keys are uniquified (code-highlight, code-theme, notice-*) so they do
  not collide with the existing performance group
- delete the orphan code-highlight.js / system-notice.js schemas and their
  section entries on both the Vue and PHP sides
- delete post-list/pay.js and its PHP counterpart: every post_pay_* and
  post_download_* key there had zero runtime consumers, and the reference has
  no such page (paid-content config lives under 支付&付费)

tools/health and tools/import-export turned out to already be reachable as
custom pages, and remain untouched.

Tests: admin contract audit 0 errors (warnings 56 → 51); SPA builds clean;
suite 967/968 with the pre-existing frontend-lifecycle failure.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Opus 5 committed 2026-11-03 17:50:32 +08:00
1 parent 451b04160b
commit 6c3c0f7c6d
9 files changed
+276 -438

No files matched your search

+6 -14
View File
@@ -1,5 +1,5 @@
{
"generated_at": "2026-11-02T06:04:33+00:00",
"generated_at": "2026-11-03T09:49:39+00:00",
"errors": [],
"warnings": [
"customPage tools-update section 'tools/update' not in PHP schema (ok if pure operational page)",
@@ -38,7 +38,6 @@
"enum incomplete parse for 'pay_box_position' (php subset of js): php=[box_top] js=[box_top,top,bottom,box_bottom]",
"enum incomplete parse for 'pay_modo_default' (php subset of js): php=[0] js=[0,points]",
"enum incomplete parse for 'pay_wechat_sdk_options' (php subset of js): php=[official_wechat] js=[official_wechat,epay,null]",
"enum incomplete parse for 'post_pay_box_position' (php subset of js): php=[content] js=[content,mask]",
"enum incomplete parse for 'post_time_source' (php subset of js): php=[date] js=[date,modified]",
"enum incomplete parse for 'referral_attribution_model' (php subset of js): php=[first_touch] js=[first_touch,last_touch]",
"enum incomplete parse for 'search_type_in' (php subset of js): php=[post] js=[post,user]",
@@ -47,10 +46,6 @@
"enum incomplete parse for 'sms_ali_api_type' (php subset of js): php=[sms] js=[sms,verify]",
"enum incomplete parse for 'sms_sdk' (php subset of js): php=[null] js=[null,ali,tencent,smsbao]",
"enum incomplete parse for 'style' (php subset of js): php=[null] js=[null,style2]",
"enum incomplete parse for 'system_notice_btn1_color' (php subset of js): php=[primary] js=[primary,success,warning,danger,info,purple,dark]",
"enum incomplete parse for 'system_notice_btn2_color' (php subset of js): php=[primary] js=[primary,success,warning,danger,info,purple,dark]",
"enum incomplete parse for 'system_notice_btn3_color' (php subset of js): php=[primary] js=[primary,success,warning,danger,info,purple,dark]",
"enum incomplete parse for 'system_notice_btn4_color' (php subset of js): php=[primary] js=[primary,success,warning,danger,info,purple,dark]",
"enum incomplete parse for 'system_notice_policy' (php subset of js): php=[] js=[,signin,vip,free,auth]",
"enum incomplete parse for 'system_notice_size' (php subset of js): php=[] js=[,modal-mini,modal-sm,modal-lg]",
"enum incomplete parse for 'theme_mode' (php subset of js): php=[white-theme] js=[white-theme,dark-theme,time-auto]",
@@ -67,7 +62,6 @@
"domains": {
"global": {
"sections": [
"code-highlight",
"common",
"custom-code",
"email",
@@ -76,8 +70,7 @@
"logo",
"search",
"seo",
"share",
"system-notice"
"share"
],
"files": [
"src/Admin/Schema/GlobalSchema.php"
@@ -105,7 +98,6 @@
"filter",
"list",
"page",
"pay",
"submit",
"thumb"
],
@@ -258,7 +250,7 @@
"entry": true,
"missing_chunks": [],
"chunks": [
"SchemaPage.D9mbKGcx.js",
"SchemaPage.nbpKWBDL.js",
"vendor-vue.CibbKclz.js",
"FaIcon.DB-L86Cm.js",
"useCollapsibleItems.DZpGrxDC.js",
@@ -276,8 +268,8 @@
"FloatingButtonsSettings.DOwK-RTG.js",
"PageHeader.nyzEkEki.js",
"FooterTabbarSettings.tb4NL7kN.js",
"PostPageSettings.BIi2DEZC.js",
"CommentSettings.B-GZllSB.js",
"PostPageSettings.C4aWDAvO.js",
"CommentSettings.DNlrCxSG.js",
"PermissionsCapabilities.DqpqZWmL.js",
"CmsCredits.B6Gorymm.js",
"ThemeInfoPage.D4pAf5Wr.js",
@@ -287,7 +279,7 @@
"UsersLevel.9dYF2o-O.js",
"UsersBadge.CDPcEJ-D.js",
"UsersWechatTemplate.CCecYMLT.js",
"UsersTicket.DnG1wULZ.js",
"UsersTicket.Y46bme7L.js",
"ToolsImportExport.BxHqqdz0.js",
"ToolsHealth.DrJqHumh.js",
"ToolsUpdate.rL8TduLs.js"