playlists support v1
All checks were successful
Deploy App / build (push) Successful in 4m19s
Deploy App / deploy (push) Successful in 16s

This commit is contained in:
valere
2025-10-09 22:47:30 +02:00
parent c86e345117
commit e2c5693948
30 changed files with 620 additions and 554 deletions

View File

@@ -16,29 +16,28 @@ export interface Artist {
url: string
coverId: string
}
export interface Track {
id: number
order: number
order?: number
compilationId: string
title: string
artist: Artist
start: number
artist?: Artist | { id?: Artist }
start?: number
url: string
coverId: string
coverId?: string
date?: Date
card?: { suit: CardSuit; value: CardRank }
link?: string
}
export interface Playlist {
id: number
date: Date
title: string
url: string
filename: string
}
// pour une v2
export type BoxState = 'hide' | 'list' | 'selected'
export interface BoxPosition {
x: number
y: number
z: number
}
export interface BoxSize {
h: number
w: number
d: number
}
export type CardSuit = '♠' | '♣' | '♦' | '♥'
export type CardRank = 'A' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | 'J' | 'Q' | 'K'