mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
add support for full playlist re-order (#1327)
This commit is contained in:
@@ -3,6 +3,11 @@ import { LibraryItem } from '/@/shared/types/domain-types';
|
||||
export type EventMap = {
|
||||
ITEM_LIST_REFRESH: ItemListRefreshEventPayload;
|
||||
ITEM_LIST_UPDATE_ITEM: ItemListUpdateItemEventPayload;
|
||||
PLAYLIST_MOVE_DOWN: PlaylistMoveEventPayload;
|
||||
PLAYLIST_MOVE_TO_BOTTOM: PlaylistMoveEventPayload;
|
||||
PLAYLIST_MOVE_TO_TOP: PlaylistMoveEventPayload;
|
||||
PLAYLIST_MOVE_UP: PlaylistMoveEventPayload;
|
||||
PLAYLIST_REORDER: PlaylistReorderEventPayload;
|
||||
USER_FAVORITE: UserFavoriteEventPayload;
|
||||
USER_RATING: UserRatingEventPayload;
|
||||
};
|
||||
@@ -17,6 +22,18 @@ export type ItemListUpdateItemEventPayload = {
|
||||
key: string;
|
||||
};
|
||||
|
||||
export type PlaylistMoveEventPayload = {
|
||||
playlistId: string;
|
||||
sourceIds: string[];
|
||||
};
|
||||
|
||||
export type PlaylistReorderEventPayload = {
|
||||
edge: 'bottom' | 'top' | null;
|
||||
playlistId: string;
|
||||
sourceIds: string[];
|
||||
targetId: string;
|
||||
};
|
||||
|
||||
export type UserFavoriteEventPayload = {
|
||||
favorite: boolean;
|
||||
id: string[];
|
||||
|
||||
Reference in New Issue
Block a user