Skip to content

Commit

Permalink
optimzie: default theme subject details html (#623)
Browse files Browse the repository at this point in the history
* build: upgrade to v0.14.1

* fix: default theme artplayer js error

* optimize: default theme subject-detail.html
  • Loading branch information
ChiveHao authored Jul 13, 2024
1 parent 60a037e commit 640be3e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

更新日志文档,版本顺序从新到旧,最新版本在最前(上)面。

# 0.14.1

## 优化

- 默认主题的js问题修复
- 默认主题的条目详情页添加URL选择的剧集参数

# 0.14.0

## 优化
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.14.0
version=0.14.1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import run.ikaros.api.core.attachment.VideoSubtitle;
Expand Down Expand Up @@ -63,7 +64,8 @@ public Mono<String> index(Model model, Integer page, Integer size, SubjectType t
* Get subject details by id.
*/
@GetMapping("/{id}")
public Mono<String> findById(@PathVariable("id") Long id, Model model) {
public Mono<String> findById(@PathVariable("id") Long id,
@RequestParam("episode") Integer epSeq, Model model) {
return subjectService.findById(id)
.flatMap(subject -> addEpisodesResourcesAttachmentIdSubtitleMap2Model(subject, model))
.map(subject -> model.addAttribute("subject", subject))
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/templates/simple

0 comments on commit 640be3e

Please sign in to comment.