kubesail / pibox-host

8 stars 0 forks source link

filebrowser brainstorming #9

Open pastudan opened 1 year ago

pastudan commented 1 year ago

Actions needed:

onCreateFolder={this.handleCreateFolder}
onCreateFiles={this.handleCreateFiles}
onMoveFolder={this.handleRenameFolder}
onMoveFile={this.handleRenameFile}
onRenameFolder={this.handleRenameFolder}
onRenameFile={this.handleRenameFile}
onDeleteFolder={this.handleDeleteFolder}
onDeleteFile={this.handleDeleteFile}
pastudan commented 1 year ago

@AndrewDennistoun These are the events we receive from the react-based file browser library I'm using. I expect you'll end up a similar set of events.

The full demo code is here https://github.com/uptick/react-keyed-file-browser/blob/master/demo-site/nested-editable.js

It might be helpful to look through these handler functions, since I notice they do some things like handling the file & folder naming on the client side. I'll double check it on the backend, but if we can prevent a failed request to the backend then I think the app will feel snappier & more responsive.

pastudan commented 1 year ago

https://github.com/marmelroy/FileBrowser