Socket
Socket
Sign inDemoInstall

any-downloader-vue

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 0.0.8

art/any-downloader-screenshot.png

4

build/any-downloader.min.js

@@ -7,3 +7,3 @@ var AnyDownloader = (function (exports) {

var ResourcePreview = {
render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mt-12 flex items-center justify-center flex-wrap"},[_c('div',{staticClass:"rounded-t bg-gray-700 w-full bg-cover bg-blend-soft-light",style:({backgroundImage: 'url(' + _vm.previewImage.url + ')'})},[(_vm.previewVideo && _vm.previewVideo.url)?_c('video',{staticClass:"rounded m-auto max-h-3/5-screen",attrs:{"controls":"true"}},[_c('source',{attrs:{"src":_vm.previewVideo.url}})]):_vm._e(),_vm._v(" "),((!_vm.previewVideo || !_vm.previewVideo.url) && _vm.previewImage && _vm.previewImage.url)?_c('img',{staticClass:"rounded-t",attrs:{"src":_vm.previewImage.url}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"bg-white text-black rounded-b p-6 w-full"},[(_vm.attributes.author)?_c('p',{staticClass:"text-sm text-center pb-2"},[(_vm.attributes.author.avatar && _vm.attributes.author.avatar.url)?_c('img',{staticClass:"rounded-full w-12 h-12 inline",attrs:{"alt":_vm.attributes.author.nickname,"src":_vm.attributes.author.avatar.url}}):_vm._e(),_vm._v("\n "+_vm._s(_vm.attributes.author.full_name)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.title)?_c('p',{staticClass:"text-lg pb-2"},[_vm._v("\n "+_vm._s(_vm.attributes.title)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.text)?_c('p',[_vm._v("\n "+_vm._s(_vm.attributes.text)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.hashtags && _vm.attributes.hashtags.length)?_c('p',[_vm._v("\n "+_vm._s(_vm.attributes.hashtags.map( function (v) { return '#' + v; }).join(', '))+"\n ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"flex mt-6 justify-center flex-wrap"},[(_vm.items.video && _vm.items.video.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Videos")]),_vm._v(" "),_vm._l((_vm.items.video),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.image && _vm.items.image.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Images")]),_vm._v(" "),_vm._l((_vm.items.image),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.audio && _vm.items.audio.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Audio")]),_vm._v(" "),_vm._l((_vm.items.audio),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.text && _vm.items.text.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Text/Subtitles")]),_vm._v(" "),_vm._l((_vm.items.text),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e()])])])},
render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mt-12 flex items-center justify-center flex-wrap"},[_c('div',{staticClass:"rounded-t bg-gray-700 w-full bg-cover bg-blend-soft-light",style:({backgroundImage: 'url(' + _vm.previewImage.url + ')'})},[(_vm.previewVideo && _vm.previewVideo.url)?_c('video',{staticClass:"rounded m-auto max-h-3/5-screen",attrs:{"poster":(_vm.previewImage && _vm.previewImage.url) ? _vm.previewImage.url : false,"controls":"true"}},[_c('source',{attrs:{"src":_vm.previewVideo.url}})]):_vm._e(),_vm._v(" "),((!_vm.previewVideo || !_vm.previewVideo.url) && _vm.previewImage && _vm.previewImage.url)?_c('img',{staticClass:"rounded-t",attrs:{"src":_vm.previewImage.url}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"bg-white text-black rounded-b p-6 w-full"},[(_vm.attributes.author)?_c('p',{staticClass:"text-sm text-center pb-2"},[(_vm.attributes.author.avatar && _vm.attributes.author.avatar.url)?_c('img',{staticClass:"rounded-full w-12 h-12 inline",attrs:{"alt":_vm.attributes.author.nickname,"src":_vm.attributes.author.avatar.url}}):_vm._e(),_vm._v("\n "+_vm._s(_vm.attributes.author.full_name)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.title)?_c('p',{staticClass:"text-lg pb-2"},[_vm._v("\n "+_vm._s(_vm.attributes.title)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.text)?_c('p',[_vm._v("\n "+_vm._s(_vm.attributes.text)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.hashtags && _vm.attributes.hashtags.length)?_c('p',[_vm._v("\n "+_vm._s(_vm.attributes.hashtags.map( function (v) { return '#' + v; }).join(', '))+"\n ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"flex mt-6 justify-center flex-wrap"},[(_vm.items.video && _vm.items.video.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Videos")]),_vm._v(" "),_vm._l((_vm.items.video),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.image && _vm.items.image.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Images")]),_vm._v(" "),_vm._l((_vm.items.image),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.audio && _vm.items.audio.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Audio")]),_vm._v(" "),_vm._l((_vm.items.audio),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.text && _vm.items.text.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Text/Subtitles")]),_vm._v(" "),_vm._l((_vm.items.text),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e()])])])},
staticRenderFns: [],

