file browser overhaul

This commit is contained in:
2023-05-26 17:31:00 +02:00
parent 58b05e1403
commit 5d97873748
3 changed files with 59 additions and 23 deletions

View File

@@ -65,16 +65,14 @@ export type DLFormat = {
export type DirectoryEntry = {
name: string
path: string
size: number
shaSum: string
isVideo: boolean,
modTime: string
isVideo: boolean
isDirectory: boolean
}
export type DeleteRequest = Omit<
DirectoryEntry, 'name' | 'isDirectory' | 'isVideo'
>
export type DeleteRequest = Pick<DirectoryEntry, 'path' | 'shaSum'>
export type PlayRequest = Omit<
DirectoryEntry, 'shaSum' | 'name' | 'isDirectory' | 'isVideo'
>
export type PlayRequest = Pick<DirectoryEntry, 'path'>