From c50aa65e39978ede15b68773a46f729e129a7e08 Mon Sep 17 00:00:00 2001 From: Matteo Leoni Date: Wed, 20 Dec 2017 15:17:55 +0100 Subject: [PATCH] build --- dist/v-cloudinary-upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/v-cloudinary-upload.js b/dist/v-cloudinary-upload.js index 8d929bd..1245413 100644 --- a/dist/v-cloudinary-upload.js +++ b/dist/v-cloudinary-upload.js @@ -1 +1 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t,n){"use strict";t.a={props:{value:{type:String,required:required},uploadPreset:{type:String,required:!0},cloudName:{type:String,required:!0},transformation:{type:String,default:"w_120,h_120,c_fill,g_auto,q_auto"},buttonColor:{type:String,default:""},buttonDark:{type:Boolean,default:!1},buttonIcon:{type:String,default:"add_a_photo"},buttonText:{type:String,default:"Add image"},deleteText:{type:String,default:"Delete"},progressSize:{type:Number,default:100},progressStroke:{type:Number,default:15},progressColor:{type:String,default:"primary"}},data:function(){return{uploading:null,progress:0}},computed:{imgPublicId:{get:function(){return this.value},set:function(e){return e}},imgSrc:{get:function(){return"https://res.cloudinary.com/"+this.cloudName+"/image/upload/"+this.transformation+"/"+this.imgPublicId},set:function(e){return e}},apiEndpoint:function(){return"https://api.cloudinary.com/v1_1/"+this.cloudName+"/upload"}},methods:{selectFiles:function(){this.$refs.uploadInput.click()},uploadFiles:function(e){var t=this;this.uploading=!0;for(var n=e.target.files||e.dataTransfer.files,r=0;rn.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],o=0;on.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],o=0;o