[Automatic] Updated UI files

This commit is contained in:
Fabio Manganiello 2024-11-09 15:27:25 +00:00
parent 9999025c0a
commit 34aea3cd02
Signed by untrusted user: blacklight
GPG key ID: AD6D273C08B82EC9
100 changed files with 91 additions and 90 deletions

View file

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="/favicon.ico"><![endif]--><link rel="stylesheet" href="/fonts/poppins.css"><title>platypush</title><script defer="defer" src="/static/js/chunk-vendors.c55c495e.js"></script><script defer="defer" src="/static/js/app.6347ee1b.js"></script><link href="/static/css/chunk-vendors.d510eff2.css" rel="stylesheet"><link href="/static/css/app.70fb1f4a.css" rel="stylesheet"><link rel="icon" type="image/svg+xml" href="/img/icons/favicon.svg"><link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#ffffff"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="Platypush"><link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#ffffff"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but platypush doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="/favicon.ico"><![endif]--><link rel="stylesheet" href="/fonts/poppins.css"><title>platypush</title><script defer="defer" src="/static/js/chunk-vendors.c55c495e.js"></script><script defer="defer" src="/static/js/app.90e0f85f.js"></script><link href="/static/css/chunk-vendors.d510eff2.css" rel="stylesheet"><link href="/static/css/app.70fb1f4a.css" rel="stylesheet"><link rel="icon" type="image/svg+xml" href="/img/icons/favicon.svg"><link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#ffffff"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="Platypush"><link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#ffffff"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but platypush doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1014],{1014:function(e,n,t){t.r(n),t.d(n,{default:function(){return E}});var s=t(641),i=t(33);const l={class:"media-youtube-channel"},a={key:1,class:"channel"},r={class:"header"},c={class:"banner"},o=["src"],u={class:"row info-container"},d={class:"info"},h={class:"row"},b={class:"title-container"},g=["href"],p={class:"image"},y=["src"],m=["href"],f={class:"actions"},k=["title"],v={key:0,class:"subscribers"},w={key:0,class:"description"};function _(e,n,t,_,C,L){const x=(0,s.g2)("Loading"),S=(0,s.g2)("Results");return(0,s.uX)(),(0,s.CE)("div",l,[L.isLoading?((0,s.uX)(),(0,s.Wv)(x,{key:0})):C.channel?((0,s.uX)(),(0,s.CE)("div",a,[(0,s.Lk)("div",r,[(0,s.Lk)("div",c,[C.channel?.banner?.length?((0,s.uX)(),(0,s.CE)("img",{key:0,src:C.channel.banner},null,8,o)):(0,s.Q3)("",!0)]),(0,s.Lk)("div",u,[(0,s.Lk)("div",d,[(0,s.Lk)("div",h,[(0,s.Lk)("div",b,[C.channel?.image?.length?((0,s.uX)(),(0,s.CE)("a",{key:0,href:C.channel.url,target:"_blank",rel:"noopener noreferrer"},[(0,s.Lk)("div",p,[(0,s.Lk)("img",{src:C.channel.image},null,8,y)])],8,g)):(0,s.Q3)("",!0),(0,s.Lk)("a",{class:"title",href:C.channel.url,target:"_blank",rel:"noopener noreferrer"},(0,i.v_)(C.channel?.name),9,m)]),(0,s.Lk)("div",f,[(0,s.Lk)("button",{title:C.subscribed?"Unsubscribe":"Subscribe",onClick:n[0]||(n[0]=(...e)=>L.toggleSubscription&&L.toggleSubscription(...e))},(0,i.v_)(C.subscribed?"Unsubscribe":"Subscribe"),9,k),null!=C.channel.subscribers&&(C.channel.subscribers||0)>=0?((0,s.uX)(),(0,s.CE)("div",v,(0,i.v_)(e.formatNumber(C.channel.subscribers))+" subscribers ",1)):(0,s.Q3)("",!0)])]),C.channel?.description?((0,s.uX)(),(0,s.CE)("div",w,(0,i.v_)(C.channel.description),1)):(0,s.Q3)("",!0)])])]),(0,s.bF)(S,{results:C.channel.items,filter:t.filter,"result-index-step":null,"selected-result":C.selectedResult,ref:"results",onAddToPlaylist:n[1]||(n[1]=n=>e.$emit("add-to-playlist",n)),onDownload:n[2]||(n[2]=n=>e.$emit("download",n)),onDownloadAudio:n[3]||(n[3]=n=>e.$emit("download-audio",n)),onOpenChannel:n[4]||(n[4]=n=>e.$emit("open-channel",n)),onPlay:n[5]||(n[5]=n=>e.$emit("play",n)),onPlayWithOpts:n[6]||(n[6]=n=>e.$emit("play-with-opts",n)),onScrollEnd:L.loadNextPage,onSelect:n[7]||(n[7]=e=>C.selectedResult=e),onView:n[8]||(n[8]=n=>e.$emit("view",n))},null,8,["results","filter","selected-result","onScrollEnd"])])):(0,s.Q3)("",!0)])}var C=t(9828),L=t(1101),x=t(2002),S={mixins:[x.A],emits:["add-to-playlist","download","download-audio","open-channel","play","play-with-opts","view"],components:{Loading:C.A,Results:L.A},props:{id:{type:String,required:!0},filter:{type:String,default:null},loading:{type:Boolean,default:!1}},data(){return{channel:null,loading_:!1,loadingNextPage:!1,selectedResult:null,subscribed:!1}},computed:{isLoading(){return this.loading||this.loading_},itemsByUrl(){return this.channel?.items.reduce(((e,n)=>(e[n.url]=n,e)),{})}},methods:{async loadChannel(){this.loading_=!0;try{await this.updateChannel(!0),this.subscribed=await this.request("youtube.is_subscribed",{channel_id:this.id})}finally{this.loading_=!1}},async updateChannel(e){const n=await this.request("youtube.get_channel",{id:this.id,next_page_token:this.channel?.next_page_token}),t=this.itemsByUrl||{};let s=n.items.filter((e=>!t[e.url])).map((e=>({type:"youtube",...e})));e||(s=this.channel.items.concat(s)),this.channel=n,this.channel.items=s},async loadNextPage(){if(this.channel?.next_page_token&&!this.loadingNextPage){this.loadingNextPage=!0;try{await this.timeout(500),await this.updateChannel()}finally{this.loadingNextPage=!1}}},async toggleSubscription(){const e=this.subscribed?"unsubscribe":"subscribe";await this.request(`youtube.${e}`,{channel_id:this.id}),this.subscribed=!this.subscribed}},async mounted(){this.setUrlArgs({channel:this.id}),await this.loadChannel()},unmounted(){this.setUrlArgs({channel:null})}},P=t(6262);const A=(0,P.A)(S,[["render",_],["__scopeId","data-v-448cf852"]]);var E=A}}]);
//# sourceMappingURL=1014.4905da11.js.map
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1014],{1014:function(e,n,t){t.r(n),t.d(n,{default:function(){return E}});var s=t(641),i=t(33);const l={class:"media-youtube-channel"},a={key:1,class:"channel"},r={class:"header"},c={class:"banner"},o=["src"],u={class:"row info-container"},d={class:"info"},h={class:"row"},b={class:"title-container"},g=["href"],p={class:"image"},y=["src"],m=["href"],f={class:"actions"},k=["title"],v={key:0,class:"subscribers"},w={key:0,class:"description"};function _(e,n,t,_,C,L){const x=(0,s.g2)("Loading"),S=(0,s.g2)("Results");return(0,s.uX)(),(0,s.CE)("div",l,[L.isLoading?((0,s.uX)(),(0,s.Wv)(x,{key:0})):C.channel?((0,s.uX)(),(0,s.CE)("div",a,[(0,s.Lk)("div",r,[(0,s.Lk)("div",c,[C.channel?.banner?.length?((0,s.uX)(),(0,s.CE)("img",{key:0,src:C.channel.banner},null,8,o)):(0,s.Q3)("",!0)]),(0,s.Lk)("div",u,[(0,s.Lk)("div",d,[(0,s.Lk)("div",h,[(0,s.Lk)("div",b,[C.channel?.image?.length?((0,s.uX)(),(0,s.CE)("a",{key:0,href:C.channel.url,target:"_blank",rel:"noopener noreferrer"},[(0,s.Lk)("div",p,[(0,s.Lk)("img",{src:C.channel.image},null,8,y)])],8,g)):(0,s.Q3)("",!0),(0,s.Lk)("a",{class:"title",href:C.channel.url,target:"_blank",rel:"noopener noreferrer"},(0,i.v_)(C.channel?.name),9,m)]),(0,s.Lk)("div",f,[(0,s.Lk)("button",{title:C.subscribed?"Unsubscribe":"Subscribe",onClick:n[0]||(n[0]=(...e)=>L.toggleSubscription&&L.toggleSubscription(...e))},(0,i.v_)(C.subscribed?"Unsubscribe":"Subscribe"),9,k),null!=C.channel.subscribers&&(C.channel.subscribers||0)>=0?((0,s.uX)(),(0,s.CE)("div",v,(0,i.v_)(e.formatNumber(C.channel.subscribers))+" subscribers ",1)):(0,s.Q3)("",!0)])]),C.channel?.description?((0,s.uX)(),(0,s.CE)("div",w,(0,i.v_)(C.channel.description),1)):(0,s.Q3)("",!0)])])]),(0,s.bF)(S,{results:C.channel.items,filter:t.filter,"result-index-step":null,"selected-result":C.selectedResult,ref:"results",onAddToPlaylist:n[1]||(n[1]=n=>e.$emit("add-to-playlist",n)),onDownload:n[2]||(n[2]=n=>e.$emit("download",n)),onDownloadAudio:n[3]||(n[3]=n=>e.$emit("download-audio",n)),onOpenChannel:n[4]||(n[4]=n=>e.$emit("open-channel",n)),onPlay:n[5]||(n[5]=n=>e.$emit("play",n)),onPlayWithOpts:n[6]||(n[6]=n=>e.$emit("play-with-opts",n)),onScrollEnd:L.loadNextPage,onSelect:n[7]||(n[7]=e=>C.selectedResult=e),onView:n[8]||(n[8]=n=>e.$emit("view",n))},null,8,["results","filter","selected-result","onScrollEnd"])])):(0,s.Q3)("",!0)])}var C=t(9828),L=t(3149),x=t(2002),S={mixins:[x.A],emits:["add-to-playlist","download","download-audio","open-channel","play","play-with-opts","view"],components:{Loading:C.A,Results:L.A},props:{id:{type:String,required:!0},filter:{type:String,default:null},loading:{type:Boolean,default:!1}},data(){return{channel:null,loading_:!1,loadingNextPage:!1,selectedResult:null,subscribed:!1}},computed:{isLoading(){return this.loading||this.loading_},itemsByUrl(){return this.channel?.items.reduce(((e,n)=>(e[n.url]=n,e)),{})}},methods:{async loadChannel(){this.loading_=!0;try{await this.updateChannel(!0),this.subscribed=await this.request("youtube.is_subscribed",{channel_id:this.id})}finally{this.loading_=!1}},async updateChannel(e){const n=await this.request("youtube.get_channel",{id:this.id,next_page_token:this.channel?.next_page_token}),t=this.itemsByUrl||{};let s=n.items.filter((e=>!t[e.url])).map((e=>({type:"youtube",...e})));e||(s=this.channel.items.concat(s)),this.channel=n,this.channel.items=s},async loadNextPage(){if(this.channel?.next_page_token&&!this.loadingNextPage){this.loadingNextPage=!0;try{await this.timeout(500),await this.updateChannel()}finally{this.loadingNextPage=!1}}},async toggleSubscription(){const e=this.subscribed?"unsubscribe":"subscribe";await this.request(`youtube.${e}`,{channel_id:this.id}),this.subscribed=!this.subscribed}},async mounted(){this.setUrlArgs({channel:this.id}),await this.loadChannel()},unmounted(){this.setUrlArgs({channel:null})}},P=t(6262);const A=(0,P.A)(S,[["render",_],["__scopeId","data-v-448cf852"]]);var E=A}}]);
//# sourceMappingURL=1014.d3f7fcf2.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1252],{1252:function(e,t,l){l.r(t),l.d(t,{default:function(){return _}});var i=l(641);const o={class:"videos index"},s={key:1,class:"wrapper music-wrapper"},n={key:3,class:"wrapper items-wrapper"};function c(e,t,l,c,a,d){const r=(0,i.g2)("Loading"),m=(0,i.g2)("Music"),p=(0,i.g2)("NoItems"),y=(0,i.g2)("Collections"),h=(0,i.g2)("Results");return(0,i.uX)(),(0,i.CE)("div",o,[e.isLoading?((0,i.uX)(),(0,i.Wv)(r,{key:0})):"music"===e.collection?.collection_type?((0,i.uX)(),(0,i.CE)("div",s,[(0,i.bF)(m,{collection:e.collection,filter:e.filter,loading:e.isLoading,path:e.path,onAddToPlaylist:t[0]||(t[0]=t=>e.$emit("add-to-playlist",t)),onDelete:t[1]||(t[1]=t=>e.$emit("delete",t)),onPlay:t[2]||(t[2]=t=>e.$emit("play",t)),onPlayWithOpts:t[3]||(t[3]=t=>e.$emit("play-with-opts",t)),onPlaylistMove:d.playlistMove,onRemoveFromPlaylist:t[4]||(t[4]=t=>e.$emit("remove-from-playlist",t)),onSelect:t[5]||(t[5]=t=>{e.selectedResult=t,e.$emit("select",t)}),onSelectCollection:d.selectCollection,onView:t[6]||(t[6]=t=>e.$emit("view",t))},null,8,["collection","filter","loading","path","onPlaylistMove","onSelectCollection"])])):e.items?.length?((0,i.uX)(),(0,i.CE)("div",n,[d.collections.length>0?((0,i.uX)(),(0,i.Wv)(y,{key:0,collection:e.collection,filter:e.filter,items:d.collections,loading:e.isLoading,"parent-id":e.collection?.id,onRefresh:d.refresh,onSelect:d.selectCollection},null,8,["collection","filter","items","loading","parent-id","onRefresh","onSelect"])):(0,i.Q3)("",!0),d.mediaItems.length>0?((0,i.uX)(),(0,i.Wv)(h,{key:1,results:d.mediaItems,sources:{jellyfin:!0},filter:e.filter,"selected-result":e.selectedResult,onAddToPlaylist:t[7]||(t[7]=t=>e.$emit("add-to-playlist",t)),onDownload:t[8]||(t[8]=t=>e.$emit("download",t)),onPlay:t[9]||(t[9]=t=>e.$emit("play",t)),onPlayWithOpts:t[10]||(t[10]=t=>e.$emit("play-with-opts",t)),onRemoveFromPlaylist:t[11]||(t[11]=t=>e.$emit("remove-from-playlist",t)),onSelect:d.selectItem,onView:t[12]||(t[12]=t=>e.$emit("view",t))},null,8,["results","filter","selected-result","onSelect"])):(0,i.Q3)("",!0)])):((0,i.uX)(),(0,i.Wv)(p,{key:2,"with-shadow":!1},{default:(0,i.k6)((()=>[(0,i.eW)(" No media found. ")])),_:1}))])}var a=l(8411),d=l(9828),r=l(2012),m=l(6541),p=l(6561),y=l(3149),h={mixins:[r["default"]],emits:["add-to-playlist","delete","download","play","play-with-opts","remove-from-playlist","select","select-collection","view"],components:{Collections:a["default"],Loading:d.A,Music:m["default"],NoItems:p.A,Results:y.A},computed:{collections(){return this.sortedItems?.filter((e=>["collection","playlist"].includes(e.item_type)))??[]},mediaItems(){const e=this.sortedItems?.filter((e=>!["collection","playlist"].includes(e.item_type)))??[];return!this.collection||this.collection.collection_type&&"books"!==this.collection.collection_type?e:e.sort(((e,t)=>{if(e.created_at&&t.created_at)return new Date(e.created_at)<new Date(t.created_at);if(e.created_at)return-1;if(t.created_at)return 1;let l=[e.name||e.title||"",t.name||t.title||""];return l[0].localeCompare(l[1])}))}},methods:{selectCollection(e){this.$emit("select-collection",{type:"homevideos",...e})},selectItem(e){const t=this.items[e];"book"===t.item_type&&t.embed_url?window.open(t.embed_url,"_blank"):this.selectedResult=e},async playlistMove(e){const{item:t,to:l}=e;this.loading_=!0;try{await this.request("media.jellyfin.playlist_move",{playlist:this.collection.id,playlist_item_id:t.playlist_item_id,to_pos:l}),await this.refresh()}finally{this.loading_=!1}},async init(){const e=this.getUrlArgs();let t=e?.collection;if(t){this.loading_=!0;try{t=await this.request("media.jellyfin.info",{item_id:t}),t&&this.selectCollection(t)}finally{this.loading_=!1}}},async refresh(){if("music"!==this.collection?.collection_type){this.loading_=!0;try{"tvshows"===this.collection?.collection_type?this.items=(await this.request("media.jellyfin.get_collections",{parent_id:this.collection.id})).map((e=>({...e,item_type:"collection"}))):this.items=this.collection?.id?await this.request("media.jellyfin.get_items",{parent_id:this.collection.id,limit:25e3}):(await this.request("media.jellyfin.get_collections")).map((e=>({...e,item_type:"collection"})))}finally{this.loading_=!1}}}},async mounted(){this.init(),await this.refresh()}},u=l(6262);const f=(0,u.A)(h,[["render",c],["__scopeId","data-v-cc12b0dc"]]);var _=f}}]);
//# sourceMappingURL=1252.8b2c8f1b.js.map

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1918],{6561:function(e,t,a){a.d(t,{A:function(){return u}});var s=a(641),l=a(33);const i={class:"no-items-container"};function n(e,t,a,n,o,d){return(0,s.uX)(),(0,s.CE)("div",i,[(0,s.Lk)("div",{class:(0,l.C4)(["no-items fade-in",{shadow:a.withShadow}])},[(0,s.RG)(e.$slots,"default",{},void 0,!0)],2)])}var o={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},d=a(6262);const r=(0,d.A)(o,[["render",n],["__scopeId","data-v-4856c4d7"]]);var u=r},1918:function(e,t,a){a.r(t),a.d(t,{default:function(){return E}});var s=a(641),l=a(33);const i={class:"media-youtube-playlist"},n={key:1,class:"playlist-container"},o={class:"header"},d={class:"banner"},r=["src"],u={class:"row info-container"},c={class:"info"},m={class:"row"},p=["href"],h={key:1,class:"title"},y={class:"n-items"},v={key:0,class:"row"},f={class:"description"},k={key:1,class:"row"},w={class:"channel"},g=["href"];function _(e,t,a,_,C,L){const b=(0,s.g2)("Loading"),A=(0,s.g2)("NoItems"),X=(0,s.g2)("Results");return(0,s.uX)(),(0,s.CE)("div",i,[C.loading?((0,s.uX)(),(0,s.Wv)(b,{key:0})):((0,s.uX)(),(0,s.CE)("div",n,[(0,s.Lk)("div",o,[(0,s.Lk)("div",d,[a.metadata?.image?.length?((0,s.uX)(),(0,s.CE)("img",{key:0,src:a.metadata?.image},null,8,r)):(0,s.Q3)("",!0)]),(0,s.Lk)("div",u,[(0,s.Lk)("div",c,[(0,s.Lk)("div",m,[a.metadata?.url?((0,s.uX)(),(0,s.CE)("a",{key:0,class:"title",href:a.metadata?.url,target:"_blank",rel:"noopener noreferrer"},(0,l.v_)(L.name),9,p)):((0,s.uX)(),(0,s.CE)("span",h,(0,l.v_)(L.name),1)),(0,s.Lk)("div",y,(0,l.v_)(L.nItems)+" videos",1)]),a.metadata?.description?((0,s.uX)(),(0,s.CE)("div",v,[(0,s.Lk)("div",f,(0,l.v_)(a.metadata?.description),1)])):(0,s.Q3)("",!0),a.metadata?.channel_url?((0,s.uX)(),(0,s.CE)("div",k,[(0,s.Lk)("div",w,[(0,s.eW)(" Uploaded by "),(0,s.Lk)("a",{href:a.metadata.channel_url,target:"_blank",rel:"noopener noreferrer"},(0,l.v_)(a.metadata?.channel),9,g)])])):(0,s.Q3)("",!0)])])]),L.nItems?((0,s.uX)(),(0,s.Wv)(X,{key:1,results:C.items,sources:{youtube:!0},filter:a.filter,playlist:a.id,"selected-result":C.selectedResult,onAddToPlaylist:t[0]||(t[0]=t=>e.$emit("add-to-playlist",t)),onDownload:t[1]||(t[1]=t=>e.$emit("download",t)),onDownloadAudio:t[2]||(t[2]=t=>e.$emit("download-audio",t)),onOpenChannel:t[3]||(t[3]=t=>e.$emit("open-channel",t)),onPlay:t[4]||(t[4]=t=>e.$emit("play",t)),onPlayWithOpts:t[5]||(t[5]=t=>e.$emit("play-with-opts",t)),onRemoveFromPlaylist:t[6]||(t[6]=t=>e.$emit("remove-from-playlist",t)),onSelect:t[7]||(t[7]=e=>C.selectedResult=e),onView:t[8]||(t[8]=t=>e.$emit("view",t))},null,8,["results","filter","playlist","selected-result"])):((0,s.uX)(),(0,s.Wv)(A,{key:0,"with-shadow":!1},{default:(0,s.k6)((()=>[(0,s.eW)(" No videos found. ")])),_:1}))]))])}var C=a(6561),L=a(9828),b=a(1101),A=a(2002),X={mixins:[A.A],emits:["add-to-playlist","download","download-audio","open-channel","play","play-with-opts","remove-from-playlist","view"],components:{Loading:L.A,NoItems:C.A,Results:b.A},props:{id:{type:String,required:!0},filter:{type:String,default:null},metadata:{type:Object,default:null}},data(){return{items:[],loading:!1,selectedResult:null}},computed:{name(){return this.metadata?.title||this.metadata?.name},nItems(){return this.metadata?.videos||this.items?.length||0}},methods:{async loadItems(){this.loading=!0;try{this.items=(await this.request("youtube.get_playlist",{id:this.id})).map((e=>({...e,type:"youtube"})))}finally{this.loading=!1}}},mounted(){this.setUrlArgs({playlist:this.id}),this.loadItems()},unmounted(){this.setUrlArgs({playlist:null})}},I=a(6262);const $=(0,I.A)(X,[["render",_],["__scopeId","data-v-7dfc81fd"]]);var E=$}}]);
//# sourceMappingURL=1918.a56662d0.js.map
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1918],{6561:function(e,t,a){a.d(t,{A:function(){return u}});var s=a(641),l=a(33);const i={class:"no-items-container"};function n(e,t,a,n,o,d){return(0,s.uX)(),(0,s.CE)("div",i,[(0,s.Lk)("div",{class:(0,l.C4)(["no-items fade-in",{shadow:a.withShadow}])},[(0,s.RG)(e.$slots,"default",{},void 0,!0)],2)])}var o={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},d=a(6262);const r=(0,d.A)(o,[["render",n],["__scopeId","data-v-4856c4d7"]]);var u=r},1918:function(e,t,a){a.r(t),a.d(t,{default:function(){return E}});var s=a(641),l=a(33);const i={class:"media-youtube-playlist"},n={key:1,class:"playlist-container"},o={class:"header"},d={class:"banner"},r=["src"],u={class:"row info-container"},c={class:"info"},m={class:"row"},p=["href"],h={key:1,class:"title"},y={class:"n-items"},v={key:0,class:"row"},f={class:"description"},k={key:1,class:"row"},w={class:"channel"},g=["href"];function _(e,t,a,_,C,L){const b=(0,s.g2)("Loading"),A=(0,s.g2)("NoItems"),X=(0,s.g2)("Results");return(0,s.uX)(),(0,s.CE)("div",i,[C.loading?((0,s.uX)(),(0,s.Wv)(b,{key:0})):((0,s.uX)(),(0,s.CE)("div",n,[(0,s.Lk)("div",o,[(0,s.Lk)("div",d,[a.metadata?.image?.length?((0,s.uX)(),(0,s.CE)("img",{key:0,src:a.metadata?.image},null,8,r)):(0,s.Q3)("",!0)]),(0,s.Lk)("div",u,[(0,s.Lk)("div",c,[(0,s.Lk)("div",m,[a.metadata?.url?((0,s.uX)(),(0,s.CE)("a",{key:0,class:"title",href:a.metadata?.url,target:"_blank",rel:"noopener noreferrer"},(0,l.v_)(L.name),9,p)):((0,s.uX)(),(0,s.CE)("span",h,(0,l.v_)(L.name),1)),(0,s.Lk)("div",y,(0,l.v_)(L.nItems)+" videos",1)]),a.metadata?.description?((0,s.uX)(),(0,s.CE)("div",v,[(0,s.Lk)("div",f,(0,l.v_)(a.metadata?.description),1)])):(0,s.Q3)("",!0),a.metadata?.channel_url?((0,s.uX)(),(0,s.CE)("div",k,[(0,s.Lk)("div",w,[(0,s.eW)(" Uploaded by "),(0,s.Lk)("a",{href:a.metadata.channel_url,target:"_blank",rel:"noopener noreferrer"},(0,l.v_)(a.metadata?.channel),9,g)])])):(0,s.Q3)("",!0)])])]),L.nItems?((0,s.uX)(),(0,s.Wv)(X,{key:1,results:C.items,sources:{youtube:!0},filter:a.filter,playlist:a.id,"selected-result":C.selectedResult,onAddToPlaylist:t[0]||(t[0]=t=>e.$emit("add-to-playlist",t)),onDownload:t[1]||(t[1]=t=>e.$emit("download",t)),onDownloadAudio:t[2]||(t[2]=t=>e.$emit("download-audio",t)),onOpenChannel:t[3]||(t[3]=t=>e.$emit("open-channel",t)),onPlay:t[4]||(t[4]=t=>e.$emit("play",t)),onPlayWithOpts:t[5]||(t[5]=t=>e.$emit("play-with-opts",t)),onRemoveFromPlaylist:t[6]||(t[6]=t=>e.$emit("remove-from-playlist",t)),onSelect:t[7]||(t[7]=e=>C.selectedResult=e),onView:t[8]||(t[8]=t=>e.$emit("view",t))},null,8,["results","filter","playlist","selected-result"])):((0,s.uX)(),(0,s.Wv)(A,{key:0,"with-shadow":!1},{default:(0,s.k6)((()=>[(0,s.eW)(" No videos found. ")])),_:1}))]))])}var C=a(6561),L=a(9828),b=a(3149),A=a(2002),X={mixins:[A.A],emits:["add-to-playlist","download","download-audio","open-channel","play","play-with-opts","remove-from-playlist","view"],components:{Loading:L.A,NoItems:C.A,Results:b.A},props:{id:{type:String,required:!0},filter:{type:String,default:null},metadata:{type:Object,default:null}},data(){return{items:[],loading:!1,selectedResult:null}},computed:{name(){return this.metadata?.title||this.metadata?.name},nItems(){return this.metadata?.videos||this.items?.length||0}},methods:{async loadItems(){this.loading=!0;try{this.items=(await this.request("youtube.get_playlist",{id:this.id})).map((e=>({...e,type:"youtube"})))}finally{this.loading=!1}}},mounted(){this.setUrlArgs({playlist:this.id}),this.loadItems()},unmounted(){this.setUrlArgs({playlist:null})}},I=a(6262);const $=(0,I.A)(X,[["render",_],["__scopeId","data-v-7dfc81fd"]]);var E=$}}]);
//# sourceMappingURL=1918.0c058439.js.map

