Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
dndlist
Advanced tools
Readme
https://github.com/tarzandong/tzComponents.git
/// main.ts
import { createApp } from 'vue'
import App from './App.vue'
//import dndComponents from 'dndlist' //global import, not recommended
import 'dndlist/style.css'
const app = createApp(App)
//app.use(dndComponents)
...
/// foo.vue
<template>
<DNDList :list="testList" item-id="id" v-slot="{item}" @change="change" ref="listRef">
<div>
<div>{{ item.name }}</div>
<div>{{ item.age + ' ' +item.id }}</div>
</div>
</DNDList>
</template>
<script lang='ts' setup>
import {DNDList} from 'dndlist' //import by required
const testList = ref([
{id:...,
name,
age},
...
])
const listRef = ref(null)
function change(list: any[], changeLog: {from: number, to: number}) {
console.log(list)
console.log(`you have changed the item from ${changeLog.from} to ${changeLog.to}`)
}
function cancelChange() {
listRef.restore()
}
</script>
/// main.ts
same as the list component
/// foo.vue
<template>
<DNDEle handlerId="handler" left="200px" top="500px" @drag-start="dragStart">
<div>
<div class="w100 h50 bcwarning" id="handler"></div>
<div class="w100 h150 bcwhite" ></div>
</div>
</DNDEle>
</template>
<script lang='ts' setup>
import {DNDEle} from 'dndlist' //import by required
function dragStart(position: {x: number, y: number}) {
console.log(position)
}
</script>
Once you draged the DNDEle, notFixed will be ignored, the DNDEle positon style will change to and maintain 'fixed'.
FAQs
drag and drop list
The npm package dndlist receives a total of 0 weekly downloads. As such, dndlist popularity was classified as not popular.
We found that dndlist demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.