evilSpins v1
All checks were successful
Deploy App / build (push) Successful in 43s
Deploy App / deploy (push) Successful in 41s

This commit is contained in:
valere
2025-11-04 22:41:41 +01:00
parent deb15b3ea1
commit 34d22b3b17
49 changed files with 5791 additions and 2447 deletions

View File

@@ -1,7 +1,9 @@
// types.ts
export type BoxType = 'playlist' | 'compilation' | 'userPlaylist'
export interface Box {
id: string
type: 'playlist' | 'compilation'
type: BoxType
name: string
duration: number
tracks?: Track[]
@@ -10,6 +12,9 @@ export interface Box {
color1: string
color3: string
state: BoxState
// Pour les userPlaylist, on peut ajouter des métadonnées spécifiques
ownerId?: string
isPublic?: boolean
}
export interface Artist {
@@ -25,12 +30,13 @@ export interface Track {
title: string
artist?: Artist | number | string
start?: number
duration?: number
url: string
coverId?: string
date?: Date
card?: { suit: CardSuit; rank: CardRank }
link?: string
type: 'playlist' | 'compilation'
type: BoxType
}
export interface Playlist {