Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
github.com/gethugothemes/hugo-modules/shortcodes/gallery
use this new version instead https://github.com/gethugothemes/hugo-modules/tree/master/gallery-slider
Add the following code to your module list in the config/_default/module.toml
file.
[[imports]]
path = "github.com/gethugothemes/hugo-modules/shortcodes/gallery"
Add the following code to your js plugins list in the config.toml
file.
[[params.plugins.js]]
link = "plugins/glightbox.js"
Add the following code to your assets/scss/main.scss
or assets/scss/style.scss
file.
@import 'gallery';
<!-- internal link -->
{{< gallery dir="images/gallery">}}
<!-- external link -->
{{< gallery dir="images/gallery" class="your-class" height="400" width="400" webp="false" command="Fit" option="" zoomable="true" >}}
Note: You must need to add swiper slider to use this shortcode.
Add the following code to your js plugins list in the config.toml
file.
[[params.plugins.js]]
link = "plugins/swiper-bundle.js"
Add the following code to your css plugins list in the config.toml
file.
[[params.plugins.css]]
link = "plugins/swiper-bundle.css"
<!-- internal link -->
{{< slider dir="images/gallery">}}
<!-- external link -->
{{< slider dir="images/gallery" class="your-class" height="400" width="400" webp="false" command="Fit" option="" zoomable="true" >}}
// gallery slider
new Swiper(".gallery-slider", {
slidesPerView: 1,
loop: true,
autoHeight: true,
spaceBetween: 0,
speed: 1500,
autoplay: {
delay: 5000,
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
FAQs
Unknown package
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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.