Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
hsy-vue-tooltip
Advanced tools
This is yet another vue tooltip component.
Use npm to download code:
npm install hsy-vue-tooltip -S
then import it into your project, add below code into your main.js
:
import Tooltip from 'hsy-vue-tooltip'
Vue.use(Tooltip)
There are three modes for tooltip's displaying:
hover
, as it's name suggests, it uses mouseover/mouseleave
events to show/hide
tooltip<template>
<tooltip placement="top-left" mode="hover">
<div slot="outlet">top left</div>
<div slot="tooltip">this is top left tip</div>
</tooltip>
</template>
click
, it uses click inside/outside
events to show/hide
tooltip<template>
<div class="confirm">
<tooltip placement="bottom-left" mode="click" v-model="invisible">
<div slot="outlet">
Remove
</div>
<div slot="tooltip">
<h3>Are your sure?</h3>
<div class="btns">
<button class="yes" @click="handleYes">Yes</button>
<button class="no" @click="handleNo">No</button>
</div>
</div>
</tooltip>
</div>
</template>
<script>
export default {
data() {
return {
invisible: true
}
},
methods: {
handleYes() {
alert('Yes')
},
handleNo() {
alert('No')
this.invisible = true
}
}
}
</script>
manual
, if you want to show/hide
tooltip manually<template>
<tooltip placement="top-left" mode="manual" :visible="visible">
<div slot="outlet">top left</div>
<div slot="tooltip">this is top left tip</div>
</tooltip>
</template>
<script>
export default {
data() {
return {
visible: false
}
},
mounted() {
setTimeout(() => {
this.visible = true
}, 1000)
}
}
</script>
Coming soon, it's driving on the freeway built by your stars 😝
FAQs
vue tooltip component
The npm package hsy-vue-tooltip receives a total of 44 weekly downloads. As such, hsy-vue-tooltip popularity was classified as not popular.
We found that hsy-vue-tooltip demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.