@cubone/react-file-manager
Advanced tools
Comparing version 1.16.3 to 1.17.0
{ | ||
"name": "@cubone/react-file-manager", | ||
"private": false, | ||
"version": "1.16.3", | ||
"version": "1.17.0", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "module": "dist/react-file-manager.es.js", |
@@ -115,2 +115,5 @@ ![React File Manager](https://github.com/user-attachments/assets/cad4d71d-a2fd-4064-9fce-c0c3a7cb4613) | ||
| `maxFileSize` | number | For limiting the maximum upload file size in bytes. | | ||
| `onCopy` | (files: Array<[File](#-file-structure)>) => void | (Optional) A callback function triggered when one or more files or folders are copied providing copied files as an argument. Use this function to perform custom actions on copy event. | | ||
| | | ||
| `onCut` | (files: Array<[File](#-file-structure)>) => void | (Optional) A callback function triggered when one or more files or folders are cut, providing the cut files as an argument. Use this function to perform custom actions on the cut event. | | ||
| `onCreateFolder` | (name: string, parentFolder: [File](#-file-structure)) => void | A callback function triggered when a new folder is created. Use this function to update the files state to include the new folder under the specified parent folder using create folder API call to your server. | | ||
@@ -171,42 +174,4 @@ | `onDelete` | (files: Array<[File](#-file-structure)>) => void | A callback function is triggered when one or more files or folders are deleted. | | ||
## 🤝 Contributing | ||
Contributions are welcome! To contribute: | ||
1. Fork the repository. | ||
2. Create a new branch (`git checkout -b feature/branch-name`). | ||
3. Make your changes. | ||
4. Commit your changes (`git commit -m 'Add some feature'`). | ||
5. Push to the branch (`git push origin feature/branch-name`). | ||
6. Open a Pull Request. | ||
Get started by running following commands: | ||
```bash | ||
git clone https://github.com/Saifullah-dev/react-file-manager.git | ||
cd react-file-manager | ||
``` | ||
**Frontend** | ||
```bash | ||
cd frontend | ||
npm i | ||
npm run dev | ||
``` | ||
The application should now be running on `http://localhost:5173`. | ||
**Backend** | ||
```bash | ||
cd backend | ||
npm i | ||
npm run devStart | ||
``` | ||
The server should now be running on `http://localhost:3000`, have fun! | ||
## ©️ License | ||
React File Manager is [MIT Licensed](LICENSE). |
Sorry, the diff of this file is too big to display
184753
734
3697
176
12