update cover card url & artist/title fonts
This commit is contained in:
@@ -34,10 +34,10 @@
|
|||||||
<div class="label" v-if="isOrder">
|
<div class="label" v-if="isOrder">
|
||||||
{{ props.track.order }}
|
{{ props.track.order }}
|
||||||
</div>
|
</div>
|
||||||
<h2 class="text-base text-neutral-800 font-bold truncate">
|
<h2 class="text-sm text-neutral-500 first-letter:uppercase truncate">
|
||||||
{{ props.track.title }}
|
{{ props.track.title }}
|
||||||
</h2>
|
</h2>
|
||||||
<p class="text-sm text-neutral-500 truncate">
|
<p class="text-base text-neutral-800 font-bold capitalize truncate">
|
||||||
<template v-if="isPlaylistTrack">
|
<template v-if="isPlaylistTrack">
|
||||||
{{ props.track.artist.name }}
|
{{ props.track.artist.name }}
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export default eventHandler(async (event) => {
|
|||||||
const date = new Date(year, month - 1, day, hour)
|
const date = new Date(year, month - 1, day, hour)
|
||||||
const card = getCardFromDate(date)
|
const card = getCardFromDate(date)
|
||||||
const url = `${urlPrefix}/${encodeURIComponent(file)}`
|
const url = `${urlPrefix}/${encodeURIComponent(file)}`
|
||||||
const coverId = `${urlPrefix}/${encodeURIComponent(file).replace(EXT_RE, '.jpg')}`
|
const coverId = `${urlPrefix}/cover/${encodeURIComponent(file).replace(EXT_RE, '.jpg')}`
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: Number(`${year}${index + 1}`),
|
id: Number(`${year}${index + 1}`),
|
||||||
|
|||||||
Reference in New Issue
Block a user