FEAT: side A/B
All checks were successful
Deploy App / build (push) Successful in 14s
Deploy App / deploy (push) Successful in 9s

This commit is contained in:
valere
2025-11-15 21:56:37 +01:00
parent 3424d2d6fc
commit 1b8b998622
49 changed files with 563 additions and 822 deletions

View File

@@ -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 {