mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-10 22:32:17 +02:00
Add playqueue table
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { Song } from '@/renderer/api/types';
|
||||
import { AppRoute } from './router/routes';
|
||||
|
||||
export type RouteSlug = {
|
||||
@@ -10,6 +11,8 @@ export type CardRoute = {
|
||||
slugs?: RouteSlug[];
|
||||
};
|
||||
|
||||
export type TableType = 'nowPlaying' | 'sideQueue' | 'sideDrawerQueue';
|
||||
|
||||
export type CardRow = {
|
||||
arrayProperty?: string;
|
||||
property: string;
|
||||
@@ -93,6 +96,31 @@ export enum SortOrder {
|
||||
DESC = 'desc',
|
||||
}
|
||||
|
||||
export enum TableColumn {
|
||||
ALBUM = 'album',
|
||||
ALBUM_ARTIST = 'albumArtist',
|
||||
ARTIST = 'artist',
|
||||
BIT_RATE = 'bitRate',
|
||||
DATE_ADDED = 'dateAdded',
|
||||
DISC_NUMBER = 'discNumber',
|
||||
DURATION = 'duration',
|
||||
// FAVORITE = 'favorite',
|
||||
GENRE = 'genre',
|
||||
// PATH = 'path',
|
||||
// PLAY_COUNT = 'playCount',
|
||||
// RATING = 'rating',
|
||||
RELEASE_DATE = 'releaseDate',
|
||||
ROW_INDEX = 'rowIndex',
|
||||
// SKIP = 'skip',
|
||||
// SIZE = 'size',
|
||||
TITLE = 'title',
|
||||
TITLE_COMBINED = 'titleCombined',
|
||||
TRACK_NUMBER = 'trackNumber',
|
||||
YEAR = 'releaseYear',
|
||||
}
|
||||
|
||||
export type QueueSong = Song & UniqueId;
|
||||
|
||||
export type PlayQueueAddOptions = {
|
||||
byData?: any[];
|
||||
byItemType?: {
|
||||
|
||||
Reference in New Issue
Block a user