Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
gallery-scroller
Advanced tools
a light-weight React full screen gallery Scroller Component.
NEW VERSION
Enjoy
npm i gallery-scroller
npm start
before that you should put your images into ./resources/demoImg or wherever path your code can catch them ,it's up to your convenience.have fun.
old version
import GalleryScroller from 'gallery-scroller';
const resourcespropsList = [{...},{...},{...},{...},{...},{...},]
// resourcespropsList is Array about the Gallery Object.
// you can rename it to whatever you want.
const MyGalleryList = () => {
<GalleryScroller list={resourcespropsList}/>
}
new version
import SelfAdaptionGalleryScroller from 'gallery-scroller';
const resourcespropsList = [{...},{...},{...},{...},{...},{...},]
// resourcespropsList is Array about the Gallery Object.
// you can rename it to whatever you want.
const MyGalleryList = () => {
<SelfAdaptionGalleryScroller list={resourcespropsList}/>
}
param | detail | type | require* |
---|---|---|---|
list | Gallery object list (only available for images) | GalleryObject[ ] | true |
CardList - Example
old version
const resourcespropsList = [{...},{...},{...},{...},{...},{...},]
const MyGalleryList = () => {
<GalleryScroller list={resourcespropsList}/>
}
new version
const resourcespropsList = [{...},{...},{...},{...},{...},{...},]
const MyGalleryList = () => {
<SelfAdaptionGalleryScroller list={resourcespropsList}/>
}
param | detail | type | require* |
---|---|---|---|
img | import object for image which each 'div' box display via relative url | object | true |
marker | the label about img you want to display(categray or the info) | string | true |
color | the background color for the marker | string | true |
onClick | onClick Event handler(use it to route to the detail of the page) | function | false |
duration | duration of rotate the gallery photos, default for 3000ms only in new version for SelfAdaptionGalleryScroller | number | false |
CardObject - Example
old version
import Img from '../resources/demoImg/9.jpg';
{
img: Img,
marker: '直播',
color: '#00b8d4',
onClick:()=>{
console.log('go to 7.jpg 直播 #00b8d4')
}
}
new version
import Img from '../resources/demoImg/9.jpg';
{
img: Img,
marker: '直播',
color: '#00b8d4',
duration: 5000,
onClick:()=>{
console.log('go to 7.jpg 直播 #00b8d4')
}
}
FAQs
a light-weight React full screen gallery Scroller Component.
We found that gallery-scroller 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.