kanriapp / kanri

🪐 Modern offline Kanban board app for Windows, MacOS and Linux. Built with simplicity and user experience in mind.
https://kanriapp.com
GNU General Public License v3.0
668 stars 50 forks source link

smooth-dnd is unmaintained #18

Open trobonox opened 1 year ago

trobonox commented 1 year ago

For now there seems to be no resulting security vulnerabilities but for the future using an alternative library or the HTML drag & drop API might be needed.

trobonox commented 1 year ago

Possible alternative implementation: https://codepen.io/l-portet/pen/jObbRYJ

trobonox commented 1 year ago

A library which could also be useful for the planned widget panel: https://muuri.dev/

trobonox commented 1 year ago

Another potential option: https://github.com/PuruVJ/neodrag

trobonox commented 1 year ago

The library for Vue 3 seems to be still maintained, it is just the underlying base library which is unmaintained. If the maintainer of the Vue 3 package handles this problem appropriately, it might not be a problem.

trobonox commented 6 months ago

https://drag-and-drop-docs.vercel.app/ this could be a really solid option the replace the current library

jaca1119 commented 6 months ago

Hi @trobonox I don't know why exactly you don't use HTML drag and drop but if the reason is that it doesn't work on Windows (with WebView2) then you can disable fileDropEnabled in tauri.conf.json -> https://tauri.app/v1/api/config/#windowconfig.filedropenabled (The path will be tauri->windows[0]->fileDropEnabled there are multiple windows but autocomplete should help).

Of course it depends if you use file drop in your app.

trobonox commented 6 months ago

Hi @trobonox I don't know why exactly you don't use HTML drag and drop but if the reason is that it doesn't work on Windows (with WebView2) then you can disable fileDropEnabled in tauri.conf.json -> https://tauri.app/v1/api/config/#windowconfig.filedropenabled (The path will be tauri->windows[0]->fileDropEnabled there are multiple windows but autocomplete should help).

Of course it depends if you use file drop in your app.

Thanks for your suggestion, I did consider using the HTML drag and drop API, but I have very specific needs for the drag and drop interactions. I need it to be sortable and have smooth animations, and it's less effort to use a premade library instead of implementing it manually and "reinventing the wheel".