mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Improved file browser
This commit is contained in:
1 parent
8d11acd783
commit
93ec2ef425
10 files changed
+540
-204
No files matched your search
@@ -324,6 +324,13 @@ export interface SourceStatus {
|
||||
playlists: number | null
|
||||
}
|
||||
|
||||
export interface FsPlace {
|
||||
/** Groups the row and picks its icon. Never a finished sentence. */
|
||||
kind: 'home' | 'music' | 'desktop' | 'documents' | 'downloads' | 'volume' | 'library'
|
||||
name: string
|
||||
path: string
|
||||
}
|
||||
|
||||
export interface FsEntry {
|
||||
name: string
|
||||
path: string
|
||||
@@ -432,6 +439,8 @@ export const api = {
|
||||
getJSON<CollectionOptions>(`/api/library/options${qs({ platform })}`),
|
||||
listDir: (path?: string, platform?: string) =>
|
||||
getJSON<FsListing>(`/api/fs/list${qs({ path, platform })}`),
|
||||
// Re-asked rather than cached: drives come and go while a dialog is open.
|
||||
places: (platform?: string) => getJSON<FsPlace[]>(`/api/fs/places${qs({ platform })}`),
|
||||
|
||||
// ---- path remapping (per-collection OS-path prefix translation) ----
|
||||
getPathMapping: () => getJSON<PathMapping>('/api/library/path-mapping'),
|
||||
|
||||
Reference in new issue
Block a user