|
|
@ -346,16 +346,18 @@ export type Actions = {[A in keyof ActionPayloadTypes]: Action<A>}[keyof ActionP |
|
|
|
export type WorkspaceElement = 'folder' | 'file' | 'workspace' |
|
|
|
export type WorkspaceElement = 'folder' | 'file' | 'workspace' |
|
|
|
|
|
|
|
|
|
|
|
export interface FlatTreeDropProps { |
|
|
|
export interface FlatTreeDropProps { |
|
|
|
moveFile: (dest: string, src: string[]) => void |
|
|
|
moveFile: (dest: string, src: string) => void |
|
|
|
moveFolder: (dest: string, src: string[]) => void |
|
|
|
moveFolder: (dest: string, src: string) => void |
|
|
|
moveFolderSilently: (dest: string, src: string[]) => Promise<void> |
|
|
|
moveFolderSilently: (dest: string, src: string) => Promise<void> |
|
|
|
moveFileSilently: (dest: string, src: string[]) => Promise<void> |
|
|
|
moveFileSilently: (dest: string, src: string) => Promise<void> |
|
|
|
setFilesSelected: Dispatch<React.SetStateAction<string[]>> |
|
|
|
setFilesSelected: Dispatch<React.SetStateAction<string[]>> |
|
|
|
getFlatTreeItem: (path: string) => FileType |
|
|
|
getFlatTreeItem: (path: string) => FileType |
|
|
|
handleClickFolder: (path: string, type: string) => void |
|
|
|
handleClickFolder: (path: string, type: string) => void |
|
|
|
dragSource: FileType |
|
|
|
dragSource: FileType |
|
|
|
children: React.ReactNode |
|
|
|
children: React.ReactNode |
|
|
|
expandPath: string[] |
|
|
|
expandPath: string[] |
|
|
|
|
|
|
|
selectedItems: DragStructure[] |
|
|
|
|
|
|
|
setSelectedItems: Dispatch<React.SetStateAction<DragStructure[]>> |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export type DragStructure = { |
|
|
|
export type DragStructure = { |
|
|
|