playlist is a yellow box

This commit is contained in:
valere
2025-11-26 16:19:21 +01:00
parent b2b3b69561
commit ba34ecece0

View File

@@ -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
}))
}) })