Gathering detailed insights and metrics for vue3-smooth-dnd
Gathering detailed insights and metrics for vue3-smooth-dnd
Gathering detailed insights and metrics for vue3-smooth-dnd
Gathering detailed insights and metrics for vue3-smooth-dnd
npm install vue3-smooth-dnd
Typescript
Module System
Node Version
NPM Version
79
Supply Chain
88.6
Quality
75.3
Maintenance
100
Vulnerability
100
License
Vue (48.38%)
JavaScript (45.73%)
CSS (3.86%)
HTML (2.03%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
210 Stars
19 Commits
21 Forks
1 Watchers
2 Branches
4 Contributors
Updated on Jul 03, 2025
Latest Version
0.0.6
Package Id
vue3-smooth-dnd@0.0.6
Unpacked Size
31.61 kB
Size
5.97 kB
File Count
8
NPM Version
8.11.0
Node Version
16.16.0
Published on
Sep 13, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Vue 3 Wrapper of smooth-dnd library.
Live demo
NOTE: This is a Vue 3 wrapper over smooth-dnd library. It's a fork of the already done vue2 wrapper done by the original author of the library.
All the documentation for the Vue 2 version works with this package version too!
1npm install vue3-smooth-dnd
1<template> 2 <div> 3 <span>Studio Ghibli Tier List</span> 4 <Container @drop="onDrop"> 5 <Draggable v-for="(item, i) in items" :key="item.id"> 6 <div> 7 {{i + 1}} -> {{item.data}} 8 </div> 9 </Draggable> 10 </Container> 11 </div> 12</template> 13 14<script> 15import { Container, Draggable } from "vue3-smooth-dnd"; 16export default { 17 name: "app", 18 components: { Container, Draggable }, 19 data() { 20 return { 21 items: [ 22 { id: 1, data: "Princess Mononoke" }, 23 { id: 2, data: "Spirited Away" }, 24 { id: 3, data: "My Neighbor Totoro" }, 25 { id: 4, data: "Howl's Moving Castle" } 26 ] 27 }; 28 }, 29 methods: { 30 onDrop(dropResult){ 31 this.items = this.applyDrag(this.items, dropResult); 32 }, 33 applyDrag(arr, dragResult){ 34 const { removedIndex, addedIndex, payload } = dragResult; 35 36 if (removedIndex === null && addedIndex === null) return arr; 37 const result = [...arr]; 38 let itemToAdd = payload; 39 40 if (removedIndex !== null) { 41 itemToAdd = result.splice(removedIndex, 1)[0]; 42 } 43 if (addedIndex !== null) { 44 result.splice(addedIndex, 0, itemToAdd); 45 } 46 return result; 47 } 48 } 49} 50</script>
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/17 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More