Gathering detailed insights and metrics for v-photoswipe
Gathering detailed insights and metrics for v-photoswipe
Gathering detailed insights and metrics for v-photoswipe
Gathering detailed insights and metrics for v-photoswipe
npm install v-photoswipe
Typescript
Module System
Node Version
NPM Version
66.9
Supply Chain
98
Quality
75
Maintenance
50
Vulnerability
99.6
License
Vue (65.2%)
JavaScript (32%)
HTML (2.8%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
32 Stars
42 Commits
13 Forks
2 Watchers
11 Branches
2 Contributors
Updated on Dec 14, 2024
Latest Version
1.0.3-1
Package Id
v-photoswipe@1.0.3-1
Size
196.48 kB
NPM Version
6.9.0
Node Version
8.11.4
Published on
Apr 16, 2019
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
PhotoSwipe, PhotoSwipeGallery component for Vuejs base on PhotoSwipe.
1 npm install --save v-photoswipe
1<template> 2 <div> 3 <div class="paragraph"> 4 <h3>PhotoSwipe</h3> 5 <div> 6 <img @click="showPhotoSwipe(0)" src="https://farm4.staticflickr.com/3894/15008518202_c265dfa55f_h.jpg" alt=""> 7 <img @click="showPhotoSwipe(1)" src="https://farm4.staticflickr.com/3902/14985871946_24f47d4b53_h.jpg" alt=""> 8 </div> 9 </div> 10 <div class="paragraph"> 11 <h3>PhotoSwipe Gallery</h3> 12 <div> 13 <v-photoswipe-gallery :isOpen="isOpenGallery" :options="optionsGallery" :items="items"> 14 <img slot-scope="props" :src="props.item.src" alt="picture"/> 15 </v-photoswipe-gallery> 16 </div> 17 </div> 18 <v-photoswipe :isOpen="isOpen" :items="items" :options="options" @close="hidePhotoSwipe"></v-photoswipe> 19 </div> 20</template>
1import { PhotoSwipe, PhotoSwipeGallery } from 'v-photoswipe' 2export default { 3 components: { 4 'v-photoswipe': PhotoSwipe, 5 'v-photoswipe-gallery': PhotoSwipeGallery 6 }, 7 data () { 8 return { 9 isOpen: false, 10 isOpenGallery: false, 11 options: { 12 index: 0 13 }, 14 optionsGallery: {}, 15 items: [ 16 { 17 src: 'https://farm4.staticflickr.com/3894/15008518202_c265dfa55f_h.jpg', 18 w: 1600, 19 h: 1600, 20 title: 'This is dummy caption.' 21 }, { 22 src: 'https://farm4.staticflickr.com/3902/14985871946_24f47d4b53_h.jpg', 23 w: 1600, 24 h: 1066, 25 title: 'This is dummy caption. It has been placed here solely to demonstrate the look and feel of finished, typeset text.' 26 } 27 ] 28 } 29 }, 30 methods: { 31 showPhotoSwipe (index) { 32 this.isOpen = true 33 this.$set(this.options, 'index', index) 34 }, 35 hidePhotoSwipe () { 36 this.isOpen = false 37 } 38 } 39}
Name | Type | Default | Required | Description |
---|---|---|---|---|
isOpen | Boolean | false | true | |
items | Array | [] | true | Document |
options | Object | {} | fasle | Document |
beforeChange | Function | Photoswipe event listener | ||
afterChange | Function | Photoswipe event listener | ||
imageLoadComplete | Function | Photoswipe event listener | ||
resize | Function | Photoswipe event listener | ||
gettingData | Function | Photoswipe event listener | ||
mouseUsed | Function | Photoswipe event listener | ||
initialZoomIn | Function | Photoswipe event listener | ||
initialZoomInEnd | Function | Photoswipe event listener | ||
initialZoomOut | Function | Photoswipe event listener | ||
initialZoomOutEnd | Function | Photoswipe event listener | ||
parseVerticalMargin | Function | Photoswipe event listener | ||
close | Function | Photoswipe event listener | ||
unbindEvents | Function | Photoswipe event listener | ||
destroy | Function | Photoswipe event listener | ||
updateScrollOffset | Function | Photoswipe event listener | ||
preventDragEvent | Function | Photoswipe event listener | ||
shareLinkClick | Function | Photoswipe event listener |
Name | Type | Default | Required | Description |
---|---|---|---|---|
item | Object | HTML Img Tag | false |
coming soon...
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/9 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
97 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More