增加自定义html内容,音乐播放器属性增强

This commit is contained in:
mjsoftware 2024-12-21 11:01:47 +08:00
parent 97ed93ede4
commit 7274702b01
5 changed files with 14 additions and 3 deletions

View File

@ -1644,3 +1644,10 @@ spec:
label: "内嵌JSbody"
placeholder: 请输入 JS 代码内容
help: '填入JS代码无需script标签将插入body标签尾部。'
- $formkit: code
language: html
height: 45px
name: inline_body_html
label: "内嵌Html内容body"
placeholder: 请输入 Html 代码内容
help: '填入Html代码将插入body标签尾部用于自定义显示一段Html内容注意Html内容默认会在页脚下方请注意设置样式避免页脚出现样式问题。'

View File

@ -110,7 +110,10 @@ document.addEventListener('DOMContentLoaded', () => {
}
// eslint-disable-next-line no-async-promise-executor
new Promise(async (resolve) => {
if (this.hasAttribute('song')) {
if (this.hasAttribute('meetingApi')) {
this.options.audio = await fetch(this.getAttribute('meetingApi'))
.then((response) => response.json())
} else if (this.hasAttribute('song')) {
this.options.audio = await fetch(
'https://api.i-meto.com/meting/api?server=netease&type=song&id=' +
this.getAttribute('song')

File diff suppressed because one or more lines are too long

View File

@ -32,6 +32,7 @@
<th:block th:replace="~{common/actions}"/>
<th:block th:replace="~{common/footer}"/>
<th:block th:replace="~{common/scripts}"/>
<th:block th:utext="${theme.config.custom.inline_body_html}"></th:block>
</body>
</th:block>
</th:block>

View File

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