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