commit
afc8bdcddd
|
@ -1208,6 +1208,63 @@ spec:
|
||||||
value: true
|
value: true
|
||||||
- label: 关闭
|
- label: 关闭
|
||||||
value: false
|
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
|
- group: about
|
||||||
label: 关于
|
label: 关于
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'bangumis')}"
|
<html lang="en" th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'page')}"
|
||||||
xmlns:th="http://www.thymeleaf.org">
|
xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'comments')}"
|
<html lang="en" th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'page')}"
|
||||||
xmlns:th="http://www.thymeleaf.org">
|
xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
|
|
|
@ -280,12 +280,6 @@
|
||||||
case 'music':
|
case 'music':
|
||||||
title = '音乐馆'
|
title = '音乐馆'
|
||||||
break;
|
break;
|
||||||
case 'comments':
|
|
||||||
title = '留言板'
|
|
||||||
break;
|
|
||||||
case 'bangumis':
|
|
||||||
title = '追番页'
|
|
||||||
break;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if (title != '')
|
if (title != '')
|
||||||
|
|
|
@ -0,0 +1,162 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en" th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'page')}"
|
||||||
|
xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
|
<th:block th:fragment="content">
|
||||||
|
|
||||||
|
<div class="page" id="body-wrap">
|
||||||
|
|
||||||
|
<!-- 头部导航栏 -->
|
||||||
|
<header class="not-top-img" id="page-header">
|
||||||
|
<nav th:replace="~{modules/nav :: nav(title = null)}"></nav>
|
||||||
|
</header>
|
||||||
|
<main class="layout hide-aside" id="content-inner">
|
||||||
|
<div id="page">
|
||||||
|
<div class="author-content author-content-item essayPage single"
|
||||||
|
th:style="'background:url('+${theme.config.todo.backgroundImg}+') left 28% / cover no-repeat !important;'">
|
||||||
|
<div class="card-content">
|
||||||
|
<div class="author-content-item-tips" th:text="${theme.config.todo.smallTitle}"></div>
|
||||||
|
<span class="author-content-item-title" th:text="${theme.config.todo.bigTitle}"></span>
|
||||||
|
<div class="content-bottom">
|
||||||
|
<div class="tips" th:text="${theme.config.todo.detail}"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="todolist-main" th:if="${not #lists.isEmpty(theme.config.todo.list)}"
|
||||||
|
th:with="todoList = ${theme.config.todo.list}">
|
||||||
|
|
||||||
|
<th:block th:each="todo : ${todoList}">
|
||||||
|
|
||||||
|
<div id="todolist-left" th:if="${#strings.equals(todo.seat, 'left')}">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="todolist-item">
|
||||||
|
<h3 class="todolist-title">[[${todo.class_name}]]</h3>
|
||||||
|
<ul class="todolist-ul">
|
||||||
|
<th:block th:if="${not #lists.isEmpty(todo.todo_list)}"
|
||||||
|
th:each="data : ${todo.todo_list}">
|
||||||
|
<li th:class="${data.completed ? 'achieve' : ''}">
|
||||||
|
<i style="margin-right: 5px;"
|
||||||
|
th:class="${data.completed ? 'fa-regular fa-circle-check' : 'fa-regular fa-circle'}">
|
||||||
|
</i>[[${data.content}]]
|
||||||
|
</li>
|
||||||
|
</th:block>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="todolist-right" th:if="${#strings.equals(todo.seat, 'right')}">
|
||||||
|
<div class="todolist-item">
|
||||||
|
<h3 class="todolist-title">[[${todo.class_name}]]</h3>
|
||||||
|
<ul>
|
||||||
|
<th:block th:if="${not #lists.isEmpty(todo.todo_list)}"
|
||||||
|
th:each="data : ${todo.todo_list}">
|
||||||
|
<li th:class="${data.completed ? 'achieve' : ''}">
|
||||||
|
<i style="margin-right: 5px;"
|
||||||
|
th:class="${data.completed ? 'fa-regular fa-circle-check' : 'fa-regular fa-circle'}">
|
||||||
|
</i>[[${data.content}]]
|
||||||
|
</li>
|
||||||
|
</th:block>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</th:block>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--todo-border: 1px solid #f7a796;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme=dark] {
|
||||||
|
--todo-border: 1px solid #51908b;
|
||||||
|
}
|
||||||
|
|
||||||
|
#todolist-main {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
margin: 16px 0 10px
|
||||||
|
}
|
||||||
|
|
||||||
|
#todolist-main li {
|
||||||
|
list-style: none;
|
||||||
|
font-size: 17px
|
||||||
|
}
|
||||||
|
|
||||||
|
#todolist-main ul {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
#todolist-left {
|
||||||
|
width: 50%;
|
||||||
|
padding: 0 8px 0 0
|
||||||
|
}
|
||||||
|
|
||||||
|
#todolist-right {
|
||||||
|
width: 50%;
|
||||||
|
padding: 0 0 0 8px
|
||||||
|
}
|
||||||
|
|
||||||
|
.todolist-item {
|
||||||
|
position: relative;
|
||||||
|
background: #fae4df;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 10px 1rem 1.2rem;
|
||||||
|
border: 2px dashed #f7a796;
|
||||||
|
margin-bottom: 1rem
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
#todolist-left,#todolist-right {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme=dark] .todolist-item {
|
||||||
|
background: #242424;
|
||||||
|
border: 2px dashed #51908b
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
h3.todolist-title {
|
||||||
|
margin: 0 !important;
|
||||||
|
border-bottom: var(--todo-border)
|
||||||
|
}
|
||||||
|
|
||||||
|
.todolist-item li {
|
||||||
|
margin: 0 !important;
|
||||||
|
border-bottom: var(--todo-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.todolist-item li::marker {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
li.achieve {
|
||||||
|
opacity: .8;
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</main>
|
||||||
|
<!-- 底部 -->
|
||||||
|
<footer th:replace="~{modules/footer :: footer}"></footer>
|
||||||
|
<!-- 卡片顶部气泡效果 -->
|
||||||
|
<script th:if="${theme.config.other.bubbleEnable}" async data-pjax
|
||||||
|
th:src="${assets_link + '/libs/canvas/bubble.js'}"></script>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</th:block>
|
||||||
|
|
||||||
|
</html>
|
|
@ -29,6 +29,10 @@ spec:
|
||||||
description: 留言板页面
|
description: 留言板页面
|
||||||
screenshot:
|
screenshot:
|
||||||
file: comments.html
|
file: comments.html
|
||||||
|
- name: 待办清单页面模版
|
||||||
|
description: 待办清单页面
|
||||||
|
screenshot:
|
||||||
|
file: todolist.html
|
||||||
- name: 追番页面模版
|
- name: 追番页面模版
|
||||||
description: 追番页面
|
description: 追番页面
|
||||||
screenshot:
|
screenshot:
|
||||||
|
|
Loading…
Reference in New Issue