eS v1
All checks were successful
Deploy App / build (push) Successful in 2m14s
Deploy App / deploy (push) Successful in 14s

This commit is contained in:
valere
2025-10-16 00:42:38 +02:00
parent ce73155cfa
commit 3ad8cb8795
21 changed files with 752 additions and 332 deletions

View File

@@ -1,6 +1,7 @@
// types.ts
export interface Compilation {
export interface Box {
id: string
type: 'playlist' | 'compilation'
name: string
duration: number
tracks?: Track[]
@@ -8,6 +9,7 @@ export interface Compilation {
color2: string
color1: string
color3: string
state: BoxState
}
export interface Artist {
@@ -19,15 +21,16 @@ export interface Artist {
export interface Track {
id: number
order?: number
compilationId: string
boxId: string
title: string
artist?: Artist | { id?: Artist }
artist?: Artist | number | string
start?: number
url: string
coverId?: string
date?: Date
card?: { suit: CardSuit; value: CardRank }
card?: { suit: CardSuit; rank: CardRank }
link?: string
type: 'playlist' | 'compilation'
}
export interface Playlist {
@@ -38,6 +41,6 @@ export interface Playlist {
filename: string
}
export type BoxState = 'hide' | 'list' | 'selected'
export type BoxState = 'box-hidden' | 'box-list' | 'box-selected'
export type CardSuit = '♠' | '♣' | '♦' | '♥'
export type CardRank = 'A' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | 'J' | 'Q' | 'K'