2 Commits

Author SHA1 Message Date
9705257178 Update app/components/Platine.vue
All checks were successful
Deploy App / build (push) Successful in 35s
Deploy App / deploy (push) Successful in 28s
2026-01-26 16:20:43 +00:00
2f78442deb Update server/api/tracks/playlist.ts
All checks were successful
Deploy App / build (push) Successful in 3m45s
Deploy App / deploy (push) Successful in 20s
2026-01-26 16:11:11 +00:00
2 changed files with 17 additions and 17 deletions

View File

@@ -72,6 +72,22 @@ watch(() => props.track, (newTrack) => {
bottom: 0; bottom: 0;
transform: translate(-50%, 50%); transform: translate(-50%, 50%);
} }
.cover {
position: absolute;
top: 0;
left: 0;
border-radius: 100%;
object-fit: cover;
width: 100%;
height: 100%;
transition: opacity 3s ease;
.loading & {
opacity: 0;
transition: opacity 0.3s ease;
}
}
} }
.disc { .disc {
@@ -161,22 +177,6 @@ watch(() => props.track, (newTrack) => {
border-radius: 50%; border-radius: 50%;
} }
.cover {
position: absolute;
top: 0;
left: 0;
border-radius: 100%;
object-fit: cover;
width: 100%;
height: 100%;
transition: opacity 3s ease;
.loading & {
opacity: 0;
transition: opacity 0.3s ease;
}
}
.spinner { .spinner {
width: 40px; width: 40px;
height: 40px; height: 40px;

View File

@@ -58,7 +58,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}/cover/${encodeURIComponent(file).replace(EXT_RE, '.jpg')}` const coverId = `${urlPrefix}/${encodeURIComponent(file).replace(EXT_RE, '.jpg')}`
return { return {
id: Number(`${year}${index + 1}`), id: Number(`${year}${index + 1}`),