From 69b5943972c2f3c18abcee51e0cd0ea0276a9c9a Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Sat, 22 Jul 2023 21:31:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BE=85=E5=8A=9E=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E9=A1=B5=E9=9D=A2=E6=A8=A1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 57 +++++++++++++ templates/bangumis.html | 2 +- templates/comments.html | 2 +- templates/modules/head.html | 6 -- templates/todolist.html | 162 ++++++++++++++++++++++++++++++++++++ theme.yaml | 4 + 6 files changed, 225 insertions(+), 8 deletions(-) create mode 100644 templates/todolist.html diff --git a/settings.yaml b/settings.yaml index 790a94ce..2a32fe57 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1208,6 +1208,63 @@ spec: value: true - label: 关闭 value: false + - group: todo + label: 待办清单 + formSchema: + - $formkit: attachment + name: backgroundImg + validation: url + label: 图片 + value: https://npm.elemecdn.com/hao-theme-static@1.2.0/templates/images/64624940e3623.jpeg + placeholder: 请输入图片地址 + - $formkit: text + name: smallTitle + label: 小标题 + value: 想做清单 + - $formkit: text + name: bigTitle + label: 大标题 + value: ToDoList + - $formkit: text + name: detail + label: 描述 + value: 要做的事还有很多,想做的事源源不断 + - $formkit: repeater + name: list + label: 待办清单 + value: [ ] + children: + - $formkit: text + name: class_name + label: 标题 + placeholder: 请输入标题 + - $formkit: radio + name: seat + label: 位置 + value: left + options: + - label: 左 + value: left + - label: 右 + value: right + - $formkit: repeater + name: todo_list + label: 内容列表 + value: [ ] + children: + - $formkit: textarea + name: content + label: 内容 + placeholder: 请输入内容 + - $formkit: radio + name: completed + label: 填写 + value: false + options: + - label: 完成 + value: true + - label: 未完成 + value: false - group: about label: 关于 diff --git a/templates/bangumis.html b/templates/bangumis.html index 3495f57e..196d948f 100644 --- a/templates/bangumis.html +++ b/templates/bangumis.html @@ -1,5 +1,5 @@ - diff --git a/templates/comments.html b/templates/comments.html index 65695cad..0748e9c0 100644 --- a/templates/comments.html +++ b/templates/comments.html @@ -1,5 +1,5 @@ - diff --git a/templates/modules/head.html b/templates/modules/head.html index 060240d9..a0e72cd7 100644 --- a/templates/modules/head.html +++ b/templates/modules/head.html @@ -280,12 +280,6 @@ case 'music': title = '音乐馆' break; - case 'comments': - title = '留言板' - break; - case 'bangumis': - title = '追番页' - break; } if (title != '') diff --git a/templates/todolist.html b/templates/todolist.html new file mode 100644 index 00000000..2be69569 --- /dev/null +++ b/templates/todolist.html @@ -0,0 +1,162 @@ + + + + + +
+ + + +
+
+
+
+
+ +
+
+
+
+
+
+ + + +
+ + +
+

[[${todo.class_name}]]

+
    + +
  • + + [[${data.content}]] +
  • +
    +
+
+
+ +
+
+

[[${todo.class_name}]]

+
    + +
  • + + [[${data.content}]] +
  • +
    + +
+
+
+
+ +
+ + + + + + +
+ + +
+ +
+ + +
+ +
+ + \ No newline at end of file diff --git a/theme.yaml b/theme.yaml index fbc9f272..5e2f056f 100644 --- a/theme.yaml +++ b/theme.yaml @@ -29,6 +29,10 @@ spec: description: 留言板页面 screenshot: file: comments.html + - name: 待办清单页面模版 + description: 待办清单页面 + screenshot: + file: todolist.html - name: 追番页面模版 description: 追番页面 screenshot: