diff --git a/settings.yaml b/settings.yaml index 3b464949..f7a35b2a 100644 --- a/settings.yaml +++ b/settings.yaml @@ -136,23 +136,6 @@ spec: label: 底部相关链接 placeholder: 请填写 metadata name help: "需要通过开发者模式获取菜单对应的 metadata name" - - group: loading - label: 加载页 - formSchema: - - $formkit: radio - name: switch - label: 开关 - value: true - options: - - label: 打开 - value: true - - label: 关闭 - value: false - - $formkit: url - name: img - validation: "url" - label: 加载页图片 URL - placeholder: 请输入图片 url - group: right_menu label: 右键菜单 formSchema: @@ -435,4 +418,31 @@ spec: - value: "xcode.min.css" label: "xcode.min.css" - value: "xt256.min.css" - label: "xt256.min.css" \ No newline at end of file + label: "xt256.min.css" + - group: other + label: 其他设置 + formSchema: + - $formkit: radio + name: loading_box + label: 开关 + value: true + options: + - label: 打开 + value: true + - label: 关闭 + value: false + - $formkit: url + name: loading_box_img + validation: "url" + label: 加载页图片 URL + placeholder: 请输入图片 url + - $formkit: radio + name: load_progress_bar + label: 页面加载进度条 + value: true + help: 了解更多:https://codebyzach.github.io/pace/ + options: + - label: 开启 + value: true + - label: 关闭 + value: false \ No newline at end of file diff --git a/templates/modules/head.html b/templates/modules/head.html index 2c9f5f8e..c1c4a317 100644 --- a/templates/modules/head.html +++ b/templates/modules/head.html @@ -181,7 +181,9 @@ + src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/pace/1.2.4/pace.min.js" + th:if="${theme.config.other.load_progress_bar}"> + diff --git a/templates/modules/loading-box.html b/templates/modules/loading-box.html index 28b3b210..fa61f7ba 100644 --- a/templates/modules/loading-box.html +++ b/templates/modules/loading-box.html @@ -4,9 +4,9 @@