Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filebrowser brainstorming #9

Open
pastudan opened this issue Jun 26, 2023 · 2 comments
Open

filebrowser brainstorming #9

pastudan opened this issue Jun 26, 2023 · 2 comments

Comments

@pastudan
Copy link
Contributor

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
Copy link
Contributor Author

@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
Copy link
Contributor Author

@pastudan pastudan reopened this Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant