diff --git a/Tubio/frontend/200.html b/Tubio/frontend/200.html index 17bdc97..6a99797 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/81dde5a.js b/Tubio/frontend/_nuxt/0fa9552.js similarity index 92% rename from Tubio/frontend/_nuxt/81dde5a.js rename to Tubio/frontend/_nuxt/0fa9552.js index c0041b8..f2cd6c1 100644 --- a/Tubio/frontend/_nuxt/81dde5a.js +++ b/Tubio/frontend/_nuxt/0fa9552.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{111:function(t,e,n){"use strict";n.r(e);var o=n(8),r=Object(o.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"bi bi-gear",attrs:{viewBox:"-2 -2 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M8.837 1.626c-.246-.835-1.428-.835-1.674 0l-.094.319A1.873 1.873 0 0 1 4.377 3.06l-.292-.16c-.764-.415-1.6.42-1.184 1.185l.159.292a1.873 1.873 0 0 1-1.115 2.692l-.319.094c-.835.246-.835 1.428 0 1.674l.319.094a1.873 1.873 0 0 1 1.115 2.693l-.16.291c-.415.764.42 1.6 1.185 1.184l.292-.159a1.873 1.873 0 0 1 2.692 1.116l.094.318c.246.835 1.428.835 1.674 0l.094-.319a1.873 1.873 0 0 1 2.693-1.115l.291.16c.764.415 1.6-.42 1.184-1.185l-.159-.291a1.873 1.873 0 0 1 1.116-2.693l.318-.094c.835-.246.835-1.428 0-1.674l-.319-.094a1.873 1.873 0 0 1-1.115-2.692l.16-.292c.415-.764-.42-1.6-1.185-1.184l-.291.159A1.873 1.873 0 0 1 8.93 1.945l-.094-.319zm-2.633-.283c.527-1.79 3.065-1.79 3.592 0l.094.319a.873.873 0 0 0 1.255.52l.292-.16c1.64-.892 3.434.901 2.54 2.541l-.159.292a.873.873 0 0 0 .52 1.255l.319.094c1.79.527 1.79 3.065 0 3.592l-.319.094a.873.873 0 0 0-.52 1.255l.16.292c.893 1.64-.902 3.434-2.541 2.54l-.292-.159a.873.873 0 0 0-1.255.52l-.094.319c-.527 1.79-3.065 1.79-3.592 0l-.094-.319a.873.873 0 0 0-1.255-.52l-.292.16c-1.64.893-3.433-.902-2.54-2.541l.159-.292a.873.873 0 0 0-.52-1.255l-.319-.094c-1.79-.527-1.79-3.065 0-3.592l.319-.094a.873.873 0 0 0 .52-1.255l-.16-.292c-.892-1.64.902-3.433 2.541-2.54l.292.159a.873.873 0 0 0 1.255-.52l.094-.319z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd",d:"M8 5.754a2.246 2.246 0 1 0 0 4.492 2.246 2.246 0 0 0 0-4.492zM4.754 8a3.246 3.246 0 1 1 6.492 0 3.246 3.246 0 0 1-6.492 0z"}})])}),[],!1,null,null,null).exports,l=(n(221),{components:{IconGear:r,IconGithub:Object(o.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"github-logo"})}),[],!1,null,"01b94eaa",null).exports,Logo:n(88).default}}),c=(n(225),Object(o.a)(l,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"header flex flex-row justify-between w-full p-5"},[e("div",{staticClass:"left-icons flex flex-flex-row justify-start"},[e("nuxt-link",{attrs:{exact:"",to:"/"}},[e("div",{staticClass:"headerbutton block md:hidden"},[e("Logo",{staticClass:"headerlogo"})],1)])],1),this._v(" "),e("div",{staticClass:"right-icons flex flex-row justify-end flex-grow"},[e("a",{staticClass:"mr-4",attrs:{href:"https://github.com/Leonetienne/Tubio",target:"_blank",title:"GitHub repository"}},[e("div",{staticClass:"headerbutton flex justify-center items-center"},[e("IconGithub",{staticClass:"headericon icon-github"})],1)]),this._v(" "),e("nuxt-link",{attrs:{exact:"",to:"/settings",title:"Settings"}},[e("div",{staticClass:"headerbutton button-settings"},[e("IconGear",{staticClass:"headericon icon-gear"})],1)])],1)])}),[],!1,null,"3e286fb6",null));e.default=c.exports;installComponents(c,{Logo:n(88).default})},112:function(t,e,n){"use strict";n.r(e);n(216);var o={data:function(){return{offsetX:{type:Number,default:0}}},computed:{cssVars:function(){return"transform: translateY(-"+this.offsetX/2+"px);"}},methods:{handleScroll:function(t){this.offsetX=window.scrollY}},beforeMount:function(){window.addEventListener("scroll",this.handleScroll)},destroyed:function(){window.removeEventListener("scroll",this.handleScroll)}},r=(n(219),n(8)),component=Object(r.a)(o,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"bgdrop"}),this._v(" "),e("div",{staticClass:"bggatter__wrapper"},[e("div",{ref:"bggatter",staticClass:"bggatter",style:this.cssVars})]),this._v(" "),e("div",{staticClass:"bgmask"})])}),[],!1,null,"2e19fe75",null);e.default=component.exports},166:function(t,e,n){"use strict";var o=n(112),r=n(111),l={components:{Background:o.default,Header:r.default}},c=(n(227),n(8)),component=Object(c.a)(l,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("Background"),this._v(" "),e("Header"),this._v(" "),e("div",{staticClass:"main-column mx-auto"},[e("Nuxt",{staticClass:"w-full flex flex-col justify-start items-center"})],1)],1)}),[],!1,null,"816c6d80",null);e.a=component.exports;installComponents(component,{Background:n(112).default,Header:n(111).default})},169:function(t,e,n){n(170),t.exports=n(171)},208:function(t,e,n){var content=n(209);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("3a312388",content,!0,{sourceMap:!1})},209:function(t,e,n){(e=n(15)(!1)).push([t.i,'a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}:focus{outline:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none}input[type=search]{-webkit-appearance:none;-moz-appearance:none}audio,canvas,video{display:inline-block;display:inline;zoom:1;max-width:100%}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted}a:active,a:hover{outline:0}img{border:0;-ms-interpolation-mode:bicubic}figure,form{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0;white-space:normal;margin-left:-7px}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;vertical-align:middle}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer;overflow:visible}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0;height:13px;width:13px}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}button,html,input,select,textarea{color:#222}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}img{vertical-align:middle}fieldset{border:0;margin:0;padding:0}textarea{resize:vertical}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}',""]),t.exports=e},210:function(t,e,n){var content=n(211);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("f52d43e0",content,!0,{sourceMap:!1})},211:function(t,e,n){(e=n(15)(!1)).push([t.i,'*,a,h1,h2,h3,h4,h5,h6,input,li,p{font-family:"ZillaSlab",serif}.button{background-color:#fff;border-radius:5px;min-width:80px;height:50px;display:flex;justify-content:center;align-items:center;cursor:pointer}*{-webkit-tap-highlight-color:rgba(0,0,0,0)}',""]),t.exports=e},212:function(t,e,n){var content=n(213);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("12bd18e8",content,!0,{sourceMap:!1})},213:function(t,e,n){(e=n(15)(!1)).push([t.i,".inherit-all{all:inherit}",""]),t.exports=e},214:function(t,e,n){var content=n(215);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("79e64d57",content,!0,{sourceMap:!1})},215:function(t,e,n){(e=n(15)(!1)).push([t.i,'@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Regular.ttf) format("truetype")}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Italic.ttf) format("truetype");font-style:italic}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Bold.ttf) format("truetype");font-weight:700}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-BoldItalic.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Light.ttf) format("truetype");font-weight:lighter}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Light.ttf) format("truetype");font-weight:lighter;font-style:italic}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Medium.ttf) format("truetype");font-weight:500}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Medium.ttf) format("truetype");font-weight:500;font-style:italic}',""]),t.exports=e},219:function(t,e,n){"use strict";var o=n(81);n.n(o).a},220:function(t,e,n){(e=n(15)(!1)).push([t.i,".bgdrop[data-v-2e19fe75]{width:100vw;height:100vh;position:fixed;z-index:-10;background-color:#04254e}.bggatter[data-v-2e19fe75]{width:100%;height:1000000px;position:absolute;z-index:-9;-webkit-mask-image:url(/assets/images/tiles/grid.png);mask-image:url(/assets/images/tiles/grid.png);background-color:#5954a4}.bggatter__wrapper[data-v-2e19fe75]{overflow:hidden;z-index:-9}.bggatter__wrapper[data-v-2e19fe75],.bgmask[data-v-2e19fe75]{width:100vw;height:100vh;position:fixed}.bgmask[data-v-2e19fe75]{z-index:-8;background-image:linear-gradient(transparent 50%,#04254e)}",""]),t.exports=e},221:function(t,e,n){"use strict";var o=n(82);n.n(o).a},222:function(t,e,n){(e=n(15)(!1)).push([t.i,".github-logo[data-v-01b94eaa]{background-image:url(/assets/brand/github/github-mark-light-120px.png);background-size:contain}",""]),t.exports=e},223:function(t,e,n){"use strict";var o=n(83);n.n(o).a},224:function(t,e,n){(e=n(15)(!1)).push([t.i,".cls-1[data-v-c26fc04c]{fill:none!important}.cls-2[data-v-c26fc04c]{stroke:none!important}",""]),t.exports=e},225:function(t,e,n){"use strict";var o=n(84);n.n(o).a},226:function(t,e,n){(e=n(15)(!1)).push([t.i,".headerbutton[data-v-3e286fb6]{cursor:pointer;height:50px;width:50px}.headericon[data-v-3e286fb6]{transition:stroke .2s,fill .2s,color .2s,transform .2s ease-in-out}.headericon[data-v-3e286fb6],.headerlogo[data-v-3e286fb6]{stroke:#8ad5eb;fill:#8ad5eb}.headerlogo[data-v-3e286fb6]{cursor:pointer;height:60px;width:60px;transition:stroke .2s,fill .2s,color .2s}.headerlogo[data-v-3e286fb6]:hover{stroke:#bee7f4}.headerlogo svg[data-v-3e286fb6]{fill:var(#8ad5eb);stroke:var(#8ad5eb);height:100%}.icon-gear svg[data-v-3e286fb6]{height:100%}.icon-gear[data-v-3e286fb6]:hover{transform:rotate(90deg);stroke:#bee7f4;fill:#bee7f4}.icon-github[data-v-3e286fb6]{height:40px;width:40px}.icon-github[data-v-3e286fb6]:hover{transform:scale(1.075)}",""]),t.exports=e},227:function(t,e,n){"use strict";var o=n(85);n.n(o).a},228:function(t,e,n){(e=n(15)(!1)).push([t.i,".main-column[data-v-816c6d80]{width:80%;padding:0 20% 50px;background-color:rgba(0,0,0,.33333);box-shadow:0 0 50px 50px rgba(0,0,0,.33333);min-height:100vh}@media(max-width:1870px){.main-column[data-v-816c6d80]{width:100%;padding:0 200px 50px}}@media(max-width:1280px){.main-column[data-v-816c6d80]{width:100%;padding:0 100px 50px}}@media(max-width:768px){.main-column[data-v-816c6d80]{width:100%;padding:0 20px 50px}}",""]),t.exports=e},229:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{usage:{}}},c={update:function(t,data){t.usage=data}},d={update:function(t){r.a.post("/api",{request:"get_disk_usage"}).then((function(e){"OK"===e.data.status&&t.commit("update",e.data.disk_usage)}))}}},246:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{cache:[]}},c={update:function(t,data){t.cache=data}},d={update:function(t){r.a.post("/api",{request:"fetch_alltime_cache"}).then((function(e){"OK"===e.data.status&&t.commit("update",e.data.cache)}))}}},247:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{logs:[]}},c={update:function(t,data){t.logs=data}},d={update:function(t){r.a.post("/api",{request:"fetch_session_logs"}).then((function(e){"OK"===e.data.status&&t.commit("update",e.data.logs)}))}}},248:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{os_name:""}},c={update:function(t,data){t.os_name=data}},d={update:function(t){r.a.post("/api",{request:"get_os_name"}).then((function(e){"OK"===e.data.status&&t.commit("update",e.data.os_name)}))}}},249:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{serverVersion:-1}},c={update:function(t,data){t.serverVersion=data}},d={update:function(t){r.a.post("/api",{request:"get_server_version"}).then((function(e){"OK"===e.data.status&&t.commit("update",e.data.server_version)}))}}},250:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{config:{}}},c={updateGet:function(t,data){t.config=data}},d={updateGet:function(t,e){r.a.post("/api",{request:"update_config"}).then((function(n){"OK"===n.data.status&&(t.commit("updateGet",n.data.config),"function"==typeof e&&e())}))},updateSet:function(t,e){r.a.post("/api",{request:"update_config",config:e}).then((function(e){"OK"===e.data.status&&t.commit("updateGet",e.data.config)}))},resetToDefaults:function(t){r.a.post("/api",{request:"reset_config_to_default_values"}).then((function(e){"OK"===e.data.status&&t.commit("updateGet",e.data.config)}))}}},81:function(t,e,n){var content=n(220);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("1b4a9212",content,!0,{sourceMap:!1})},82:function(t,e,n){var content=n(222);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("cf8d5ff0",content,!0,{sourceMap:!1})},83:function(t,e,n){var content=n(224);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("72a1e14a",content,!0,{sourceMap:!1})},84:function(t,e,n){var content=n(226);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("1d72187b",content,!0,{sourceMap:!1})},85:function(t,e,n){var content=n(228);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("a00d49f6",content,!0,{sourceMap:!1})},88:function(t,e,n){"use strict";n.r(e);n(223);var o=n(8),component=Object(o.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 191.98 54"}},[e("defs",[e("clipPath",{attrs:{id:"clip-path",transform:"translate(0 0)"}},[e("rect",{staticClass:"cls-1",attrs:{width:"191.98",height:"54"}})])]),e("title",[this._v("Element 1")]),e("g",{attrs:{id:"Ebene_2","data-name":"Ebene 2"}},[e("g",{attrs:{id:"Ebene_1-2","data-name":"Ebene 1"}},[e("g",{staticClass:"cls-2"},[e("path",{staticClass:"cls-3",attrs:{d:"M169.73,19.77A6,6,0,0,1,180,24V42a6,6,0,0,1-12,0V24a5.8,5.8,0,0,1,1.77-4.25m-10.21-4.26A11.58,11.58,0,0,0,156,24V42a12.05,12.05,0,0,0,12,12h12a12.11,12.11,0,0,0,12-12V24a11.64,11.64,0,0,0-3.53-8.48A11.49,11.49,0,0,0,180,12H168a11.58,11.58,0,0,0-8.44,3.53M169.5,54l.09-6H143.93V12H132V54ZM143.94,0H132V6h12ZM96,24a6,6,0,0,1,12,0V42a6,6,0,0,1-6,6H96Zm12,30a12.11,12.11,0,0,0,12-12V24a11.64,11.64,0,0,0-3.53-8.48A11.49,11.49,0,0,0,108,12h-6a5.65,5.65,0,0,0-4.15,1.49A7.53,7.53,0,0,0,96,18V0H84V54ZM60,12V42a6,6,0,0,1-12,0V12H36V42A12.05,12.05,0,0,0,48,54h6q5.31,0,6-6v6H95.46l.06-6H72V12ZM6,12H0v6H6V42a11.56,11.56,0,0,0,3.51,8.45A11.55,11.55,0,0,0,18,54H48.82V48H23.46a5.87,5.87,0,0,1-3.55-1.53A5.36,5.36,0,0,1,18,42V18h6V12H18V0H6Z",transform:"translate(0 0)"}})])])])])}),[],!1,null,"c26fc04c",null);e.default=component.exports}},[[169,4,1,5]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{111:function(t,e,n){"use strict";n.r(e);var o=n(8),r=Object(o.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"bi bi-gear",attrs:{viewBox:"-2 -2 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M8.837 1.626c-.246-.835-1.428-.835-1.674 0l-.094.319A1.873 1.873 0 0 1 4.377 3.06l-.292-.16c-.764-.415-1.6.42-1.184 1.185l.159.292a1.873 1.873 0 0 1-1.115 2.692l-.319.094c-.835.246-.835 1.428 0 1.674l.319.094a1.873 1.873 0 0 1 1.115 2.693l-.16.291c-.415.764.42 1.6 1.185 1.184l.292-.159a1.873 1.873 0 0 1 2.692 1.116l.094.318c.246.835 1.428.835 1.674 0l.094-.319a1.873 1.873 0 0 1 2.693-1.115l.291.16c.764.415 1.6-.42 1.184-1.185l-.159-.291a1.873 1.873 0 0 1 1.116-2.693l.318-.094c.835-.246.835-1.428 0-1.674l-.319-.094a1.873 1.873 0 0 1-1.115-2.692l.16-.292c.415-.764-.42-1.6-1.185-1.184l-.291.159A1.873 1.873 0 0 1 8.93 1.945l-.094-.319zm-2.633-.283c.527-1.79 3.065-1.79 3.592 0l.094.319a.873.873 0 0 0 1.255.52l.292-.16c1.64-.892 3.434.901 2.54 2.541l-.159.292a.873.873 0 0 0 .52 1.255l.319.094c1.79.527 1.79 3.065 0 3.592l-.319.094a.873.873 0 0 0-.52 1.255l.16.292c.893 1.64-.902 3.434-2.541 2.54l-.292-.159a.873.873 0 0 0-1.255.52l-.094.319c-.527 1.79-3.065 1.79-3.592 0l-.094-.319a.873.873 0 0 0-1.255-.52l-.292.16c-1.64.893-3.433-.902-2.54-2.541l.159-.292a.873.873 0 0 0-.52-1.255l-.319-.094c-1.79-.527-1.79-3.065 0-3.592l.319-.094a.873.873 0 0 0 .52-1.255l-.16-.292c-.892-1.64.902-3.433 2.541-2.54l.292.159a.873.873 0 0 0 1.255-.52l.094-.319z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd",d:"M8 5.754a2.246 2.246 0 1 0 0 4.492 2.246 2.246 0 0 0 0-4.492zM4.754 8a3.246 3.246 0 1 1 6.492 0 3.246 3.246 0 0 1-6.492 0z"}})])}),[],!1,null,null,null).exports,l=(n(221),{components:{IconGear:r,IconGithub:Object(o.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"github-logo"})}),[],!1,null,"01b94eaa",null).exports,Logo:n(88).default}}),c=(n(225),Object(o.a)(l,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"header flex flex-row justify-between w-full p-5"},[e("div",{staticClass:"left-icons flex flex-flex-row justify-start"},[e("nuxt-link",{attrs:{exact:"",to:"/"}},[e("div",{staticClass:"headerbutton block md:hidden"},[e("Logo",{staticClass:"headerlogo"})],1)])],1),this._v(" "),e("div",{staticClass:"right-icons flex flex-row justify-end flex-grow"},[e("a",{staticClass:"mr-4",attrs:{href:"https://github.com/Leonetienne/Tubio",target:"_blank",title:"GitHub repository"}},[e("div",{staticClass:"headerbutton flex justify-center items-center"},[e("IconGithub",{staticClass:"headericon icon-github"})],1)]),this._v(" "),e("nuxt-link",{attrs:{exact:"",to:"/settings",title:"Settings"}},[e("div",{staticClass:"headerbutton button-settings"},[e("IconGear",{staticClass:"headericon icon-gear"})],1)])],1)])}),[],!1,null,"3e286fb6",null));e.default=c.exports;installComponents(c,{Logo:n(88).default})},112:function(t,e,n){"use strict";n.r(e);n(216);var o={data:function(){return{offsetX:{type:Number,default:0}}},computed:{cssVars:function(){return"transform: translateY(-"+this.offsetX/2+"px);"}},methods:{handleScroll:function(t){this.offsetX=window.scrollY}},beforeMount:function(){window.addEventListener("scroll",this.handleScroll)},destroyed:function(){window.removeEventListener("scroll",this.handleScroll)}},r=(n(219),n(8)),component=Object(r.a)(o,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"bgdrop"}),this._v(" "),e("div",{staticClass:"bggatter__wrapper"},[e("div",{ref:"bggatter",staticClass:"bggatter",style:this.cssVars})]),this._v(" "),e("div",{staticClass:"bgmask"})])}),[],!1,null,"2e19fe75",null);e.default=component.exports},166:function(t,e,n){"use strict";var o=n(112),r=n(111),l={components:{Background:o.default,Header:r.default}},c=(n(227),n(8)),component=Object(c.a)(l,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("Background"),this._v(" "),e("Header"),this._v(" "),e("div",{staticClass:"main-column mx-auto"},[e("Nuxt",{staticClass:"w-full flex flex-col justify-start items-center"})],1)],1)}),[],!1,null,"816c6d80",null);e.a=component.exports;installComponents(component,{Background:n(112).default,Header:n(111).default})},169:function(t,e,n){n(170),t.exports=n(171)},208:function(t,e,n){var content=n(209);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("3a312388",content,!0,{sourceMap:!1})},209:function(t,e,n){(e=n(15)(!1)).push([t.i,'a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}:focus{outline:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none}input[type=search]{-webkit-appearance:none;-moz-appearance:none}audio,canvas,video{display:inline-block;display:inline;zoom:1;max-width:100%}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted}a:active,a:hover{outline:0}img{border:0;-ms-interpolation-mode:bicubic}figure,form{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0;white-space:normal;margin-left:-7px}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;vertical-align:middle}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer;overflow:visible}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0;height:13px;width:13px}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}button,html,input,select,textarea{color:#222}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}img{vertical-align:middle}fieldset{border:0;margin:0;padding:0}textarea{resize:vertical}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}',""]),t.exports=e},210:function(t,e,n){var content=n(211);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("f52d43e0",content,!0,{sourceMap:!1})},211:function(t,e,n){(e=n(15)(!1)).push([t.i,'*,a,h1,h2,h3,h4,h5,h6,input,li,p{font-family:"ZillaSlab",serif}.button{background-color:#fff;border-radius:5px;min-width:80px;height:50px;display:flex;justify-content:center;align-items:center;cursor:pointer}*{-webkit-tap-highlight-color:rgba(0,0,0,0)}',""]),t.exports=e},212:function(t,e,n){var content=n(213);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("12bd18e8",content,!0,{sourceMap:!1})},213:function(t,e,n){(e=n(15)(!1)).push([t.i,".inherit-all{all:inherit}",""]),t.exports=e},214:function(t,e,n){var content=n(215);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("79e64d57",content,!0,{sourceMap:!1})},215:function(t,e,n){(e=n(15)(!1)).push([t.i,'@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Regular.ttf) format("truetype")}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Italic.ttf) format("truetype");font-style:italic}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Bold.ttf) format("truetype");font-weight:700}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-BoldItalic.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Light.ttf) format("truetype");font-weight:lighter}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Light.ttf) format("truetype");font-weight:lighter;font-style:italic}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Medium.ttf) format("truetype");font-weight:500}@font-face{font-family:"ZillaSlab";src:url(/assets/fonts/zilla-slab/ZillaSlab-Medium.ttf) format("truetype");font-weight:500;font-style:italic}',""]),t.exports=e},219:function(t,e,n){"use strict";var o=n(81);n.n(o).a},220:function(t,e,n){(e=n(15)(!1)).push([t.i,".bgdrop[data-v-2e19fe75]{width:100vw;height:100vh;position:fixed;z-index:-10;background-color:#04254e}.bggatter[data-v-2e19fe75]{width:100%;height:1000000px;position:absolute;z-index:-9;-webkit-mask-image:url(/assets/images/tiles/grid.png);mask-image:url(/assets/images/tiles/grid.png);background-color:#5954a4}.bggatter__wrapper[data-v-2e19fe75]{overflow:hidden;z-index:-9}.bggatter__wrapper[data-v-2e19fe75],.bgmask[data-v-2e19fe75]{width:100vw;height:100vh;position:fixed}.bgmask[data-v-2e19fe75]{z-index:-8;background-image:linear-gradient(transparent 50%,#04254e)}",""]),t.exports=e},221:function(t,e,n){"use strict";var o=n(82);n.n(o).a},222:function(t,e,n){(e=n(15)(!1)).push([t.i,".github-logo[data-v-01b94eaa]{background-image:url(/assets/brand/github/github-mark-light-120px.png);background-size:contain}",""]),t.exports=e},223:function(t,e,n){"use strict";var o=n(83);n.n(o).a},224:function(t,e,n){(e=n(15)(!1)).push([t.i,".cls-1[data-v-49c8107e]{fill:none!important}.cls-2[data-v-49c8107e]{stroke:none!important}",""]),t.exports=e},225:function(t,e,n){"use strict";var o=n(84);n.n(o).a},226:function(t,e,n){(e=n(15)(!1)).push([t.i,".headerbutton[data-v-3e286fb6]{cursor:pointer;height:50px;width:50px}.headericon[data-v-3e286fb6]{transition:stroke .2s,fill .2s,color .2s,transform .2s ease-in-out}.headericon[data-v-3e286fb6],.headerlogo[data-v-3e286fb6]{stroke:#8ad5eb;fill:#8ad5eb}.headerlogo[data-v-3e286fb6]{cursor:pointer;height:60px;width:60px;transition:stroke .2s,fill .2s,color .2s}.headerlogo[data-v-3e286fb6]:hover{stroke:#bee7f4}.headerlogo svg[data-v-3e286fb6]{fill:var(#8ad5eb);stroke:var(#8ad5eb);height:100%}.icon-gear svg[data-v-3e286fb6]{height:100%}.icon-gear[data-v-3e286fb6]:hover{transform:rotate(90deg);stroke:#bee7f4;fill:#bee7f4}.icon-github[data-v-3e286fb6]{height:40px;width:40px}.icon-github[data-v-3e286fb6]:hover{transform:scale(1.075)}",""]),t.exports=e},227:function(t,e,n){"use strict";var o=n(85);n.n(o).a},228:function(t,e,n){(e=n(15)(!1)).push([t.i,".main-column[data-v-816c6d80]{width:80%;padding:0 20% 50px;background-color:rgba(0,0,0,.33333);box-shadow:0 0 50px 50px rgba(0,0,0,.33333);min-height:100vh}@media(max-width:1870px){.main-column[data-v-816c6d80]{width:100%;padding:0 200px 50px}}@media(max-width:1280px){.main-column[data-v-816c6d80]{width:100%;padding:0 100px 50px}}@media(max-width:768px){.main-column[data-v-816c6d80]{width:100%;padding:0 20px 50px}}",""]),t.exports=e},229:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{usage:{}}},c={update:function(t,data){t.usage=data}},d={update:function(t){r.a.post("/api",{request:"get_disk_usage"}).then((function(e){"OK"===e.data.status&&t.commit("update",e.data.disk_usage)}))}}},246:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{cache:[]}},c={update:function(t,data){t.cache=data}},d={update:function(t){r.a.post("/api",{request:"fetch_alltime_cache"}).then((function(e){"OK"===e.data.status&&t.commit("update",e.data.cache)}))}}},247:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{logs:[]}},c={update:function(t,data){t.logs=data}},d={update:function(t){r.a.post("/api",{request:"fetch_session_logs"}).then((function(e){"OK"===e.data.status&&t.commit("update",e.data.logs)}))}}},248:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{os_name:""}},c={update:function(t,data){t.os_name=data}},d={update:function(t){r.a.post("/api",{request:"get_os_name"}).then((function(e){"OK"===e.data.status&&t.commit("update",e.data.os_name)}))}}},249:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{serverVersion:-1}},c={update:function(t,data){t.serverVersion=data}},d={update:function(t){r.a.post("/api",{request:"get_server_version"}).then((function(e){"OK"===e.data.status&&t.commit("update",e.data.server_version)}))}}},250:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return l})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return d}));var o=n(6),r=n.n(o),l=function(){return{config:{}}},c={updateGet:function(t,data){t.config=data}},d={updateGet:function(t,e){r.a.post("/api",{request:"update_config"}).then((function(n){"OK"===n.data.status&&(t.commit("updateGet",n.data.config),"function"==typeof e&&e())}))},updateSet:function(t,e){r.a.post("/api",{request:"update_config",config:e}).then((function(e){"OK"===e.data.status&&t.commit("updateGet",e.data.config)}))},resetToDefaults:function(t){r.a.post("/api",{request:"reset_config_to_default_values"}).then((function(e){"OK"===e.data.status&&t.commit("updateGet",e.data.config)}))}}},81:function(t,e,n){var content=n(220);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("1b4a9212",content,!0,{sourceMap:!1})},82:function(t,e,n){var content=n(222);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("cf8d5ff0",content,!0,{sourceMap:!1})},83:function(t,e,n){var content=n(224);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("d7443b22",content,!0,{sourceMap:!1})},84:function(t,e,n){var content=n(226);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("1d72187b",content,!0,{sourceMap:!1})},85:function(t,e,n){var content=n(228);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("a00d49f6",content,!0,{sourceMap:!1})},88:function(t,e,n){"use strict";n.r(e);n(223);var o=n(8),component=Object(o.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 191.98 54"}},[e("defs",[e("clipPath",{attrs:{id:"clip-path",transform:"translate(0 0)"}},[e("rect",{staticClass:"cls-1",attrs:{width:"191.98",height:"54"}})])]),e("g",{attrs:{id:"Ebene_2","data-name":"Ebene 2"}},[e("g",{attrs:{id:"Ebene_1-2","data-name":"Ebene 1"}},[e("g",{staticClass:"cls-2"},[e("path",{staticClass:"cls-3",attrs:{d:"M169.73,19.77A6,6,0,0,1,180,24V42a6,6,0,0,1-12,0V24a5.8,5.8,0,0,1,1.77-4.25m-10.21-4.26A11.58,11.58,0,0,0,156,24V42a12.05,12.05,0,0,0,12,12h12a12.11,12.11,0,0,0,12-12V24a11.64,11.64,0,0,0-3.53-8.48A11.49,11.49,0,0,0,180,12H168a11.58,11.58,0,0,0-8.44,3.53M169.5,54l.09-6H143.93V12H132V54ZM143.94,0H132V6h12ZM96,24a6,6,0,0,1,12,0V42a6,6,0,0,1-6,6H96Zm12,30a12.11,12.11,0,0,0,12-12V24a11.64,11.64,0,0,0-3.53-8.48A11.49,11.49,0,0,0,108,12h-6a5.65,5.65,0,0,0-4.15,1.49A7.53,7.53,0,0,0,96,18V0H84V54ZM60,12V42a6,6,0,0,1-12,0V12H36V42A12.05,12.05,0,0,0,48,54h6q5.31,0,6-6v6H95.46l.06-6H72V12ZM6,12H0v6H6V42a11.56,11.56,0,0,0,3.51,8.45A11.55,11.55,0,0,0,18,54H48.82V48H23.46a5.87,5.87,0,0,1-3.55-1.53A5.36,5.36,0,0,1,18,42V18h6V12H18V0H6Z",transform:"translate(0 0)"}})])])])])}),[],!1,null,"49c8107e",null);e.default=component.exports}},[[169,4,1,5]]]); \ No newline at end of file diff --git a/Tubio/frontend/_nuxt/0b8fb26.js b/Tubio/frontend/_nuxt/21ee9b0.js similarity index 85% rename from Tubio/frontend/_nuxt/0b8fb26.js rename to Tubio/frontend/_nuxt/21ee9b0.js index 55fd480..ae9be80 100644 --- a/Tubio/frontend/_nuxt/0b8fb26.js +++ b/Tubio/frontend/_nuxt/21ee9b0.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{252:function(t,e,o){var content=o(258);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(16).default)("ac8f1938",content,!0,{sourceMap:!1})},253: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(257),o(8)),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},254:function(t,e,o){var content=o(271);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(16).default)("1d10f8d7",content,!0,{sourceMap:!1})},255:function(t,e,o){var content=o(273);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(16).default)("3edd6b06",content,!0,{sourceMap:!1})},256:function(t,e,o){var content=o(275);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(16).default)("4667df8d",content,!0,{sourceMap:!1})},257:function(t,e,o){"use strict";var n=o(252);o.n(n).a},258:function(t,e,o){(e=o(15)(!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},259:function(t,e,o){var content=o(277);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(16).default)("0a79a073",content,!0,{sourceMap:!1})},265:function(t,e,o){"use strict";o.r(e);var n=o(8),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,c={props:{isOn:{type:Boolean,default:!1}},components:{IconToggleOn:l,IconToggleOff:r}},d=(o(270),Object(n.a)(c,(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=d.exports},266:function(t,e,o){"use strict";o.r(e);var n={props:{mode:{type:String,default:"normal"},message:{type:String}}},l=(o(272),o(8)),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},267:function(t,e,o){"use strict";o.r(e);o(49);var n={components:{LogEntry:o(266).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(274),o(8)),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(266).default})},270:function(t,e,o){"use strict";var n=o(254);o.n(n).a},271:function(t,e,o){(e=o(15)(!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},272:function(t,e,o){"use strict";var n=o(255);o.n(n).a},273:function(t,e,o){(e=o(15)(!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},274:function(t,e,o){"use strict";var n=o(256);o.n(n).a},275:function(t,e,o){(e=o(15)(!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},276:function(t,e,o){"use strict";var n=o(259);o.n(n).a},277:function(t,e,o){(e=o(15)(!1)).push([t.i,"h1[data-v-1ffe8ccc]{font-size:32pt}h1[data-v-1ffe8ccc],h2[data-v-1ffe8ccc]{color:#bbb}h2[data-v-1ffe8ccc]{font-size:24pt}.disk-usage__entry p[data-v-1ffe8ccc],.versions__entry p[data-v-1ffe8ccc]{color:#bbb;font-size:16pt}.disk-usage__entry p[data-v-1ffe8ccc]{width:150px}textarea[data-v-1ffe8ccc]{color:#04254e;border-radius:5px;font-size:16pt;padding:.7em;min-height:200px;transition:background-color .2s}textarea.inputfield--error[data-v-1ffe8ccc]{background-color:#f77}.option[data-v-1ffe8ccc]{color:#bbb;font-size:18pt;height:50px}.option.toggle>p[data-v-1ffe8ccc]{width:300px}.option.text>input[data-v-1ffe8ccc]{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-1ffe8ccc]{width:180px}}.option.text.narrow>input[data-v-1ffe8ccc]{width:120px}@media(min-width:1024px){.border-right[data-v-1ffe8ccc]{border-right:1px solid #888}.border-left[data-v-1ffe8ccc]{border-left:1px solid #888}}.button[data-v-1ffe8ccc]{color:#000;font-family:ZillaSlab,serif;font-size:18pt;width:200px;transition:background-color .2s,opacity .2s}@media(max-width:768px){.button[data-v-1ffe8ccc]{width:150px;font-size:12pt}}.button[data-v-1ffe8ccc]:hover{background-color:#d40}.button--small[data-v-1ffe8ccc]{font-size:14pt;width:150px;height:30px}.button--nowarn[data-v-1ffe8ccc]:hover{background-color:#5954a4}.button--disabled[data-v-1ffe8ccc]{cursor:pointer;pointer-events:none;opacity:.5}hr[data-v-1ffe8ccc]{border:none;border-bottom:2px solid #888}@-webkit-keyframes goback-floating-data-v-1ffe8ccc{50%{left:1.2em}0%{left:1em}}@keyframes goback-floating-data-v-1ffe8ccc{50%{left:1.2em}0%{left:1em}}.go-back[data-v-1ffe8ccc]{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-1ffe8ccc 1s infinite;animation:goback-floating-data-v-1ffe8ccc 1s infinite}",""]),t.exports=e},290:function(t,e,o){"use strict";o.r(e);o(49);var n=o(6),l=o.n(n),r=o(265),c=o(267),d=o(253),f={components:{Toggle:r.default,LogBox:c.default,Spacer:d.default},data:function(){return{canUpdate:{type:Boolean,default:!0},version__webUI:.75}},computed:{diskUsage:function(){return this.$store.state.diskUsage.usage},serverOs:function(){return this.$store.state.serverOs.os_name},serverVersion:function(){return this.$store.state.serverVersion.serverVersion}},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()),this.canUpdate=!0},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("serverVersion/update"),this.$store.dispatch("settings/updateGet",(function(){t.whitelistToInputfield()})),setInterval((function(){t.canUpdate&&t.$store.dispatch("settings/updateGet")}),1e3)}},h=(o(276),o(8)),component=Object(h.a)(f,(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,focus:function(e){t.canUpdate=!1},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,focus:function(e){t.canUpdate=!1},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:"versions"},[o("div",{staticClass:"versions__entry"},[o("p",[t._v("Web-UI version: "+t._s(t.version__webUI))])]),t._v(" "),o("div",{staticClass:"versions__entry"},[o("p",[t._v("Server version: "+t._s(t.serverVersion))])])]),t._v(" "),o("div",{staticClass:"disk-usage mt-3"},[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,"1ffe8ccc",null);e.default=component.exports;installComponents(component,{Spacer:o(253).default,Toggle:o(265).default,LogBox:o(267).default})}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{252:function(t,e,o){var content=o(258);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(16).default)("ac8f1938",content,!0,{sourceMap:!1})},253: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(257),o(8)),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},254:function(t,e,o){var content=o(271);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(16).default)("1d10f8d7",content,!0,{sourceMap:!1})},255:function(t,e,o){var content=o(273);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(16).default)("3edd6b06",content,!0,{sourceMap:!1})},256:function(t,e,o){var content=o(275);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(16).default)("4667df8d",content,!0,{sourceMap:!1})},257:function(t,e,o){"use strict";var n=o(252);o.n(n).a},258:function(t,e,o){(e=o(15)(!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},259:function(t,e,o){var content=o(277);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(16).default)("cad0dce8",content,!0,{sourceMap:!1})},265:function(t,e,o){"use strict";o.r(e);var n=o(8),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(270),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},266:function(t,e,o){"use strict";o.r(e);var n={props:{mode:{type:String,default:"normal"},message:{type:String}}},l=(o(272),o(8)),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},267:function(t,e,o){"use strict";o.r(e);o(49);var n={components:{LogEntry:o(266).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(274),o(8)),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(266).default})},270:function(t,e,o){"use strict";var n=o(254);o.n(n).a},271:function(t,e,o){(e=o(15)(!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},272:function(t,e,o){"use strict";var n=o(255);o.n(n).a},273:function(t,e,o){(e=o(15)(!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},274:function(t,e,o){"use strict";var n=o(256);o.n(n).a},275:function(t,e,o){(e=o(15)(!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},276:function(t,e,o){"use strict";var n=o(259);o.n(n).a},277:function(t,e,o){(e=o(15)(!1)).push([t.i,"h1[data-v-7aa79e6b]{font-size:32pt}h1[data-v-7aa79e6b],h2[data-v-7aa79e6b]{color:#bbb}h2[data-v-7aa79e6b]{font-size:24pt}.disk-usage__entry p[data-v-7aa79e6b],.versions__entry p[data-v-7aa79e6b]{color:#bbb;font-size:16pt}.disk-usage__entry p[data-v-7aa79e6b]{width:150px}textarea[data-v-7aa79e6b]{color:#04254e;border-radius:5px;font-size:16pt;padding:.7em;min-height:200px;transition:background-color .2s}textarea.inputfield--error[data-v-7aa79e6b]{background-color:#f77}.option[data-v-7aa79e6b]{color:#bbb;font-size:18pt;height:50px}.option.toggle>p[data-v-7aa79e6b]{width:300px}.option.text>input[data-v-7aa79e6b]{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-7aa79e6b]{width:180px}}.option.text.narrow>input[data-v-7aa79e6b]{width:120px}@media(min-width:1024px){.border-right[data-v-7aa79e6b]{border-right:1px solid #888}.border-left[data-v-7aa79e6b]{border-left:1px solid #888}}.button[data-v-7aa79e6b]{color:#000;font-family:ZillaSlab,serif;font-size:18pt;width:200px;transition:background-color .2s,opacity .2s}@media(max-width:768px){.button[data-v-7aa79e6b]{width:150px;font-size:12pt}}.button[data-v-7aa79e6b]:hover{background-color:#d40}.button--small[data-v-7aa79e6b]{font-size:14pt;width:150px;height:30px}.button--nowarn[data-v-7aa79e6b]:hover{background-color:#5954a4}.button--disabled[data-v-7aa79e6b]{cursor:pointer;pointer-events:none;opacity:.5}hr[data-v-7aa79e6b]{border:none;border-bottom:2px solid #888}@-webkit-keyframes goback-floating-data-v-7aa79e6b{50%{left:1.2em}0%{left:1em}}@keyframes goback-floating-data-v-7aa79e6b{50%{left:1.2em}0%{left:1em}}.go-back[data-v-7aa79e6b]{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-7aa79e6b 1s infinite;animation:goback-floating-data-v-7aa79e6b 1s infinite}",""]),t.exports=e},290:function(t,e,o){"use strict";o.r(e);o(49);var n=o(6),l=o.n(n),r=o(265),d=o(267),c=o(253),h={components:{Toggle:r.default,LogBox:d.default,Spacer:c.default},data:function(){return{canUpdate:{type:Boolean,default:!0},version__webUI:.76}},computed:{diskUsage:function(){return this.$store.state.diskUsage.usage},serverOs:function(){return this.$store.state.serverOs.os_name},serverVersion:function(){return this.$store.state.serverVersion.serverVersion}},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()),this.canUpdate=!0},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("serverVersion/update"),this.$store.dispatch("settings/updateGet",(function(){t.whitelistToInputfield()})),setInterval((function(){t.canUpdate&&t.$store.dispatch("settings/updateGet")}),1e3)}},v=(o(276),o(8)),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,focus:function(e){t.canUpdate=!1},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,focus:function(e){t.canUpdate=!1},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:"versions"},[o("div",{staticClass:"versions__entry"},[o("p",[t._v("Web-UI version: "+t._s(t.version__webUI))])]),t._v(" "),o("div",{staticClass:"versions__entry"},[o("p",[t._v("Server version: "+t._s(t.serverVersion))])])]),t._v(" "),o("div",{staticClass:"disk-usage mt-3"},[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,"7aa79e6b",null);e.default=component.exports;installComponents(component,{Spacer:o(253).default,Toggle:o(265).default,LogBox:o(267).default})}}]); \ No newline at end of file diff --git a/Tubio/frontend/_nuxt/08ef47b.js b/Tubio/frontend/_nuxt/f55729f.js similarity index 97% rename from Tubio/frontend/_nuxt/08ef47b.js rename to Tubio/frontend/_nuxt/f55729f.js index 27a01ce..8f2741d 100644 --- a/Tubio/frontend/_nuxt/08ef47b.js +++ b/Tubio/frontend/_nuxt/f55729f.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 - Tubio - Video downloader + Tubio - Video downloader -

Just a second...

+

Just a second...

diff --git a/Tubio/frontend/settings/index.html b/Tubio/frontend/settings/index.html index 033d93e..5a3e79d 100644 --- a/Tubio/frontend/settings/index.html +++ b/Tubio/frontend/settings/index.html @@ -1,11 +1,11 @@ - Tubio - Video downloader + Tubio - Video downloader -

Settings

Web-UI version: 0.75

Server version: -1

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