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.
vue-fancybox
Advanced tools
Image preview component based on vue.js
More gestures are still in development.
npm install vue-fancybox --save
import fancyBox from 'vue-fancybox';
<div class="list" v-for="(n, index) in imageList" :data-index="index">
<img @click="open($event)" :src="n.url">
</div>
export default {
data () {
return {
imageList: [
{ width: 900, height: 675, url: 'http://ocm0knkb1.bkt.clouddn.com/1-1.jpg' },
{ width: 601, height: 1024, url: 'http://ocm0knkb1.bkt.clouddn.com/1-2.jpg' },
{ width: 1024, height: 700, url: 'http://ocm0knkb1.bkt.clouddn.com/1-3.jpg' }
]
}
},
methods: {
open (e) {
fancyBox(e.target, this.imageList);
}
}
}
fancyBox Parameter:
Parameter | Description |
---|---|
e.target | The current clicked image. |
this.imageList | A list of images. |
this.imageList Options:
Option | Description | Type |
---|---|---|
width | The width of the image. | Number |
height | The height of the image. | Number |
url | The address of the image. | String |
$ cd example
$ npm install
$ npm run dev
Need postcss-salad support
FAQs
Image preview component based on vue.js
The npm package vue-fancybox receives a total of 177 weekly downloads. As such, vue-fancybox popularity was classified as not popular.
We found that vue-fancybox 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.