
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@elisiondesign/vue-sole-lightbox
Advanced tools
A minimalstic single-image lightbox made for Vue.js
This a simple and minimalistic zero-dependency Vue.js lightbox. The only aim is to fill the screen with a single image while dimming the surroundings. That's it.
If you seek a lightbox component with navigation and customizable controls, this component is not a good choice. On the other hand, if you only need to highlight a single image at any given time (after a click event for example), than this might be the way to go.
You can find a demo on codepen.
npm install vue-sole-lighbox
You can include the component anywhere within the template. Just make sure that the ref
attribute is present.
<template>
<div>
// Some code
<sole-lightbox ref="lightbox"/>
</div>
</template>
<script>
import SoleLightbox from 'vue-sole-lightbox'
export default {
components: {
// ...
SoleLightbox,
},
// ...
}
</script>
<template>
<div id="app">
<h1>Type img's url to show in lightbox component</h1>
<input v-model="imgUrl" type="text" size="100"/> <br/>
<button @click="openLightbox">
Click me
</button>
<sole-lightbox ref="lightbox"/>
</div>
</template>
<script>
import SoleLightbox from './SoleLightbox.vue'
export default {
name: 'app',
components: {
SoleLightbox
},
data () {
return {
imgUrl: 'https://images.unsplash.com/photo-1559538619-79636b249e31?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80'
}
},
methods: {
openLightbox () {
this.$refs.lightbox.show(this.imgUrl)
}
}
}
</script>
Prop | Type | Value |
---|---|---|
prefix | string | (Optional) prefix image path (e.g. '/images/') |
Method | Arguments | Description |
---|---|---|
show | img - path to image altText - image caption | Displays Lightbox with given image |
hide | none | Hides Lightbox |
FAQs
A minimalstic single-image lightbox made for Vue.js
We found that @elisiondesign/vue-sole-lightbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.