platypush/platypush/backend/http/webapp/dist/static/js/779-legacy.b22c1cc7.js

2 lines
10 KiB
JavaScript
Raw Normal View History

2022-10-07 11:12:13 +02:00
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[779],{779:function(e,t,n){n.d(t,{Z:function(){return ve}});n(7941),n(8309),n(4916),n(3123);var r=n(6252),s=n(3577),a=function(e){return(0,r.dD)("data-v-7eb04934"),e=e(),(0,r.Cn)(),e},o={key:1,class:"torrent-transfers fade-in"},i={key:0,class:"no-content"},l=["onClick"],c={class:"col-8 left side"},u=["textContent"],d={class:"col-2 right side"},f=["textContent"],v={class:"col-2 right side"},m={key:0,class:"modal-body torrent-info"},p={key:0,class:"row"},h=a((function(){return(0,r._)("div",{class:"attr"},"Name",-1)})),w=["textContent"],g={key:1,class:"row"},_=a((function(){return(0,r._)("div",{class:"attr"},"State",-1)})),k=["textContent"],C={class:"row"},x=a((function(){return(0,r._)("div",{class:"attr"},"Progress",-1)})),y=["textContent"],I={class:"row"},D=a((function(){return(0,r._)("div",{class:"attr"},"DL rate",-1)})),b=["textContent"],z={class:"row"},T=a((function(){return(0,r._)("div",{class:"attr"},"UL rate",-1)})),q=["textContent"],R={class:"row"},S=a((function(){return(0,r._)("div",{class:"attr"},"Size",-1)})),E=["textContent"],Z={key:2,class:"row"},N=a((function(){return(0,r._)("div",{class:"attr"},"Remaining",-1)})),W=["textContent"],j={class:"row"},P=a((function(){return(0,r._)("div",{class:"attr"},"URL",-1)})),F={class:"value nowrap"},L=["href","textContent"],M={class:"row"},U=a((function(){return(0,r._)("div",{class:"attr"},"Peers",-1)})),V=["textContent"],$={key:3,class:"row"},H=a((function(){return(0,r._)("div",{class:"attr"},"Started",-1)})),K=["textContent"],O={key:4,class:"row"},Y=a((function(){return(0,r._)("div",{class:"attr"},"Finished",-1)})),A=["textContent"],B={key:5,class:"row"},Q=a((function(){return(0,r._)("div",{class:"attr"},"Save path",-1)})),G=["textContent"],J={key:0,class:"modal-body torrent-files"},X={class:"col-1 icon"},ee={key:1,class:"fa fa-file"},te=["textContent"];function ne(e,t,n,a,ne,re){var se=(0,r.up)("Loading"),ae=(0,r.up)("DropdownItem"),oe=(0,r.up)("Dropdown"),ie=(0,r.up)("Modal");return ne.loading?((0,r.wg)(),(0,r.j4)(se,{key:0})):((0,r.wg)(),(0,r.iD)("div",o,[Object.keys(ne.transfers).length?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",i,"No torrent transfers in progress")),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(ne.transfers,(function(n,a){return(0,r.wg)(),(0,r.iD)("div",{class:(0,s.C_)(["row item",{selected:ne.selectedItem===a}]),key:a,onClick:function(e){return ne.selectedItem=a}},[(0,r._)("div",c,[(0,r._)("i",{class:(0,s.C_)(["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),(0,r._)("div",{class:"title",textContent:(0,s.zw)(n.name||n.hash||n.url)},null,8,u)]),(0,r._)("div",d,[(0,r._)("span",{textContent:(0,s.zw)("".concat(n.progress,"%"))},null,8,f)]),(0,r._)("div",v,[(0,r.Wm)(oe,{title:"Actions","icon-class":"fa fa-ellipsis-h",onClick:function(e){return ne.selectedItem=a}},{default:(0,r.w5)((function(){return["downloading"===n.state?((0,r.wg)(),(0,r.j4)(ae,{key:0,"icon-class":"fa fa-pause",text:"Pause transfer",onClick:function(e){return re.pause(re.torrentId(n))}},null,8,["onClick"])):(0,r.kq)("",!0),"paused"===n.state?((0,r.wg)(),(0,r.j4)(ae,{key:1,"icon-class":"fa fa-play",text:"Resume transfer",onClick:function(e){return re.resume(re.torrentId(n))}},null,8,["onClick"])):(0,r.kq)("",!0),(0,r.Wm)(ae,{"icon-class":"fa fa-trash",text:"Remove transfer",onClick:function(e){return re.remove(re.torrentId(n))}},null,8,["onClick"]),(0,r.Wm)(ae,{"icon-class":"fa fa-folder",text:"View files",onClick:t[0]||(t[0]=function(t){return e.$refs.torrentFiles.isVisible=!0})}),(0,r.Wm)(ae,{"icon-class":"fa fa-info",text:"Torrent info",onClick:t[1]||(t[1]=function(t){return e.$refs.torrentInfo.isVisible=!0})})]})),_:2},1032,["onClick"])])],10,l)})),128)),(0,r.Wm)(ie,{ref:"torrentInfo",title:"Torrent info",width:"80%"},{default:(0,r.w5)((function(){return[null!=ne.selectedItem&&ne.transfers[ne.selectedItem]?((0,r.wg)(),(0,r.iD)("div",m,[ne.transfers[ne.selecte
//# sourceMappingURL=779-legacy.b22c1cc7.js.map