SortableJS / vue.draggable.next

Vue 3 compatible drag-and-drop component based on Sortable.js
https://sortablejs.github.io/vue.draggable.next/#/simple
MIT License
3.9k stars 531 forks source link

"direct link" URLs 404 #164

Open LeaVerou opened 2 years ago

LeaVerou commented 2 years ago

The README mentions:

with direct link


<script src="//cdnjs.cloudflare.com/ajax/libs/vue/3.0.2/vue.min.js"></script>
<!-- CDNJS :: Sortable (https://cdnjs.com/) -->
<script src="//cdn.jsdelivr.net/npm/sortablejs@1.10.2/Sortable.min.js"></script>
<!-- CDNJS :: Vue.Draggable (https://cdnjs.com/) -->
<script src="//cdnjs.cloudflare.com/ajax/libs/Vue.Draggable/4.0.0/vuedraggable.umd.min.js"></script>

However 2 out of 3 of these produce a 404: only sortable works. It would also be nice to include import ... code for those that want to use ESM a the CDN URL.

It's also surprising if this doesn't import its own dependencies and needs Sortable as a peer dependency. I'm also not sure Vue would be needed here. Anybody using this is already importing Vue in some way.

shrft commented 1 year ago

You can get it here https://cdn.jsdelivr.net/npm/vuedraggable@4.0.2/dist/vuedraggable.umd.min.js