FEAT: side A/B
This commit is contained in:
@@ -1,20 +1,27 @@
|
||||
// types.ts
|
||||
export type BoxType = 'playlist' | 'compilation' | 'userPlaylist'
|
||||
|
||||
export interface BoxSide {
|
||||
duration: number
|
||||
color1: string
|
||||
color2: string
|
||||
name?: string
|
||||
description?: string
|
||||
}
|
||||
|
||||
export interface Box {
|
||||
id: string
|
||||
type: BoxType
|
||||
name: string
|
||||
description: string
|
||||
state: BoxState
|
||||
duration: number
|
||||
tracks?: Track[]
|
||||
description: string
|
||||
color2: string
|
||||
color1: string
|
||||
color3: string
|
||||
state: BoxState
|
||||
// Pour les userPlaylist, on peut ajouter des métadonnées spécifiques
|
||||
ownerId?: string
|
||||
isPublic?: boolean
|
||||
sides?: {
|
||||
A: BoxSide
|
||||
B: BoxSide
|
||||
}
|
||||
activeSide: 'A' | 'B'
|
||||
}
|
||||
|
||||
export interface Artist {
|
||||
@@ -25,6 +32,7 @@ export interface Artist {
|
||||
}
|
||||
export interface Track {
|
||||
id: number
|
||||
side?: 'A' | 'B'
|
||||
order?: number
|
||||
boxId: string
|
||||
title: string
|
||||
@@ -37,6 +45,7 @@ export interface Track {
|
||||
card?: { suit: CardSuit; rank: CardRank }
|
||||
link?: string
|
||||
type: BoxType
|
||||
year?: number
|
||||
}
|
||||
|
||||
export interface Playlist {
|
||||
|
||||
Reference in New Issue
Block a user