View file

@ -0,0 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2012,47],{2012:function(t,e,l){l.r(e),l.d(e,{default:function(){return o}});var i=l(47),a={mixins:[i["default"]],emits:["add-to-playlist","back","download","play","play-with-opts","select","view"],props:{collection:{type:Object},path:{type:Array,default:()=>[]}},data(){return{items:[],loading_:!1,selectedResult:null,sort:{attr:"title",desc:!1}}},computed:{isLoading(){return this.loading_||this.loading},sortedItems(){return this.items?"playlist"===this.collection?.item_type?this.items:[...this.items].sort(((t,e)=>{const l=this.sort.attr,i=this.sort.desc;let a=t[l],s=e[l];return"number"===typeof a||"number"===typeof s?(a=a||0,s=s||0,i?s-a:a-s):(a=(a||"").toString().toLowerCase(),s=(s||"").toString().toLowerCase(),i?s.localeCompare(a):a.localeCompare(s))})).map((t=>({item_type:t.type,...t,type:"jellyfin"}))):[]}},methods:{async refresh(){const t=this.collection?.name;if(t?.length){this.loading_=!0;try{this.items=await this.request("media.jellyfin.search",{collection:t,limit:1e3})}finally{this.loading_=!1}}}},watch:{collection(){this.refresh()}}};const s=a;var o=s},47:function(t,e,l){l.r(e),l.d(e,{default:function(){return o}});var i=l(2002),a={mixins:[i.A],emits:["add-to-playlist","back","create-playlist","download","download-audio","path-change","play","remove-from-playlist","remove-playlist","rename-playlist"],props:{filter:{type:String,default:""},loading:{type:Boolean,default:!1},mediaPlugin:{type:String},selectedPlaylist:{default:null},selectedChannel:{default:null}},data(){return{loading_:!1}},computed:{isLoading(){return this.loading||this.loading_}}};const s=a;var o=s}}]);
//# sourceMappingURL=2012.6450b448.js.map

