yeah
All checks were successful
Deploy App / build (push) Successful in 10s
Deploy App / deploy (push) Successful in 11s

This commit is contained in:
valere
2026-02-02 21:00:28 +01:00
parent e257e076c4
commit b9a3d0184f
98 changed files with 5068 additions and 3713 deletions

View File

@@ -1,54 +1,18 @@
// types.ts
export type BoxType = 'playlist' | 'compilation'
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[]
sides?: {
A: BoxSide
B: BoxSide
}
activeSide: 'A' | 'B'
}
export interface Artist {
id: number
name: string
url: string
coverId: string
}
export interface Track {
id: number
side?: 'A' | 'B'
order?: number
boxId: string
export interface Card {
url_audio: string
url_image: string
year: number
month: string
day: string
hour: string
artist: string
title: string
artist?: Artist | number | string
start?: number
duration?: number
url: string
coverId?: string
date?: Date
card?: { suit: CardSuit; rank: CardRank }
link?: string
type: BoxType
year?: number
color: string
esid: string
slug: string
createdAt: Date
suit: Suit
rank: Rank
}
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'
export type Suit = '♠' | '♣' | '' | ''
export type Rank = 'A' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | 'J' | 'Q' | 'K'