platypush/platypush/backend/http/webapp/dist/static/js/chunk-9684cd10.16a1722a.js

2 lines
11 KiB
JavaScript
Raw Normal View History

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9684cd10"],{"0cc1":function(e,t,n){"use strict";n("b0c0"),n("b64b"),n("ac1f"),n("1276");var r=n("7a23"),s=Object(r["K"])("data-v-7eb04934");Object(r["u"])("data-v-7eb04934");var a={key:1,class:"torrent-transfers fade-in"},c={key:0,class:"no-content"},o={class:"col-8 left side"},l={class:"col-2 right side"},i={class:"col-2 right side"},u={key:0,class:"modal-body torrent-info"},d={key:0,class:"row"},b=Object(r["h"])("div",{class:"attr"},"Name",-1),f={key:1,class:"row"},h=Object(r["h"])("div",{class:"attr"},"State",-1),j={class:"row"},v=Object(r["h"])("div",{class:"attr"},"Progress",-1),O={class:"row"},m=Object(r["h"])("div",{class:"attr"},"DL rate",-1),p={class:"row"},C=Object(r["h"])("div",{class:"attr"},"UL rate",-1),x={class:"row"},w=Object(r["h"])("div",{class:"attr"},"Size",-1),g={key:2,class:"row"},y=Object(r["h"])("div",{class:"attr"},"Remaining",-1),I={class:"row"},k=Object(r["h"])("div",{class:"attr"},"URL",-1),_={class:"value nowrap"},T={class:"row"},R=Object(r["h"])("div",{class:"attr"},"Peers",-1),S={key:3,class:"row"},D=Object(r["h"])("div",{class:"attr"},"Started",-1),E={key:4,class:"row"},z=Object(r["h"])("div",{class:"attr"},"Finished",-1),N={key:5,class:"row"},P=Object(r["h"])("div",{class:"attr"},"Save path",-1),q={key:0,class:"modal-body torrent-files"},F={class:"col-1 icon"},L={key:1,class:"fa fa-file"};Object(r["s"])();var M=s((function(e,t,n,M,U,V){var $=Object(r["z"])("Loading"),J=Object(r["z"])("DropdownItem"),A=Object(r["z"])("Dropdown"),B=Object(r["z"])("Modal");return U.loading?(Object(r["r"])(),Object(r["e"])($,{key:0})):(Object(r["r"])(),Object(r["e"])("div",a,[Object.keys(U.transfers).length?Object(r["f"])("",!0):(Object(r["r"])(),Object(r["e"])("div",c,"No torrent transfers in progress")),(Object(r["r"])(!0),Object(r["e"])(r["a"],null,Object(r["x"])(U.transfers,(function(n,a){return Object(r["r"])(),Object(r["e"])("div",{class:["row item",{selected:U.selectedItem===a}],key:a,onClick:function(e){return U.selectedItem=a}},[Object(r["h"])("div",o,[Object(r["h"])("i",{class:["icon fa",{"fa-check":null!=n.finish_date,"fa-play":!n.finish_date&&"downloading"===n.state,"fa-pause":!n.finish_date&&"paused"===n.state,"fa-stop":!n.finish_date&&"stopped"===n.state}]},null,2),Object(r["h"])("div",{class:"title",textContent:Object(r["C"])(n.name||n.hash||n.url)},null,8,["textContent"])]),Object(r["h"])("div",l,[Object(r["h"])("span",{textContent:Object(r["C"])("".concat(n.progress,"%"))},null,8,["textContent"])]),Object(r["h"])("div",i,[Object(r["h"])(A,{title:"Actions","icon-class":"fa fa-ellipsis-h",onClick:function(e){return U.selectedItem=a}},{default:s((function(){return["downloading"===n.state?(Object(r["r"])(),Object(r["e"])(J,{key:0,"icon-class":"fa fa-pause",text:"Pause transfer",onClick:function(e){return V.pause(V.torrentId(n))}},null,8,["onClick"])):Object(r["f"])("",!0),"paused"===n.state?(Object(r["r"])(),Object(r["e"])(J,{key:1,"icon-class":"fa fa-play",text:"Resume transfer",onClick:function(e){return V.resume(V.torrentId(n))}},null,8,["onClick"])):Object(r["f"])("",!0),Object(r["h"])(J,{"icon-class":"fa fa-trash",text:"Remove transfer",onClick:function(e){return V.remove(V.torrentId(n))}},null,8,["onClick"]),Object(r["h"])(J,{"icon-class":"fa fa-folder",text:"View files",onClick:t[1]||(t[1]=function(t){return e.$refs.torrentFiles.isVisible=!0})}),Object(r["h"])(J,{"icon-class":"fa fa-info",text:"Torrent info",onClick:t[2]||(t[2]=function(t){return e.$refs.torrentInfo.isVisible=!0})})]})),_:2},1032,["onClick"])])],10,["onClick"])})),128)),Object(r["h"])(B,{ref:"torrentInfo",title:"Torrent info",width:"80%"},{default:s((function(){return[null!=U.selectedItem&&U.transfers[U.selectedItem]?(Object(r["r"])(),Object(r["e"])("div",u,[U.transfers[U.selectedItem].name?(Object(r["r"])(),Object(r["e"])("div",d,[b,Object(r["h"])("div",{class:"value",textContent:Object(r["C"])(U.transfers[U.selectedItem].name)},null,8,["textContent"])])):Object(r["f"])("",!0),U.transfers[U.selectedItem].state?(Object(r["r"])(),Object(r["e"])("div",f,[h,Ob
//# sourceMappingURL=chunk-9684cd10.16a1722a.js.map