@@ -28,3 +28,3 @@ props: ['sourceUrl', 'previewImage', 'previewVideo', 'attributes', 'items']

var AnyDownloader = {
render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"my-10"},[_c('div',{staticClass:"relative text-gray-700"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.url),expression:"url"}],staticClass:"w-full h-10 pl-3 pr-8 text-base placeholder-gray-600 border rounded-lg focus:shadow-outline",attrs:{"type":"text","placeholder":_vm.inputPlaceholder},domProps:{"value":(_vm.url)},on:{"input":function($event){if($event.target.composing){ return; }_vm.url=$event.target.value;}}}),_vm._v(" "),_c('button',{staticClass:"absolute outline-none inset-y-0 right-0 flex items-center px-4 font-bold text-white bg-pink-700 rounded-r-lg border-pink-100 hover:bg-pink-500 focus:bg-pink-600",attrs:{"disabled":_vm.isLoading},on:{"click":_vm.get}},[(_vm.isLoading)?_c('svg',{staticClass:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",attrs:{"xmlns":"http://www.w3.org/2000/svg","fill":"none","viewBox":"0 0 24 24"}},[_c('circle',{staticClass:"opacity-25",attrs:{"cx":"12","cy":"12","r":"10","stroke":"currentColor","stroke-width":"4"}}),_vm._v(" "),_c('path',{staticClass:"opacity-75",attrs:{"fill":"currentColor","d":"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}})]):_vm._e(),_vm._v("\n "+_vm._s(_vm.btnText)+"\n ")])]),_vm._v(" "),(_vm.resource)?_c('resource-preview',_vm._b({key:_vm.resource.sourceUrl},'resource-preview',_vm.resource,false)):_vm._e()],1)},
render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"my-10"},[_c('div',{staticClass:"relative text-gray-700"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.url),expression:"url"}],staticClass:"w-full h-10 pl-3 pr-8 text-base placeholder-gray-600 border rounded-lg focus:shadow-outline",attrs:{"type":"text","placeholder":_vm.inputPlaceholder},domProps:{"value":(_vm.url)},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.get.apply(null, arguments)},"input":function($event){if($event.target.composing){ return; }_vm.url=$event.target.value;}}}),_vm._v(" "),_c('button',{staticClass:"absolute outline-none inset-y-0 right-0 flex items-center px-4 font-bold text-white bg-pink-700 rounded-r-lg border-pink-100 hover:bg-pink-500 focus:bg-pink-600",attrs:{"disabled":_vm.isLoading},on:{"click":_vm.get}},[(_vm.isLoading)?_c('svg',{staticClass:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",attrs:{"xmlns":"http://www.w3.org/2000/svg","fill":"none","viewBox":"0 0 24 24"}},[_c('circle',{staticClass:"opacity-25",attrs:{"cx":"12","cy":"12","r":"10","stroke":"currentColor","stroke-width":"4"}}),_vm._v(" "),_c('path',{staticClass:"opacity-75",attrs:{"fill":"currentColor","d":"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}})]):_vm._e(),_vm._v("\n "+_vm._s(_vm.btnText)+"\n ")])]),_vm._v(" "),(_vm.resource)?_c('resource-preview',_vm._b({key:_vm.resource.sourceUrl},'resource-preview',_vm.resource,false)):_vm._e()],1)},
staticRenderFns: [],

@@ -31,0 +31,0 @@ components: {ResourcePreview: ResourcePreview},

@@ -10,3 +10,3 @@ (function (global, factory) {

var ResourcePreview = {
render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mt-12 flex items-center justify-center flex-wrap"},[_c('div',{staticClass:"rounded-t bg-gray-700 w-full bg-cover bg-blend-soft-light",style:({backgroundImage: 'url(' + _vm.previewImage.url + ')'})},[(_vm.previewVideo && _vm.previewVideo.url)?_c('video',{staticClass:"rounded m-auto max-h-3/5-screen",attrs:{"controls":"true"}},[_c('source',{attrs:{"src":_vm.previewVideo.url}})]):_vm._e(),_vm._v(" "),((!_vm.previewVideo || !_vm.previewVideo.url) && _vm.previewImage && _vm.previewImage.url)?_c('img',{staticClass:"rounded-t",attrs:{"src":_vm.previewImage.url}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"bg-white text-black rounded-b p-6 w-full"},[(_vm.attributes.author)?_c('p',{staticClass:"text-sm text-center pb-2"},[(_vm.attributes.author.avatar && _vm.attributes.author.avatar.url)?_c('img',{staticClass:"rounded-full w-12 h-12 inline",attrs:{"alt":_vm.attributes.author.nickname,"src":_vm.attributes.author.avatar.url}}):_vm._e(),_vm._v("\n "+_vm._s(_vm.attributes.author.full_name)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.title)?_c('p',{staticClass:"text-lg pb-2"},[_vm._v("\n "+_vm._s(_vm.attributes.title)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.text)?_c('p',[_vm._v("\n "+_vm._s(_vm.attributes.text)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.hashtags && _vm.attributes.hashtags.length)?_c('p',[_vm._v("\n "+_vm._s(_vm.attributes.hashtags.map( function (v) { return '#' + v; }).join(', '))+"\n ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"flex mt-6 justify-center flex-wrap"},[(_vm.items.video && _vm.items.video.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Videos")]),_vm._v(" "),_vm._l((_vm.items.video),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.image && _vm.items.image.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Images")]),_vm._v(" "),_vm._l((_vm.items.image),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.audio && _vm.items.audio.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Audio")]),_vm._v(" "),_vm._l((_vm.items.audio),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.text && _vm.items.text.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Text/Subtitles")]),_vm._v(" "),_vm._l((_vm.items.text),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e()])])])},
render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"mt-12 flex items-center justify-center flex-wrap"},[_c('div',{staticClass:"rounded-t bg-gray-700 w-full bg-cover bg-blend-soft-light",style:({backgroundImage: 'url(' + _vm.previewImage.url + ')'})},[(_vm.previewVideo && _vm.previewVideo.url)?_c('video',{staticClass:"rounded m-auto max-h-3/5-screen",attrs:{"poster":(_vm.previewImage && _vm.previewImage.url) ? _vm.previewImage.url : false,"controls":"true"}},[_c('source',{attrs:{"src":_vm.previewVideo.url}})]):_vm._e(),_vm._v(" "),((!_vm.previewVideo || !_vm.previewVideo.url) && _vm.previewImage && _vm.previewImage.url)?_c('img',{staticClass:"rounded-t",attrs:{"src":_vm.previewImage.url}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"bg-white text-black rounded-b p-6 w-full"},[(_vm.attributes.author)?_c('p',{staticClass:"text-sm text-center pb-2"},[(_vm.attributes.author.avatar && _vm.attributes.author.avatar.url)?_c('img',{staticClass:"rounded-full w-12 h-12 inline",attrs:{"alt":_vm.attributes.author.nickname,"src":_vm.attributes.author.avatar.url}}):_vm._e(),_vm._v("\n "+_vm._s(_vm.attributes.author.full_name)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.title)?_c('p',{staticClass:"text-lg pb-2"},[_vm._v("\n "+_vm._s(_vm.attributes.title)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.text)?_c('p',[_vm._v("\n "+_vm._s(_vm.attributes.text)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.attributes.hashtags && _vm.attributes.hashtags.length)?_c('p',[_vm._v("\n "+_vm._s(_vm.attributes.hashtags.map( function (v) { return '#' + v; }).join(', '))+"\n ")]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"flex mt-6 justify-center flex-wrap"},[(_vm.items.video && _vm.items.video.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Videos")]),_vm._v(" "),_vm._l((_vm.items.video),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.image && _vm.items.image.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Images")]),_vm._v(" "),_vm._l((_vm.items.image),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.audio && _vm.items.audio.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Audio")]),_vm._v(" "),_vm._l((_vm.items.audio),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e(),_vm._v(" "),(_vm.items.text && _vm.items.text.length)?_c('div',{staticClass:"mx-0.5 mb-3"},[_c('h4',{staticClass:"bg-gray-700 rounded-t text-gray-100 py-2"},[_vm._v("Text/Subtitles")]),_vm._v(" "),_vm._l((_vm.items.text),function(item){return _c('a',{staticClass:"my-1.5 rounded bg-gradient-to-r from-pink-500 via-pink-600 to-pink-700 shadow hover:from-red-500 hover:to-purple-400 block font-extrabold px-2 py-2 text-gray-100",attrs:{"target":"_blank","href":item.url}},[_vm._v("Download "+_vm._s(item.title)+"."+_vm._s(item.format))])})],2):_vm._e()])])])},
staticRenderFns: [],

@@ -31,3 +31,3 @@ props: ['sourceUrl', 'previewImage', 'previewVideo', 'attributes', 'items']

var AnyDownloader = {
render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"my-10"},[_c('div',{staticClass:"relative text-gray-700"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.url),expression:"url"}],staticClass:"w-full h-10 pl-3 pr-8 text-base placeholder-gray-600 border rounded-lg focus:shadow-outline",attrs:{"type":"text","placeholder":_vm.inputPlaceholder},domProps:{"value":(_vm.url)},on:{"input":function($event){if($event.target.composing){ return; }_vm.url=$event.target.value;}}}),_vm._v(" "),_c('button',{staticClass:"absolute outline-none inset-y-0 right-0 flex items-center px-4 font-bold text-white bg-pink-700 rounded-r-lg border-pink-100 hover:bg-pink-500 focus:bg-pink-600",attrs:{"disabled":_vm.isLoading},on:{"click":_vm.get}},[(_vm.isLoading)?_c('svg',{staticClass:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",attrs:{"xmlns":"http://www.w3.org/2000/svg","fill":"none","viewBox":"0 0 24 24"}},[_c('circle',{staticClass:"opacity-25",attrs:{"cx":"12","cy":"12","r":"10","stroke":"currentColor","stroke-width":"4"}}),_vm._v(" "),_c('path',{staticClass:"opacity-75",attrs:{"fill":"currentColor","d":"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}})]):_vm._e(),_vm._v("\n "+_vm._s(_vm.btnText)+"\n ")])]),_vm._v(" "),(_vm.resource)?_c('resource-preview',_vm._b({key:_vm.resource.sourceUrl},'resource-preview',_vm.resource,false)):_vm._e()],1)},
render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"my-10"},[_c('div',{staticClass:"relative text-gray-700"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.url),expression:"url"}],staticClass:"w-full h-10 pl-3 pr-8 text-base placeholder-gray-600 border rounded-lg focus:shadow-outline",attrs:{"type":"text","placeholder":_vm.inputPlaceholder},domProps:{"value":(_vm.url)},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.get.apply(null, arguments)},"input":function($event){if($event.target.composing){ return; }_vm.url=$event.target.value;}}}),_vm._v(" "),_c('button',{staticClass:"absolute outline-none inset-y-0 right-0 flex items-center px-4 font-bold text-white bg-pink-700 rounded-r-lg border-pink-100 hover:bg-pink-500 focus:bg-pink-600",attrs:{"disabled":_vm.isLoading},on:{"click":_vm.get}},[(_vm.isLoading)?_c('svg',{staticClass:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",attrs:{"xmlns":"http://www.w3.org/2000/svg","fill":"none","viewBox":"0 0 24 24"}},[_c('circle',{staticClass:"opacity-25",attrs:{"cx":"12","cy":"12","r":"10","stroke":"currentColor","stroke-width":"4"}}),_vm._v(" "),_c('path',{staticClass:"opacity-75",attrs:{"fill":"currentColor","d":"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}})]):_vm._e(),_vm._v("\n "+_vm._s(_vm.btnText)+"\n ")])]),_vm._v(" "),(_vm.resource)?_c('resource-preview',_vm._b({key:_vm.resource.sourceUrl},'resource-preview',_vm.resource,false)):_vm._e()],1)},
staticRenderFns: [],

@@ -34,0 +34,0 @@ components: {ResourcePreview: ResourcePreview},

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "0.0.6",
"version": "0.0.8",
"keywords": [

@@ -24,9 +24,2 @@ "downloader",

"main": "dist/index.js",
"dependencies": {
"axios": "^0.21",
"tailwindcss": "^2.2.2",
"vue": "^2.6.14",
"vue-loader": "^15.9.7",
"vue-template-compiler": "^2.6.14"
},
"devDependencies": {

@@ -33,0 +26,0 @@ "@rollup/plugin-buble": "^0.21.3",

# AnyDownloader web client
This is Vue based web interface for [AnyDownloader API](https://github.com/AnyDownloader/DownloaderAPI)
Vue based web interface for [AnyDownloader API](https://github.com/AnyDownloader/DownloaderAPI)
[iwannacode.net](https://iwannacode.net)
![](https://github.com/AnyDownloader/vue-downloader/blob/master/art/any-downloader-screenshot.png?raw=true)
## Dependencies
- [Vue](https://github.com/vuejs/vue)
- [Axios](https://github.com/axios/axios)
- [Tailwind (not required)](https://github.com/tailwindlabs/tailwindcss)
- [AnyDownloader Backend API](https://github.com/AnyDownloader/DownloaderAPI)
## Installation
```
npm i any-downloader-vue
```
## Usage
```html
<html>
<head>
<title>AnyDownloader</title>
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.2/axios.min.js"></script>
<script src="./node_modules/any-downloader-vue/dist/index.js"></script>
</head>
<body>
<section>
<div class="relative pb-12 pt-12 md:pt-12 bg-gray-900 border-b-4 border-green-600">
<div class="container mx-auto px-4">
<div class="max-w-2xl mx-auto text-center md:mb-20">
<h1 class="text-4xl lg:text-5xl text-gray-50 font-bold">AnyDownloader</h1>
<div id="downloader" class="text-gray-50">
<any-downloader
input-placeholder="Put link here"
v-bind:api-url="'http://anydownloader.test/api/resource'"
btn-text="Download"
></any-downloader>
</div>
</div>
</div>
</div>
</section>
<script type="module">
import Vue from 'https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.esm.browser.js'
Vue.component('AnyDownloader',AnyDownloader)
const downloader = new Vue({
el: '#downloader'
});
</script>
</body>
</html>
```
[iwannacode.net](https://iwannacode.net)

Sorry, the diff of this file is not supported yet

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