Socket
Socket
Sign inDemoInstall

vue-gallery

Package Overview
Dependencies
1
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.3

7

build/rollup.config.js

@@ -1,2 +0,1 @@

import fs from 'fs';
import vue from 'rollup-plugin-vue';

@@ -12,7 +11,3 @@ import babel from 'rollup-plugin-babel';

plugins: [
vue({
css (style, styles, compiler) {
fs.writeFileSync('dist/css/vue-gallery.css', style)
}
}),
vue(),
babel({

@@ -19,0 +14,0 @@ babelrc: false,

16

dist/js/vue-gallery.js

@@ -187,3 +187,7 @@ (function (global, factory) {

} else {
this.close();
if (this.instance) {
this.instance.close();
}
this.$emit('close');
}

@@ -194,3 +198,4 @@ }

destoryed: function destoryed() {
this.close();
this.instance.close();
this.instance = null;
},

@@ -226,3 +231,3 @@

onclose: function onclose() {
return _this.close();
return _this.$emit('close');
},

@@ -233,7 +238,2 @@ onclosed: function onclosed() {

}, this.options));
},
close: function close() {
this.instance.close();
this.instance = null;
this.$emit('close');
}

@@ -240,0 +240,0 @@ }

@@ -1,1 +0,1 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("blueimp-gallery/css/blueimp-gallery.min.css"),require("blueimp-gallery/js/blueimp-gallery-fullscreen.js"),require("blueimp-gallery/js/blueimp-gallery.js")):"function"==typeof define&&define.amd?define(["blueimp-gallery/css/blueimp-gallery.min.css","blueimp-gallery/js/blueimp-gallery-fullscreen.js","blueimp-gallery/js/blueimp-gallery.js"],n):e.VueGallery=n(null,null,e.blueimp)}(this,function(e,n,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;!function(){function e(e){this.value=e}function n(n){function t(r,l){try{var o=n[r](l),s=o.value;s instanceof e?Promise.resolve(s.value).then(function(e){t("next",e)},function(e){t("throw",e)}):i(o.done?"return":"normal",o.value)}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?t(r.key,r.arg):l=null}var r,l;this._invoke=function(e,n){return new Promise(function(i,o){var s={key:e,arg:n,resolve:i,reject:o,next:null};l?l=l.next=s:(r=l=s,t(e,n))})},"function"!=typeof n.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(n.prototype[Symbol.asyncIterator]=function(){return this}),n.prototype.next=function(e){return this._invoke("next",e)},n.prototype.throw=function(e){return this._invoke("throw",e)},n.prototype.return=function(e){return this._invoke("return",e)}}();var i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e};return{render:function(){return this._m(0)},staticRenderFns:[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"blueimp-gallery blueimp-gallery-controls",attrs:{id:"blueimp-gallery"}},[t("div",{staticClass:"slides"}),t("h3",{staticClass:"title"}),t("a",{staticClass:"prev"},[e._v("‹")]),e._v(" "),t("a",{staticClass:"next"},[e._v("›")]),e._v(" "),t("a",{staticClass:"close"},[e._v("×")]),t("ol",{staticClass:"indicator"})])}],props:{images:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}},index:{type:Number}},data:function(){return{instance:null}},watch:{index:function(e){null!==e?this.open(e):this.close()}},destoryed:function(){this.close()},methods:{open:function(e){var n=this,r=void 0!==t.Gallery?t.Gallery:t;this.instance=r(this.images,i({toggleControlsOnReturn:!1,toggleControlsOnSlideClick:!1,closeOnSlideClick:!1,index:e,onopen:function(){return n.$emit("onopen")},onopened:function(){return n.$emit("onopened")},onslide:function(e,t){return n.$emit("onslide",{index:e,slide:t})},onslideend:function(e,t){return n.$emit("onslideend",{index:e,slide:t})},onslidecomplete:function(e,t){return n.$emit("onslidecomplete",{index:e,slide:t})},onclose:function(){return n.close()},onclosed:function(){return n.$emit("onclosed")}},this.options))},close:function(){this.instance.close(),this.instance=null,this.$emit("close")}}}});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("blueimp-gallery/css/blueimp-gallery.min.css"),require("blueimp-gallery/js/blueimp-gallery-fullscreen.js"),require("blueimp-gallery/js/blueimp-gallery.js")):"function"==typeof define&&define.amd?define(["blueimp-gallery/css/blueimp-gallery.min.css","blueimp-gallery/js/blueimp-gallery-fullscreen.js","blueimp-gallery/js/blueimp-gallery.js"],n):e.VueGallery=n(null,null,e.blueimp)}(this,function(e,n,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;!function(){function e(e){this.value=e}function n(n){function t(r,l){try{var o=n[r](l),s=o.value;s instanceof e?Promise.resolve(s.value).then(function(e){t("next",e)},function(e){t("throw",e)}):i(o.done?"return":"normal",o.value)}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?t(r.key,r.arg):l=null}var r,l;this._invoke=function(e,n){return new Promise(function(i,o){var s={key:e,arg:n,resolve:i,reject:o,next:null};l?l=l.next=s:(r=l=s,t(e,n))})},"function"!=typeof n.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(n.prototype[Symbol.asyncIterator]=function(){return this}),n.prototype.next=function(e){return this._invoke("next",e)},n.prototype.throw=function(e){return this._invoke("throw",e)},n.prototype.return=function(e){return this._invoke("return",e)}}();var i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e};return{render:function(){return this._m(0)},staticRenderFns:[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"blueimp-gallery blueimp-gallery-controls",attrs:{id:"blueimp-gallery"}},[t("div",{staticClass:"slides"}),t("h3",{staticClass:"title"}),t("a",{staticClass:"prev"},[e._v("‹")]),e._v(" "),t("a",{staticClass:"next"},[e._v("›")]),e._v(" "),t("a",{staticClass:"close"},[e._v("×")]),t("ol",{staticClass:"indicator"})])}],props:{images:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}},index:{type:Number}},data:function(){return{instance:null}},watch:{index:function(e){null!==e?this.open(e):(this.instance&&this.instance.close(),this.$emit("close"))}},destoryed:function(){this.instance.close(),this.instance=null},methods:{open:function(e){var n=this,r=void 0!==t.Gallery?t.Gallery:t;this.instance=r(this.images,i({toggleControlsOnReturn:!1,toggleControlsOnSlideClick:!1,closeOnSlideClick:!1,index:e,onopen:function(){return n.$emit("onopen")},onopened:function(){return n.$emit("onopened")},onslide:function(e,t){return n.$emit("onslide",{index:e,slide:t})},onslideend:function(e,t){return n.$emit("onslideend",{index:e,slide:t})},onslidecomplete:function(e,t){return n.$emit("onslidecomplete",{index:e,slide:t})},onclose:function(){return n.$emit("close")},onclosed:function(){return n.$emit("onclosed")}},this.options))}}}});
{
"name": "vue-gallery",
"version": "1.1.1",
"version": "1.1.3",
"description": "VueJS responsive and customizable image and video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers.",

@@ -5,0 +5,0 @@ "main": "dist/js/vue-gallery.js",

@@ -19,2 +19,6 @@ <p align="center">

## Example
[jsFiddle](https://jsfiddle.net/Robin_ck/LffrLb2k/)
## Install

@@ -92,3 +96,3 @@ #### CDN

<script type="text/javascript" src="vue-gallery.js"></script>
<link rel="stylesheet" type="text/css" href="vue-gallery.css">
<link rel="stylesheet" type="text/css" href="https://unpkg.com/blueimp-gallery@2.27.0/css/blueimp-gallery.min.css">

@@ -95,0 +99,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc