diff --git a/Tubio/frontend/200.html b/Tubio/frontend/200.html index 210ecb5..5be3811 100644 --- a/Tubio/frontend/200.html +++ b/Tubio/frontend/200.html @@ -1,9 +1,9 @@ - Tubio - Video downloader + Tubio - Video downloader -
Loading...
- +
Loading...
+ diff --git a/Tubio/frontend/_nuxt/b0ecca0.js b/Tubio/frontend/_nuxt/067a6af.js similarity index 97% rename from Tubio/frontend/_nuxt/b0ecca0.js rename to Tubio/frontend/_nuxt/067a6af.js index a565dd5..53448c2 100644 --- a/Tubio/frontend/_nuxt/b0ecca0.js +++ b/Tubio/frontend/_nuxt/067a6af.js @@ -1 +1 @@ -!function(e){function r(data){for(var r,n,l=data[0],f=data[1],d=data[2],i=0,h=[];i")},removeDownload:function(){var t=this;h.a.post("/api",{request:"remove_download_entry",id:this.downloadEntry.tubio_id}).then((function(e){"OK"===e.data.status&&t.$store.dispatch("dlcache/update",t)}))}}},m=(o(272),Object(r.a)(v,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"frame mb-6 pt-2 pb-4"},[o("div",{staticClass:"flex flex-col"},[o("div",{staticClass:"flex items-end justify-between w-full md:w-auto"},[o("div",{staticClass:"flex flex-col"},[o("div",{staticClass:"icon--mode"},["video"===t.downloadEntry.mode?o("IconFilm"):o("IconMusic")],1),t._v(" "),o("div",{staticClass:"timestamp"},[t._v("\n "+t._s(t.getQueuedDateString(t.downloadEntry.queued_timestamp))+"\n ")])]),t._v(" "),o("div",{staticClass:"button-remove",on:{click:t.removeDownload}},[o("IconX")],1)]),t._v(" "),o("div",{staticClass:"flex flex-col-reverse md:flex-row w-full mt-2"},[o("div",{staticClass:"flex flex-col"},[o("a",{attrs:{href:t.downloadEntry.webpage_url,target:"_blank",title:"To the original source"}},[o("div",{staticClass:"thumbnail flex-shrink-0",style:"--thumbnail: url('"+t.downloadEntry.thumbnail_url+"')"},[o("div",{staticClass:"thumbnail__vignette"}),t._v(" "),o("div",{staticClass:"thumbnail__duration"},[t._v(t._s(t.getDurationString(t.downloadEntry.duration)))])])]),t._v(" "),"downloading"===t.downloadEntry.status?o("div",[o("div",{staticClass:"status--progressbar flex w-full mt-3"},[o("div",{staticClass:"status--progressbar__good items-stretch",style:"--download-progress: "+t.downloadEntry.download_progress+"%;"})]),t._v(" "),o("div",{staticClass:"status--progressbar__text"},[t._v("\n "+t._s(t.downloadEntry.download_progress)+"%\n ")])]):"finished"===t.downloadEntry.status?o("a",{attrs:{href:t.downloadEntry.download_url,title:"download"}},[o("div",{staticClass:"status--ready mt-3 button flex justify-center w-full"},[o("div",[o("IconDownload")],1)])]):"queued"===t.downloadEntry.status?o("div",[o("div",{staticClass:"status--queued mt-3"},[t._v("\n Queued\n ")])]):"failed"===t.downloadEntry.status?o("div",[o("div",{staticClass:"status--failed mt-3"},[t._v("\n Failed!\n ")])]):t._e()]),t._v(" "),o("div",{staticClass:"flex flex-col md:ml-4 w-full overflow-x-hidden overflow-y-visible"},[o("h1",{staticClass:"title"},[t._v(t._s(t.downloadEntry.title))]),t._v(" "),o("div",{staticClass:"relative my-4"},[""!=t.downloadEntry.description?o("div",[o("p",{staticClass:"description p-2"},[o("span",{domProps:{innerHTML:t._s(t.linebreaksToBrTags(t.downloadEntry.description))}})]),t._v(" "),o("div",{staticClass:"description__decobox description__decobox--left"}),t._v(" "),o("div",{staticClass:"description__decobox description__decobox--right"})]):t._e()])])])])])}),[],!1,null,"980790fa",null));e.default=m.exports},260:function(t,e,o){"use strict";o.r(e);var r={},n=(o(276),o(10)),component=Object(n.a)(r,(function(){var t=this.$createElement;this._self._c;return this._m(0)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"click-blocker flex justify-center md:items-center"},[e("div",{staticClass:"box"},[e("h2",{staticClass:"mt-2"},[this._v("Please wait...")]),this._v(" "),e("div",{staticClass:"dots flex w-full justify-center items-center"},[e("div",{staticClass:"dot"}),this._v(" "),e("div",{staticClass:"dot"}),this._v(" "),e("div",{staticClass:"dot"})])])])}],!1,null,"0290555a",null);e.default=component.exports},263:function(t,e,o){"use strict";o.r(e);o(49);var r=o(258),n=(o(7),{components:{DownloadEntry:r.default},computed:{dlcache:function(){return this.$store.state.dlcache.cache}},data:function(){return{downloads:{type:Array}}},mounted:function(){var t=this;this.$store.dispatch("dlcache/update"),setInterval((function(){t.$store.dispatch("dlcache/update")}),1e3)}}),l=(o(274),o(10)),component=Object(l.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"download-box"},[this._e(),this._v(" "),this._l(this.dlcache,(function(t,o){return e("DownloadEntry",{key:o,attrs:{downloadEntry:t}})}))],2)}),[],!1,null,"8061dfc4",null);e.default=component.exports;installComponents(component,{DownloadEntry:o(258).default})},272:function(t,e,o){"use strict";var r=o(254);o.n(r).a},273:function(t,e,o){(e=o(19)(!1)).push([t.i,".frame[data-v-980790fa]{width:100%;border-bottom:2px solid #888}.frame .timestamp[data-v-980790fa]{font-family:ZillaSlab,serif;font-size:12pt;color:#bbb}.frame .thumbnail[data-v-980790fa]{background-image:var(--thumbnail);background-size:cover;background-position:50%;background-repeat:no-repeat;width:150px;height:84.375px;position:relative;cursor:pointer;scrollbar-width:none}@media(max-width:768px){.frame .thumbnail[data-v-980790fa]{width:100%;height:130px}}.frame .thumbnail__vignette[data-v-980790fa]{position:absolute;top:0;bottom:0;right:0;left:0;box-shadow:0 0 15px 2px #000}.frame .thumbnail__duration[data-v-980790fa]{position:absolute;bottom:0;right:0;padding:0 3px 3px 0;text-align:right;font-size:12pt;color:#bbb;background-color:rgba(0,0,0,.66667)}.frame .title[data-v-980790fa]{color:#bbb;font-size:22pt;max-height:1.3em;overflow-y:hidden;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.frame .description[data-v-980790fa]{color:#bbb;font-size:14pt;height:100px;overflow-x:hidden;overflow-y:scroll;position:relative;background-color:rgba(0,0,0,.2)}@media(max-width:768px){.frame .description[data-v-980790fa]{overflow:scroll}}.frame .description__decobox[data-v-980790fa]{position:absolute}.frame .description__decobox--left[data-v-980790fa]{top:0;left:0;width:40px;height:40px;border-top:2px solid #888;border-left:2px solid #888;pointer-events:none}.frame .description__decobox--right[data-v-980790fa]{bottom:0;right:0;width:40px;height:40px;border-bottom:2px solid #888;border-right:2px solid #888;pointer-events:none}.frame .status--progressbar[data-v-980790fa]{background-color:#900;height:5px}.frame .status--progressbar__good[data-v-980790fa]{background-color:#0b0;width:var(--download-progress);transition:width 1s}.frame .status--progressbar__text[data-v-980790fa]{font-size:24pt;color:#bbb}.frame .status--ready[data-v-980790fa]{height:45px;background-color:#bbb;transition:background-color .2s,border .2s}.frame .status--ready[data-v-980790fa]:hover{background-color:#5954a4;color:#fff}.frame .status--ready svg[data-v-980790fa]{height:35px}.frame .status--queued[data-v-980790fa]{font-family:ZillaSlab,serif;font-size:24pt;color:#bbb}.frame .status--failed[data-v-980790fa]{font-family:ZillaSlab,serif;font-size:24pt;color:#d40}.frame .button-remove[data-v-980790fa]{width:35px;height:35px;fill:#333;stroke:#333;cursor:pointer;transition:background-color .2s,border-radius .2s}.frame .button-remove[data-v-980790fa]:hover{background-color:#d40;border-radius:50%}.frame[data-v-980790fa]::-webkit-scrollbar,.frame[data-v-980790fa] ::-webkit-scrollbar{display:none}.frame .icon--mode[data-v-980790fa]{width:20px}",""]),t.exports=e},274:function(t,e,o){"use strict";var r=o(255);o.n(r).a},275:function(t,e,o){(e=o(19)(!1)).push([t.i,".download-box[data-v-8061dfc4]{width:100%;min-height:600px;border-radius:5px;padding:20px;background-color:hsla(0,0%,100%,.33333)}.no-dls-yet[data-v-8061dfc4]{color:#bbb;font-size:34pt;text-align:center}",""]),t.exports=e},276:function(t,e,o){"use strict";var r=o(256);o.n(r).a},277:function(t,e,o){(e=o(19)(!1)).push([t.i,".click-blocker[data-v-0290555a]{position:absolute;left:0;right:0;top:0;bottom:0}.box[data-v-0290555a]{margin-top:160px;width:1200px;height:800px;max-height:70vh;background-color:#586679;opacity:.95;border-radius:5px;border:2px solid #888;overflow:hidden}@media(max-width:768px){.box[data-v-0290555a]{margin-left:15px;margin-right:15px;height:300px;margin-top:80px}}.box h2[data-v-0290555a]{text-align:center;font-size:56pt;color:#bbb}@media(max-width:768px){.box h2[data-v-0290555a]{margin-top:36px;max-height:unset}}.box .dots[data-v-0290555a]{margin-top:250px}@media(max-width:768px){.box .dots[data-v-0290555a]{margin-top:50px}}.box .dots .dot[data-v-0290555a]{width:50px;height:50px;background-color:#888;border-radius:50px;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.box .dots .dot[data-v-0290555a]:first-child{-webkit-animation:dot-hover-data-v-0290555a 1.5s infinite;animation:dot-hover-data-v-0290555a 1.5s infinite;-webkit-animation-delay:0;animation-delay:0}.box .dots .dot[data-v-0290555a]:nth-child(2){-webkit-animation:dot-hover-data-v-0290555a 1.5s infinite;animation:dot-hover-data-v-0290555a 1.5s infinite;-webkit-animation-delay:.3s;animation-delay:.3s}.box .dots .dot[data-v-0290555a]:nth-child(3){-webkit-animation:dot-hover-data-v-0290555a 1.5s infinite;animation:dot-hover-data-v-0290555a 1.5s infinite;-webkit-animation-delay:.6s;animation-delay:.6s}@media(max-width:768px){.box .dots .dot[data-v-0290555a]{width:10px;height:10px}.box .dots .dot[data-v-0290555a]:not(:first-child){margin-left:5px}.box .dots .dot[data-v-0290555a]:not(:last-child){margin-right:5px}}@media(min-width:768px){.box .dots .dot[data-v-0290555a]{font-size:36pt}.box .dots .dot[data-v-0290555a]:not(:first-child){margin-left:25px}.box .dots .dot[data-v-0290555a]:not(:last-child){margin-right:25px}}@-webkit-keyframes dot-hover-data-v-0290555a{0%{transform:translateY(0)}50%{transform:translateY(1em)}to{transform:translateY(0)}}@keyframes dot-hover-data-v-0290555a{0%{transform:translateY(0)}50%{transform:translateY(1em)}to{transform:translateY(0)}}",""]),t.exports=e},278:function(t,e,o){"use strict";var r=o(257);o.n(r).a},279:function(t,e,o){(e=o(19)(!1)).push([t.i,".logo[data-v-70fafaea]{--logo-color:#8ad5eb;width:300px;fill:var(--logo-color);stroke:var(--logo-color);filter:drop-shadow(0 0 3px #8ad5eb);transition:fill .2s,stroke .2s,filter .2s}@media(max-width:768px){.logo[data-v-70fafaea]{width:80px;align-self:flex-start}}@media(min-width:768px){.logo[data-v-70fafaea]:hover{--logo-color:#bee7f4;filter:drop-shadow(0 0 5px #bee7f4)}}.input-flex[data-v-70fafaea]{width:100%}input[data-v-70fafaea]{height:50px;font-family:ZillaSlab,serif;font-weight:700;font-size:18pt;border-radius:5px;padding:.1em .5em;box-shadow:0 0 20px 5px hsla(0,0%,100%,.2);border:none;color:#04254e;transition:transform .2s;min-width:0}input[data-v-70fafaea]:focus{transform:scale(1.015)}.icon-button[data-v-70fafaea]{height:2em;stroke:#04254e;overflow:hidden;transition:stroke .2s,fill .2s,color .2s}.icon-button svg[data-v-70fafaea]{height:100%}.button[data-v-70fafaea]{transition:transform .2s,background-color .2s,border .2s}.button[data-v-70fafaea]:hover{transform:scale(1.05);background-color:#5954a4;color:#fff}.button:hover svg[data-v-70fafaea]{fill:#fff;stroke:#fff}.dropdown[data-v-70fafaea]{min-width:100px;height:100%;border-radius:5px;cursor:pointer;font-family:ZillaSlab,serif;font-size:16pt}",""]),t.exports=e},280:function(t,e,o){"use strict";o.r(e);o(34),o(166);var r=o(86),n=o(247),l=o(263),d=o(260),c=o(10),f=Object(c.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"bi bi-arrow-right-square",attrs:{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd",d:"M4 8a.5.5 0 0 0 .5.5h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5A.5.5 0 0 0 4 8z"}})])}),[],!1,null,null,null).exports,h=o(7),v=o.n(h),m={components:{Logo:r.default,Spacer:n.default,DownloadBox:l.default,PleaseWaitBlocker:d.default,IconArrowRightSquare:f},data:function(){return{isWaitingForResponse:{type:Boolean,default:!1}}},methods:{downloadButtonClicked:function(){var t=this;if(this.$refs.video_url.value.match(/(https?:\/\/)?[a-zA-Z0-9-_.]+\.[a-zA-Z-_.]+/)){var e=this.$refs.video_url.value;this.$refs.video_url.value="",this.isWaitingForResponse=!0,v.a.post("/api",{request:"queue_download",video_url:e,mode:this.$refs.mode.options[this.$refs.mode.selectedIndex].value}).then((function(e){"OK"===e.data.status&&(t.isWaitingForResponse=!1,t.$store.dispatch("dlcache/update",t))}))}},keyMonitor:function(t){"Enter"==t.key&&this.downloadButtonClicked()}},mounted:function(){this.isWaitingForResponse=!1}},x=(o(278),Object(c.a)(m,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("div",{staticClass:"hidden md:block"},[o("Spacer",{attrs:{height:"0",m_height:"1em"}}),t._v(" "),o("Logo",{staticClass:"logo mt-4"}),t._v(" "),o("Spacer",{attrs:{height:"2em",m_height:"2em"}})],1),t._v(" "),o("div",{staticClass:"flex flex-row flex-wrap md:flex-no-wrap input-flex justify-between md:justify-center"},[o("input",{ref:"video_url",staticClass:"flex-grow md:mr-4 mb-2 md:mb-0 w-full",attrs:{type:"url",name:"video_url",id:"video_url",placeholder:"video-url"},on:{keydown:t.keyMonitor}}),t._v(" "),o("div",{staticClass:"w-full md:hidden"}),t._v(" "),o("div",{staticClass:"flex-shrink button-submit flex-grow-0"},[o("select",{ref:"mode",staticClass:"dropdown",attrs:{name:"mode",id:"mode"}},[o("option",{attrs:{value:"video"}},[t._v("Video")]),t._v(" "),o("option",{attrs:{value:"audio"}},[t._v("Audio")])])]),t._v(" "),o("div",{staticClass:"button flex-shrink button-submit flex-grow-0 ml-3",on:{click:t.downloadButtonClicked}},[o("IconArrowRightSquare",{staticClass:"icon-button"})],1)]),t._v(" "),o("Spacer",{attrs:{height:"2em",m_height:"2em"}}),t._v(" "),o("DownloadBox"),t._v(" "),t.isWaitingForResponse?o("PleaseWaitBlocker"):t._e()],1)}),[],!1,null,"70fafaea",null));e.default=x.exports;installComponents(x,{Spacer:o(247).default,Logo:o(86).default,DownloadBox:o(263).default,PleaseWaitBlocker:o(260).default})}}]); \ No newline at end of file diff --git a/Tubio/frontend/_nuxt/d7b3322.js b/Tubio/frontend/_nuxt/2434a68.js similarity index 90% rename from Tubio/frontend/_nuxt/d7b3322.js rename to Tubio/frontend/_nuxt/2434a68.js index 63e3e9a..9cbd872 100644 --- a/Tubio/frontend/_nuxt/d7b3322.js +++ b/Tubio/frontend/_nuxt/2434a68.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{246:function(t,e,o){var content=o(252);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("ac8f1938",content,!0,{sourceMap:!1})},247:function(t,e,o){"use strict";o.r(e);var n={props:{height:{type:String,default:"0"},m_height:{type:String,default:"0"}},computed:{mobile_height:function(){return"0"===this.m_height?this.height:this.m_height}}},l=(o(251),o(10)),component=Object(l.a)(n,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"spacer",style:"--height: "+this.height+"; --m_height: "+this.mobile_height+";"})}),[],!1,null,"70a5daf0",null);e.default=component.exports},248:function(t,e,o){var content=o(263);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("1d10f8d7",content,!0,{sourceMap:!1})},249:function(t,e,o){var content=o(265);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("3edd6b06",content,!0,{sourceMap:!1})},250:function(t,e,o){var content=o(267);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("4667df8d",content,!0,{sourceMap:!1})},251:function(t,e,o){"use strict";var n=o(246);o.n(n).a},252:function(t,e,o){(e=o(19)(!1)).push([t.i,".spacer[data-v-70a5daf0]{width:1px;height:var(--height)}@media(max-width:660px){.spacer[data-v-70a5daf0]{height:var(--m_height)}}",""]),t.exports=e},253:function(t,e,o){var content=o(269);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("83deb894",content,!0,{sourceMap:!1})},258:function(t,e,o){"use strict";o.r(e);var n=o(10),l=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"bi bi-toggle-on",attrs:{viewBox:"-4 -4 24 24",fill:"#8a54a2",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M5 3a5 5 0 0 0 0 10h6a5 5 0 0 0 0-10H5zm6 9a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"}})])}),[],!1,null,null,null).exports,r=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"bi bi-toggle-off",attrs:{viewBox:"-4 -4 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M11 4a4 4 0 0 1 0 8H8a4.992 4.992 0 0 0 2-4 4.992 4.992 0 0 0-2-4h3zm-6 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM0 8a5 5 0 0 0 5 5h6a5 5 0 0 0 0-10H5a5 5 0 0 0-5 5z"}})])}),[],!1,null,null,null).exports,d={props:{isOn:{type:Boolean,default:!1}},components:{IconToggleOn:l,IconToggleOff:r}},c=(o(262),Object(n.a)(d,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"toggle-button"},[this.isOn?e("IconToggleOn"):e("IconToggleOff")],1)])}),[],!1,null,"7e3e3a36",null));e.default=c.exports},259:function(t,e,o){"use strict";o.r(e);var n={props:{mode:{type:String,default:"normal"},message:{type:String}}},l=(o(264),o(10)),component=Object(l.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("p",{class:this.mode},[this._v("\n "+this._s(this.message)+"\n ")])])}),[],!1,null,"6828301b",null);e.default=component.exports},261:function(t,e,o){"use strict";o.r(e);o(49);var n={components:{LogEntry:o(259).default},computed:{logs:function(){return this.$store.state.logs.logs}},mounted:function(){var t=this;this.$store.dispatch("logs/update"),setInterval((function(){t.$store.dispatch("logs/update")}),1e3)}},l=(o(266),o(10)),component=Object(l.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"log-box"},this._l(this.logs,(function(t,o){return e("LogEntry",{key:o,attrs:{mode:0===t.type?"normal":1===t.type?"warn":"error",message:t.compiledMessage}})})),1)}),[],!1,null,"fc279734",null);e.default=component.exports;installComponents(component,{LogEntry:o(259).default})},262:function(t,e,o){"use strict";var n=o(248);o.n(n).a},263:function(t,e,o){(e=o(19)(!1)).push([t.i,".toggle-button[data-v-7e3e3a36]{width:50px;overflow:visible;stroke-width:1px;fill:#bbb;stroke:#bbb;cursor:pointer;transition:fill .1s,stroke .1s}.toggle-button[data-v-7e3e3a36]:hover{fill:#fff;stroke:#fff}",""]),t.exports=e},264:function(t,e,o){"use strict";var n=o(249);o.n(n).a},265:function(t,e,o){(e=o(19)(!1)).push([t.i,".warn[data-v-6828301b]{background-color:rgba(255,204,0,.26667)}.error[data-v-6828301b],.warn[data-v-6828301b]{color:#bbb;font-size:14pt}.error[data-v-6828301b]{background-color:rgba(221,68,0,.26667)}.normal[data-v-6828301b]{color:#bbb;font-size:14pt}",""]),t.exports=e},266:function(t,e,o){"use strict";var n=o(250);o.n(n).a},267:function(t,e,o){(e=o(19)(!1)).push([t.i,".log-box[data-v-fc279734]{width:100%;height:600px;border-radius:5px;padding:20px;background-color:hsla(0,0%,100%,.33333);overflow-y:scroll}",""]),t.exports=e},268:function(t,e,o){"use strict";var n=o(253);o.n(n).a},269:function(t,e,o){(e=o(19)(!1)).push([t.i,"h1[data-v-24e6d1ac]{font-size:32pt}h1[data-v-24e6d1ac],h2[data-v-24e6d1ac]{color:#bbb}h2[data-v-24e6d1ac]{font-size:24pt}.disk-usage__entry p[data-v-24e6d1ac]{color:#bbb;font-size:16pt}.disk-usage__entry p[data-v-24e6d1ac]:first-child{width:150px}textarea[data-v-24e6d1ac]{color:#04254e;border-radius:5px;font-size:16pt;padding:.7em;min-height:200px;transition:background-color .2s}textarea.inputfield--error[data-v-24e6d1ac]{background-color:#f77}.option[data-v-24e6d1ac]{color:#bbb;font-size:18pt;height:50px}.option.toggle>p[data-v-24e6d1ac]{width:300px}.option.text>input[data-v-24e6d1ac]{width:240px;text-align:right;border-radius:5px;font-size:16pt;height:30px;padding-left:.7em;padding-right:.7em}@media(max-width:768px){.option.text>input[data-v-24e6d1ac]{width:180px}}.option.text.narrow>input[data-v-24e6d1ac]{width:120px}@media(min-width:1024px){.border-right[data-v-24e6d1ac]{border-right:1px solid #888}.border-left[data-v-24e6d1ac]{border-left:1px solid #888}}.button[data-v-24e6d1ac]{color:#000;font-family:ZillaSlab,serif;font-size:18pt;width:200px;transition:background-color .2s,opacity .2s}.button[data-v-24e6d1ac]:hover{background-color:#d40}.button--small[data-v-24e6d1ac]{font-size:14pt;width:150px;height:30px}.button--nowarn[data-v-24e6d1ac]:hover{background-color:#5954a4}.button--disabled[data-v-24e6d1ac]{cursor:pointer;pointer-events:none;opacity:.5}hr[data-v-24e6d1ac]{border:none;border-bottom:2px solid #888}@-webkit-keyframes goback-floating-data-v-24e6d1ac{50%{left:1.2em}0%{left:1em}}@keyframes goback-floating-data-v-24e6d1ac{50%{left:1.2em}0%{left:1em}}.go-back[data-v-24e6d1ac]{position:absolute;left:1em;top:1em;font-size:34pt;font-family:ZillaSlab,serif;color:#bee7f4;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-animation:goback-floating-data-v-24e6d1ac 1s infinite;animation:goback-floating-data-v-24e6d1ac 1s infinite}",""]),t.exports=e},277:function(t,e,o){"use strict";o.r(e);o(49);var n=o(7),l=o.n(n),r=o(258),d=o(261),c=o(247),h={components:{Toggle:r.default,LogBox:d.default,Spacer:c.default},computed:{diskUsage:function(){return this.$store.state.diskUsage.usage},serverOs:function(){return this.$store.state.serverOs.os_name}},methods:{clearDLCache:function(){var t=this;l.a.post("/api",{request:"clear_download_cache"}).then((function(e){"OK"===e.data.status&&t.$store.dispatch("dlcache/update",t)}))},clearLogs:function(){var t=this;l.a.post("/api",{request:"clear_logs"}).then((function(e){"OK"===e.data.status&&t.$store.dispatch("logs/update",t)}))},updateYtdl:function(){var t=this;l.a.post("/api",{request:"update_dep_youtubedl"}).then((function(e){"OK"===e.data.status&&t.$store.dispatch("logs/update",t)}))},killServer:function(){l.a.post("/api",{request:"kill_yourself"}).then((function(t){"OK"===t.data.status&&window.close()}))},resetToDefaults:function(){this.$store.dispatch("settings/resetToDefaults")},getSettings:function(){return this.$store.state.settings.config},setSettings_toggle_showConsole:function(){var t=this.getSettings();t.general.show_console=!t.general.show_console,this.$store.commit("settings/updateGet",t),this.$store.dispatch("settings/updateSet",t)},setSettings_toggle_onlyAllowLocalhost:function(){var t=this.getSettings();t.access.only_allow_localhost=!t.access.only_allow_localhost,this.$store.commit("settings/updateGet",t),this.$store.dispatch("settings/updateSet",t)},setSettings_toggle_enableWhitelist:function(){var t=this.getSettings();t.access.enable_whitelist=!t.access.enable_whitelist,this.$store.commit("settings/updateGet",t),this.$store.dispatch("settings/updateSet",t),t.access.enable_whitelist&&this.whitelistToInputfield()},setSettings_pushCurrentStore:function(){this.$store.dispatch("settings/updateSet",this.getSettings())},whitelistToInputfield:function(){if(void 0!==this.$refs.whitelist_input){var t=JSON.stringify(this.getSettings().access.whitelist,void 0,2);return this.$refs.whitelist_input.value=t,t}setTimeout(this.whitelistToInputfield,200)},saveWhitelist:function(){var t=this.$refs.whitelist_input.value,element=this.$refs.whitelist_input;try{var e=JSON.parse(t),o=this.getSettings();o.access.whitelist=e,this.$store.commit("settings/updateGet",o),this.whitelistToInputfield(),this.$store.dispatch("settings/updateSet",o),element.classList.remove("inputfield--error")}catch(e){this.$refs.whitelist_input.value=t,element.classList.add("inputfield--error"),this.$refs.button_saveWhitelist.classList.add("button--disabled")}},updateWhitelist:function(){var t=this;this.$store.dispatch("settings/updateGet",(function(){t.whitelistToInputfield(),t.whitelistInputJsonSyntaxCheck()}))},whitelistInputJsonSyntaxCheck:function(){var element=this.$refs.whitelist_input;try{JSON.parse(element.value),element.classList.remove("inputfield--error"),this.$refs.button_saveWhitelist.classList.remove("button--disabled")}catch(t){element.classList.add("inputfield--error"),this.$refs.button_saveWhitelist.classList.add("button--disabled")}}},mounted:function(){var t=this;this.$store.dispatch("diskUsage/update"),this.$store.dispatch("serverOs/update"),this.$store.dispatch("settings/updateGet",(function(){t.whitelistToInputfield()})),setInterval((function(){t.$store.dispatch("settings/updateGet")}),1e3)}},v=(o(268),o(10)),component=Object(v.a)(h,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("h1",[t._v("Settings")]),t._v(" "),o("Spacer",{attrs:{height:"2em"}}),t._v(" "),o("div",{staticClass:"flex-col w-full"},[o("div",{staticClass:"flex flex-col lg:flex-row justify-content-start w-full"},[o("div",{staticClass:"w-full lg:w-1/2 border-right lg:pr-3"},[void 0!==t.getSettings().general?o("div",["Windows"===t.serverOs?o("div",{staticClass:"option toggle flex justify-between items-center"},[o("p",[t._v("Show console")]),t._v(" "),o("div",{on:{click:t.setSettings_toggle_showConsole}},[o("Toggle",{attrs:{isOn:t.getSettings().general.show_console}})],1)]):t._e(),t._v(" "),o("div",{staticClass:"option text narrow flex justify-between w-full items-center"},[o("p",{staticClass:"mr-3"},[t._v("Max speed")]),t._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:t.getSettings().downloader.max_dlrate_per_thread,expression:"getSettings().downloader.max_dlrate_per_thread"}],attrs:{type:"text",id:"max_speed",name:"max_speed",placeholder:"100M"},domProps:{value:t.getSettings().downloader.max_dlrate_per_thread},on:{focusout:t.setSettings_pushCurrentStore,input:function(e){e.target.composing||t.$set(t.getSettings().downloader,"max_dlrate_per_thread",e.target.value)}}})]),t._v(" "),o("div",{staticClass:"option text narrow flex justify-between w-full items-center"},[o("p",{staticClass:"mr-3"},[t._v("Download threads")]),t._v(" "),o("input",{directives:[{name:"model",rawName:"v-model.number",value:t.getSettings().downloader.num_threads,expression:"getSettings().downloader.num_threads",modifiers:{number:!0}}],attrs:{type:"number",id:"max_threads",name:"max_threads",placeholder:"10"},domProps:{value:t.getSettings().downloader.num_threads},on:{focusout:t.setSettings_pushCurrentStore,input:function(e){e.target.composing||t.$set(t.getSettings().downloader,"num_threads",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})]),t._v(" "),o("div",{staticClass:"option toggle flex justify-between items-center"},[o("p",[t._v("Only allow localhost")]),t._v(" "),o("div",{on:{click:t.setSettings_toggle_onlyAllowLocalhost}},[o("Toggle",{attrs:{isOn:t.getSettings().access.only_allow_localhost}})],1)]),t._v(" "),o("div",{staticClass:"option toggle flex justify-between items-center"},[o("p",[t._v("Enable whitelist")]),t._v(" "),o("div",{on:{click:t.setSettings_toggle_enableWhitelist}},[o("Toggle",{attrs:{isOn:t.getSettings().access.enable_whitelist}})],1)]),t._v(" "),o("Spacer",{attrs:{height:"2em"}}),t._v(" "),t.getSettings().access.enable_whitelist?o("div",[o("h2",[t._v("Whitelist")]),t._v(" "),o("textarea",{ref:"whitelist_input",staticClass:"mt-2 w-full",on:{input:t.whitelistInputJsonSyntaxCheck}}),t._v(" "),o("div",{staticClass:"flex w-full"},[o("div",{ref:"button_saveWhitelist",staticClass:"button button--small button--nowarn mt-2 mr-2",on:{click:t.saveWhitelist}},[t._v("Save whitelist")]),t._v(" "),o("div",{staticClass:"button button--small button--nowarn mt-2",on:{click:t.updateWhitelist}},[t._v("Update whitelist")])])]):t._e()],1):t._e()]),t._v(" "),o("div",{staticClass:"w-full lg:w-1/2 border-left lg:pl-3 mt-6 lg:mt-0"},[o("div",{staticClass:"disk-usage"},[o("h2",[t._v("Disk usage")]),t._v(" "),o("div",{staticClass:"disk-usage__entry flex"},[o("p",{staticClass:"mr-3"},[t._v("Downloads: ")]),t._v(" "),o("p",[t._v(t._s(Math.round(t.diskUsage.dlcache/1024/1024))+" mb")])]),t._v(" "),o("div",{staticClass:"disk-usage__entry flex"},[o("p",{staticClass:"mr-3"},[t._v("Logs: ")]),t._v(" "),o("p",[t._v(t._s(Math.round(t.diskUsage.logs/1024/1024))+" mb")])]),t._v(" "),o("div",{staticClass:"disk-usage__entry flex"},[o("p",{staticClass:"mr-3"},[t._v("Dependencies: ")]),t._v(" "),o("p",[t._v(t._s(Math.round(t.diskUsage.dependencies/1024/1024))+" mb")])]),t._v(" "),o("div",{staticClass:"disk-usage__entry flex"},[o("p",{staticClass:"mr-3"},[t._v("Misc: ")]),t._v(" "),o("p",[t._v(t._s(Math.round(t.diskUsage.misc/1024/1024))+" mb")])]),t._v(" "),o("div",{staticClass:"disk-usage__entry flex"},[o("p",{staticClass:"mr-3"},[t._v("Total: ")]),t._v(" "),o("p",[t._v(t._s(Math.round(t.diskUsage.total/1024/1024))+" mb")])])]),t._v(" "),o("Spacer",{attrs:{height:"50px"}}),t._v(" "),o("div",{staticClass:"flex"},[o("div",{staticClass:"flex flex-col mr-1"},[o("div",{staticClass:"button",on:{click:t.clearDLCache}},[t._v("Clear downloads")]),t._v(" "),o("div",{staticClass:"button mt-2",on:{click:t.clearLogs}},[t._v("Clear logs")]),t._v(" "),"Windows"===t.serverOs?o("div",{staticClass:"button mt-2",on:{click:t.updateYtdl}},[t._v("Update ytdl")]):t._e()]),t._v(" "),o("div",{staticClass:"flex flex-col ml-1"},[o("div",{staticClass:"button",on:{click:t.killServer}},[t._v("Kill server")]),t._v(" "),o("div",{staticClass:"button mt-2",on:{click:t.resetToDefaults}},[t._v("Reset to defaults")])])])],1)]),t._v(" "),o("hr",{staticClass:"mt-6 lg:mt-2"}),t._v(" "),o("div",{staticClass:"pt-6"},[o("h2",{staticClass:"mb-4"},[t._v("Logs")]),t._v(" "),o("LogBox")],1)]),t._v(" "),o("div",{staticClass:"go-back hidden md:block"},[o("nuxt-link",{attrs:{exact:"",to:"/"}},[t._v("\n << Back\n ")])],1)],1)}),[],!1,null,"24e6d1ac",null);e.default=component.exports;installComponents(component,{Spacer:o(247).default,Toggle:o(258).default,LogBox:o(261).default})}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{246:function(t,e,o){var content=o(252);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("ac8f1938",content,!0,{sourceMap:!1})},247:function(t,e,o){"use strict";o.r(e);var n={props:{height:{type:String,default:"0"},m_height:{type:String,default:"0"}},computed:{mobile_height:function(){return"0"===this.m_height?this.height:this.m_height}}},l=(o(251),o(10)),component=Object(l.a)(n,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"spacer",style:"--height: "+this.height+"; --m_height: "+this.mobile_height+";"})}),[],!1,null,"70a5daf0",null);e.default=component.exports},248:function(t,e,o){var content=o(265);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("1d10f8d7",content,!0,{sourceMap:!1})},249:function(t,e,o){var content=o(267);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("3edd6b06",content,!0,{sourceMap:!1})},250:function(t,e,o){var content=o(269);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("4667df8d",content,!0,{sourceMap:!1})},251:function(t,e,o){"use strict";var n=o(246);o.n(n).a},252:function(t,e,o){(e=o(19)(!1)).push([t.i,".spacer[data-v-70a5daf0]{width:1px;height:var(--height)}@media(max-width:660px){.spacer[data-v-70a5daf0]{height:var(--m_height)}}",""]),t.exports=e},253:function(t,e,o){var content=o(271);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("83deb894",content,!0,{sourceMap:!1})},259:function(t,e,o){"use strict";o.r(e);var n=o(10),l=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"bi bi-toggle-on",attrs:{viewBox:"-4 -4 24 24",fill:"#8a54a2",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M5 3a5 5 0 0 0 0 10h6a5 5 0 0 0 0-10H5zm6 9a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"}})])}),[],!1,null,null,null).exports,r=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"bi bi-toggle-off",attrs:{viewBox:"-4 -4 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M11 4a4 4 0 0 1 0 8H8a4.992 4.992 0 0 0 2-4 4.992 4.992 0 0 0-2-4h3zm-6 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM0 8a5 5 0 0 0 5 5h6a5 5 0 0 0 0-10H5a5 5 0 0 0-5 5z"}})])}),[],!1,null,null,null).exports,d={props:{isOn:{type:Boolean,default:!1}},components:{IconToggleOn:l,IconToggleOff:r}},c=(o(264),Object(n.a)(d,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"toggle-button"},[this.isOn?e("IconToggleOn"):e("IconToggleOff")],1)])}),[],!1,null,"7e3e3a36",null));e.default=c.exports},261:function(t,e,o){"use strict";o.r(e);var n={props:{mode:{type:String,default:"normal"},message:{type:String}}},l=(o(266),o(10)),component=Object(l.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("p",{class:this.mode},[this._v("\n "+this._s(this.message)+"\n ")])])}),[],!1,null,"6828301b",null);e.default=component.exports},262:function(t,e,o){"use strict";o.r(e);o(49);var n={components:{LogEntry:o(261).default},computed:{logs:function(){return this.$store.state.logs.logs}},mounted:function(){var t=this;this.$store.dispatch("logs/update"),setInterval((function(){t.$store.dispatch("logs/update")}),1e3)}},l=(o(268),o(10)),component=Object(l.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"log-box"},this._l(this.logs,(function(t,o){return e("LogEntry",{key:o,attrs:{mode:0===t.type?"normal":1===t.type?"warn":"error",message:t.compiledMessage}})})),1)}),[],!1,null,"fc279734",null);e.default=component.exports;installComponents(component,{LogEntry:o(261).default})},264:function(t,e,o){"use strict";var n=o(248);o.n(n).a},265:function(t,e,o){(e=o(19)(!1)).push([t.i,".toggle-button[data-v-7e3e3a36]{width:50px;overflow:visible;stroke-width:1px;fill:#bbb;stroke:#bbb;cursor:pointer;transition:fill .1s,stroke .1s}.toggle-button[data-v-7e3e3a36]:hover{fill:#fff;stroke:#fff}",""]),t.exports=e},266:function(t,e,o){"use strict";var n=o(249);o.n(n).a},267:function(t,e,o){(e=o(19)(!1)).push([t.i,".warn[data-v-6828301b]{background-color:rgba(255,204,0,.26667)}.error[data-v-6828301b],.warn[data-v-6828301b]{color:#bbb;font-size:14pt}.error[data-v-6828301b]{background-color:rgba(221,68,0,.26667)}.normal[data-v-6828301b]{color:#bbb;font-size:14pt}",""]),t.exports=e},268:function(t,e,o){"use strict";var n=o(250);o.n(n).a},269:function(t,e,o){(e=o(19)(!1)).push([t.i,".log-box[data-v-fc279734]{width:100%;height:600px;border-radius:5px;padding:20px;background-color:hsla(0,0%,100%,.33333);overflow-y:scroll}",""]),t.exports=e},270:function(t,e,o){"use strict";var n=o(253);o.n(n).a},271:function(t,e,o){(e=o(19)(!1)).push([t.i,"h1[data-v-24e6d1ac]{font-size:32pt}h1[data-v-24e6d1ac],h2[data-v-24e6d1ac]{color:#bbb}h2[data-v-24e6d1ac]{font-size:24pt}.disk-usage__entry p[data-v-24e6d1ac]{color:#bbb;font-size:16pt}.disk-usage__entry p[data-v-24e6d1ac]:first-child{width:150px}textarea[data-v-24e6d1ac]{color:#04254e;border-radius:5px;font-size:16pt;padding:.7em;min-height:200px;transition:background-color .2s}textarea.inputfield--error[data-v-24e6d1ac]{background-color:#f77}.option[data-v-24e6d1ac]{color:#bbb;font-size:18pt;height:50px}.option.toggle>p[data-v-24e6d1ac]{width:300px}.option.text>input[data-v-24e6d1ac]{width:240px;text-align:right;border-radius:5px;font-size:16pt;height:30px;padding-left:.7em;padding-right:.7em}@media(max-width:768px){.option.text>input[data-v-24e6d1ac]{width:180px}}.option.text.narrow>input[data-v-24e6d1ac]{width:120px}@media(min-width:1024px){.border-right[data-v-24e6d1ac]{border-right:1px solid #888}.border-left[data-v-24e6d1ac]{border-left:1px solid #888}}.button[data-v-24e6d1ac]{color:#000;font-family:ZillaSlab,serif;font-size:18pt;width:200px;transition:background-color .2s,opacity .2s}.button[data-v-24e6d1ac]:hover{background-color:#d40}.button--small[data-v-24e6d1ac]{font-size:14pt;width:150px;height:30px}.button--nowarn[data-v-24e6d1ac]:hover{background-color:#5954a4}.button--disabled[data-v-24e6d1ac]{cursor:pointer;pointer-events:none;opacity:.5}hr[data-v-24e6d1ac]{border:none;border-bottom:2px solid #888}@-webkit-keyframes goback-floating-data-v-24e6d1ac{50%{left:1.2em}0%{left:1em}}@keyframes goback-floating-data-v-24e6d1ac{50%{left:1.2em}0%{left:1em}}.go-back[data-v-24e6d1ac]{position:absolute;left:1em;top:1em;font-size:34pt;font-family:ZillaSlab,serif;color:#bee7f4;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-animation:goback-floating-data-v-24e6d1ac 1s infinite;animation:goback-floating-data-v-24e6d1ac 1s infinite}",""]),t.exports=e},281:function(t,e,o){"use strict";o.r(e);o(49);var n=o(7),l=o.n(n),r=o(259),d=o(262),c=o(247),h={components:{Toggle:r.default,LogBox:d.default,Spacer:c.default},computed:{diskUsage:function(){return this.$store.state.diskUsage.usage},serverOs:function(){return this.$store.state.serverOs.os_name}},methods:{clearDLCache:function(){var t=this;l.a.post("/api",{request:"clear_download_cache"}).then((function(e){"OK"===e.data.status&&t.$store.dispatch("dlcache/update",t)}))},clearLogs:function(){var t=this;l.a.post("/api",{request:"clear_logs"}).then((function(e){"OK"===e.data.status&&t.$store.dispatch("logs/update",t)}))},updateYtdl:function(){var t=this;l.a.post("/api",{request:"update_dep_youtubedl"}).then((function(e){"OK"===e.data.status&&t.$store.dispatch("logs/update",t)}))},killServer:function(){l.a.post("/api",{request:"kill_yourself"}).then((function(t){"OK"===t.data.status&&window.close()}))},resetToDefaults:function(){this.$store.dispatch("settings/resetToDefaults")},getSettings:function(){return this.$store.state.settings.config},setSettings_toggle_showConsole:function(){var t=this.getSettings();t.general.show_console=!t.general.show_console,this.$store.commit("settings/updateGet",t),this.$store.dispatch("settings/updateSet",t)},setSettings_toggle_onlyAllowLocalhost:function(){var t=this.getSettings();t.access.only_allow_localhost=!t.access.only_allow_localhost,this.$store.commit("settings/updateGet",t),this.$store.dispatch("settings/updateSet",t)},setSettings_toggle_enableWhitelist:function(){var t=this.getSettings();t.access.enable_whitelist=!t.access.enable_whitelist,this.$store.commit("settings/updateGet",t),this.$store.dispatch("settings/updateSet",t),t.access.enable_whitelist&&this.whitelistToInputfield()},setSettings_pushCurrentStore:function(){this.$store.dispatch("settings/updateSet",this.getSettings())},whitelistToInputfield:function(){if(void 0!==this.$refs.whitelist_input){var t=JSON.stringify(this.getSettings().access.whitelist,void 0,2);return this.$refs.whitelist_input.value=t,t}setTimeout(this.whitelistToInputfield,200)},saveWhitelist:function(){var t=this.$refs.whitelist_input.value,element=this.$refs.whitelist_input;try{var e=JSON.parse(t),o=this.getSettings();o.access.whitelist=e,this.$store.commit("settings/updateGet",o),this.whitelistToInputfield(),this.$store.dispatch("settings/updateSet",o),element.classList.remove("inputfield--error")}catch(e){this.$refs.whitelist_input.value=t,element.classList.add("inputfield--error"),this.$refs.button_saveWhitelist.classList.add("button--disabled")}},updateWhitelist:function(){var t=this;this.$store.dispatch("settings/updateGet",(function(){t.whitelistToInputfield(),t.whitelistInputJsonSyntaxCheck()}))},whitelistInputJsonSyntaxCheck:function(){var element=this.$refs.whitelist_input;try{JSON.parse(element.value),element.classList.remove("inputfield--error"),this.$refs.button_saveWhitelist.classList.remove("button--disabled")}catch(t){element.classList.add("inputfield--error"),this.$refs.button_saveWhitelist.classList.add("button--disabled")}}},mounted:function(){var t=this;this.$store.dispatch("diskUsage/update"),this.$store.dispatch("serverOs/update"),this.$store.dispatch("settings/updateGet",(function(){t.whitelistToInputfield()})),setInterval((function(){t.$store.dispatch("settings/updateGet")}),1e3)}},v=(o(270),o(10)),component=Object(v.a)(h,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("h1",[t._v("Settings")]),t._v(" "),o("Spacer",{attrs:{height:"2em"}}),t._v(" "),o("div",{staticClass:"flex-col w-full"},[o("div",{staticClass:"flex flex-col lg:flex-row justify-content-start w-full"},[o("div",{staticClass:"w-full lg:w-1/2 border-right lg:pr-3"},[void 0!==t.getSettings().general?o("div",["Windows"===t.serverOs?o("div",{staticClass:"option toggle flex justify-between items-center"},[o("p",[t._v("Show console")]),t._v(" "),o("div",{on:{click:t.setSettings_toggle_showConsole}},[o("Toggle",{attrs:{isOn:t.getSettings().general.show_console}})],1)]):t._e(),t._v(" "),o("div",{staticClass:"option text narrow flex justify-between w-full items-center"},[o("p",{staticClass:"mr-3"},[t._v("Max speed")]),t._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:t.getSettings().downloader.max_dlrate_per_thread,expression:"getSettings().downloader.max_dlrate_per_thread"}],attrs:{type:"text",id:"max_speed",name:"max_speed",placeholder:"100M"},domProps:{value:t.getSettings().downloader.max_dlrate_per_thread},on:{focusout:t.setSettings_pushCurrentStore,input:function(e){e.target.composing||t.$set(t.getSettings().downloader,"max_dlrate_per_thread",e.target.value)}}})]),t._v(" "),o("div",{staticClass:"option text narrow flex justify-between w-full items-center"},[o("p",{staticClass:"mr-3"},[t._v("Download threads")]),t._v(" "),o("input",{directives:[{name:"model",rawName:"v-model.number",value:t.getSettings().downloader.num_threads,expression:"getSettings().downloader.num_threads",modifiers:{number:!0}}],attrs:{type:"number",id:"max_threads",name:"max_threads",placeholder:"10"},domProps:{value:t.getSettings().downloader.num_threads},on:{focusout:t.setSettings_pushCurrentStore,input:function(e){e.target.composing||t.$set(t.getSettings().downloader,"num_threads",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})]),t._v(" "),o("div",{staticClass:"option toggle flex justify-between items-center"},[o("p",[t._v("Only allow localhost")]),t._v(" "),o("div",{on:{click:t.setSettings_toggle_onlyAllowLocalhost}},[o("Toggle",{attrs:{isOn:t.getSettings().access.only_allow_localhost}})],1)]),t._v(" "),o("div",{staticClass:"option toggle flex justify-between items-center"},[o("p",[t._v("Enable whitelist")]),t._v(" "),o("div",{on:{click:t.setSettings_toggle_enableWhitelist}},[o("Toggle",{attrs:{isOn:t.getSettings().access.enable_whitelist}})],1)]),t._v(" "),o("Spacer",{attrs:{height:"2em"}}),t._v(" "),t.getSettings().access.enable_whitelist?o("div",[o("h2",[t._v("Whitelist")]),t._v(" "),o("textarea",{ref:"whitelist_input",staticClass:"mt-2 w-full",on:{input:t.whitelistInputJsonSyntaxCheck}}),t._v(" "),o("div",{staticClass:"flex w-full"},[o("div",{ref:"button_saveWhitelist",staticClass:"button button--small button--nowarn mt-2 mr-2",on:{click:t.saveWhitelist}},[t._v("Save whitelist")]),t._v(" "),o("div",{staticClass:"button button--small button--nowarn mt-2",on:{click:t.updateWhitelist}},[t._v("Update whitelist")])])]):t._e()],1):t._e()]),t._v(" "),o("div",{staticClass:"w-full lg:w-1/2 border-left lg:pl-3 mt-6 lg:mt-0"},[o("div",{staticClass:"disk-usage"},[o("h2",[t._v("Disk usage")]),t._v(" "),o("div",{staticClass:"disk-usage__entry flex"},[o("p",{staticClass:"mr-3"},[t._v("Downloads: ")]),t._v(" "),o("p",[t._v(t._s(Math.round(t.diskUsage.dlcache/1024/1024))+" mb")])]),t._v(" "),o("div",{staticClass:"disk-usage__entry flex"},[o("p",{staticClass:"mr-3"},[t._v("Logs: ")]),t._v(" "),o("p",[t._v(t._s(Math.round(t.diskUsage.logs/1024/1024))+" mb")])]),t._v(" "),o("div",{staticClass:"disk-usage__entry flex"},[o("p",{staticClass:"mr-3"},[t._v("Dependencies: ")]),t._v(" "),o("p",[t._v(t._s(Math.round(t.diskUsage.dependencies/1024/1024))+" mb")])]),t._v(" "),o("div",{staticClass:"disk-usage__entry flex"},[o("p",{staticClass:"mr-3"},[t._v("Misc: ")]),t._v(" "),o("p",[t._v(t._s(Math.round(t.diskUsage.misc/1024/1024))+" mb")])]),t._v(" "),o("div",{staticClass:"disk-usage__entry flex"},[o("p",{staticClass:"mr-3"},[t._v("Total: ")]),t._v(" "),o("p",[t._v(t._s(Math.round(t.diskUsage.total/1024/1024))+" mb")])])]),t._v(" "),o("Spacer",{attrs:{height:"50px"}}),t._v(" "),o("div",{staticClass:"flex"},[o("div",{staticClass:"flex flex-col mr-1"},[o("div",{staticClass:"button",on:{click:t.clearDLCache}},[t._v("Clear downloads")]),t._v(" "),o("div",{staticClass:"button mt-2",on:{click:t.clearLogs}},[t._v("Clear logs")]),t._v(" "),"Windows"===t.serverOs?o("div",{staticClass:"button mt-2",on:{click:t.updateYtdl}},[t._v("Update ytdl")]):t._e()]),t._v(" "),o("div",{staticClass:"flex flex-col ml-1"},[o("div",{staticClass:"button",on:{click:t.killServer}},[t._v("Kill server")]),t._v(" "),o("div",{staticClass:"button mt-2",on:{click:t.resetToDefaults}},[t._v("Reset to defaults")])])])],1)]),t._v(" "),o("hr",{staticClass:"mt-6 lg:mt-2"}),t._v(" "),o("div",{staticClass:"pt-6"},[o("h2",{staticClass:"mb-4"},[t._v("Logs")]),t._v(" "),o("LogBox")],1)]),t._v(" "),o("div",{staticClass:"go-back hidden md:block"},[o("nuxt-link",{attrs:{exact:"",to:"/"}},[t._v("\n << Back\n ")])],1)],1)}),[],!1,null,"24e6d1ac",null);e.default=component.exports;installComponents(component,{Spacer:o(247).default,Toggle:o(259).default,LogBox:o(262).default})}}]); \ No newline at end of file diff --git a/Tubio/frontend/_nuxt/d429197.js b/Tubio/frontend/_nuxt/719143f.js similarity index 57% rename from Tubio/frontend/_nuxt/d429197.js rename to Tubio/frontend/_nuxt/719143f.js index a7ba661..2ff5eb6 100644 --- a/Tubio/frontend/_nuxt/d429197.js +++ b/Tubio/frontend/_nuxt/719143f.js @@ -1,2 +1,2 @@ /*! For license information please see LICENSES */ -(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{0:function(t,e,n){"use strict";n.d(e,"k",(function(){return w})),n.d(e,"m",(function(){return v})),n.d(e,"l",(function(){return y})),n.d(e,"e",(function(){return _})),n.d(e,"b",(function(){return $})),n.d(e,"r",(function(){return k})),n.d(e,"g",(function(){return j})),n.d(e,"h",(function(){return O})),n.d(e,"d",(function(){return C})),n.d(e,"q",(function(){return S})),n.d(e,"j",(function(){return E})),n.d(e,"s",(function(){return P})),n.d(e,"n",(function(){return A})),n.d(e,"p",(function(){return N})),n.d(e,"f",(function(){return M})),n.d(e,"c",(function(){return I})),n.d(e,"i",(function(){return L})),n.d(e,"o",(function(){return U})),n.d(e,"a",(function(){return H})),n.d(e,"t",(function(){return J}));n(31),n(38),n(39),n(126),n(56),n(40),n(42),n(74),n(188),n(189),n(58),n(190),n(35),n(30),n(107),n(108),n(75),n(17),n(192),n(34),n(33),n(193),n(101),n(43),n(194),n(63),n(196),n(109),n(150),n(44),n(45);var r=n(61),o=n(47),c=(n(59),n(6)),d=n(46),l=n(1);function f(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function h(t){for(var i=1;i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,d=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){d=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(d)throw o}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:[],r=t.$children||[],o=m(r);try{for(o.s();!(e=o.n()).done;){var c=e.value;c.$fetch?n.push(c):c.$children&&_(c,n)}}catch(t){o.e(t)}finally{o.f()}return n}function $(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),h(h({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function k(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=l.a.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function j(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map((function(t,r){return Object.keys(t[n]).map((function(o){return e&&e.push(r),t[n][o]}))})))}function O(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return j(t,e,"instances")}function C(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function S(t,e){return Promise.all(C(t,function(){var t=Object(c.a)(regeneratorRuntime.mark((function t(n,r,o,c){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=4;break}return t.next=3,n();case 3:n=t.sent;case 4:return o.components[c]=n=k(n),t.abrupt("return","function"==typeof e?e(n,r,o,c):n);case 6:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}()))}function E(t){return R.apply(this,arguments)}function R(){return(R=Object(c.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,S(e);case 4:return t.abrupt("return",h(h({},e),{},{meta:j(e).map((function(t,n){return h(h({},t.options.meta),(e.matched[n]||{}).meta)}))}));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function P(t,e){return T.apply(this,arguments)}function T(){return(T=Object(c.a)(regeneratorRuntime.mark((function t(e,n){var c,d,l,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.context||(e.context={isStatic:!0,isDev:!1,isHMR:!1,app:e,store:e.store,payload:n.payload,error:n.error,base:"/",env:{}},n.ssrContext&&(e.context.ssrContext=n.ssrContext),e.context.redirect=function(t,path,n){if(t){e.context._redirected=!0;var r=Object(o.a)(path);if("number"==typeof t||"undefined"!==r&&"object"!==r||(n=path||{},path=t,r=Object(o.a)(path),t=302),"object"===r&&(path=e.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=K(path,n),window.location.replace(path),new Error("ERR_REDIRECT");e.context.next({path:path,query:n,status:t})}},e.context.nuxtState=window.__NUXT__),t.next=3,Promise.all([E(n.route),E(n.from)]);case 3:c=t.sent,d=Object(r.a)(c,2),l=d[0],f=d[1],n.route&&(e.context.route=l),n.from&&(e.context.from=f),e.context.next=n.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=!1,e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{};case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t,e){return!t.length||e._redirected||e._errored?Promise.resolve():N(t[0],e).then((function(){return A(t.slice(1),e)}))}function N(t,e){var n;return(n=2===t.length?new Promise((function(n){t(e,(function(t,data){t&&e.error(t),n(data=data||{})}))})):t(e))&&n instanceof Promise&&"function"==typeof n.then?n:Promise.resolve(n)}function M(base,t){var path=decodeURI(window.location.pathname);return"hash"===t?window.location.hash.replace(/^#\//,""):(base&&(path.endsWith("/")?path:path+"/").startsWith(base)&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash)}function I(t,e){return function(t,e){for(var n=new Array(t.length),i=0;i0?d.map((function(){return t(!1)})):t(!1))}};t.exports=r},160:function(t,e,n){"use strict";e.a=function(t,e){return e=e||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(JSON.parse(s.responseText))},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var c in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),u.push([e,n]),i[e]=i[e]?i[e]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(c,e.headers[c]);s.send(e.body||null)}))}},162:function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function d(t,source,e){return t.concat(source).map((function(element){return c(element,e)}))}function l(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function f(object,t){try{return t in object}catch(t){return!1}}function h(t,source,e){var n={};return e.isMergeableObject(t)&&l(t).forEach((function(r){n[r]=c(t[r],e)})),l(source).forEach((function(r){(function(t,e){return f(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(f(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return m;var n=e.customMerge(t);return"function"==typeof n?n:m}(r,e)(t[r],source[r],e):n[r]=c(source[r],e))})),n}function m(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||d,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=c;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):h(t,source,e):c(source,e)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return m(t,n,e)}),{})};var x=m;t.exports=x},163:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return null!==t&&"object"===r(t)&&!Array.isArray(t)}function c(t,e){if(!o(t))return c({},e);if(!o(e))return c(t,{});var n=Object.assign({},e);for(var r in t)if("__proto__"!==r&&"constructor"!==r){var d=t[r];null!==d&&(o(d)&&o(n[r])?n[r]=c(d,n[r]):n[r]=d)}return n}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n0)){t.next=19;break}return t.next=19,new Promise((function(t){return setTimeout(t,r)}));case 19:this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return t.stop()}}),t,this,[[6,11]])})))).apply(this,arguments)}e.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.a.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=m.bind(this),Object(c.a)(this,"created",f),Object(c.a)(this,"beforeMount",l))}}},168:function(t,e,n){(function(t){t.installComponents=function(component,t){const e="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(e.components=component.exports.options.components),e.components=e.components||{},t)e.components[i]=e.components[i]||t[i];e.functional&&function(component,t){if(component.exports._functionalComponents)return;component.exports._functionalComponents=!0;const e=component.exports.render;component.exports.render=function(n,r){return e(n,Object.assign({},r,{_c:function(e,a,b){return r._c(t[e]||e,a,b)}}))}}(component,e.components)}}).call(this,n(28))},169:function(t,e,n){"use strict";n.r(e),function(t){n(31),n(38),n(39),n(126),n(56),n(40),n(42),n(74),n(58),n(35),n(134),n(30),n(75),n(17),n(34),n(33),n(101),n(43),n(166),n(44),n(45),n(49);var e=n(47),r=(n(59),n(6)),o=(n(142),n(178),n(185),n(187),n(1)),c=n(160),d=n(112),l=n(0),f=n(27),h=n(164),m=n(85);n(245);function x(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,d=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){d=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(d)throw o}}}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2?e-2:0),r=2;re.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;r1&&void 0!==arguments[1]?arguments[1]:y,n=arguments.length>2?arguments[2]:void 0;return _.call(this,t,e,n)},c.a.use(w.a);var $={mode:"history",base:decodeURI("/"),linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(t,e,n){var r=!1,o=Object(v.g)(t);(o.some((function(t){return t.options.scrollToTop}))||o.length<2&&o.every((function(t){return!1!==t.options.scrollToTop})))&&(r={x:0,y:0}),n&&(r=n);var c=window.$nuxt;return(t.path===e.path&&t.hash!==e.hash||t===e)&&c.$nextTick((function(){return c.$emit("triggerScroll")})),new Promise((function(e){c.$once("triggerScroll",(function(){if(t.hash){var n=t.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{document.querySelector(n)&&(r={selector:n})}catch(t){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}e(r)}))}))},routes:[{path:"/settings",component:function(){return Object(v.m)(n.e(3).then(n.bind(null,277)))},name:"settings"},{path:"/",component:function(){return Object(v.m)(n.e(2).then(n.bind(null,276)))},name:"index"}],fallback:!1};function k(){return new w.a($)}var j={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,d=n.$nuxt.nuxt.transitions,l=n.$nuxt.nuxt.defaultTransition,f=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&f++,n=n.$parent;data.nuxtChildDepth=f;var h=d[f]||l,m={};O.forEach((function(t){void 0!==h[t]&&(m[t]=h[t])}));var x={};C.forEach((function(t){"function"==typeof h[t]&&(x[t]=h[t].bind(c))}));var w=x.beforeEnter;if(x.beforeEnter=function(t){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),w)return w.call(c,t)},!1===h.css){var v=x.leave;(!v||v.length<2)&&(x.leave=function(t,e){v&&v.call(c,t),c.$nextTick(e)})}var y=o("routerView",data);return r.keepAlive&&(y=o("keep-alive",{props:r.keepAliveProps},[y])),o("transition",{props:m,on:x},[y])}},O=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],C=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],S={name:"NuxtError",props:{error:{type:Object,default:null}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}},head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0"}]}}},E=(n(201),n(10)),R=Object(E.a)(S,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"__nuxt-error-page"},[n("div",{staticClass:"error"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[n("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t._v(" "),n("div",{staticClass:"title"},[t._v(t._s(t.message))]),t._v(" "),404===t.statusCode?n("p",{staticClass:"description"},[void 0===t.$route?n("a",{staticClass:"error-link",attrs:{href:"/"}}):n("NuxtLink",{staticClass:"error-link",attrs:{to:"/"}},[t._v("Back to the home page")])],1):t._e(),t._v(" "),t._m(0)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logo"},[e("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}],!1,null,null,null).exports,P=(n(34),n(33),n(63),n(61)),T={name:"Nuxt",components:{NuxtChild:j,NuxtError:R},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(v.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(P.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return e.errorFromNuxtError=!1})),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return e.displayingNuxtError=!1})),t(R,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}},A=(n(38),n(39),n(42),n(35),n(43),n(109),n(150),n(45),n(49),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(t){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100||t.percent<=0)&&(t.skipTimerCount=1,t.reversed=!t.reversed))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),N=(n(203),Object(E.a)(A,void 0,void 0,!1,null,null,null).exports),M=(n(205),n(207),n(209),n(211),n(165));function I(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,d=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){d=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(d)throw o}}}}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Object(v.h)(t.$route)).length){e.next=3;break}return e.abrupt("return");case 3:return t.$loading.start(),r=n.map((function(e){var p=[];if(e.$options.fetch&&e.$options.fetch.length&&p.push(Object(v.p)(e.$options.fetch,t.context)),e.$fetch)p.push(e.$fetch());else{var n,r=I(Object(v.e)(e.$vnode.componentInstance));try{for(r.s();!(n=r.n()).done;){var component=n.value;p.push(component.$fetch())}}catch(t){r.e(t)}finally{r.f()}}return e.$options.asyncData&&p.push(Object(v.p)(e.$options.asyncData,t.context).then((function(t){for(var n in t)c.a.set(e.$data,n,t[n])}))),Promise.all(p)})),e.prev=5,e.next=8,Promise.all(r);case 8:e.next=15;break;case 10:e.prev=10,e.t0=e.catch(5),t.$loading.fail(e.t0),Object(v.k)(e.t0),t.error(e.t0);case 15:t.$loading.finish();case 16:case"end":return e.stop()}}),e,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(R.options||R).layout;"function"==typeof t&&(t=t(this.context)),this.setLayout(t)}},setLayout:function(t){return t&&U["_"+t]||(t="default"),this.layoutName=t,this.layout=U["_"+t],this.layout},loadLayout:function(t){return t&&U["_"+t]||(t="default"),Promise.resolve(U["_"+t])},setPagePayload:function(t){this._pagePayload=t,this._payloadFetchIndex=0},fetchPayload:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,base,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=window.__NUXT__.staticAssetsBase,(base=(e.$router.options.base||"").replace(/\/+$/,""))&&t.startsWith(base)&&(t=t.substr(base.length)),t=(t.replace(/\/+$/,"")||"/").split("?")[0].split("#")[0],o=Object(v.t)(base,r,t,"payload.js"),n.prev=5,n.next=8,window.__NUXT_IMPORT__(decodeURI(t),encodeURI(o));case 8:return c=n.sent,e.setPagePayload(c),n.abrupt("return",c);case 13:throw n.prev=13,n.t0=n.catch(5),e.setPagePayload(!1),n.t0;case 17:case"end":return n.stop()}}),n,null,[[5,13]])})))()}},components:{NuxtLoading:N}};n(74);function z(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,d=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){d=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(d)throw o}}}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2&&void 0!==arguments[2]?arguments[2]:{},r=n.isProperty,o=void 0!==r&&r;if(!e.length||o&&1===e.length)return t;var c=e.shift();return t.modules[c]=t.modules[c]||{},t.modules[c].namespaced=!0,t.modules[c].modules=t.modules[c].modules||{},Y(t.modules[c],e,{isProperty:o})}function Q(t,e,n){e&&("state"===n?t.state=e||t.state:t[n]=Object.assign({},t[n],e))}var W={};for(var V in W)c.a.component(V,W[V]);var G=n(7),Z=n.n(G),tt=n(163),et=n.n(tt);function nt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return ot(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ot(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,d=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){d=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(d)throw o}}}}function ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2&&void 0!==arguments[2]?arguments[2]:"common",o=nt(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(!e)return void delete this.defaults.headers[c][t];this.defaults.headers[c][t]=e}}catch(t){o.e(t)}finally{o.f()}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use((function(e){return t(e)||e}))},onResponse:function(t){this.interceptors.response.use((function(e){return t(e)||e}))},onRequestError:function(t){this.interceptors.request.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onResponseError:function(t){this.interceptors.response.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return ut(et()(t,this.defaults))}},at=function(){var t=ct[st];it["$"+t]=function(){return this[t].apply(this,arguments).then((function(t){return t&&t.data}))}},st=0,ct=["request","delete","get","head","options","post","put","patch"];st has been deprecated and will be removed in Nuxt 3, please use instead")),x.a.render(t,e)}})),c.a.component(j.name,j),c.a.component("NChild",j),c.a.component(T.name,T),c.a.use(l.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var mt={name:"page",mode:"out-in",appear:!1,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"},xt=d.a.Store.prototype.registerModule,gt={preserveState:!0};function bt(path,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return xt.call(this,path,t,ht(ht({},gt),e))}function wt(t){return vt.apply(this,arguments)}function vt(){return(vt=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,r,o,d,l,f,path,h,m=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));d[t="$"+t]=e,d.context[t]||(d.context[t]=e),o[t]=d[t];var n="__nuxt_"+t+"_installed__";c.a[n]||(c.a[n]=!0,c.a.use((function(){Object.prototype.hasOwnProperty.call(c.a.prototype,t)||Object.defineProperty(c.a.prototype,t,{get:function(){return this.$root.$options[t]}})})))},n=m.length>1&&void 0!==m[1]?m[1]:{},t.next=4,k();case 4:return r=t.sent,(o=K(e)).$router=r,o.registerModule=bt,d=ht({head:{title:"Tubio - Video downloader",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:""},{name:"msapplication-TileColor",content:"#031934"},{name:"theme-color",content:"#031934"}],link:[{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"},{rel:"manifest",href:"/site.webmanifest"},{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#031934"}],style:[],script:[]},store:o,router:r,nuxt:{defaultTransition:mt,transitions:[mt],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},mt,{name:t}):Object.assign({},mt,t):mt})),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,d.context._errored=Boolean(t),t=t?Object(v.o)(t):null;var n=d.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},D),o.app=d,l=e?e.next:function(t){return d.router.push(t)},e?f=r.resolve(e.url).route:(path=Object(v.f)(r.options.base,r.options.mode),f=r.resolve(path).route),t.next=14,Object(v.s)(d,{store:o,route:f,next:l,error:d.nuxt.error.bind(d),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,ssrContext:e});case 14:h("config",n),window.__NUXT__&&window.__NUXT__.state&&o.replaceState(window.__NUXT__.state),d.context.enablePreview=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.previewData=Object.assign({},t),h("preview",t)},t.next=20;break;case 20:return t.next=23,pt(d.context,h);case 23:d.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},t.next=27;break;case 27:return t.abrupt("return",{store:o,app:d,router:r});case 28:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},48:function(t,e,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,c=r(),d=c.default;void 0===d&&(d=[]);var l=c.placeholder;return n._isMounted?d:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||l)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||l):d.length>0?d.map((function(){return t(!1)})):t(!1))}};t.exports=r},79:function(t,e,n){var content=n(202);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(20).default)("4a1cbb1a",content,!0,{sourceMap:!1})},80:function(t,e,n){var content=n(204);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(20).default)("fa7ff0ca",content,!0,{sourceMap:!1})},85:function(t,e,n){"use strict";n(31),n(38),n(39),n(56),n(40),n(42),n(74),n(58),n(35),n(30),n(17),n(33),n(101),n(43),n(44),n(45),n(49);var r=n(1);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,d=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return d=t.done,t},e:function(t){l=!0,o=t},f:function(){try{d||null==n.return||n.return()}finally{if(l)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,d=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){d=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(d)throw o}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:[],r=t.$children||[],o=m(r);try{for(o.s();!(e=o.n()).done;){var c=e.value;c.$fetch?n.push(c):c.$children&&_(c,n)}}catch(t){o.e(t)}finally{o.f()}return n}function $(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),h(h({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function k(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=l.a.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function j(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map((function(t,r){return Object.keys(t[n]).map((function(o){return e&&e.push(r),t[n][o]}))})))}function O(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return j(t,e,"instances")}function C(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function S(t,e){return Promise.all(C(t,function(){var t=Object(c.a)(regeneratorRuntime.mark((function t(n,r,o,c){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=4;break}return t.next=3,n();case 3:n=t.sent;case 4:return o.components[c]=n=k(n),t.abrupt("return","function"==typeof e?e(n,r,o,c):n);case 6:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}()))}function E(t){return R.apply(this,arguments)}function R(){return(R=Object(c.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,S(e);case 4:return t.abrupt("return",h(h({},e),{},{meta:j(e).map((function(t,n){return h(h({},t.options.meta),(e.matched[n]||{}).meta)}))}));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function P(t,e){return T.apply(this,arguments)}function T(){return(T=Object(c.a)(regeneratorRuntime.mark((function t(e,n){var c,d,l,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.context||(e.context={isStatic:!0,isDev:!1,isHMR:!1,app:e,store:e.store,payload:n.payload,error:n.error,base:"/",env:{}},n.ssrContext&&(e.context.ssrContext=n.ssrContext),e.context.redirect=function(t,path,n){if(t){e.context._redirected=!0;var r=Object(o.a)(path);if("number"==typeof t||"undefined"!==r&&"object"!==r||(n=path||{},path=t,r=Object(o.a)(path),t=302),"object"===r&&(path=e.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=K(path,n),window.location.replace(path),new Error("ERR_REDIRECT");e.context.next({path:path,query:n,status:t})}},e.context.nuxtState=window.__NUXT__),t.next=3,Promise.all([E(n.route),E(n.from)]);case 3:c=t.sent,d=Object(r.a)(c,2),l=d[0],f=d[1],n.route&&(e.context.route=l),n.from&&(e.context.from=f),e.context.next=n.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=!1,e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{};case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t,e){return!t.length||e._redirected||e._errored?Promise.resolve():N(t[0],e).then((function(){return A(t.slice(1),e)}))}function N(t,e){var n;return(n=2===t.length?new Promise((function(n){t(e,(function(t,data){t&&e.error(t),n(data=data||{})}))})):t(e))&&n instanceof Promise&&"function"==typeof n.then?n:Promise.resolve(n)}function M(base,t){var path=decodeURI(window.location.pathname);return"hash"===t?window.location.hash.replace(/^#\//,""):(base&&(path.endsWith("/")?path:path+"/").startsWith(base)&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash)}function I(t,e){return function(t,e){for(var n=new Array(t.length),i=0;i0?d.map((function(){return t(!1)})):t(!1))}};t.exports=r},160:function(t,e,n){"use strict";e.a=function(t,e){return e=e||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(JSON.parse(s.responseText))},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var c in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),u.push([e,n]),i[e]=i[e]?i[e]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(c,e.headers[c]);s.send(e.body||null)}))}},162:function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function d(t,source,e){return t.concat(source).map((function(element){return c(element,e)}))}function l(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function f(object,t){try{return t in object}catch(t){return!1}}function h(t,source,e){var n={};return e.isMergeableObject(t)&&l(t).forEach((function(r){n[r]=c(t[r],e)})),l(source).forEach((function(r){(function(t,e){return f(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(f(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return m;var n=e.customMerge(t);return"function"==typeof n?n:m}(r,e)(t[r],source[r],e):n[r]=c(source[r],e))})),n}function m(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||d,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=c;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):h(t,source,e):c(source,e)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return m(t,n,e)}),{})};var x=m;t.exports=x},163:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return null!==t&&"object"===r(t)&&!Array.isArray(t)}function c(t,e){if(!o(t))return c({},e);if(!o(e))return c(t,{});var n=Object.assign({},e);for(var r in t)if("__proto__"!==r&&"constructor"!==r){var d=t[r];null!==d&&(o(d)&&o(n[r])?n[r]=c(d,n[r]):n[r]=d)}return n}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n0)){t.next=19;break}return t.next=19,new Promise((function(t){return setTimeout(t,r)}));case 19:this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return t.stop()}}),t,this,[[6,11]])})))).apply(this,arguments)}e.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.a.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=m.bind(this),Object(c.a)(this,"created",f),Object(c.a)(this,"beforeMount",l))}}},168:function(t,e,n){(function(t){t.installComponents=function(component,t){const e="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(e.components=component.exports.options.components),e.components=e.components||{},t)e.components[i]=e.components[i]||t[i];e.functional&&function(component,t){if(component.exports._functionalComponents)return;component.exports._functionalComponents=!0;const e=component.exports.render;component.exports.render=function(n,r){return e(n,Object.assign({},r,{_c:function(e,a,b){return r._c(t[e]||e,a,b)}}))}}(component,e.components)}}).call(this,n(28))},169:function(t,e,n){"use strict";n.r(e),function(t){n(31),n(38),n(39),n(126),n(56),n(40),n(42),n(74),n(58),n(35),n(134),n(30),n(75),n(17),n(34),n(33),n(101),n(43),n(166),n(44),n(45),n(49);var e=n(47),r=(n(59),n(6)),o=(n(142),n(178),n(185),n(187),n(1)),c=n(160),d=n(112),l=n(0),f=n(27),h=n(164),m=n(85);n(245);function x(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,d=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){d=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(d)throw o}}}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2?e-2:0),r=2;re.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;r1&&void 0!==arguments[1]?arguments[1]:y,n=arguments.length>2?arguments[2]:void 0;return _.call(this,t,e,n)},c.a.use(w.a);var $={mode:"history",base:decodeURI("/"),linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(t,e,n){var r=!1,o=Object(v.g)(t);(o.some((function(t){return t.options.scrollToTop}))||o.length<2&&o.every((function(t){return!1!==t.options.scrollToTop})))&&(r={x:0,y:0}),n&&(r=n);var c=window.$nuxt;return(t.path===e.path&&t.hash!==e.hash||t===e)&&c.$nextTick((function(){return c.$emit("triggerScroll")})),new Promise((function(e){c.$once("triggerScroll",(function(){if(t.hash){var n=t.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{document.querySelector(n)&&(r={selector:n})}catch(t){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}e(r)}))}))},routes:[{path:"/settings",component:function(){return Object(v.m)(n.e(3).then(n.bind(null,281)))},name:"settings"},{path:"/",component:function(){return Object(v.m)(n.e(2).then(n.bind(null,280)))},name:"index"}],fallback:!1};function k(){return new w.a($)}var j={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,d=n.$nuxt.nuxt.transitions,l=n.$nuxt.nuxt.defaultTransition,f=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&f++,n=n.$parent;data.nuxtChildDepth=f;var h=d[f]||l,m={};O.forEach((function(t){void 0!==h[t]&&(m[t]=h[t])}));var x={};C.forEach((function(t){"function"==typeof h[t]&&(x[t]=h[t].bind(c))}));var w=x.beforeEnter;if(x.beforeEnter=function(t){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),w)return w.call(c,t)},!1===h.css){var v=x.leave;(!v||v.length<2)&&(x.leave=function(t,e){v&&v.call(c,t),c.$nextTick(e)})}var y=o("routerView",data);return r.keepAlive&&(y=o("keep-alive",{props:r.keepAliveProps},[y])),o("transition",{props:m,on:x},[y])}},O=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],C=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],S={name:"NuxtError",props:{error:{type:Object,default:null}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}},head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0"}]}}},E=(n(201),n(10)),R=Object(E.a)(S,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"__nuxt-error-page"},[n("div",{staticClass:"error"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[n("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t._v(" "),n("div",{staticClass:"title"},[t._v(t._s(t.message))]),t._v(" "),404===t.statusCode?n("p",{staticClass:"description"},[void 0===t.$route?n("a",{staticClass:"error-link",attrs:{href:"/"}}):n("NuxtLink",{staticClass:"error-link",attrs:{to:"/"}},[t._v("Back to the home page")])],1):t._e(),t._v(" "),t._m(0)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logo"},[e("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}],!1,null,null,null).exports,P=(n(34),n(33),n(63),n(61)),T={name:"Nuxt",components:{NuxtChild:j,NuxtError:R},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(v.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(P.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return e.errorFromNuxtError=!1})),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return e.displayingNuxtError=!1})),t(R,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}},A=(n(38),n(39),n(42),n(35),n(43),n(109),n(150),n(45),n(49),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(t){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100||t.percent<=0)&&(t.skipTimerCount=1,t.reversed=!t.reversed))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),N=(n(203),Object(E.a)(A,void 0,void 0,!1,null,null,null).exports),M=(n(205),n(207),n(209),n(211),n(165));function I(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,d=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){d=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(d)throw o}}}}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Object(v.h)(t.$route)).length){e.next=3;break}return e.abrupt("return");case 3:return t.$loading.start(),r=n.map((function(e){var p=[];if(e.$options.fetch&&e.$options.fetch.length&&p.push(Object(v.p)(e.$options.fetch,t.context)),e.$fetch)p.push(e.$fetch());else{var n,r=I(Object(v.e)(e.$vnode.componentInstance));try{for(r.s();!(n=r.n()).done;){var component=n.value;p.push(component.$fetch())}}catch(t){r.e(t)}finally{r.f()}}return e.$options.asyncData&&p.push(Object(v.p)(e.$options.asyncData,t.context).then((function(t){for(var n in t)c.a.set(e.$data,n,t[n])}))),Promise.all(p)})),e.prev=5,e.next=8,Promise.all(r);case 8:e.next=15;break;case 10:e.prev=10,e.t0=e.catch(5),t.$loading.fail(e.t0),Object(v.k)(e.t0),t.error(e.t0);case 15:t.$loading.finish();case 16:case"end":return e.stop()}}),e,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(R.options||R).layout;"function"==typeof t&&(t=t(this.context)),this.setLayout(t)}},setLayout:function(t){return t&&U["_"+t]||(t="default"),this.layoutName=t,this.layout=U["_"+t],this.layout},loadLayout:function(t){return t&&U["_"+t]||(t="default"),Promise.resolve(U["_"+t])},setPagePayload:function(t){this._pagePayload=t,this._payloadFetchIndex=0},fetchPayload:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,base,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=window.__NUXT__.staticAssetsBase,(base=(e.$router.options.base||"").replace(/\/+$/,""))&&t.startsWith(base)&&(t=t.substr(base.length)),t=(t.replace(/\/+$/,"")||"/").split("?")[0].split("#")[0],o=Object(v.t)(base,r,t,"payload.js"),n.prev=5,n.next=8,window.__NUXT_IMPORT__(decodeURI(t),encodeURI(o));case 8:return c=n.sent,e.setPagePayload(c),n.abrupt("return",c);case 13:throw n.prev=13,n.t0=n.catch(5),e.setPagePayload(!1),n.t0;case 17:case"end":return n.stop()}}),n,null,[[5,13]])})))()}},components:{NuxtLoading:N}};n(74);function z(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,d=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){d=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(d)throw o}}}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2&&void 0!==arguments[2]?arguments[2]:{},r=n.isProperty,o=void 0!==r&&r;if(!e.length||o&&1===e.length)return t;var c=e.shift();return t.modules[c]=t.modules[c]||{},t.modules[c].namespaced=!0,t.modules[c].modules=t.modules[c].modules||{},Y(t.modules[c],e,{isProperty:o})}function Q(t,e,n){e&&("state"===n?t.state=e||t.state:t[n]=Object.assign({},t[n],e))}var W={};for(var V in W)c.a.component(V,W[V]);var G=n(7),Z=n.n(G),tt=n(163),et=n.n(tt);function nt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return ot(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ot(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,d=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){d=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(d)throw o}}}}function ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2&&void 0!==arguments[2]?arguments[2]:"common",o=nt(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(!e)return void delete this.defaults.headers[c][t];this.defaults.headers[c][t]=e}}catch(t){o.e(t)}finally{o.f()}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use((function(e){return t(e)||e}))},onResponse:function(t){this.interceptors.response.use((function(e){return t(e)||e}))},onRequestError:function(t){this.interceptors.request.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onResponseError:function(t){this.interceptors.response.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return ut(et()(t,this.defaults))}},at=function(){var t=ct[st];it["$"+t]=function(){return this[t].apply(this,arguments).then((function(t){return t&&t.data}))}},st=0,ct=["request","delete","get","head","options","post","put","patch"];st has been deprecated and will be removed in Nuxt 3, please use instead")),x.a.render(t,e)}})),c.a.component(j.name,j),c.a.component("NChild",j),c.a.component(T.name,T),c.a.use(l.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var mt={name:"page",mode:"out-in",appear:!1,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"},xt=d.a.Store.prototype.registerModule,gt={preserveState:!0};function bt(path,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return xt.call(this,path,t,ht(ht({},gt),e))}function wt(t){return vt.apply(this,arguments)}function vt(){return(vt=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,r,o,d,l,f,path,h,m=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));d[t="$"+t]=e,d.context[t]||(d.context[t]=e),o[t]=d[t];var n="__nuxt_"+t+"_installed__";c.a[n]||(c.a[n]=!0,c.a.use((function(){Object.prototype.hasOwnProperty.call(c.a.prototype,t)||Object.defineProperty(c.a.prototype,t,{get:function(){return this.$root.$options[t]}})})))},n=m.length>1&&void 0!==m[1]?m[1]:{},t.next=4,k();case 4:return r=t.sent,(o=K(e)).$router=r,o.registerModule=bt,d=ht({head:{title:"Tubio - Video downloader",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:""},{name:"msapplication-TileColor",content:"#031934"},{name:"theme-color",content:"#031934"}],link:[{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"},{rel:"manifest",href:"/site.webmanifest"},{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#031934"}],style:[],script:[]},store:o,router:r,nuxt:{defaultTransition:mt,transitions:[mt],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},mt,{name:t}):Object.assign({},mt,t):mt})),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,d.context._errored=Boolean(t),t=t?Object(v.o)(t):null;var n=d.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},D),o.app=d,l=e?e.next:function(t){return d.router.push(t)},e?f=r.resolve(e.url).route:(path=Object(v.f)(r.options.base,r.options.mode),f=r.resolve(path).route),t.next=14,Object(v.s)(d,{store:o,route:f,next:l,error:d.nuxt.error.bind(d),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,ssrContext:e});case 14:h("config",n),window.__NUXT__&&window.__NUXT__.state&&o.replaceState(window.__NUXT__.state),d.context.enablePreview=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.previewData=Object.assign({},t),h("preview",t)},t.next=20;break;case 20:return t.next=23,pt(d.context,h);case 23:d.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},t.next=27;break;case 27:return t.abrupt("return",{store:o,app:d,router:r});case 28:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},48:function(t,e,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,c=r(),d=c.default;void 0===d&&(d=[]);var l=c.placeholder;return n._isMounted?d:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||l)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||l):d.length>0?d.map((function(){return t(!1)})):t(!1))}};t.exports=r},79:function(t,e,n){var content=n(202);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(20).default)("4a1cbb1a",content,!0,{sourceMap:!1})},80:function(t,e,n){var content=n(204);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(20).default)("fa7ff0ca",content,!0,{sourceMap:!1})},85:function(t,e,n){"use strict";n(31),n(38),n(39),n(56),n(40),n(42),n(74),n(58),n(35),n(30),n(17),n(33),n(101),n(43),n(44),n(45),n(49);var r=n(1);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,d=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return d=t.done,t},e:function(t){l=!0,o=t},f:function(){try{d||null==n.return||n.return()}finally{if(l)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i")},removeDownload:function(){var t=this;h.a.post("/api",{request:"remove_download_entry",id:this.downloadEntry.tubio_id}).then((function(e){"OK"===e.data.status&&t.$store.dispatch("dlcache/update",t)}))}}},m=(o(270),Object(r.a)(v,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"frame mb-6 pt-2 pb-4"},[o("div",{staticClass:"flex flex-col"},[o("div",{staticClass:"flex items-end justify-between w-full md:w-auto"},[o("div",{staticClass:"flex flex-col"},[o("div",{staticClass:"icon--mode"},["video"===t.downloadEntry.mode?o("IconFilm"):o("IconMusic")],1),t._v(" "),o("div",{staticClass:"timestamp"},[t._v("\n "+t._s(t.getQueuedDateString(t.downloadEntry.queued_timestamp))+"\n ")])]),t._v(" "),o("div",{staticClass:"button-remove",on:{click:t.removeDownload}},[o("IconX")],1)]),t._v(" "),o("div",{staticClass:"flex flex-col-reverse md:flex-row w-full mt-2"},[o("div",{staticClass:"flex flex-col"},[o("a",{attrs:{href:t.downloadEntry.webpage_url,target:"_blank",title:"To the original source"}},[o("div",{staticClass:"thumbnail flex-shrink-0",style:"--thumbnail: url('"+t.downloadEntry.thumbnail_url+"')"},[o("div",{staticClass:"thumbnail__vignette"}),t._v(" "),o("div",{staticClass:"thumbnail__duration"},[t._v(t._s(t.getDurationString(t.downloadEntry.duration)))])])]),t._v(" "),"downloading"===t.downloadEntry.status?o("div",[o("div",{staticClass:"status--progressbar flex w-full mt-3"},[o("div",{staticClass:"status--progressbar__good items-stretch",style:"--download-progress: "+t.downloadEntry.download_progress+"%;"})]),t._v(" "),o("div",{staticClass:"status--progressbar__text"},[t._v("\n "+t._s(t.downloadEntry.download_progress)+"%\n ")])]):"finished"===t.downloadEntry.status?o("a",{attrs:{href:t.downloadEntry.download_url,title:"download"}},[o("div",{staticClass:"status--ready mt-3 button flex justify-center w-full"},[o("div",[o("IconDownload")],1)])]):"queued"===t.downloadEntry.status?o("div",[o("div",{staticClass:"status--queued mt-3"},[t._v("\n Queued\n ")])]):"failed"===t.downloadEntry.status?o("div",[o("div",{staticClass:"status--failed mt-3"},[t._v("\n Failed!\n ")])]):t._e()]),t._v(" "),o("div",{staticClass:"flex flex-col md:ml-4 w-full overflow-x-hidden overflow-y-visible"},[o("h1",{staticClass:"title"},[t._v(t._s(t.downloadEntry.title))]),t._v(" "),o("div",{staticClass:"relative my-4"},[""!=t.downloadEntry.description?o("div",[o("p",{staticClass:"description p-2"},[o("span",{domProps:{innerHTML:t._s(t.linebreaksToBrTags(t.downloadEntry.description))}})]),t._v(" "),o("div",{staticClass:"description__decobox description__decobox--left"}),t._v(" "),o("div",{staticClass:"description__decobox description__decobox--right"})]):t._e()])])])])])}),[],!1,null,"980790fa",null));e.default=m.exports},260:function(t,e,o){"use strict";o.r(e);o(49);var r=o(257),l=(o(7),{components:{DownloadEntry:r.default},computed:{dlcache:function(){return this.$store.state.dlcache.cache}},data:function(){return{downloads:{type:Array}}},mounted:function(){var t=this;this.$store.dispatch("dlcache/update"),setInterval((function(){t.$store.dispatch("dlcache/update")}),1e3)}}),n=(o(272),o(10)),component=Object(n.a)(l,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"download-box"},[this._e(),this._v(" "),this._l(this.dlcache,(function(t,o){return e("DownloadEntry",{key:o,attrs:{downloadEntry:t}})}))],2)}),[],!1,null,"8061dfc4",null);e.default=component.exports;installComponents(component,{DownloadEntry:o(257).default})},270:function(t,e,o){"use strict";var r=o(254);o.n(r).a},271:function(t,e,o){(e=o(19)(!1)).push([t.i,".frame[data-v-980790fa]{width:100%;border-bottom:2px solid #888}.frame .timestamp[data-v-980790fa]{font-family:ZillaSlab,serif;font-size:12pt;color:#bbb}.frame .thumbnail[data-v-980790fa]{background-image:var(--thumbnail);background-size:cover;background-position:50%;background-repeat:no-repeat;width:150px;height:84.375px;position:relative;cursor:pointer;scrollbar-width:none}@media(max-width:768px){.frame .thumbnail[data-v-980790fa]{width:100%;height:130px}}.frame .thumbnail__vignette[data-v-980790fa]{position:absolute;top:0;bottom:0;right:0;left:0;box-shadow:0 0 15px 2px #000}.frame .thumbnail__duration[data-v-980790fa]{position:absolute;bottom:0;right:0;padding:0 3px 3px 0;text-align:right;font-size:12pt;color:#bbb;background-color:rgba(0,0,0,.66667)}.frame .title[data-v-980790fa]{color:#bbb;font-size:22pt;max-height:1.3em;overflow-y:hidden;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.frame .description[data-v-980790fa]{color:#bbb;font-size:14pt;height:100px;overflow-x:hidden;overflow-y:scroll;position:relative;background-color:rgba(0,0,0,.2)}@media(max-width:768px){.frame .description[data-v-980790fa]{overflow:scroll}}.frame .description__decobox[data-v-980790fa]{position:absolute}.frame .description__decobox--left[data-v-980790fa]{top:0;left:0;width:40px;height:40px;border-top:2px solid #888;border-left:2px solid #888;pointer-events:none}.frame .description__decobox--right[data-v-980790fa]{bottom:0;right:0;width:40px;height:40px;border-bottom:2px solid #888;border-right:2px solid #888;pointer-events:none}.frame .status--progressbar[data-v-980790fa]{background-color:#900;height:5px}.frame .status--progressbar__good[data-v-980790fa]{background-color:#0b0;width:var(--download-progress);transition:width 1s}.frame .status--progressbar__text[data-v-980790fa]{font-size:24pt;color:#bbb}.frame .status--ready[data-v-980790fa]{height:45px;background-color:#bbb;transition:background-color .2s,border .2s}.frame .status--ready[data-v-980790fa]:hover{background-color:#5954a4;color:#fff}.frame .status--ready svg[data-v-980790fa]{height:35px}.frame .status--queued[data-v-980790fa]{font-family:ZillaSlab,serif;font-size:24pt;color:#bbb}.frame .status--failed[data-v-980790fa]{font-family:ZillaSlab,serif;font-size:24pt;color:#d40}.frame .button-remove[data-v-980790fa]{width:35px;height:35px;fill:#333;stroke:#333;cursor:pointer;transition:background-color .2s,border-radius .2s}.frame .button-remove[data-v-980790fa]:hover{background-color:#d40;border-radius:50%}.frame[data-v-980790fa]::-webkit-scrollbar,.frame[data-v-980790fa] ::-webkit-scrollbar{display:none}.frame .icon--mode[data-v-980790fa]{width:20px}",""]),t.exports=e},272:function(t,e,o){"use strict";var r=o(255);o.n(r).a},273:function(t,e,o){(e=o(19)(!1)).push([t.i,".download-box[data-v-8061dfc4]{width:100%;min-height:600px;border-radius:5px;padding:20px;background-color:hsla(0,0%,100%,.33333)}.no-dls-yet[data-v-8061dfc4]{color:#bbb;font-size:34pt;text-align:center}",""]),t.exports=e},274:function(t,e,o){"use strict";var r=o(256);o.n(r).a},275:function(t,e,o){(e=o(19)(!1)).push([t.i,".logo[data-v-8901d83e]{--logo-color:#8ad5eb;width:300px;fill:var(--logo-color);stroke:var(--logo-color);filter:drop-shadow(0 0 3px #8ad5eb);transition:fill .2s,stroke .2s,filter .2s}@media(max-width:768px){.logo[data-v-8901d83e]{width:80px;align-self:flex-start}}@media(min-width:768px){.logo[data-v-8901d83e]:hover{--logo-color:#bee7f4;filter:drop-shadow(0 0 5px #bee7f4)}}.input-flex[data-v-8901d83e]{width:100%}input[data-v-8901d83e]{height:50px;font-family:ZillaSlab,serif;font-weight:700;font-size:18pt;border-radius:5px;padding:.1em .5em;box-shadow:0 0 20px 5px hsla(0,0%,100%,.2);border:none;color:#04254e;transition:transform .2s;min-width:0}input[data-v-8901d83e]:focus{transform:scale(1.015)}.icon-button[data-v-8901d83e]{height:2em;stroke:#04254e;overflow:hidden;transition:stroke .2s,fill .2s,color .2s}.icon-button svg[data-v-8901d83e]{height:100%}.button[data-v-8901d83e]{transition:transform .2s,background-color .2s,border .2s}.button[data-v-8901d83e]:hover{transform:scale(1.05);background-color:#5954a4;color:#fff}.button:hover svg[data-v-8901d83e]{fill:#fff;stroke:#fff}.dropdown[data-v-8901d83e]{min-width:100px;height:100%;border-radius:5px;cursor:pointer;font-family:ZillaSlab,serif;font-size:16pt}",""]),t.exports=e},276:function(t,e,o){"use strict";o.r(e);o(34),o(166);var r=o(86),l=o(247),n=o(260),d=o(10),c=Object(d.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"bi bi-arrow-right-square",attrs:{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd",d:"M4 8a.5.5 0 0 0 .5.5h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5A.5.5 0 0 0 4 8z"}})])}),[],!1,null,null,null).exports,f=o(7),h=o.n(f),v={components:{Logo:r.default,Spacer:l.default,DownloadBox:n.default,IconArrowRightSquare:c},methods:{downloadButtonClicked:function(){var t=this;if(this.$refs.video_url.value.match(/(https?:\/\/)?[a-zA-Z0-9-_.]+\.[a-zA-Z-_.]+/)){var e=this.$refs.video_url.value;this.$refs.video_url.value="",h.a.post("/api",{request:"queue_download",video_url:e,mode:this.$refs.mode.options[this.$refs.mode.selectedIndex].value}).then((function(e){"OK"===e.data.status&&t.$store.dispatch("dlcache/update",t)}))}},keyMonitor:function(t){"Enter"==t.key&&this.downloadButtonClicked()}}},m=(o(274),Object(d.a)(v,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("div",{staticClass:"hidden md:block"},[o("Spacer",{attrs:{height:"0",m_height:"1em"}}),t._v(" "),o("Logo",{staticClass:"logo mt-4"}),t._v(" "),o("Spacer",{attrs:{height:"2em",m_height:"2em"}})],1),t._v(" "),o("div",{staticClass:"flex flex-row flex-wrap md:flex-no-wrap input-flex justify-between md:justify-center"},[o("input",{ref:"video_url",staticClass:"flex-grow md:mr-4 mb-2 md:mb-0 w-full",attrs:{type:"url",name:"video_url",id:"video_url",placeholder:"video-url"},on:{keydown:t.keyMonitor}}),t._v(" "),o("div",{staticClass:"w-full md:hidden"}),t._v(" "),o("div",{staticClass:"flex-shrink button-submit flex-grow-0"},[o("select",{ref:"mode",staticClass:"dropdown",attrs:{name:"mode",id:"mode"}},[o("option",{attrs:{value:"video"}},[t._v("Video")]),t._v(" "),o("option",{attrs:{value:"audio"}},[t._v("Audio")])])]),t._v(" "),o("div",{staticClass:"button flex-shrink button-submit flex-grow-0 ml-3",on:{click:t.downloadButtonClicked}},[o("IconArrowRightSquare",{staticClass:"icon-button"})],1)]),t._v(" "),o("Spacer",{attrs:{height:"2em",m_height:"2em"}}),t._v(" "),o("DownloadBox")],1)}),[],!1,null,"8901d83e",null));e.default=m.exports;installComponents(m,{Spacer:o(247).default,Logo:o(86).default,DownloadBox:o(260).default})}}]); \ No newline at end of file diff --git a/Tubio/frontend/_nuxt/static/1601654949/payload.js b/Tubio/frontend/_nuxt/static/1601657397/payload.js similarity index 100% rename from Tubio/frontend/_nuxt/static/1601654949/payload.js rename to Tubio/frontend/_nuxt/static/1601657397/payload.js diff --git a/Tubio/frontend/_nuxt/static/1601654949/settings/payload.js b/Tubio/frontend/_nuxt/static/1601657397/settings/payload.js similarity index 100% rename from Tubio/frontend/_nuxt/static/1601654949/settings/payload.js rename to Tubio/frontend/_nuxt/static/1601657397/settings/payload.js diff --git a/Tubio/frontend/_nuxt/static/1601654949/settings/state.js b/Tubio/frontend/_nuxt/static/1601657397/settings/state.js similarity index 76% rename from Tubio/frontend/_nuxt/static/1601654949/settings/state.js rename to Tubio/frontend/_nuxt/static/1601657397/settings/state.js index 22af026..6577ca4 100644 --- a/Tubio/frontend/_nuxt/static/1601654949/settings/state.js +++ b/Tubio/frontend/_nuxt/static/1601657397/settings/state.js @@ -1 +1 @@ -window.__NUXT__={staticAssetsBase:"\u002F_nuxt\u002Fstatic\u002F1601654949",layout:"default",error:null,state:{diskUsage:{usage:{}},dlcache:{cache:[]},logs:{logs:[]},serverOs:{os_name:""},settings:{config:{}}},serverRendered:true,routePath:"\u002Fsettings",config:{}}; \ No newline at end of file +window.__NUXT__={staticAssetsBase:"\u002F_nuxt\u002Fstatic\u002F1601657397",layout:"default",error:null,state:{diskUsage:{usage:{}},dlcache:{cache:[]},logs:{logs:[]},serverOs:{os_name:""},settings:{config:{}}},serverRendered:true,routePath:"\u002Fsettings",config:{}}; \ No newline at end of file diff --git a/Tubio/frontend/_nuxt/static/1601654949/state.js b/Tubio/frontend/_nuxt/static/1601657397/state.js similarity index 75% rename from Tubio/frontend/_nuxt/static/1601654949/state.js rename to Tubio/frontend/_nuxt/static/1601657397/state.js index 05bbf26..7c8d217 100644 --- a/Tubio/frontend/_nuxt/static/1601654949/state.js +++ b/Tubio/frontend/_nuxt/static/1601657397/state.js @@ -1 +1 @@ -window.__NUXT__={staticAssetsBase:"\u002F_nuxt\u002Fstatic\u002F1601654949",layout:"default",error:null,state:{diskUsage:{usage:{}},dlcache:{cache:[]},logs:{logs:[]},serverOs:{os_name:""},settings:{config:{}}},serverRendered:true,routePath:"\u002F",config:{}}; \ No newline at end of file +window.__NUXT__={staticAssetsBase:"\u002F_nuxt\u002Fstatic\u002F1601657397",layout:"default",error:null,state:{diskUsage:{usage:{}},dlcache:{cache:[]},logs:{logs:[]},serverOs:{os_name:""},settings:{config:{}}},serverRendered:true,routePath:"\u002F",config:{}}; \ No newline at end of file diff --git a/Tubio/frontend/index.html b/Tubio/frontend/index.html index 81ba964..f16d268 100644 --- a/Tubio/frontend/index.html +++ b/Tubio/frontend/index.html @@ -1,9 +1,9 @@ - Tubio - Video downloader + Tubio - Video downloader -
+

Please wait...

diff --git a/Tubio/frontend/settings/index.html b/Tubio/frontend/settings/index.html index e8b6669..b4d1d17 100644 --- a/Tubio/frontend/settings/index.html +++ b/Tubio/frontend/settings/index.html @@ -1,11 +1,11 @@ - Tubio - Video downloader + Tubio - Video downloader

Settings

Disk usage

Downloads:

NaN mb

Logs:

NaN mb

Dependencies:

NaN mb

Misc:

NaN mb

Total:

NaN mb

Clear downloads
Clear logs
Kill server
Reset to defaults

Logs

+ diff --git a/tubio-frontend-nuxt-app/components/PleaseWaitBlocker.vue b/tubio-frontend-nuxt-app/components/PleaseWaitBlocker.vue new file mode 100644 index 0000000..992be05 --- /dev/null +++ b/tubio-frontend-nuxt-app/components/PleaseWaitBlocker.vue @@ -0,0 +1,123 @@ + + + + + \ No newline at end of file diff --git a/tubio-frontend-nuxt-app/pages/index.vue b/tubio-frontend-nuxt-app/pages/index.vue index ae96bbe..8abd993 100644 --- a/tubio-frontend-nuxt-app/pages/index.vue +++ b/tubio-frontend-nuxt-app/pages/index.vue @@ -35,6 +35,8 @@ + + @@ -42,6 +44,7 @@ import Logo from "~/components/Logo"; import Spacer from "~/components/Spacer"; import DownloadBox from "~/components/DownloadBox"; +import PleaseWaitBlocker from "~/components/PleaseWaitBlocker"; import IconArrowRightSquare from "~/components/Icons/arrow-right-square"; import axios from "axios"; @@ -50,9 +53,16 @@ export default { Logo, Spacer, DownloadBox, + PleaseWaitBlocker, IconArrowRightSquare, }, + data: function() { + return { + isWaitingForResponse: {type: Boolean, default: false} + }; + }, + methods: { downloadButtonClicked: function() { @@ -60,12 +70,14 @@ export default { if (this.$refs.video_url.value.match(/(https?:\/\/)?[a-zA-Z0-9-_.]+\.[a-zA-Z-_.]+/)) { const url = this.$refs.video_url.value; this.$refs.video_url.value = ""; + this.isWaitingForResponse = true; axios.post("/api", { request: "queue_download", video_url: url, mode: this.$refs.mode.options[this.$refs.mode.selectedIndex].value }).then(function(response){ if (response.data.status === "OK") { + that.isWaitingForResponse = false; that.$store.dispatch("dlcache/update", that); } }); @@ -79,6 +91,10 @@ export default { } return; } + }, + + mounted() { + this.isWaitingForResponse = false; } };