Compare commits
2 Commits
b2b3b69561
...
27697ca797
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27697ca797 | ||
|
|
ba34ecece0 |
@@ -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>
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { eventHandler } from 'h3'
|
import { eventHandler } from 'h3'
|
||||||
import type { Box } from '~~/types/types'
|
import type { Box } from '~~/types/types'
|
||||||
|
|
||||||
const boxes: Box[] = [
|
export default eventHandler<Box[]>(() => {
|
||||||
|
return [
|
||||||
{
|
{
|
||||||
id: 'ES01',
|
id: 'ES01',
|
||||||
type: 'compilation',
|
type: 'compilation',
|
||||||
@@ -59,13 +60,9 @@ const boxes: Box[] = [
|
|||||||
duration: 0,
|
duration: 0,
|
||||||
description: '♠♦♣♥',
|
description: '♠♦♣♥',
|
||||||
state: 'box-hidden',
|
state: 'box-hidden',
|
||||||
activeSide: 'A'
|
activeSide: 'A',
|
||||||
|
color1: '#fdec50ff',
|
||||||
|
color2: '#fdec50ff'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export default eventHandler(() => {
|
|
||||||
return boxes.map((box) => ({
|
|
||||||
...box,
|
|
||||||
state: 'box-hidden' as const
|
|
||||||
}))
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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