eS v1
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user