mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
feat: show contained playlists under My videos (#5125)
* feat: show contained playlists under My videos closes #4769 * refactor(server): remove unused types * fixes after code review * fix(client/video-miniature): add to playlist * fix(server/user/me): shortUUID response * Revert "fix(client/video-miniature): add to playlist" This reverts commitf1a0412391. * fix(client/PlaylistService): caching * Revert "fix(server/user/me): shortUUID response" This reverts commite3f1ee4e33. * Fix fetching playlists Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
export type VideosExistInPlaylists = {
|
||||
[videoId: number ]: VideoExistInPlaylist[]
|
||||
}
|
||||
export type CachedVideosExistInPlaylists = {
|
||||
[videoId: number ]: CachedVideoExistInPlaylist[]
|
||||
}
|
||||
|
||||
export type VideoExistInPlaylist = {
|
||||
export type CachedVideoExistInPlaylist = {
|
||||
playlistElementId: number
|
||||
playlistId: number
|
||||
startTimestamp?: number
|
||||
stopTimestamp?: number
|
||||
}
|
||||
|
||||
export type VideoExistInPlaylist = CachedVideoExistInPlaylist & {
|
||||
playlistDisplayName: string
|
||||
playlistShortUUID: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user