mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented export creation UI
This commit is contained in:
1 parent
805b95fe5e
commit
7160fa3978
9 files changed
+787
-17
No files matched your search
@@ -504,6 +504,11 @@ export const api = {
|
||||
getJSON<ExportContents>(`/api/exports/${encodeURIComponent(id)}/contents`),
|
||||
exportTracks: (id: string) =>
|
||||
getJSON<Track[]>(`/api/exports/${encodeURIComponent(id)}/tracks`),
|
||||
// Only the tracks added individually — the "Other" bucket, which becomes its
|
||||
// own playlist in the exported library. Not a filter on exportTracks: that one
|
||||
// is everything the export would ship, playlists included and deduped.
|
||||
exportLooseTracks: (id: string) =>
|
||||
getJSON<Track[]>(`/api/exports/${encodeURIComponent(id)}/loose`),
|
||||
exportPlaylistTracks: (id: string, playlistId: string) =>
|
||||
getJSON<Track[]>(
|
||||
`/api/exports/${encodeURIComponent(id)}/playlists/${encodeURIComponent(playlistId)}/tracks`,
|
||||
|
||||
Reference in new issue
Block a user