From 2568d97fe3c55756bc3c75531a0c36b9eb5cfa39 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <17683872107czx> Date: Mon, 3 Jul 2023 18:06:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=8A=E6=97=A5=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E5=B0=8F=E6=A0=87=E9=A2=98=E5=8F=AF=E7=BC=96=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=20=E5=85=B6=E4=BB=96=E8=AE=BE=E7=BD=AE-=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8A=A8=E6=80=81=E6=A0=87=E9=A2=98=20Twikoo=E8=AF=84?= =?UTF-8?q?=E8=AE=BA-=E5=90=8C=E6=97=B6=E6=9C=80=E5=A4=9A=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=BC=B9=E5=B9=95=E6=95=B0=E5=8F=AF=E7=BC=96=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E5=BC=B9=E5=B9=95=E6=98=BE=E7=A4=BA=E9=97=B4=E9=9A=94?= =?UTF-8?q?=E6=97=B6=E9=97=B4ms=E5=8F=AF=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 42 +++++++++++++++++++++++- templates/about.html | 2 +- templates/modules/commentBarrage.html | 4 +-- templates/modules/layouts/layout.html | 22 +++++++++++++ templates/modules/widgets/top-group.html | 2 +- 5 files changed, 67 insertions(+), 5 deletions(-) diff --git a/settings.yaml b/settings.yaml index aeac35cf..8483046b 100644 --- a/settings.yaml +++ b/settings.yaml @@ -154,6 +154,11 @@ spec: name: todayRecommendUrl label: 今日推荐跳转地址 placeholder: 请输入地址 + - $formkit: text + name: todayRecommendxTitle + label: 今日推荐小标题 + placeholder: 请输入小标题 + value: "今日推荐" - $formkit: text name: todayRecommendTitle label: 今日推荐标题 @@ -1388,6 +1393,16 @@ spec: value: true - label: 关闭 value: false + - $formkit: number + name: maxBarrage + value: 1 + label: 同时最多显示弹幕数 + placeholder: 请输入显示弹幕数 + - $formkit: number + name: barrageTime + value: 4000 + label: 弹幕显示间隔时间ms + placeholder: 请输入间隔时间ms - $formkit: url name: envId value: "`xxxxxxx`" @@ -1399,7 +1414,7 @@ spec: value: "`xxxxxxx`" label: Twikoo评论-token placeholder: 请输入token - help: 注意格式 (`token`) + help: 注意格式 (`token`) 在控制台中获取 - $formkit: text name: mailMd5 value: "`xxxxxxx`" @@ -1434,3 +1449,28 @@ spec: value: true - label: 关闭 value: false + - $formkit: group + name: diytitle + label: 动态标题 + value: + enable: + leaveTitle: + backTitle: + children: + - $formkit: radio + name: enable + help: 启用动态标题 + value: false + options: + - label: 启用 + value: true + - label: 禁用 + value: false + - $formkit: text + name: leaveTitle + label: 离开 + value: "w(゚Д゚)w 不要走!再看看嘛!" + - $formkit: text + name: backTitle + label: 回到 + value: "♪(^∇^*)欢迎肥来!" diff --git a/templates/about.html b/templates/about.html index ed52464a..1e87cb36 100644 --- a/templates/about.html +++ b/templates/about.html @@ -763,7 +763,7 @@
-
+
致谢
[[${theme.config.aboutReward.title}]]
diff --git a/templates/modules/commentBarrage.html b/templates/modules/commentBarrage.html index 7945675a..34dddbbf 100644 --- a/templates/modules/commentBarrage.html +++ b/templates/modules/commentBarrage.html @@ -11,9 +11,9 @@ var commentBarrageConfig = { //同时最多显示弹幕数 - maxBarrage: 1, + maxBarrage: [[${ theme.config.comments.maxBarrage }]], //弹幕显示间隔时间ms - barrageTime: 4000, + barrageTime: [[${ theme.config.comments.barrageTime }]], //twikoo部署地址腾讯云的为环境ID twikooUrl: [[${ theme.config.comments.envId }]], //token获取见上方 diff --git a/templates/modules/layouts/layout.html b/templates/modules/layouts/layout.html index 0c17bbf0..e15fa1b1 100644 --- a/templates/modules/layouts/layout.html +++ b/templates/modules/layouts/layout.html @@ -161,6 +161,28 @@ + + +