playlist is a yellow box
This commit is contained in:
@@ -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
|
|
||||||
}))
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user