diff --git a/pinry/static/js/vendors/vue-waterfall.min.js b/pinry/static/js/vendors/vue-waterfall.min.js new file mode 100644 index 0000000..b77d3fe --- /dev/null +++ b/pinry/static/js/vendors/vue-waterfall.min.js @@ -0,0 +1,6 @@ +/*! + * vue-waterfall v1.0.6 + * (c) 2017 MopTym + * https://github.com/MopTym/vue-waterfall + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Waterfall=e():t.Waterfall=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}var r=n(1),o=i(r),a=n(10),u=i(a);t.exports={Waterfall:o["default"],WaterfallSlot:u["default"],waterfall:o["default"],waterfallSlot:u["default"]}},function(t,e,n){n(2);var i=n(7)(n(8),n(9),null,null);t.exports=i.exports},function(t,e,n){var i=n(3);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);n(5)("046d321a",i,!0)},function(t,e,n){e=t.exports=n(4)(),e.push([t.id,".vue-waterfall{position:relative}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;en.parts.length&&(i.parts.length=n.parts.length)}else{for(var a=[],r=0;rr;r++)i[r]=n();return i}function w(t,e){if(!y(t,e)){var n=b(t,"class").trim(),i=(n+" "+e).trim();b(t,"class",i)}}function x(t,e){var n=new RegExp("\\s*\\b"+e+"\\b\\s*","g"),i=b(t,"class").replace(n," ").trim();b(t,"class",i)}function y(t,e){return new RegExp("\\b"+e+"\\b").test(b(t,"class"))}function b(t,e,n){return"undefined"==typeof n?t.getAttribute(e)||"":void t.setAttribute(e,n)}function G(t,e,n){var i=arguments.length<=3||void 0===arguments[3]?!1:arguments[3];t.addEventListener(e,n,i)}function M(t,e,n){var i=arguments.length<=3||void 0===arguments[3]?!1:arguments[3];t.removeEventListener(e,n,i)}Object.defineProperty(e,"__esModule",{value:!0});var L="_wfMoveClass";e["default"]={props:{autoResize:{"default":!0},interval:{"default":200,validator:function(t){return t>=0}},align:{"default":"left",validator:function(t){return~["left","right","center"].indexOf(t)}},line:{"default":"v",validator:function(t){return~["v","h"].indexOf(t)}},lineGap:{required:!0,validator:function(t){return t>=0}},minLineGap:{validator:function(t){return t>=0}},maxLineGap:{validator:function(t){return t>=0}},singleMaxWidth:{validator:function(t){return t>=0}},fixedHeight:{"default":!1},grow:{validator:function(t){return t instanceof Array}},watch:{"default":function(){return{}}}},data:function(){return{style:{height:"",overflow:""},token:null}},methods:{reflowHandler:r,autoResizeHandler:n,reflow:o},created:function(){var t=this;this.virtualRects=[],this.$on("reflow",function(){t.reflowHandler()}),this.$watch(function(){return t.align,t.line,t.lineGap,t.minLineGap,t.maxLineGap,t.singleMaxWidth,t.fixedHeight,t.watch},this.reflowHandler),this.$watch("grow",this.reflowHandler)},mounted:function(){this.$watch("autoResize",this.autoResizeHandler),G(this.$el,g(),i,!0),this.autoResizeHandler(this.autoResize)},beforeDestroy:function(){this.autoResizeHandler(!1),M(this.$el,g(),i,!0)}};var R=function(){function t(t,i,r,o){var a=t.$el.clientWidth,u=i.grow,s=u?n(a,u):e(a,i),l=m(0,s.count);r.forEach(function(t,e){var n=l.reduce(function(t,e,n){return e=t)n=1,i=Math.max(t,e.minLineGap);else{var r=e.maxLineGap*~~n,o=e.minLineGap*~~(n+1),a=r>=t,u=t>=o;a&&u?(n=Math.round(n),i=t/n):a?(n=~~n,i=t/n):u?(n=~~(n+1),i=t/n):(n=~~n,i=e.maxLineGap),1===n&&(i=Math.min(t,e.singleMaxWidth),i=Math.max(i,e.minLineGap))}return{width:m(i,n),count:n,left:l(t,i*n,e.align)}}function n(t,e){var n=f(e);return{width:e.map(function(e){return t*e/n}),count:e.length,left:0}}return{calculate:t}}(),$=function(){function t(t,n,i,r){for(var o=t.$el.clientWidth,a=i.length,u=0,s=0;a>s;){for(var l,f,c=e(o,n,i,s),d=0,h=0;d=a;o++)a+=n[o].width*e/n[o].height,r++;return r}function i(t,e,n,i,r){for(var o=0,a=r-1;a>=0;a--){var u=n[i+a];o+=u.width*e.lineGap/u.height}var s=e.lineGap*t/o,l=s<=e.maxLineGap&&s>=e.minLineGap;if(l)return{cost:Math.abs(e.lineGap-s),count:r,width:t,height:s};var f=o>t?e.minLineGap:e.maxLineGap;return{cost:1/0,count:r,width:o*f/e.lineGap,height:f}}function r(t,e,n){return t.cost===1/0&&e.cost===1/0?e.width=t.cost?t:e}return{calculate:t}}()},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-waterfall",style:t.style},[t._t("default")],2)},staticRenderFns:[]}},function(t,e,n){n(11);var i=n(7)(n(13),n(14),null,null);t.exports=i.exports},function(t,e,n){var i=n(12);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);n(5)("466de276",i,!0)},function(t,e,n){e=t.exports=n(4)(),e.push([t.id,".vue-waterfall-slot{position:absolute;margin:0;padding:0;box-sizing:border-box}",""])},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={data:function(){return{isShow:!1}},props:{width:{required:!0,validator:function(t){return t>=0}},height:{required:!0,validator:function(t){return t>=0}},order:{"default":0},moveClass:{"default":""}},methods:{notify:function(){this.$parent.$emit("reflow",this)},getMeta:function(){return{vm:this,node:this.$el,order:this.order,width:this.width,height:this.height,moveClass:this.moveClass}}},created:function(){var t=this;this.rect={top:0,left:0,width:0,height:0},this.$watch(function(){return t.width,t.height},this.notify)},mounted:function(){var t=this;this.$parent.$once("reflowed",function(){t.isShow=!0}),this.notify()},destroyed:function(){this.notify()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShow,expression:"isShow"}],staticClass:"vue-waterfall-slot"},[t._t("default")],2)},staticRenderFns:[]}}])}); \ No newline at end of file