From 8ed0ec17171e959f78681ba91669d0a9c7765486 Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Fri, 23 Jan 2026 22:49:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E8=AE=BE=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Mermaid=20=E9=85=8D=E7=BD=AE=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增第 15 个一级分类:Mermaid 图表 - 包含 3 个子分类:基本设置、外观设置、高级选项 - 添加 6 个配置项: * 启用 Mermaid 支持开关 * CDN 来源选择(jsDelivr/unpkg/自定义/本地) * 自定义 CDN 地址输入框 * 图表主题选择(auto/default/dark/forest/neutral) * 使用本地镜像开关 * 调试模式开关 - 在 argon_update_themeoptions() 函数中添加选项保存逻辑 - 更新后续分类编号(高级设置 1516,评论设置 1617,验证码设置 1718,反馈与安全 1819) - Requirements: 5.1, 5.2, 5.3, 5.4 --- settings.php | 98 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 94 insertions(+), 4 deletions(-) diff --git a/settings.php b/settings.php index 244a9da..7929f49 100644 --- a/settings.php +++ b/settings.php @@ -3082,7 +3082,89 @@ function themeoptions_page(){ - + +

+ +

+ + + + + + +

+ + + + + + + +

+ + + + + + + +

+ + + +

+ + + + + +

+ + + +

+ + + + + + +

+ + + + + + + + +

+ + + +

@@ -3143,7 +3225,7 @@ window.pjaxLoaded = function(){ - +

@@ -3270,7 +3352,7 @@ window.pjaxLoaded = function(){ - +

@@ -3563,7 +3645,7 @@ window.pjaxLoaded = function(){ - +

@@ -6625,6 +6707,14 @@ function argon_update_themeoptions(){ argon_update_option('argon_enable_pangu'); + // Mermaid 图表配置 + argon_update_option_checkbox('argon_enable_mermaid'); + argon_update_option('argon_mermaid_cdn_source'); + argon_update_option('argon_mermaid_cdn_custom_url'); + argon_update_option('argon_mermaid_theme'); + argon_update_option_checkbox('argon_mermaid_use_local'); + argon_update_option_checkbox('argon_mermaid_debug_mode'); + argon_update_option('argon_assets_path'); argon_update_option('argon_custom_assets_path');