From ba696b68677d8343e6f2bbeb9515ee8b6fc25914 Mon Sep 17 00:00:00 2001 From: UPToZ Date: Thu, 19 Jun 2025 11:19:12 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=AE=80=E5=8C=96=E5=85=B3=E4=BA=8E=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E4=B8=AD=E7=9A=84=E5=B0=8F=E9=83=A8=E4=BB=B6=E5=92=8C?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E6=A0=87=E7=AD=BE=E8=AE=BE=E7=BD=AE=202.?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=B9=BF=E5=91=8A=E8=AE=BE=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 122 +++++++++------------------ templates/about.html | 15 ++-- templates/index.html | 27 ------ templates/modules/about-widgets.html | 2 +- templates/modules/head.html | 2 +- 5 files changed, 50 insertions(+), 118 deletions(-) diff --git a/settings.yaml b/settings.yaml index 9ee9199..74fbf60 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1909,61 +1909,58 @@ spec: - group: about label: 关于 formSchema: - - $formkit: repeater - name: widgetList + - $formkit: select + name: widget_list + multiple: true + sortable: true label: 小部件 help: 我的介绍&我的想法, 我的问候, 技能&职业生涯, 性格&图片, 座右铭, 爱好, 关注偏好&音乐偏好, 数据统计&作者相关信息。 value: - - widgetId: content-idea - - widgetId: hello-about - - widgetId: authorCareers - - widgetId: personalities-photo - - widgetId: textarea - - widgetId: game - - widgetId: like-music - - widgetId: statistics-map - children: - - $formkit: select - name: widgetId - id: widgetId - label: 模块 - options: - - value: content-idea - label: 我的介绍&我的想法 - - value: hello-about - label: 我的问候 - - value: authorCareers - label: 技能&职业生涯 - - value: personalities-photo - label: 性格&图片 - - value: textarea - label: 座右铭 - - value: game - label: 爱好 - - value: like-music - label: 关注偏好&音乐偏好 - - value: statistics-map - label: 数据统计&作者相关信息 - - $formkit: repeater - name: authorInfoLeftTags + - content-idea + - hello-about + - authorCareers + - personalities-photo + - textarea + - game + - like-music + - statistics-map + options: + - value: content-idea + label: 我的介绍&我的想法 + - value: hello-about + label: 我的问候 + - value: authorCareers + label: 技能&职业生涯 + - value: personalities-photo + label: 性格&图片 + - value: textarea + label: 座右铭 + - value: game + label: 爱好 + - value: like-music + label: 关注偏好&音乐偏好 + - value: statistics-map + label: 数据统计&作者相关信息 + - $formkit: list + name: author_info_left_tags label: 个人标签-左 + addLabel: 添加标签 help: 头像左侧个人标签 - value: [ ] + itemType: string children: - $formkit: text - name: tag - label: 标签 - placeholder: 请输入内容 - - $formkit: repeater - name: authorInfoRightTags + index: "$index" + validation: required + - $formkit: list + name: author_info_right_tags label: 个人标签-右 + addLabel: 添加标签 help: 头像右侧个人标签 - value: [ ] + itemType: string children: - $formkit: text - name: tag - label: 标签 - placeholder: 请输入内容 + index: "$index" + validation: required - $formkit: code name: content label: 我的介绍 @@ -3284,40 +3281,3 @@ spec: label: 结束时间 placeholder: 请输入结束时间(小时) help: 可以与开始时间相同,表示一个小时内的问候 - - - group: advertise - label: 广告设置 - formSchema: - - $formkit: group - name: index_top_adv - label: 首页置顶广告 - value: - enable: false - index_top_adv_url: "https://www.aliyun.com/daily-act/ecs/activity_selection?source=5176.11533457&userCode=ud0msscf" - index_top_adv_img: https://img.alicdn.com/imgextra/i3/O1CN01Tbj8qb1w835uueixH_!!6000000006262-2-tps-3840-120.png - children: - - $formkit: radio - name: enable - id: enable - key: enable - options: - - label: 启用 - value: true - - label: 禁用 - value: false - - $formkit: attachment - name: index_top_adv_img - id: index_top_adv_img - key: index_top_adv_img - if: $get(enable).value - label: 首页置顶广告图片 - validation: required - placeholder: 请输入图片 url - - $formkit: text - name: index_top_adv_url - id: index_top_adv_url - key: index_top_adv_url - if: $get(enable).value - label: 首页置顶广告图片跳转地址 - validation: required - placeholder: 请输入广告图片跳转 url diff --git a/templates/about.html b/templates/about.html index d050d95..ec988c9 100644 --- a/templates/about.html +++ b/templates/about.html @@ -24,27 +24,26 @@
+ th:if="${not #lists.isEmpty(theme.config.about.author_info_left_tags)}" + th:with="authorTags = ${theme.config.about.author_info_left_tags}"> + th:text="${authorTag}">
+ th:if="${not #lists.isEmpty(theme.config.about.author_info_right_tags)}" + th:with="authorTags = ${theme.config.about.author_info_right_tags}"> + th:text="${authorTag}">
- + th:replace="~{modules/about-widgets :: about-widgets(${theme.config.about.widget_list})}">
diff --git a/templates/index.html b/templates/index.html index 709a242..d68cade 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,18 +12,6 @@
-
- - - - -
-
- - diff --git a/templates/modules/about-widgets.html b/templates/modules/about-widgets.html index 56a432c..6a075c3 100644 --- a/templates/modules/about-widgets.html +++ b/templates/modules/about-widgets.html @@ -2,6 +2,6 @@ - + \ No newline at end of file diff --git a/templates/modules/head.html b/templates/modules/head.html index 8a1c590..bd57557 100644 --- a/templates/modules/head.html +++ b/templates/modules/head.html @@ -164,7 +164,7 @@ - +