File diff suppressed because one or more lines are too long

View file

@ -1,2 +0,0 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2012,47],{2012:function(t,e,l){l.r(e),l.d(e,{default:function(){return o}});var a=l(47),i={mixins:[a["default"]],emits:["add-to-playlist","back","download","play","play-with-opts","select","view"],props:{collection:{type:Object},path:{type:Array,default:()=>[]}},data(){return{items:[],loading_:!1,selectedResult:null,sort:{attr:"title",desc:!1}}},computed:{isLoading(){return this.loading_||this.loading},sortedItems(){return this.items?[...this.items].sort(((t,e)=>{const l=this.sort.attr,a=this.sort.desc;let i=t[l],s=e[l];return"number"===typeof i||"number"===typeof s?(i=i||0,s=s||0,a?s-i:i-s):(i=(i||"").toString().toLowerCase(),s=(s||"").toString().toLowerCase(),a?s.localeCompare(i):i.localeCompare(s))})).map((t=>({item_type:t.type,...t,type:"jellyfin"}))):[]}},methods:{async refresh(){const t=this.collection?.name;if(t?.length){this.loading_=!0;try{this.items=await this.request("media.jellyfin.search",{collection:t,limit:1e3})}finally{this.loading_=!1}}}},watch:{collection(){this.refresh()}}};const s=i;var o=s},47:function(t,e,l){l.r(e),l.d(e,{default:function(){return o}});var a=l(2002),i={mixins:[a.A],emits:["add-to-playlist","back","create-playlist","download","download-audio","path-change","play","remove-from-playlist","remove-playlist","rename-playlist"],props:{filter:{type:String,default:""},loading:{type:Boolean,default:!1},mediaPlugin:{type:String},selectedPlaylist:{default:null},selectedChannel:{default:null}},data(){return{loading_:!1}},computed:{isLoading(){return this.loading||this.loading_}}};const s=i;var o=s}}]);
//# sourceMappingURL=2012.c9bfb2bc.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +0,0 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3644],{3644:function(e,t,s){s.r(t),s.d(t,{default:function(){return h}});var l=s(641),a=s(33);const o={class:"collections items"},i=["onClick"],r={class:"image"},n=["src","alt","onError"],c={key:0,class:"name"},m={key:1,class:"float bottom-right"};function u(e,t,s,u,f,d){return(0,l.uX)(),(0,l.CE)("div",{class:(0,a.C4)(["collections index",{"is-root":!s.parentId}])},[(0,l.Lk)("div",o,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(d.filteredItems,(t=>((0,l.uX)(),(0,l.CE)("div",{class:"collection item",key:t.id,onClick:s=>e.$emit("select",t)},[(0,l.Lk)("div",r,[f.fallbackImageCollections[t.id]?((0,l.uX)(),(0,l.CE)("i",{key:1,class:(0,a.C4)(d.collectionsIcons[t.type]??"fas fa-folder")},null,2)):((0,l.uX)(),(0,l.CE)("img",{key:0,src:t.image,alt:t.name,onError:e=>d.onImageError(t)},null,40,n))]),f.fallbackImageCollections[t.id]||s.parentId?((0,l.uX)(),(0,l.CE)("div",c,[(0,l.Lk)("h2",null,(0,a.v_)(t.name),1)])):(0,l.Q3)("",!0),t.year?((0,l.uX)(),(0,l.CE)("div",m,[(0,l.Lk)("span",null,(0,a.v_)(t.year),1)])):(0,l.Q3)("",!0)],8,i)))),128))])],2)}var f={props:{filter:{type:String},items:{type:Array,default:()=>[]},batchItems:{type:Number,default:100},parentId:{type:String}},data(){return{fallbackImageCollections:{},maxResultIndex:this.batchItems}},computed:{collectionsIcons(){return{books:"fas fa-book",homevideos:"fas fa-video",movies:"fas fa-film",music:"fas fa-music",playlists:"fas fa-list",photos:"fas fa-image",series:"fas fa-tv"}},filteredItems(){return Object.values(this.items).filter((e=>!this.filter||e.name.toLowerCase().includes(this.filter.toLowerCase()))).sort(((e,t)=>"album"===e.item_type&&"album"===t.item_type&&e.year&&t.year&&e.year!==t.year?t.year-e.year:e.name.localeCompare(t.name))).slice(0,this.maxResultIndex)}},methods:{onImageError(e){this.fallbackImageCollections[e.id]=!0},onScroll(e){const t=e.target;if(!t)return;const s=t.scrollHeight-t.scrollTop<=t.clientHeight+150;s&&(this.maxResultIndex+=this.batchItems)}},mounted(){this.$el.parentElement?.addEventListener("scroll",this.onScroll)},unmounted(){this.$el.parentElement?.removeEventListener("scroll",this.onScroll)}},d=s(6262);const p=(0,d.A)(f,[["render",u],["__scopeId","data-v-7f4d435e"]]);var h=p}}]);
//# sourceMappingURL=3644.921ecbfc.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +0,0 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5766],{5766:function(e,t,l){l.r(t),l.d(t,{default:function(){return _}});var i=l(641);const o={class:"videos index"},s={key:1,class:"wrapper music-wrapper"},n={key:3,class:"wrapper items-wrapper"};function c(e,t,l,c,a,r){const d=(0,i.g2)("Loading"),m=(0,i.g2)("Music"),u=(0,i.g2)("NoItems"),p=(0,i.g2)("Collections"),h=(0,i.g2)("Results");return(0,i.uX)(),(0,i.CE)("div",o,[e.isLoading?((0,i.uX)(),(0,i.Wv)(d,{key:0})):"music"===e.collection?.collection_type?((0,i.uX)(),(0,i.CE)("div",s,[(0,i.bF)(m,{collection:e.collection,filter:e.filter,loading:e.isLoading,path:e.path,onPlay:t[0]||(t[0]=t=>e.$emit("play",t)),onPlayWithOpts:t[1]||(t[1]=t=>e.$emit("play-with-opts",t)),onSelect:t[2]||(t[2]=t=>{e.selectedResult=t,e.$emit("select",t)}),onSelectCollection:r.selectCollection,onView:t[3]||(t[3]=t=>e.$emit("view",t))},null,8,["collection","filter","loading","path","onSelectCollection"])])):e.items?.length?((0,i.uX)(),(0,i.CE)("div",n,[r.collections.length>0?((0,i.uX)(),(0,i.Wv)(p,{key:0,collection:e.collection,filter:e.filter,items:r.collections,loading:e.isLoading,"parent-id":e.collection?.id,onSelect:r.selectCollection},null,8,["collection","filter","items","loading","parent-id","onSelect"])):(0,i.Q3)("",!0),r.mediaItems.length>0?((0,i.uX)(),(0,i.Wv)(h,{key:1,results:r.mediaItems,sources:{jellyfin:!0},filter:e.filter,"selected-result":e.selectedResult,onAddToPlaylist:t[4]||(t[4]=t=>e.$emit("add-to-playlist",t)),onDownload:t[5]||(t[5]=t=>e.$emit("download",t)),onPlay:t[6]||(t[6]=t=>e.$emit("play",t)),onPlayWithOpts:t[7]||(t[7]=t=>e.$emit("play-with-opts",t)),onRemoveFromPlaylist:t[8]||(t[8]=t=>e.$emit("remove-from-playlist",t)),onSelect:r.selectItem,onView:t[9]||(t[9]=t=>e.$emit("view",t))},null,8,["results","filter","selected-result","onSelect"])):(0,i.Q3)("",!0)])):((0,i.uX)(),(0,i.Wv)(u,{key:2,"with-shadow":!1},{default:(0,i.k6)((()=>[(0,i.eW)(" No videos found. ")])),_:1}))])}var a=l(3644),r=l(9828),d=l(2012),m=l(3006),u=l(6561),p=l(1101),h={mixins:[d["default"]],emits:["select","select-collection"],components:{Collections:a["default"],Loading:r.A,Music:m["default"],NoItems:u.A,Results:p.A},computed:{collections(){return this.sortedItems?.filter((e=>"collection"===e.item_type))??[]},mediaItems(){const e=this.sortedItems?.filter((e=>"collection"!==e.item_type))??[];return!this.collection||this.collection.collection_type&&"books"!==this.collection.collection_type?e:e.sort(((e,t)=>{if(e.created_at&&t.created_at)return new Date(e.created_at)<new Date(t.created_at);if(e.created_at)return-1;if(t.created_at)return 1;let l=[e.name||e.title||"",t.name||t.title||""];return l[0].localeCompare(l[1])}))}},methods:{selectCollection(e){this.$emit("select-collection",{type:"homevideos",...e})},selectItem(e){const t=this.items[e];"book"===t.item_type&&t.embed_url?window.open(t.embed_url,"_blank"):this.selectedResult=e},async init(){const e=this.getUrlArgs();let t=e?.collection;if(t){this.loading_=!0;try{t=await this.request("media.jellyfin.info",{item_id:t}),t&&this.selectCollection(t)}finally{this.loading_=!1}}},async refresh(){if("music"!==this.collection?.collection_type){this.loading_=!0;try{"tvshows"===this.collection?.collection_type?this.items=(await this.request("media.jellyfin.get_collections",{parent_id:this.collection.id})).map((e=>({...e,item_type:"collection"}))):this.items=this.collection?.id?await this.request("media.jellyfin.get_items",{parent_id:this.collection.id,limit:25e3}):(await this.request("media.jellyfin.get_collections")).map((e=>({...e,item_type:"collection"})))}finally{this.loading_=!1}}}},async mounted(){this.init(),await this.refresh()}},y=l(6262);const f=(0,y.A)(h,[["render",c],["__scopeId","data-v-46a825e6"]]);var _=f}}]);
//# sourceMappingURL=5766.9c4ce145.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +0,0 @@
(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7896],{7896:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return I}});var t=i(641);const d={class:"plugin"};function o(e,n,i,o,a,r){const s=(0,t.g2)("Loading");return(0,t.uX)(),(0,t.CE)("div",d,[a.loading?((0,t.uX)(),(0,t.Wv)(s,{key:0})):a.component?((0,t.uX)(),(0,t.Wv)((0,t.$y)(a.component),{key:1,config:a.config},null,8,["config"])):(0,t.Q3)("",!0)])}var a=i(2002),r=i(9828),s=i(953),c={name:"Plugin",components:{Loading:r.A},mixins:[a.A],props:{pluginName:{type:String,required:!0}},data(){return{loading:!1,component:null,config:{}}},computed:{componentName(){return this.pluginName.split(".").map((e=>e[0].toUpperCase()+e.slice(1))).join("")}},methods:{refresh:async function(){this.loading=!0;try{this.component=(0,s.IJ)((0,t.$V)((()=>i(7672)(`./${this.componentName}/Index`)))),this.$options.components[this.componentName]=this.component,this.config=(await this.request("config.get_plugins"))?.[this.pluginName]||{}}finally{this.loading=!1}}},mounted:function(){this.refresh()}},u=i(6262);const x=(0,u.A)(c,[["render",o],["__scopeId","data-v-69b17daa"]]);var I=x},7672:function(e,n,i){var t={"./Alarm/Index":[8597,9769,5184,3841,1146,1861,3162,9878,933,2561,2716,648,572,6027,5928,9456,7594,343,3045,6360],"./Camera/Index":[9284,6903],"./CameraAndroidIpcam/Index":[2981,2981],"./CameraCv/Index":[2908,6903,2908],"./CameraFfmpeg/Index":[6973,6903,6973],"./CameraGstreamer/Index":[5783,6903,5783],"./CameraIrMlx90640/Index":[8636,6903,8636],"./CameraPi/Index":[3671,6903,3671],"./CameraPiLegacy/Index":[8357,6903,8357],"./Entities/Index":[1131,3841,1146,1861,5799,2486,343,1131,2256],"./Execute/Index":[8567,1146,9878,2561,5928,1381],"./Extensions/Index":[7908,1146,9878,2561,572,6027,6592,7908,6730],"./File/Index":[2061,1146,1861,3162,9878,933,2716,648,1562],"./Light/Index":[6298,9769,5184,6298],"./LightHue/Index":[9318,9769,5184,6298,9318],"./Media/Index":[1093,5184,1146,1861,3162,9878,933,2716,648,6157,4787,1101,6777,1093],"./Media/Providers/Jellyfin/views/Media/Index":[5766,3841,1146,1861,1450,1101,3006,4272,8728],"./Media/Providers/Jellyfin/views/Movies/Index":[2436,3841,1146,1861,3162,1101,1008,6556,4267],"./Media/Providers/Jellyfin/views/Music/Index":[3006,3841,1146,1861,1450,1101,3006,5279],"./Media/Providers/YouTube/Index":[9476,9476],"./MediaChromecast/Index":[1684,5184,1146,1861,3162,9878,933,2716,648,6157,4787,1101,6777,1093,1684],"./MediaGstreamer/Index":[9145,5184,1146,1861,3162,9878,933,2716,648,6157,4787,1101,6777,1093,9145],"./MediaMplayer/Index":[7839,5184,1146,1861,3162,9878,933,2716,648,6157,4787,1101,6777,1093,7839],"./MediaMpv/Index":[9388,5184,1146,1861,3162,9878,933,2716,648,6157,4787,1101,6777,1093,9388],"./MediaVlc/Index":[6372,5184,1146,1861,3162,9878,933,2716,648,6157,4787,1101,6777,1093,6372],"./Music/Index":[4834,5184,1146,1861,6157,4787,4834],"./MusicMopidy/Index":[7533,5184,1146,1861,6157,4787,4834,7533],"./MusicMpd/Index":[560,5184,1146,1861,6157,4787,4834,560],"./MusicSnapcast/Index":[6564,9769,5184,6564],"./MusicSpotify/Index":[7299,5184,1146,1861,6157,4787,4834,7299],"./Procedures/Index":[9636,3841,1146,3162,9878,933,2561,572,6027,5928,9456,6923,343,9636],"./Rtorrent/Index":[8499,1146,1861,6777,9142,8499],"./Settings/Index":[4050,9769,3841,1146,1861,3162,2561,806,6592,4050],"./Settings/Tokens/Index":[806,3841,1146,1861,2561,806],"./Sound/Index":[7158,7158],"./Torrent/Index":[7098,1146,1861,6777,9142,7098],"./Tts/Index":[2392,8946,2392],"./TtsGoogle/Index":[1526,8946,1526],"./TtsPicovoice/Index":[8191,8946,8191],"./TvSamsungWs/Index":[4387,4387],"./ZigbeeMqtt/Index":[7630,9769,5184,1146,1861,7630],"./Zwave/Index":[9313,9769,5184,1146,1861,3290,9313],"./ZwaveMqtt/Index":[5145,9769,5184,1146,1861,3290,5145]};function d(e){if(!i.o(t,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=t[e],d=n[0];return Promise.all(n.slice(1).map(i.e)).then((function(){return i(d)}))}d.keys=function(){return Object.keys(t)},d.id=7672,e.exports=d}}]);
//# sourceMappingURL=7896.4541d4f1.js.map

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7896],{7896:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return I}});var t=i(641);const d={class:"plugin"};function o(e,n,i,o,a,r){const s=(0,t.g2)("Loading");return(0,t.uX)(),(0,t.CE)("div",d,[a.loading?((0,t.uX)(),(0,t.Wv)(s,{key:0})):a.component?((0,t.uX)(),(0,t.Wv)((0,t.$y)(a.component),{key:1,config:a.config},null,8,["config"])):(0,t.Q3)("",!0)])}var a=i(2002),r=i(9828),s=i(953),c={name:"Plugin",components:{Loading:r.A},mixins:[a.A],props:{pluginName:{type:String,required:!0}},data(){return{loading:!1,component:null,config:{}}},computed:{componentName(){return this.pluginName.split(".").map((e=>e[0].toUpperCase()+e.slice(1))).join("")}},methods:{refresh:async function(){this.loading=!0;try{this.component=(0,s.IJ)((0,t.$V)((()=>i(7672)(`./${this.componentName}/Index`)))),this.$options.components[this.componentName]=this.component,this.config=(await this.request("config.get_plugins"))?.[this.pluginName]||{}}finally{this.loading=!1}}},mounted:function(){this.refresh()}},u=i(6262);const x=(0,u.A)(c,[["render",o],["__scopeId","data-v-69b17daa"]]);var I=x},7672:function(e,n,i){var t={"./Alarm/Index":[8597,9769,5184,3841,1146,1861,3162,9878,4280,933,2561,2716,648,572,6027,5928,7329,7594,343,3045,6360],"./Camera/Index":[9284,6903],"./CameraAndroidIpcam/Index":[2981,2981],"./CameraCv/Index":[2908,6903,2908],"./CameraFfmpeg/Index":[6973,6903,6973],"./CameraGstreamer/Index":[5783,6903,5783],"./CameraIrMlx90640/Index":[8636,6903,8636],"./CameraPi/Index":[3671,6903,3671],"./CameraPiLegacy/Index":[8357,6903,8357],"./Entities/Index":[1131,3841,1146,1861,5799,2486,343,1131,2256],"./Execute/Index":[8567,1146,9878,2561,5928,1381],"./Extensions/Index":[7908,1146,9878,2561,572,6027,6592,7908,6730],"./File/Index":[2061,1146,1861,3162,9878,933,2716,648,1562],"./Light/Index":[6298,9769,5184,6298],"./LightHue/Index":[9318,9769,5184,6298,9318],"./Media/Index":[1093,5184,1146,1861,3162,9878,4280,933,2716,648,6157,4787,3149,6777,1093],"./Media/Providers/Jellyfin/views/Media/Index":[1252,3841,1146,1861,3162,4280,2353,3149,6541,1191,3447],"./Media/Providers/Jellyfin/views/Movies/Index":[2436,3841,1146,1861,3162,4280,3149,1008,6556,4267],"./Media/Providers/Jellyfin/views/Music/Index":[6541,3841,1146,1861,3162,4280,2353,3149,6541,28],"./Media/Providers/YouTube/Index":[9476,9476],"./MediaChromecast/Index":[1684,5184,1146,1861,3162,9878,4280,933,2716,648,6157,4787,3149,6777,1093,1684],"./MediaGstreamer/Index":[9145,5184,1146,1861,3162,9878,4280,933,2716,648,6157,4787,3149,6777,1093,9145],"./MediaMplayer/Index":[7839,5184,1146,1861,3162,9878,4280,933,2716,648,6157,4787,3149,6777,1093,7839],"./MediaMpv/Index":[9388,5184,1146,1861,3162,9878,4280,933,2716,648,6157,4787,3149,6777,1093,9388],"./MediaVlc/Index":[6372,5184,1146,1861,3162,9878,4280,933,2716,648,6157,4787,3149,6777,1093,6372],"./Music/Index":[4834,5184,1146,1861,6157,4787,4834],"./MusicMopidy/Index":[7533,5184,1146,1861,6157,4787,4834,7533],"./MusicMpd/Index":[560,5184,1146,1861,6157,4787,4834,560],"./MusicSnapcast/Index":[6564,9769,5184,6564],"./MusicSpotify/Index":[7299,5184,1146,1861,6157,4787,4834,7299],"./Procedures/Index":[9636,3841,1146,3162,9878,4280,933,2561,572,6027,5928,7329,6923,343,9636],"./Rtorrent/Index":[8499,1146,1861,6777,9142,8499],"./Settings/Index":[4050,9769,3841,1146,1861,3162,2561,806,6592,4050],"./Settings/Tokens/Index":[806,3841,1146,1861,2561,806],"./Sound/Index":[7158,7158],"./Torrent/Index":[7098,1146,1861,6777,9142,7098],"./Tts/Index":[2392,8946,2392],"./TtsGoogle/Index":[1526,8946,1526],"./TtsPicovoice/Index":[8191,8946,8191],"./TvSamsungWs/Index":[4387,4387],"./ZigbeeMqtt/Index":[7630,9769,5184,1146,1861,7630],"./Zwave/Index":[9313,9769,5184,1146,1861,3290,9313],"./ZwaveMqtt/Index":[5145,9769,5184,1146,1861,3290,5145]};function d(e){if(!i.o(t,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=t[e],d=n[0];return Promise.all(n.slice(1).map(i.e)).then((function(){return i(d)}))}d.keys=function(){return Object.keys(t)},d.id=7672,e.exports=d}}]);
//# sourceMappingURL=7896.b6fd13d9.js.map

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8411],{8411:function(e,t,l){l.r(t),l.d(t,{default:function(){return E}});var a=l(641),s=l(33),i=l(3751);const o=e=>((0,a.Qi)("data-v-2b3713e6"),e=e(),(0,a.jt)(),e),n={class:"collections items"},c=["onClick"],r={class:"image"},u=["src","alt","onError"],m={key:0,class:"name"},d={key:1,class:"float bottom-right"},y={key:0,class:"add-playlist floating-btn-container"},f={key:1,class:"add-playlist-modal"},p=o((()=>(0,a.Lk)("div",{class:"row"},[(0,a.Lk)("label",{for:"newPlaylistName"},"Playlist Name"),(0,a.Lk)("input",{name:"name",type:"text",id:"newPlaylistName",placeholder:"Playlist Name",required:""})],-1))),h=o((()=>(0,a.Lk)("div",{class:"row"},[(0,a.Lk)("label",{for:"newPlaylistPublic"},"Public"),(0,a.Lk)("input",{name:"public",type:"checkbox",checked:"",id:"newPlaylistPublic"})],-1))),b={class:"row buttons"},k=o((()=>(0,a.Lk)("button",{type:"submit"},"Create",-1)));function C(e,t,l,o,C,v){const g=(0,a.g2)("FloatingButton"),w=(0,a.g2)("Modal");return(0,a.uX)(),(0,a.CE)("div",{class:(0,s.C4)(["collections index",{"is-root":!l.parentId}])},[(0,a.Lk)("div",n,[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(v.filteredItems,(t=>((0,a.uX)(),(0,a.CE)("div",{class:"collection item",key:t.id,onClick:l=>e.$emit("select",t)},[(0,a.Lk)("div",r,[C.fallbackImageCollections[t.id]?((0,a.uX)(),(0,a.CE)("i",{key:1,class:(0,s.C4)(v.collectionsIcons[t.type]??"fas fa-folder")},null,2)):((0,a.uX)(),(0,a.CE)("img",{key:0,src:t.image,alt:t.name,onError:e=>v.onImageError(t)},null,40,u))]),C.fallbackImageCollections[t.id]||l.parentId?((0,a.uX)(),(0,a.CE)("div",m,[(0,a.Lk)("h2",null,(0,s.v_)(t.name),1)])):(0,a.Q3)("",!0),t.year?((0,a.uX)(),(0,a.CE)("div",d,[(0,a.Lk)("span",null,(0,s.v_)(t.year),1)])):(0,a.Q3)("",!0)],8,c)))),128))]),v.isPlaylistsCollection?((0,a.uX)(),(0,a.CE)("div",y,[(0,a.bF)(g,{"icon-class":"fa fa-plus",title:"Create Playlist",disabled:C.loading,onClick:t[0]||(t[0]=e=>C.showNewPlaylist=!0)},null,8,["disabled"])])):(0,a.Q3)("",!0),C.showNewPlaylist?((0,a.uX)(),(0,a.CE)("div",f,[(0,a.bF)(w,{title:"Create Playlist",visible:!0,onClose:t[3]||(t[3]=e=>C.showNewPlaylist=!1)},{default:(0,a.k6)((()=>[(0,a.Lk)("form",{class:"modal-body",onSubmit:t[2]||(t[2]=(0,i.D$)(((...e)=>v.createPlaylist&&v.createPlaylist(...e)),["prevent"]))},[p,h,(0,a.Lk)("div",b,[(0,a.Lk)("button",{type:"button",onClick:t[1]||(t[1]=e=>C.showNewPlaylist=!1)},"Cancel"),k])],32)])),_:1})])):(0,a.Q3)("",!0)],2)}var v=l(7998),g=l(9513),w=l(2002),P={mixins:[w.A],emits:["refresh","select"],components:{FloatingButton:v.A,Modal:g.A},props:{collection:{type:Object},filter:{type:String},items:{type:Array,default:()=>[]},batchItems:{type:Number,default:100},parentId:{type:String}},data(){return{fallbackImageCollections:{},loading:!1,maxResultIndex:this.batchItems,showNewPlaylist:!1}},computed:{collectionsIcons(){return{books:"fas fa-book",homevideos:"fas fa-video",movies:"fas fa-film",music:"fas fa-music",playlists:"fas fa-list",photos:"fas fa-image",series:"fas fa-tv"}},filteredItems(){return Object.values(this.items).filter((e=>!this.filter||e.name.toLowerCase().includes(this.filter.toLowerCase()))).sort(((e,t)=>"album"===e.item_type&&"album"===t.item_type&&e.year&&t.year&&e.year!==t.year?t.year-e.year:e.name.localeCompare(t.name))).slice(0,this.maxResultIndex)},isPlaylistsCollection(){return"playlists"===this.collection?.collection_type}},methods:{async createPlaylist(e){const t=new FormData(e.target);await this.request("media.jellyfin.create_playlist",{name:t.get("name"),public:"on"===t.get("public")}),this.$emit("refresh")},onImageError(e){this.fallbackImageCollections[e.id]=!0},onScroll(e){const t=e.target;if(!t)return;const l=t.scrollHeight-t.scrollTop<=t.clientHeight+150;l&&(this.maxResultIndex+=this.batchItems)}},watch:{showNewPlaylist(e){e&&this.$nextTick((()=>this.$el.querySelector('input[name="name"]').focus()))}},mounted(){this.$el.parentElement?.addEventListener("scroll",this.onScroll)},unmounted(){this.$el.parentElement?.removeEventListener("scroll",this.onScroll)}},I=l(6262);const L=(0,I.A)(P,[["render",C],["__scopeId","data-v-2b3713e6"]]);var E=L}}]);
//# sourceMappingURL=8411.3937e4f2.js.map

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8619],{6561:function(e,t,o){o.d(t,{A:function(){return r}});var n=o(641),a=o(33);const d={class:"no-items-container"};function l(e,t,o,l,s,i){return(0,n.uX)(),(0,n.CE)("div",d,[(0,n.Lk)("div",{class:(0,a.C4)(["no-items fade-in",{shadow:o.withShadow}])},[(0,n.RG)(e.$slots,"default",{},void 0,!0)],2)])}var s={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},i=o(6262);const u=(0,i.A)(s,[["render",l],["__scopeId","data-v-4856c4d7"]]);var r=u},8619:function(e,t,o){o.r(t),o.d(t,{default:function(){return f}});var n=o(641);const a={class:"media-youtube-feed"};function d(e,t,o,d,l,s){const i=(0,n.g2)("Loading"),u=(0,n.g2)("NoItems"),r=(0,n.g2)("Results");return(0,n.uX)(),(0,n.CE)("div",a,[s.isLoading?((0,n.uX)(),(0,n.Wv)(i,{key:0})):l.feed?.length?((0,n.uX)(),(0,n.Wv)(r,{key:2,results:l.feed,filter:o.filter,sources:{youtube:!0},"selected-result":l.selectedResult,onAddToPlaylist:t[0]||(t[0]=t=>e.$emit("add-to-playlist",t)),onDownload:t[1]||(t[1]=t=>e.$emit("download",t)),onDownloadAudio:t[2]||(t[2]=t=>e.$emit("download-audio",t)),onOpenChannel:t[3]||(t[3]=t=>e.$emit("open-channel",t)),onSelect:t[4]||(t[4]=e=>l.selectedResult=e),onPlay:t[5]||(t[5]=t=>e.$emit("play",t)),onPlayWithOpts:t[6]||(t[6]=t=>e.$emit("play-with-opts",t)),onView:t[7]||(t[7]=t=>e.$emit("view",t))},null,8,["results","filter","selected-result"])):((0,n.uX)(),(0,n.Wv)(u,{key:1,"with-shadow":!1},{default:(0,n.k6)((()=>[(0,n.eW)(" No videos found. ")])),_:1}))])}var l=o(6561),s=o(9828),i=o(1101),u=o(2002),r={mixins:[u.A],emits:["add-to-playlist","download","download-audio","open-channel","play","play-with-opts","view"],components:{Loading:s.A,NoItems:l.A,Results:i.A},props:{filter:{type:String,default:null},loading:{type:Boolean,default:!1}},data(){return{feed:[],loading_:!1,selectedResult:null}},computed:{isLoading(){return this.loading_||this.loading}},methods:{async loadFeed(){this.loading_=!0;try{this.feed=(await this.request("youtube.get_feed")).map((e=>({...e,type:"youtube"})))}finally{this.loading_=!1}}},mounted(){this.loadFeed()}},c=o(6262);const p=(0,c.A)(r,[["render",d],["__scopeId","data-v-3656a799"]]);var f=p}}]);
//# sourceMappingURL=8619.f8640efe.js.map
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8619],{6561:function(e,t,o){o.d(t,{A:function(){return r}});var n=o(641),a=o(33);const d={class:"no-items-container"};function l(e,t,o,l,s,i){return(0,n.uX)(),(0,n.CE)("div",d,[(0,n.Lk)("div",{class:(0,a.C4)(["no-items fade-in",{shadow:o.withShadow}])},[(0,n.RG)(e.$slots,"default",{},void 0,!0)],2)])}var s={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},i=o(6262);const u=(0,i.A)(s,[["render",l],["__scopeId","data-v-4856c4d7"]]);var r=u},8619:function(e,t,o){o.r(t),o.d(t,{default:function(){return f}});var n=o(641);const a={class:"media-youtube-feed"};function d(e,t,o,d,l,s){const i=(0,n.g2)("Loading"),u=(0,n.g2)("NoItems"),r=(0,n.g2)("Results");return(0,n.uX)(),(0,n.CE)("div",a,[s.isLoading?((0,n.uX)(),(0,n.Wv)(i,{key:0})):l.feed?.length?((0,n.uX)(),(0,n.Wv)(r,{key:2,results:l.feed,filter:o.filter,sources:{youtube:!0},"selected-result":l.selectedResult,onAddToPlaylist:t[0]||(t[0]=t=>e.$emit("add-to-playlist",t)),onDownload:t[1]||(t[1]=t=>e.$emit("download",t)),onDownloadAudio:t[2]||(t[2]=t=>e.$emit("download-audio",t)),onOpenChannel:t[3]||(t[3]=t=>e.$emit("open-channel",t)),onSelect:t[4]||(t[4]=e=>l.selectedResult=e),onPlay:t[5]||(t[5]=t=>e.$emit("play",t)),onPlayWithOpts:t[6]||(t[6]=t=>e.$emit("play-with-opts",t)),onView:t[7]||(t[7]=t=>e.$emit("view",t))},null,8,["results","filter","selected-result"])):((0,n.uX)(),(0,n.Wv)(u,{key:1,"with-shadow":!1},{default:(0,n.k6)((()=>[(0,n.eW)(" No videos found. ")])),_:1}))])}var l=o(6561),s=o(9828),i=o(3149),u=o(2002),r={mixins:[u.A],emits:["add-to-playlist","download","download-audio","open-channel","play","play-with-opts","view"],components:{Loading:s.A,NoItems:l.A,Results:i.A},props:{filter:{type:String,default:null},loading:{type:Boolean,default:!1}},data(){return{feed:[],loading_:!1,selectedResult:null}},computed:{isLoading(){return this.loading_||this.loading}},methods:{async loadFeed(){this.loading_=!0;try{this.feed=(await this.request("youtube.get_feed")).map((e=>({...e,type:"youtube"})))}finally{this.loading_=!1}}},mounted(){this.loadFeed()}},c=o(6262);const p=(0,c.A)(r,[["render",d],["__scopeId","data-v-3656a799"]]);var f=p}}]);
//# sourceMappingURL=8619.f5dc46e4.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long