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.
modal-slider-photos-and-videos
Advanced tools
npm i --save modal-slider-photos-and-videos
Config in the app.module.ts
import * as ionicGalleryModal from 'ionic-gallery-modal';
import { HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
imports: [
//...
ionicGalleryModal.GalleryModalModule,
//...
],
providers: [
//...
{
provide: HAMMER_GESTURE_CONFIG,
useClass: ionicGalleryModal.GalleryModalHammerConfig,
},
//...
],
import { ModalController } from 'ionic-angular';
import { GalleryModal } from 'modal-slider-photos-and-videos';
constructor(
//...
public modalCtrl: ModalController,
//...
){}
Slider photos:
let modal = this.modalCtrl.create(GalleryModal, {
typeModal: "photo",
photos: array_photo,
initialSlide: currentIndex
});
modal.present();
Slider videos:
let modal = this.modalCtrl.create(GalleryModal, {
typeModal: "video",
videos: array_video,
initialSlide: currentIndex
});
modal.present();
Name | Type | Value | Description |
---|---|---|---|
typeModal | string | "photo" | when use slider for photos |
typeModal | string | "video" | when use slider for videos |
photos | array | [] | is array information of all photos |
videos | array | [] | is array information of all videos |
initialSlide | number | 0 | pass params is index of a photo or a video need show |
Name | Type | Value | Description |
---|---|---|---|
url | string | link of photo | |
avatar | string | link image avatar of user post this photo | |
name | string | name of user post this photo | |
title | string | title of this photo | |
date | string | date published this photo |
Example
{
url: "http://example.com/images/photo_1.jpg",
avatar: "http://example.com/avatar/david.jpg",
name: "David Beckham",
title: "Goal Goal!",
date: "3 months ago"
}
Name | Type | Value | Description |
---|---|---|---|
url | string | link local of video | |
poster | string | link of image show before play video | |
avatar | string | link image avatar of user post this video | |
name | string | name of user post this video | |
title | string | title of this video | |
date | string | date published this video |
Example
{
url: "http://abc.com/media/video.mp4",
poster: "http://example.com/poster/juventus.jpg",
avatar: "http://example.com/avatar/buffon.jpg",
name: "Buffon",
title: "Save save!",
date: "3 months ago"
}
FAQs
modal slider photos and video
The npm package modal-slider-photos-and-videos receives a total of 0 weekly downloads. As such, modal-slider-photos-and-videos popularity was classified as not popular.
We found that modal-slider-photos-and-videos 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
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.