
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@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
The npm package @elisiondesign/vue-sole-lightbox receives a total of 1 weekly downloads. As such, @elisiondesign/vue-sole-lightbox popularity was classified as not popular.
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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.