mirror of
https://github.com/ngthanhvu/kr-phim.git
synced 2026-08-10 15:07:46 +00:00
feat: implement movie utility service and detail/view pages for Korean movies
This commit is contained in:
@@ -17,6 +17,7 @@ const servers = computed(() => movie.value?.servers ?? [])
|
||||
const activeServer = computed(() => servers.value[selectedServer.value] ?? servers.value[0])
|
||||
const activeEpisode = computed(() => activeServer.value?.episodes?.[selectedEpisode.value] ?? activeServer.value?.episodes?.[0])
|
||||
const playerUrl = computed(() => activeEpisode.value?.linkEmbed || activeEpisode.value?.linkM3u8 || '')
|
||||
const actorSummary = computed(() => (movie.value?.actors ?? []).map((actor: any) => actor.name).filter(Boolean).slice(0, 6).join(', '))
|
||||
|
||||
type WatchHistoryItem = {
|
||||
source: string
|
||||
@@ -217,8 +218,8 @@ useHead(() => ({
|
||||
<p v-if="movie.countries?.length"><span class="font-black text-white">Quốc gia:</span> {{
|
||||
movie.countries.join(', ') }}</p>
|
||||
<p v-if="movie.year"><span class="font-black text-white">Năm:</span> {{ movie.year }}</p>
|
||||
<p v-if="movie.actors?.length"><span class="font-black text-white">Diễn viên:</span> {{
|
||||
movie.actors.slice(0, 6).join(', ') }}</p>
|
||||
<p v-if="actorSummary"><span class="font-black text-white">Diễn viên:</span> {{
|
||||
actorSummary }}</p>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user