
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
swiper-slides
Advanced tools
An ember component that wraps swipe navigation and query param management.
swiper-slides is an ember addon that combines Swiper.js swipe navigation and query param management in a single component. Simply define an appropriate param in a given controller and you're good to go!
npm install
ember g swiper-slides
Given the following markup:
{{#swiper-slides options=swiperOptions param=slide}}
<div class='swiper-slide'>
one
</div>
<div class='swiper-slide'>
two
</div>
<div class='swiper-slide'>
three
</div>
{{/swiper-slides}}
We can initialize our swiper instance with the following code in our controller:
import Ember from 'ember';
export default Ember.Controller.extend({
queryParams: ['slide'],
slide: null,
swiperOptions: {
initialSlide: 1
}
});
This will give us a swiper instance managed by the 'slide' query param. Whenever the slide changes the component will update the query param with the index of the current slide. Refreshing the page will bring you back to that same slide.
FAQs
An ember component that wraps swipe navigation and query param management.
The npm package swiper-slides receives a total of 0 weekly downloads. As such, swiper-slides popularity was classified as not popular.
We found that swiper-slides 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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.