{"repo":"kasper9n/svelte-tauri-filedrop","free":true,"listed":false,"github":"https://github.com/kasper9n/svelte-tauri-filedrop","clone":"git clone https://github.com/kasper9n/svelte-tauri-filedrop.git","description":"Tauri file drop handling component for Svelte","language":"Svelte","stars":136,"topics":["tauri","svelte","dropzone","filedrop","package"],"license":"MIT","category":"ui-components","readme_excerpt":"Svelte Tauri FileDrop Tauri file drop handling component for Svelte. Install Usage API extensions property: string[] null List of allowed file extensions. Disallowed files are filtered out. If it's null (default), all file extensions are allowed. handleFiles property: (string[]) = {} Handle a file drop of one or more files handleOneFile property: (string[]) = {} Handle a file drop of a single file. Note that handleFile() is also called. This is not called if any disallowed files were filtered out. files slot property: string[] An array of the currently droppable files, excluding disallowed files. You can use this variable through a let binding: let:files . Dev Instructions Get started 1. Install Node.js (v14 works) 2. Install Rust (v1.50 works) 3. Follow the Tauri setup guide 4. Run npm install Commands - npm run dev : Start in dev mode - npm run package : Build and package the component - npm run lint : Lint - npm run format : Format Publish new version 1. Update CHANGELOG.md 2. Check for errors 3. Bump the version number 4. Generate the package 5. Publish the package 6. Commit with a tag in format \"v#.#.#\" 7. Create GitHub release with release notes","default_branch":null,"files":null,"tree":[],"storefront":"/r/kasper9n","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kasper9n/svelte-tauri-filedrop/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}