Skip to content

Commit

Permalink
Merge pull request #137 from mjsoftking/feat-moments-muisc
Browse files Browse the repository at this point in the history
feat(moments):瞬间支持音乐内容播放器
  • Loading branch information
nineya authored May 23, 2024
2 parents e5f36b0 + 8fdb24f commit eb430d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added templates/assets/img/music.webp
Binary file not shown.
7 changes: 7 additions & 0 deletions templates/moments.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
<th:block th:if="${!#lists.isEmpty(moment.spec.content.medium)}" th:each="momentItem : ${moment.spec.content.medium}">
<mew-video th:if="${momentItem.type.name == 'VIDEO'}" th:src="${momentItem.url}"></mew-video>
</th:block>
<th:block th:if="${!#lists.isEmpty(moment.spec.content.medium)}" th:each="momentItem : ${moment.spec.content.medium}">
<mew-music th:if="${momentItem.type.name == 'AUDIO'}" th:url="${momentItem.url}"
th:with="list = ${#strings.listSplit(momentItem.url,'/')}, size = ${#lists.size(list)}"
th:name="${size >= 0 ? list[size - 1] : momentItem.url}"
th:cover="${#theme.assets('/img/music.webp')}"
></mew-music>
</th:block>
</div>
</div>
<div class="journal-operation">
Expand Down

0 comments on commit eb430d0

Please sign in to comment.