自定义内容 配置项 调整为 Html输入框

This commit is contained in:
j m 2024-12-05 06:50:32 +08:00
parent 1e0f8db9b8
commit 0efaed4832
4 changed files with 11 additions and 9 deletions

8
package-lock.json generated
View File

@ -11,7 +11,7 @@
"dependencies": {
"html2canvas": "^1.4.1",
"qrcode": "^1.5.1",
"remixicon": "^4.3.0"
"remixicon": "^4.5.0"
},
"devDependencies": {
"@babel/core": "^7.15.5",
@ -7377,9 +7377,9 @@
}
},
"node_modules/remixicon": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/remixicon/-/remixicon-4.3.0.tgz",
"integrity": "sha512-jRYQ37dTFSkJtvcxwTUAkIiXkYRvA9EDvVuXPNrmt2xf/VS//CRgFtsX2TAFBoQOhh9SDh7l6La4Xu12snEyxg=="
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/remixicon/-/remixicon-4.5.0.tgz",
"integrity": "sha512-IP/wNQGG3JCigaeFF3DERSTqMIZBlNu1yu8clNGB7wFe7ZN/ueKMplFHL5uEbnGpCzqfY6MlxIYn2vRzub+5cQ=="
},
"node_modules/remove-bom-buffer": {
"version": "3.0.0",

View File

@ -46,10 +46,12 @@ spec:
name: record_number_ps
label: 公安部备案
placeholder: 'X公网安备 XXXXXXXXXXXXXX号'
- $formkit: text
- $formkit: code
name: custom_text
language: html
height: 45px
label: 自定义内容
placeholder: '自定义内容'
placeholder: '自定义内容支持html'
help: '在网站页脚建站时间上方显示自定义内容。'
- $formkit: datetime-local
name: website_time
@ -126,7 +128,7 @@ spec:
label: 控制台鼠标悬停提示,留空不显示
- $formkit: text
name: console_url
validation: required
validation: requiredc
if: $get(show_console).value
label: 未登录时控制台跳转URL
value: '/login'

View File

@ -21,7 +21,7 @@
th:src="${#theme.assets('/img/ba.webp')}" height="auto" width="auto" alt="备案" style="vertical-align: text-top; width: 1.2em; margin-right: 4px;"/>[[${theme.config.basic_info.record_number}]]</a>
<a th:if="${!#strings.isEmpty(theme.config.basic_info.record_number_ps)}" class="record footer-truncation" th:href="'https://beian.mps.gov.cn/#/query/webSearch?code=' + ${theme.config.basic_info.record_number_ps.replaceAll('[^\d]', '')}" target="_blank" rel="noopener noreferrer nofollow"><img
th:src="${#theme.assets('/img/ga.webp')}" height="auto" width="auto" alt="公网安备" style="vertical-align: text-top; width: 1.2em; margin-right: 4px;"/>[[${theme.config.basic_info.record_number_ps}]]</a></p>
<p th:if="${!#strings.isEmpty(theme.config.basic_info.custom_text)}">[[${theme.config.basic_info.custom_text}]]</p>
<p th:if="${!#strings.isEmpty(theme.config.basic_info.custom_text)}" th:utext="${theme.config.basic_info.custom_text}"></p>
<p class="icon-spot" th:if="${!#strings.isEmpty(theme.config.basic_info.website_time) || theme.config.enhance.enable_busuanzi == true}">
<span th:if="${!#strings.isEmpty(theme.config.basic_info.website_time)}" id="websiteDate">建站<span class="stand">00</span><span class="stand">0</span><span class="stand">0</span><span class="stand">0</span></span>
<span th:if="${theme.config.enhance.busuanzi_group.enable_busuanzi == true}" class="icon-spot footer-truncation">

View File

@ -30,7 +30,7 @@ spec:
settingName: theme-dream2-plus-setting
configMapName: theme-dream2-plus-configMap
# 版本号
version: 1.3.2.beta4
version: 1.3.2.beta5
# 最低支持的 Halo 版本
require: ">=2.20.0"
# 许可