[Automatic] Updated UI files

This commit is contained in:
Fabio Manganiello 2023-12-25 12:44:31 +00:00
parent ce1e8513d4
commit 2546a582d2
Signed by: blacklight
GPG key ID: AD6D273C08B82EC9
77 changed files with 77 additions and 77 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.e1112b55.js"></script><script defer="defer" src="/static/js/app.8c937346.js"></script><link href="/static/css/chunk-vendors.a2412607.css" rel="stylesheet"><link href="/static/css/app.8e7c68cf.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.e1112b55.js"></script><script defer="defer" src="/static/js/app.45cd778f.js"></script><link href="/static/css/chunk-vendors.a2412607.css" rel="stylesheet"><link href="/static/css/app.8e7c68cf.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

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2106],{2106:function(a,e,l){l.r(e),l.d(e,{default:function(){return $}});var i=l(6252),s=l(9963);const t=a=>((0,i.dD)("data-v-4e3d4a40"),a=a(),(0,i.Cn)(),a),n={class:"variable-modal-container"},r={class:"row"},o=t((()=>(0,i._)("div",{class:"col-s-12 col-m-4 label"},[(0,i._)("label",{for:"name"},"Variable Name")],-1))),d={class:"col-s-12 col-m-8 value"},u=["disabled"],c={class:"row"},v=t((()=>(0,i._)("div",{class:"col-s-12 col-m-4 label"},[(0,i._)("label",{for:"name"},"Variable Value")],-1))),m={class:"col-s-12 col-m-8 value"},b=["disabled"],h={class:"row button-container"},p=["disabled"],f=t((()=>(0,i._)("i",{class:"fas fa-check"},null,-1))),V=[f];function _(a,e,l,t,f,_){const y=(0,i.up)("Modal");return(0,i.wg)(),(0,i.j4)(y,{visible:l.visible,title:"Set Variable",ref:"modal",onOpen:_.onOpen,onClose:e[3]||(e[3]=e=>a.$emit("close",e))},{default:(0,i.w5)((()=>[(0,i._)("div",n,[(0,i._)("form",{onSubmit:e[2]||(e[2]=(0,s.iM)(((...a)=>_.setValue&&_.setValue(...a)),["prevent"]))},[(0,i._)("div",r,[o,(0,i._)("div",d,[(0,i.wy)((0,i._)("input",{type:"text",id:"variable-name","onUpdate:modelValue":e[0]||(e[0]=a=>f.varName=a),placeholder:"Variable Name",disabled:f.loading,ref:"varName"},null,8,u),[[s.nr,f.varName]])])]),(0,i._)("div",c,[v,(0,i._)("div",m,[(0,i.wy)((0,i._)("input",{type:"text",id:"variable-value","onUpdate:modelValue":e[1]||(e[1]=a=>f.varValue=a),ref:"varValue",placeholder:"Variable Value",disabled:f.loading},null,8,b),[[s.nr,f.varValue]])])]),(0,i._)("div",h,[(0,i._)("button",{type:"submit",title:"Set",disabled:f.loading},V,8,p)])],32)])])),_:1},8,["visible","onOpen"])}var y=l(3493),g=l(8637),w={name:"VariableModal",components:{Modal:y.Z},mixins:[g.Z],emits:["close"],props:{visible:{type:Boolean,default:!1}},data(){return{loading:!1,varName:null,varValue:null}},methods:{async clearValue(){this.loading=!0;try{await this.request("variable.unset",{name:this.varName.trim()})}finally{this.loading=!1}},async setValue(){const a=this.varName.trim();a?.length||this.notifyWarning("No variable name has been specified");const e=this.varValue;if(e?.length){this.loading=!0;try{const l={};l[a]=e,await this.request("variable.set",l)}finally{this.loading=!1}}else await this.clearValue();this.$refs.varName.value="",this.$refs.varValue.value="",this.$refs.modal.close()},onOpen(){this.$nextTick((()=>{this.$refs.varName.focus()}))}}},N=l(3744);const k=(0,N.Z)(w,[["render",_],["__scopeId","data-v-4e3d4a40"]]);var $=k}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2106],{2106:function(a,e,l){l.r(e),l.d(e,{default:function(){return $}});var i=l(6252),s=l(9963);const t=a=>((0,i.dD)("data-v-4e3d4a40"),a=a(),(0,i.Cn)(),a),n={class:"variable-modal-container"},r={class:"row"},o=t((()=>(0,i._)("div",{class:"col-s-12 col-m-4 label"},[(0,i._)("label",{for:"name"},"Variable Name")],-1))),d={class:"col-s-12 col-m-8 value"},u=["disabled"],c={class:"row"},v=t((()=>(0,i._)("div",{class:"col-s-12 col-m-4 label"},[(0,i._)("label",{for:"name"},"Variable Value")],-1))),m={class:"col-s-12 col-m-8 value"},b=["disabled"],h={class:"row button-container"},p=["disabled"],f=t((()=>(0,i._)("i",{class:"fas fa-check"},null,-1))),V=[f];function _(a,e,l,t,f,_){const y=(0,i.up)("Modal");return(0,i.wg)(),(0,i.j4)(y,{visible:l.visible,title:"Set Variable",ref:"modal",onOpen:_.onOpen,onClose:e[3]||(e[3]=e=>a.$emit("close",e))},{default:(0,i.w5)((()=>[(0,i._)("div",n,[(0,i._)("form",{onSubmit:e[2]||(e[2]=(0,s.iM)(((...a)=>_.setValue&&_.setValue(...a)),["prevent"]))},[(0,i._)("div",r,[o,(0,i._)("div",d,[(0,i.wy)((0,i._)("input",{type:"text",id:"variable-name","onUpdate:modelValue":e[0]||(e[0]=a=>f.varName=a),placeholder:"Variable Name",disabled:f.loading,ref:"varName"},null,8,u),[[s.nr,f.varName]])])]),(0,i._)("div",c,[v,(0,i._)("div",m,[(0,i.wy)((0,i._)("input",{type:"text",id:"variable-value","onUpdate:modelValue":e[1]||(e[1]=a=>f.varValue=a),ref:"varValue",placeholder:"Variable Value",disabled:f.loading},null,8,b),[[s.nr,f.varValue]])])]),(0,i._)("div",h,[(0,i._)("button",{type:"submit",title:"Set",disabled:f.loading},V,8,p)])],32)])])),_:1},8,["visible","onOpen"])}var y=l(3493),g=l(8637),w={name:"VariableModal",components:{Modal:y.Z},mixins:[g.Z],emits:["close"],props:{visible:{type:Boolean,default:!1}},data(){return{loading:!1,varName:null,varValue:null}},methods:{async clearValue(){this.loading=!0;try{await this.request("variable.unset",{name:this.varName.trim()})}finally{this.loading=!1}},async setValue(){const a=this.varName.trim();a?.length||this.notifyWarning("No variable name has been specified");const e=this.varValue;if(e?.length){this.loading=!0;try{const l={};l[a]=e,await this.request("variable.set",l)}finally{this.loading=!1}}else await this.clearValue();this.$refs.varName.value="",this.$refs.varValue.value="",this.$refs.modal.close()},onOpen(){this.$nextTick((()=>{this.$refs.varName.focus()}))}}},N=l(3744);const k=(0,N.Z)(w,[["render",_],["__scopeId","data-v-4e3d4a40"]]);var $=k}}]);
//# sourceMappingURL=2106.5b089fbb.js.map //# sourceMappingURL=2106.00c755d8.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2804],{3222:function(e,t,s){s.d(t,{Z:function(){return r}});var n=s(6252),l=s(3577);const o={class:"no-items-container"};function d(e,t,s,d,a,u){return(0,n.wg)(),(0,n.iD)("div",o,[(0,n._)("div",{class:(0,l.C_)(["no-items fade-in",{shadow:s.withShadow}])},[(0,n.WI)(e.$slots,"default",{},void 0,!0)],2)])}var a={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},u=s(3744);const i=(0,u.Z)(a,[["render",d],["__scopeId","data-v-4856c4d7"]]);var r=i},2804:function(e,t,s){s.r(t),s.d(t,{default:function(){return p}});var n=s(6252);const l={class:"media-youtube-feed"};function o(e,t,s,o,d,a){const u=(0,n.up)("Loading"),i=(0,n.up)("NoItems"),r=(0,n.up)("Results");return(0,n.wg)(),(0,n.iD)("div",l,[d.loading?((0,n.wg)(),(0,n.j4)(u,{key:0})):d.feed?.length?((0,n.wg)(),(0,n.j4)(r,{key:2,results:d.feed,filter:s.filter,sources:{youtube:!0},"selected-result":d.selectedResult,onSelect:t[0]||(t[0]=e=>d.selectedResult=e),onPlay:t[1]||(t[1]=t=>e.$emit("play",t))},null,8,["results","filter","selected-result"])):((0,n.wg)(),(0,n.j4)(i,{key:1,"with-shadow":!1},{default:(0,n.w5)((()=>[(0,n.Uk)(" No videos found. ")])),_:1}))])}var d=s(3222),a=s(6791),u=s(382),i=s(8637),r={emits:["play"],mixins:[i.Z],components:{Loading:a.Z,NoItems:d.Z,Results:u.Z},props:{filter:{type:String,default:null}},data(){return{feed:[],loading:!1,selectedResult:null}},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=s(3744);const f=(0,c.Z)(r,[["render",o],["__scopeId","data-v-1c632107"]]);var p=f}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2804],{3222:function(e,t,s){s.d(t,{Z:function(){return r}});var n=s(6252),l=s(3577);const o={class:"no-items-container"};function d(e,t,s,d,a,u){return(0,n.wg)(),(0,n.iD)("div",o,[(0,n._)("div",{class:(0,l.C_)(["no-items fade-in",{shadow:s.withShadow}])},[(0,n.WI)(e.$slots,"default",{},void 0,!0)],2)])}var a={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},u=s(3744);const i=(0,u.Z)(a,[["render",d],["__scopeId","data-v-4856c4d7"]]);var r=i},2804:function(e,t,s){s.r(t),s.d(t,{default:function(){return p}});var n=s(6252);const l={class:"media-youtube-feed"};function o(e,t,s,o,d,a){const u=(0,n.up)("Loading"),i=(0,n.up)("NoItems"),r=(0,n.up)("Results");return(0,n.wg)(),(0,n.iD)("div",l,[d.loading?((0,n.wg)(),(0,n.j4)(u,{key:0})):d.feed?.length?((0,n.wg)(),(0,n.j4)(r,{key:2,results:d.feed,filter:s.filter,sources:{youtube:!0},"selected-result":d.selectedResult,onSelect:t[0]||(t[0]=e=>d.selectedResult=e),onPlay:t[1]||(t[1]=t=>e.$emit("play",t))},null,8,["results","filter","selected-result"])):((0,n.wg)(),(0,n.j4)(i,{key:1,"with-shadow":!1},{default:(0,n.w5)((()=>[(0,n.Uk)(" No videos found. ")])),_:1}))])}var d=s(3222),a=s(6791),u=s(382),i=s(8637),r={emits:["play"],mixins:[i.Z],components:{Loading:a.Z,NoItems:d.Z,Results:u.Z},props:{filter:{type:String,default:null}},data(){return{feed:[],loading:!1,selectedResult:null}},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=s(3744);const f=(0,c.Z)(r,[["render",o],["__scopeId","data-v-1c632107"]]);var p=f}}]);
//# sourceMappingURL=2804.f616a6b1.js.map //# sourceMappingURL=2804.c59fb840.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2853],{5169:function(t,e,a){a.d(e,{Z:function(){return y}});var n=a(6252),l=a(9963);const i=t=>((0,n.dD)("data-v-a248454a"),t=t(),(0,n.Cn)(),t),s={class:"tts-container"},u={class:"field text-container"},r=["disabled"],d={class:"field lang-container"},o=["disabled"],c={class:"field buttons"},p=["disabled"],g=i((()=>(0,n._)("i",{class:"fa fa-volume-up"},null,-1))),f=[g];function v(t,e,a,i,g,v){return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("form",{onSubmit:e[0]||(e[0]=(0,l.iM)(((...t)=>v.talk&&v.talk(...t)),["prevent"]))},[(0,n._)("div",u,[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"text",placeholder:"Text to say",disabled:g.talking},null,8,r)])]),(0,n._)("div",d,[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"language",placeholder:"Language code",disabled:g.talking},null,8,o)])]),(0,n._)("div",c,[(0,n._)("button",{type:"submit",disabled:g.talking},f,8,p)])],32)])}var m=a(8637),b={name:"Panel",mixins:[m.Z],props:{pluginName:{type:String,required:!0}},data(){return{talking:!1}},methods:{async talk(t){const e=[...t.target.querySelectorAll("input")].reduce(((t,e)=>(e.value.length&&(t[e.name]=e.value),t)),{});this.talking=!0;try{await this.request(`${this.pluginName}.say`,e)}finally{this.talking=!1}}}},h=a(3744);const k=(0,h.Z)(b,[["render",v],["__scopeId","data-v-a248454a"]]);var y=k},7605:function(t,e,a){a.r(e),a.d(e,{default:function(){return d}});var n=a(6252);function l(t,e,a,l,i,s){const u=(0,n.up)("Panel");return(0,n.wg)(),(0,n.j4)(u,{"plugin-name":"tts.google"})}var i=a(5169),s={name:"Tts",components:{Panel:i.Z}},u=a(3744);const r=(0,u.Z)(s,[["render",l]]);var d=r}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2853],{5169:function(t,e,a){a.d(e,{Z:function(){return y}});var n=a(6252),l=a(9963);const i=t=>((0,n.dD)("data-v-a248454a"),t=t(),(0,n.Cn)(),t),s={class:"tts-container"},u={class:"field text-container"},r=["disabled"],d={class:"field lang-container"},o=["disabled"],c={class:"field buttons"},p=["disabled"],g=i((()=>(0,n._)("i",{class:"fa fa-volume-up"},null,-1))),f=[g];function v(t,e,a,i,g,v){return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("form",{onSubmit:e[0]||(e[0]=(0,l.iM)(((...t)=>v.talk&&v.talk(...t)),["prevent"]))},[(0,n._)("div",u,[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"text",placeholder:"Text to say",disabled:g.talking},null,8,r)])]),(0,n._)("div",d,[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"language",placeholder:"Language code",disabled:g.talking},null,8,o)])]),(0,n._)("div",c,[(0,n._)("button",{type:"submit",disabled:g.talking},f,8,p)])],32)])}var m=a(8637),b={name:"Panel",mixins:[m.Z],props:{pluginName:{type:String,required:!0}},data(){return{talking:!1}},methods:{async talk(t){const e=[...t.target.querySelectorAll("input")].reduce(((t,e)=>(e.value.length&&(t[e.name]=e.value),t)),{});this.talking=!0;try{await this.request(`${this.pluginName}.say`,e)}finally{this.talking=!1}}}},h=a(3744);const k=(0,h.Z)(b,[["render",v],["__scopeId","data-v-a248454a"]]);var y=k},7605:function(t,e,a){a.r(e),a.d(e,{default:function(){return d}});var n=a(6252);function l(t,e,a,l,i,s){const u=(0,n.up)("Panel");return(0,n.wg)(),(0,n.j4)(u,{"plugin-name":"tts.google"})}var i=a(5169),s={name:"Tts",components:{Panel:i.Z}},u=a(3744);const r=(0,u.Z)(s,[["render",l]]);var d=r}}]);
//# sourceMappingURL=2853.e423e726.js.map //# sourceMappingURL=2853.93d42562.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

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3732],{3732:function(t,a,e){e.r(a),e.d(a,{default:function(){return d}});var n=e(6252);function l(t,a,e,l,i,s){const u=(0,n.up)("Panel");return(0,n.wg)(),(0,n.j4)(u,{"plugin-name":"tts"})}var i=e(5169),s={name:"Tts",components:{Panel:i.Z}},u=e(3744);const r=(0,u.Z)(s,[["render",l]]);var d=r},5169:function(t,a,e){e.d(a,{Z:function(){return y}});var n=e(6252),l=e(9963);const i=t=>((0,n.dD)("data-v-a248454a"),t=t(),(0,n.Cn)(),t),s={class:"tts-container"},u={class:"field text-container"},r=["disabled"],d={class:"field lang-container"},c=["disabled"],o={class:"field buttons"},p=["disabled"],g=i((()=>(0,n._)("i",{class:"fa fa-volume-up"},null,-1))),f=[g];function v(t,a,e,i,g,v){return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("form",{onSubmit:a[0]||(a[0]=(0,l.iM)(((...t)=>v.talk&&v.talk(...t)),["prevent"]))},[(0,n._)("div",u,[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"text",placeholder:"Text to say",disabled:g.talking},null,8,r)])]),(0,n._)("div",d,[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"language",placeholder:"Language code",disabled:g.talking},null,8,c)])]),(0,n._)("div",o,[(0,n._)("button",{type:"submit",disabled:g.talking},f,8,p)])],32)])}var m=e(8637),b={name:"Panel",mixins:[m.Z],props:{pluginName:{type:String,required:!0}},data(){return{talking:!1}},methods:{async talk(t){const a=[...t.target.querySelectorAll("input")].reduce(((t,a)=>(a.value.length&&(t[a.name]=a.value),t)),{});this.talking=!0;try{await this.request(`${this.pluginName}.say`,a)}finally{this.talking=!1}}}},h=e(3744);const k=(0,h.Z)(b,[["render",v],["__scopeId","data-v-a248454a"]]);var y=k}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3732],{3732:function(t,a,e){e.r(a),e.d(a,{default:function(){return d}});var n=e(6252);function l(t,a,e,l,i,s){const u=(0,n.up)("Panel");return(0,n.wg)(),(0,n.j4)(u,{"plugin-name":"tts"})}var i=e(5169),s={name:"Tts",components:{Panel:i.Z}},u=e(3744);const r=(0,u.Z)(s,[["render",l]]);var d=r},5169:function(t,a,e){e.d(a,{Z:function(){return y}});var n=e(6252),l=e(9963);const i=t=>((0,n.dD)("data-v-a248454a"),t=t(),(0,n.Cn)(),t),s={class:"tts-container"},u={class:"field text-container"},r=["disabled"],d={class:"field lang-container"},c=["disabled"],o={class:"field buttons"},p=["disabled"],g=i((()=>(0,n._)("i",{class:"fa fa-volume-up"},null,-1))),f=[g];function v(t,a,e,i,g,v){return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("form",{onSubmit:a[0]||(a[0]=(0,l.iM)(((...t)=>v.talk&&v.talk(...t)),["prevent"]))},[(0,n._)("div",u,[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"text",placeholder:"Text to say",disabled:g.talking},null,8,r)])]),(0,n._)("div",d,[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"language",placeholder:"Language code",disabled:g.talking},null,8,c)])]),(0,n._)("div",o,[(0,n._)("button",{type:"submit",disabled:g.talking},f,8,p)])],32)])}var m=e(8637),b={name:"Panel",mixins:[m.Z],props:{pluginName:{type:String,required:!0}},data(){return{talking:!1}},methods:{async talk(t){const a=[...t.target.querySelectorAll("input")].reduce(((t,a)=>(a.value.length&&(t[a.name]=a.value),t)),{});this.talking=!0;try{await this.request(`${this.pluginName}.say`,a)}finally{this.talking=!1}}}},h=e(3744);const k=(0,h.Z)(b,[["render",v],["__scopeId","data-v-a248454a"]]);var y=k}}]);
//# sourceMappingURL=3732.3e87c919.js.map //# sourceMappingURL=3732.d8cbb959.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

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[6123,5762],{3222:function(e,n,t){t.d(n,{Z:function(){return d}});var l=t(6252),s=t(3577);const i={class:"no-items-container"};function a(e,n,t,a,r,o){return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",{class:(0,s.C_)(["no-items fade-in",{shadow:t.withShadow}])},[(0,l.WI)(e.$slots,"default",{},void 0,!0)],2)])}var r={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},o=t(3744);const c=(0,o.Z)(r,[["render",a],["__scopeId","data-v-4856c4d7"]]);var d=c},7018:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});var l=t(6252),s=t(3577);const i={class:"header"},a={class:"banner"},r=["src"],o={class:"row"},c=["href"],d={class:"image"},u=["src"],h={class:"info"},g=["href"],p={class:"description"};function f(e,n,t,f,m,y){const _=(0,l.up)("Loading"),w=(0,l.up)("Results");return(0,l.wg)(),(0,l.iD)("div",{class:"media-youtube-channel",onScroll:n[3]||(n[3]=(...e)=>y.onScroll&&y.onScroll(...e))},[m.loading?((0,l.wg)(),(0,l.j4)(_,{key:0})):m.channel?((0,l.wg)(),(0,l.iD)("div",{key:1,class:"channel",onScroll:n[2]||(n[2]=(...e)=>y.onScroll&&y.onScroll(...e))},[(0,l._)("div",i,[(0,l._)("div",a,[m.channel?.banner?.length?((0,l.wg)(),(0,l.iD)("img",{key:0,src:m.channel.banner},null,8,r)):(0,l.kq)("",!0)]),(0,l._)("div",o,[(0,l._)("a",{href:m.channel.url,target:"_blank",rel:"noopener noreferrer"},[(0,l._)("div",d,[m.channel?.image?.length?((0,l.wg)(),(0,l.iD)("img",{key:0,src:m.channel.image},null,8,u)):(0,l.kq)("",!0)])],8,c),(0,l._)("div",h,[(0,l._)("a",{class:"title",href:m.channel.url,target:"_blank",rel:"noopener noreferrer"},(0,s.zw)(m.channel?.name),9,g),(0,l._)("div",p,(0,s.zw)(m.channel?.description),1)])])]),(0,l.Wm)(w,{results:m.channel.items,filter:t.filter,"selected-result":m.selectedResult,ref:"results",onSelect:n[0]||(n[0]=e=>m.selectedResult=e),onPlay:n[1]||(n[1]=n=>e.$emit("play",n))},null,8,["results","filter","selected-result"])],32)):(0,l.kq)("",!0)],32)}t(7658);var m=t(6791),y=t(382),_=t(8637),w={emits:["play"],mixins:[_.Z],components:{Loading:m.Z,Results:y.Z},props:{id:{type:String,required:!0},filter:{type:String,default:null}},data(){return{channel:null,loading:!1,loadingNextPage:!1,selectedResult:null}},computed:{itemsByUrl(){return this.channel?.items.reduce(((e,n)=>(e[n.url]=n,e)),{})}},methods:{async loadChannel(){this.loading=!0;try{this.channel=await this.request("youtube.get_channel",{id:this.id})}finally{this.loading=!1}},async loadNextPage(){if(this.channel?.next_page_token&&!this.loadingNextPage)try{const e=await this.request("youtube.get_channel",{id:this.id,next_page_token:this.channel.next_page_token});this.channel.items.push(...e.items.filter((e=>!this.itemsByUrl[e.url]))),this.channel.next_page_token=e.next_page_token,this.$refs.results.maxResultIndex+=this.$refs.results.resultIndexStep}finally{this.loadingNextPage=!1}},onScroll(e){const n=e.target;if(!n)return;const t=n.scrollHeight-n.scrollTop<=n.clientHeight+150;t&&this.loadNextPage()}},mounted(){this.loadChannel()}},v=t(3744);const k=(0,v.Z)(w,[["render",f],["__scopeId","data-v-21b0d859"]]);var b=k},7425:function(e,n,t){t.r(n),t.d(n,{default:function(){return k}});var l=t(6252),s=t(3577);const i={class:"media-youtube-subscriptions"},a={key:0,class:"subscriptions-index"},r={key:2,class:"body grid"},o=["onClick"],c={class:"image"},d=["src","alt"],u={class:"title"},h={key:1,class:"subscription-body"};function g(e,n,t,g,p,f){const m=(0,l.up)("Loading"),y=(0,l.up)("NoItems"),_=(0,l.up)("Channel");return(0,l.wg)(),(0,l.iD)("div",i,[t.selectedChannel?((0,l.wg)(),(0,l.iD)("div",h,[(0,l.Wm)(_,{id:t.selectedChannel,filter:t.filter,onPlay:n[0]||(n[0]=n=>e.$emit("play",n))},null,8,["id","filter"])])):((0,l.wg)(),(0,l.iD)("div",a,[p.loading?((0,l.wg)(),(0,l.j4)(m,{key:0})):p.channels?.length?((0,l.wg)(),(0,l.iD)("div",r,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(f.channelsById,((n,t)=>((0,l.wg)(),(0,l.iD)("div",{class:"channel item",key:t,onClick:t=>e.$emit("select",n)},[(0,l._)("div",c,[(0,l._)("img",{src:n.image,alt:n.name},null,8,d)]),(0,l._)("div",u,(0,s.zw)(n.name),1)],8,o)))),128))])):((0,l.wg)(),(0,l.j4)(y,{key:1,"with-shadow":!1},{default:(0,l.w5)((()=>[(0,l.Uk)(" No channels found. ")])),_:1}))]))])}var p=t(7018),f=t(3222),m=t(6791),y=t(8637),_={emits:["play","select"],mixins:[y.Z],components:{Channel:p["default"],Loading:m.Z,NoItems:f.Z},props:{selectedChannel:{type:String,default:null},filter:{type:String,default:null}},data(){return{channels:[],loading:!1}},computed:{channelsById(){return this.channels.filter((e=>!this.filter||e.name.toLowerCase().includes(this.filter.toLowerCase()))).reduce(((e,n)=>(e[n.id]=n,e)),{})}},methods:{async loadSubscriptions(){this.loading=!0;try{this.channels=await this.request("youtube.get_subscriptions")}finally{this.loading=!1}}},mounted(){this.loadSubscriptions()}},w=t(3744);const v=(0,w.Z)(_,[["render",g],["__scopeId","data-v-3ff3db5a"]]);var k=v}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[6123,5762],{3222:function(e,n,t){t.d(n,{Z:function(){return d}});var l=t(6252),s=t(3577);const i={class:"no-items-container"};function a(e,n,t,a,r,o){return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",{class:(0,s.C_)(["no-items fade-in",{shadow:t.withShadow}])},[(0,l.WI)(e.$slots,"default",{},void 0,!0)],2)])}var r={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},o=t(3744);const c=(0,o.Z)(r,[["render",a],["__scopeId","data-v-4856c4d7"]]);var d=c},7018:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});var l=t(6252),s=t(3577);const i={class:"header"},a={class:"banner"},r=["src"],o={class:"row"},c=["href"],d={class:"image"},u=["src"],h={class:"info"},g=["href"],p={class:"description"};function f(e,n,t,f,m,y){const _=(0,l.up)("Loading"),w=(0,l.up)("Results");return(0,l.wg)(),(0,l.iD)("div",{class:"media-youtube-channel",onScroll:n[3]||(n[3]=(...e)=>y.onScroll&&y.onScroll(...e))},[m.loading?((0,l.wg)(),(0,l.j4)(_,{key:0})):m.channel?((0,l.wg)(),(0,l.iD)("div",{key:1,class:"channel",onScroll:n[2]||(n[2]=(...e)=>y.onScroll&&y.onScroll(...e))},[(0,l._)("div",i,[(0,l._)("div",a,[m.channel?.banner?.length?((0,l.wg)(),(0,l.iD)("img",{key:0,src:m.channel.banner},null,8,r)):(0,l.kq)("",!0)]),(0,l._)("div",o,[(0,l._)("a",{href:m.channel.url,target:"_blank",rel:"noopener noreferrer"},[(0,l._)("div",d,[m.channel?.image?.length?((0,l.wg)(),(0,l.iD)("img",{key:0,src:m.channel.image},null,8,u)):(0,l.kq)("",!0)])],8,c),(0,l._)("div",h,[(0,l._)("a",{class:"title",href:m.channel.url,target:"_blank",rel:"noopener noreferrer"},(0,s.zw)(m.channel?.name),9,g),(0,l._)("div",p,(0,s.zw)(m.channel?.description),1)])])]),(0,l.Wm)(w,{results:m.channel.items,filter:t.filter,"selected-result":m.selectedResult,ref:"results",onSelect:n[0]||(n[0]=e=>m.selectedResult=e),onPlay:n[1]||(n[1]=n=>e.$emit("play",n))},null,8,["results","filter","selected-result"])],32)):(0,l.kq)("",!0)],32)}t(7658);var m=t(6791),y=t(382),_=t(8637),w={emits:["play"],mixins:[_.Z],components:{Loading:m.Z,Results:y.Z},props:{id:{type:String,required:!0},filter:{type:String,default:null}},data(){return{channel:null,loading:!1,loadingNextPage:!1,selectedResult:null}},computed:{itemsByUrl(){return this.channel?.items.reduce(((e,n)=>(e[n.url]=n,e)),{})}},methods:{async loadChannel(){this.loading=!0;try{this.channel=await this.request("youtube.get_channel",{id:this.id})}finally{this.loading=!1}},async loadNextPage(){if(this.channel?.next_page_token&&!this.loadingNextPage)try{const e=await this.request("youtube.get_channel",{id:this.id,next_page_token:this.channel.next_page_token});this.channel.items.push(...e.items.filter((e=>!this.itemsByUrl[e.url]))),this.channel.next_page_token=e.next_page_token,this.$refs.results.maxResultIndex+=this.$refs.results.resultIndexStep}finally{this.loadingNextPage=!1}},onScroll(e){const n=e.target;if(!n)return;const t=n.scrollHeight-n.scrollTop<=n.clientHeight+150;t&&this.loadNextPage()}},mounted(){this.loadChannel()}},v=t(3744);const k=(0,v.Z)(w,[["render",f],["__scopeId","data-v-21b0d859"]]);var b=k},7425:function(e,n,t){t.r(n),t.d(n,{default:function(){return k}});var l=t(6252),s=t(3577);const i={class:"media-youtube-subscriptions"},a={key:0,class:"subscriptions-index"},r={key:2,class:"body grid"},o=["onClick"],c={class:"image"},d=["src","alt"],u={class:"title"},h={key:1,class:"subscription-body"};function g(e,n,t,g,p,f){const m=(0,l.up)("Loading"),y=(0,l.up)("NoItems"),_=(0,l.up)("Channel");return(0,l.wg)(),(0,l.iD)("div",i,[t.selectedChannel?((0,l.wg)(),(0,l.iD)("div",h,[(0,l.Wm)(_,{id:t.selectedChannel,filter:t.filter,onPlay:n[0]||(n[0]=n=>e.$emit("play",n))},null,8,["id","filter"])])):((0,l.wg)(),(0,l.iD)("div",a,[p.loading?((0,l.wg)(),(0,l.j4)(m,{key:0})):p.channels?.length?((0,l.wg)(),(0,l.iD)("div",r,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(f.channelsById,((n,t)=>((0,l.wg)(),(0,l.iD)("div",{class:"channel item",key:t,onClick:t=>e.$emit("select",n)},[(0,l._)("div",c,[(0,l._)("img",{src:n.image,alt:n.name},null,8,d)]),(0,l._)("div",u,(0,s.zw)(n.name),1)],8,o)))),128))])):((0,l.wg)(),(0,l.j4)(y,{key:1,"with-shadow":!1},{default:(0,l.w5)((()=>[(0,l.Uk)(" No channels found. ")])),_:1}))]))])}var p=t(7018),f=t(3222),m=t(6791),y=t(8637),_={emits:["play","select"],mixins:[y.Z],components:{Channel:p["default"],Loading:m.Z,NoItems:f.Z},props:{selectedChannel:{type:String,default:null},filter:{type:String,default:null}},data(){return{channels:[],loading:!1}},computed:{channelsById(){return this.channels.filter((e=>!this.filter||e.name.toLowerCase().includes(this.filter.toLowerCase()))).reduce(((e,n)=>(e[n.id]=n,e)),{})}},methods:{async loadSubscriptions(){this.loading=!0;try{this.channels=await this.request("youtube.get_subscriptions")}finally{this.loading=!1}}},mounted(){this.loadSubscriptions()}},w=t(3744);const v=(0,w.Z)(_,[["render",g],["__scopeId","data-v-3ff3db5a"]]);var k=v}}]);
//# sourceMappingURL=6123.d19ab89a.js.map //# sourceMappingURL=6123.e1e59c18.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[667],{667:function(e,t,s){s.r(t),s.d(t,{default:function(){return y}});var r=s(6252),i=s(9963);const o={class:"entities-selectors-container"},n={key:0,class:"selector search-container col-11"},l={class:"selector actions-container col-1 pull-right"};function c(e,t,s,c,u,a){const p=(0,r.up)("DropdownItem"),h=(0,r.up)("Dropdown");return(0,r.wg)(),(0,r.iD)("div",o,[Object.keys(s.entityGroups.id||{}).length?((0,r.wg)(),(0,r.iD)("div",n,[(0,r.wy)((0,r._)("input",{ref:"search",type:"text",class:"search-bar",title:"Filter by name, plugin or ID",placeholder:"🔎","onUpdate:modelValue":t[0]||(t[0]=e=>u.searchTerm=e)},null,512),[[i.nr,u.searchTerm]])])):(0,r.kq)("",!0),(0,r._)("div",l,[(0,r.Wm)(h,{title:"Actions","icon-class":"fas fa-ellipsis"},{default:(0,r.w5)((()=>[(0,r.Wm)(p,{"icon-class":"fas fa-sync-alt",text:"Refresh",onClick:t[1]||(t[1]=t=>e.$emit("refresh"))}),(0,r.Wm)(p,{"icon-class":"fas fa-square-root-variable",text:"Set Variable",onClick:t[2]||(t[2]=t=>e.$emit("show-variable-modal"))}),(0,r.Wm)(h,{title:"Group by",text:"Group by","icon-class":"fas fa-object-ungroup",ref:"groupingSelector"},{default:(0,r.w5)((()=>[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(a.visibleGroupings,(e=>((0,r.wg)(),(0,r.j4)(p,{key:e,text:a.prettifyGroupingName(e),"item-class":{selected:s.value?.grouping===e},onClick:t=>a.onGroupingChanged(e)},null,8,["text","item-class","onClick"])))),128))])),_:1},512),(0,r.Wm)(h,{title:"Filter groups",text:"Filter groups","icon-class":{fas:!0,"fa-filter":!0,active:a.hasActiveFilter},ref:"groupSelector","keep-open-on-item-click":""},{default:(0,r.w5)((()=>[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(a.sortedGroups,(e=>((0,r.wg)(),(0,r.j4)(p,(0,r.dG)({key:e,text:e},a.iconForGroup(e),{"item-class":{selected:!!u.selectedGroups[e]},onClick:(0,i.iM)((t=>a.toggleGroup(e)),["stop"])}),null,16,["text","item-class","onClick"])))),128))])),_:1},8,["icon-class"])])),_:1})])])}var u=s(8637),a=s(2787),p=s(815),h=s(7369),d=s(1359),g=s(5250),f={name:"Selector",emits:["input","refresh","show-variable-modal"],mixins:[u.Z],components:{Dropdown:a.Z,DropdownItem:p.Z},props:{entityGroups:{type:Object,required:!0},value:{type:Object,required:!0}},data(){return{selectedGroups:{},searchTerm:""}},computed:{visibleGroupings(){return Object.keys(this.entityGroups).filter((e=>"id"!==e))},hasActiveFilter(){return Object.values(this.selectedGroups).filter((e=>!1===e)).length>0},sortedGroups(){return Object.keys(this.entityGroups[this.value?.grouping]||{}).sort()},typesMeta(){return h},isGroupFilterActive(){return Object.keys(this.selectedGroups).length!==this.sortedGroups.length},selectedEntities(){if(!this.searchTerm?.length)return this.entityGroups.id;const e=this.searchTerm.toLowerCase().trim();return Object.values(this.entityGroups.id).filter((t=>{if(!this.selectedGroups[t[this.value?.grouping]])return!1;if(!e?.length)return!0;for(const s of["id","external_id","name","plugin"]){if(!t[s])continue;const r=t[s].toString().toLowerCase();if(r.indexOf(e)>=0)return!0}return!1})).reduce(((e,t)=>(e[t.id]=t,e)),{})}},methods:{prettifyGroupingName(e){return e?(e=this.prettify(e),e.endsWith("y")&&(e=e.slice(0,e.length-1)+"ie"),e+="s",e):""},iconForGroup(e){if("plugin"===this.value.grouping&&d[e]){const t=d[e];return{"icon-class":t["class"]?.length||!t.imgUrl?.length?t["class"]:"fas fa-gears","icon-url":t.imgUrl}}return{}},sync(){const e={...this.value};e.searchTerm=this.searchTerm,e.selectedEntities=this.selectedEntities,e.selectedGroups=this.selectedGroups,this.$emit("input",e)},refreshGroupFilter(){this.selectedGroups=Object.keys(this.entityGroups[this.value?.grouping]||{}).reduce(((e,t)=>(e[t]=!0,e)),{}),this.sync()},toggleGroup(e){this.selectedGroups[e]=!this.selectedGroups[e],this.sync()},processEntityUpdate(e){const t=e[this.value?.grouping];t&&null==this.selectedGroups[t]&&(this.selectedGroups[t]=!0)},onGroupingChanged(e){if(!this.entityGroups[e]||e===this.value?.grouping)return!1;const t={...this.value};t.grouping=e,this.$emit("input",t)}},mounted(){this.refreshGroupFilter(),this.$watch((()=>this.value?.grouping),(()=>{this.refreshGroupFilter()})),this.$watch((()=>this.searchTerm),this.sync),g.$.onEntity(this.processEntityUpdate)}},m=s(3744);const G=(0,m.Z)(f,[["render",c],["__scopeId","data-v-334516c0"]]);var y=G}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[667],{667:function(e,t,s){s.r(t),s.d(t,{default:function(){return y}});var r=s(6252),i=s(9963);const o={class:"entities-selectors-container"},n={key:0,class:"selector search-container col-11"},l={class:"selector actions-container col-1 pull-right"};function c(e,t,s,c,u,a){const p=(0,r.up)("DropdownItem"),h=(0,r.up)("Dropdown");return(0,r.wg)(),(0,r.iD)("div",o,[Object.keys(s.entityGroups.id||{}).length?((0,r.wg)(),(0,r.iD)("div",n,[(0,r.wy)((0,r._)("input",{ref:"search",type:"text",class:"search-bar",title:"Filter by name, plugin or ID",placeholder:"🔎","onUpdate:modelValue":t[0]||(t[0]=e=>u.searchTerm=e)},null,512),[[i.nr,u.searchTerm]])])):(0,r.kq)("",!0),(0,r._)("div",l,[(0,r.Wm)(h,{title:"Actions","icon-class":"fas fa-ellipsis"},{default:(0,r.w5)((()=>[(0,r.Wm)(p,{"icon-class":"fas fa-sync-alt",text:"Refresh",onClick:t[1]||(t[1]=t=>e.$emit("refresh"))}),(0,r.Wm)(p,{"icon-class":"fas fa-square-root-variable",text:"Set Variable",onClick:t[2]||(t[2]=t=>e.$emit("show-variable-modal"))}),(0,r.Wm)(h,{title:"Group by",text:"Group by","icon-class":"fas fa-object-ungroup",ref:"groupingSelector"},{default:(0,r.w5)((()=>[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(a.visibleGroupings,(e=>((0,r.wg)(),(0,r.j4)(p,{key:e,text:a.prettifyGroupingName(e),"item-class":{selected:s.value?.grouping===e},onClick:t=>a.onGroupingChanged(e)},null,8,["text","item-class","onClick"])))),128))])),_:1},512),(0,r.Wm)(h,{title:"Filter groups",text:"Filter groups","icon-class":{fas:!0,"fa-filter":!0,active:a.hasActiveFilter},ref:"groupSelector","keep-open-on-item-click":""},{default:(0,r.w5)((()=>[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(a.sortedGroups,(e=>((0,r.wg)(),(0,r.j4)(p,(0,r.dG)({key:e,text:e},a.iconForGroup(e),{"item-class":{selected:!!u.selectedGroups[e]},onClick:(0,i.iM)((t=>a.toggleGroup(e)),["stop"])}),null,16,["text","item-class","onClick"])))),128))])),_:1},8,["icon-class"])])),_:1})])])}var u=s(8637),a=s(2787),p=s(815),h=s(7369),d=s(1359),g=s(5250),f={name:"Selector",emits:["input","refresh","show-variable-modal"],mixins:[u.Z],components:{Dropdown:a.Z,DropdownItem:p.Z},props:{entityGroups:{type:Object,required:!0},value:{type:Object,required:!0}},data(){return{selectedGroups:{},searchTerm:""}},computed:{visibleGroupings(){return Object.keys(this.entityGroups).filter((e=>"id"!==e))},hasActiveFilter(){return Object.values(this.selectedGroups).filter((e=>!1===e)).length>0},sortedGroups(){return Object.keys(this.entityGroups[this.value?.grouping]||{}).sort()},typesMeta(){return h},isGroupFilterActive(){return Object.keys(this.selectedGroups).length!==this.sortedGroups.length},selectedEntities(){if(!this.searchTerm?.length)return this.entityGroups.id;const e=this.searchTerm.toLowerCase().trim();return Object.values(this.entityGroups.id).filter((t=>{if(!this.selectedGroups[t[this.value?.grouping]])return!1;if(!e?.length)return!0;for(const s of["id","external_id","name","plugin"]){if(!t[s])continue;const r=t[s].toString().toLowerCase();if(r.indexOf(e)>=0)return!0}return!1})).reduce(((e,t)=>(e[t.id]=t,e)),{})}},methods:{prettifyGroupingName(e){return e?(e=this.prettify(e),e.endsWith("y")&&(e=e.slice(0,e.length-1)+"ie"),e+="s",e):""},iconForGroup(e){if("plugin"===this.value.grouping&&d[e]){const t=d[e];return{"icon-class":t["class"]?.length||!t.imgUrl?.length?t["class"]:"fas fa-gears","icon-url":t.imgUrl}}return{}},sync(){const e={...this.value};e.searchTerm=this.searchTerm,e.selectedEntities=this.selectedEntities,e.selectedGroups=this.selectedGroups,this.$emit("input",e)},refreshGroupFilter(){this.selectedGroups=Object.keys(this.entityGroups[this.value?.grouping]||{}).reduce(((e,t)=>(e[t]=!0,e)),{}),this.sync()},toggleGroup(e){this.selectedGroups[e]=!this.selectedGroups[e],this.sync()},processEntityUpdate(e){const t=e[this.value?.grouping];t&&null==this.selectedGroups[t]&&(this.selectedGroups[t]=!0)},onGroupingChanged(e){if(!this.entityGroups[e]||e===this.value?.grouping)return!1;const t={...this.value};t.grouping=e,this.$emit("input",t)}},mounted(){this.refreshGroupFilter(),this.$watch((()=>this.value?.grouping),(()=>{this.refreshGroupFilter()})),this.$watch((()=>this.searchTerm),this.sync),g.$.onEntity(this.processEntityUpdate)}},m=s(3744);const G=(0,m.Z)(f,[["render",c],["__scopeId","data-v-334516c0"]]);var y=G}}]);
//# sourceMappingURL=667.687e2681.js.map //# sourceMappingURL=667.50a291a6.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

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8957,9516],{3222:function(t,e,s){s.d(e,{Z:function(){return r}});var l=s(6252),i=s(3577);const a={class:"no-items-container"};function n(t,e,s,n,d,o){return(0,l.wg)(),(0,l.iD)("div",a,[(0,l._)("div",{class:(0,i.C_)(["no-items fade-in",{shadow:s.withShadow}])},[(0,l.WI)(t.$slots,"default",{},void 0,!0)],2)])}var d={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},o=s(3744);const u=(0,o.Z)(d,[["render",n],["__scopeId","data-v-4856c4d7"]]);var r=u},9516:function(t,e,s){s.r(e),s.d(e,{default:function(){return p}});var l=s(6252);const i={class:"media-youtube-playlist"};function a(t,e,s,a,n,d){const o=(0,l.up)("Loading"),u=(0,l.up)("NoItems"),r=(0,l.up)("Results");return(0,l.wg)(),(0,l.iD)("div",i,[n.loading?((0,l.wg)(),(0,l.j4)(o,{key:0})):n.items?.length?((0,l.wg)(),(0,l.j4)(r,{key:2,results:n.items,sources:{youtube:!0},filter:s.filter,"selected-result":n.selectedResult,onSelect:e[0]||(e[0]=t=>n.selectedResult=t),onPlay:e[1]||(e[1]=e=>t.$emit("play",e))},null,8,["results","filter","selected-result"])):((0,l.wg)(),(0,l.j4)(u,{key:1,"with-shadow":!1},{default:(0,l.w5)((()=>[(0,l.Uk)(" No videos found. ")])),_:1}))])}var n=s(3222),d=s(6791),o=s(382),u=s(8637),r={emits:["play"],mixins:[u.Z],components:{Loading:d.Z,NoItems:n.Z,Results:o.Z},props:{id:{type:String,required:!0},filter:{type:String,default:null}},data(){return{items:[],loading:!1,selectedResult:null}},methods:{async loadItems(){this.loading=!0;try{this.items=(await this.request("youtube.get_playlist",{id:this.id})).map((t=>({...t,type:"youtube"})))}finally{this.loading=!1}}},mounted(){this.loadItems()}},y=s(3744);const c=(0,y.Z)(r,[["render",a],["__scopeId","data-v-f6d5d450"]]);var p=c},8957:function(t,e,s){s.r(e),s.d(e,{default:function(){return k}});var l=s(6252),i=s(3577);const a={class:"media-youtube-playlists"},n={key:0,class:"playlists-index"},d={key:2,class:"body grid"},o=["onClick"],u={class:"title"},r={key:1,class:"playlist-body"};function y(t,e,s,y,c,p){const m=(0,l.up)("Loading"),f=(0,l.up)("NoItems"),g=(0,l.up)("MediaImage"),h=(0,l.up)("Playlist");return(0,l.wg)(),(0,l.iD)("div",a,[s.selectedPlaylist?((0,l.wg)(),(0,l.iD)("div",r,[(0,l.Wm)(h,{id:s.selectedPlaylist,filter:s.filter,onPlay:e[0]||(e[0]=e=>t.$emit("play",e))},null,8,["id","filter"])])):((0,l.wg)(),(0,l.iD)("div",n,[c.loading?((0,l.wg)(),(0,l.j4)(m,{key:0})):c.playlists?.length?((0,l.wg)(),(0,l.iD)("div",d,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(p.playlistsById,((e,s)=>((0,l.wg)(),(0,l.iD)("div",{class:"playlist item",key:s,onClick:s=>t.$emit("select",e)},[(0,l.Wm)(g,{item:e,"has-play":!1},null,8,["item"]),(0,l._)("div",u,(0,i.zw)(e.name),1)],8,o)))),128))])):((0,l.wg)(),(0,l.j4)(f,{key:1,"with-shadow":!1},{default:(0,l.w5)((()=>[(0,l.Uk)(" No playlists found. ")])),_:1}))]))])}var c=s(8408),p=s(3222),m=s(6791),f=s(9516),g=s(8637),h={emits:["play","select"],mixins:[g.Z],components:{Loading:m.Z,MediaImage:c.Z,NoItems:p.Z,Playlist:f["default"]},props:{selectedPlaylist:{type:String,default:null},filter:{type:String,default:null}},data(){return{playlists:[],loading:!1}},computed:{playlistsById(){return this.playlists.filter((t=>!this.filter||t.name.toLowerCase().includes(this.filter.toLowerCase()))).reduce(((t,e)=>(t[e.id]=e,t)),{})}},methods:{async loadPlaylists(){this.loading=!0;try{this.playlists=await this.request("youtube.get_playlists")}finally{this.loading=!1}}},mounted(){this.loadPlaylists()}},w=s(3744);const v=(0,w.Z)(h,[["render",y],["__scopeId","data-v-1eb25ed0"]]);var k=v}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8957,9516],{3222:function(t,e,s){s.d(e,{Z:function(){return r}});var l=s(6252),i=s(3577);const a={class:"no-items-container"};function n(t,e,s,n,d,o){return(0,l.wg)(),(0,l.iD)("div",a,[(0,l._)("div",{class:(0,i.C_)(["no-items fade-in",{shadow:s.withShadow}])},[(0,l.WI)(t.$slots,"default",{},void 0,!0)],2)])}var d={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},o=s(3744);const u=(0,o.Z)(d,[["render",n],["__scopeId","data-v-4856c4d7"]]);var r=u},9516:function(t,e,s){s.r(e),s.d(e,{default:function(){return p}});var l=s(6252);const i={class:"media-youtube-playlist"};function a(t,e,s,a,n,d){const o=(0,l.up)("Loading"),u=(0,l.up)("NoItems"),r=(0,l.up)("Results");return(0,l.wg)(),(0,l.iD)("div",i,[n.loading?((0,l.wg)(),(0,l.j4)(o,{key:0})):n.items?.length?((0,l.wg)(),(0,l.j4)(r,{key:2,results:n.items,sources:{youtube:!0},filter:s.filter,"selected-result":n.selectedResult,onSelect:e[0]||(e[0]=t=>n.selectedResult=t),onPlay:e[1]||(e[1]=e=>t.$emit("play",e))},null,8,["results","filter","selected-result"])):((0,l.wg)(),(0,l.j4)(u,{key:1,"with-shadow":!1},{default:(0,l.w5)((()=>[(0,l.Uk)(" No videos found. ")])),_:1}))])}var n=s(3222),d=s(6791),o=s(382),u=s(8637),r={emits:["play"],mixins:[u.Z],components:{Loading:d.Z,NoItems:n.Z,Results:o.Z},props:{id:{type:String,required:!0},filter:{type:String,default:null}},data(){return{items:[],loading:!1,selectedResult:null}},methods:{async loadItems(){this.loading=!0;try{this.items=(await this.request("youtube.get_playlist",{id:this.id})).map((t=>({...t,type:"youtube"})))}finally{this.loading=!1}}},mounted(){this.loadItems()}},y=s(3744);const c=(0,y.Z)(r,[["render",a],["__scopeId","data-v-f6d5d450"]]);var p=c},8957:function(t,e,s){s.r(e),s.d(e,{default:function(){return k}});var l=s(6252),i=s(3577);const a={class:"media-youtube-playlists"},n={key:0,class:"playlists-index"},d={key:2,class:"body grid"},o=["onClick"],u={class:"title"},r={key:1,class:"playlist-body"};function y(t,e,s,y,c,p){const m=(0,l.up)("Loading"),f=(0,l.up)("NoItems"),g=(0,l.up)("MediaImage"),h=(0,l.up)("Playlist");return(0,l.wg)(),(0,l.iD)("div",a,[s.selectedPlaylist?((0,l.wg)(),(0,l.iD)("div",r,[(0,l.Wm)(h,{id:s.selectedPlaylist,filter:s.filter,onPlay:e[0]||(e[0]=e=>t.$emit("play",e))},null,8,["id","filter"])])):((0,l.wg)(),(0,l.iD)("div",n,[c.loading?((0,l.wg)(),(0,l.j4)(m,{key:0})):c.playlists?.length?((0,l.wg)(),(0,l.iD)("div",d,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(p.playlistsById,((e,s)=>((0,l.wg)(),(0,l.iD)("div",{class:"playlist item",key:s,onClick:s=>t.$emit("select",e)},[(0,l.Wm)(g,{item:e,"has-play":!1},null,8,["item"]),(0,l._)("div",u,(0,i.zw)(e.name),1)],8,o)))),128))])):((0,l.wg)(),(0,l.j4)(f,{key:1,"with-shadow":!1},{default:(0,l.w5)((()=>[(0,l.Uk)(" No playlists found. ")])),_:1}))]))])}var c=s(8408),p=s(3222),m=s(6791),f=s(9516),g=s(8637),h={emits:["play","select"],mixins:[g.Z],components:{Loading:m.Z,MediaImage:c.Z,NoItems:p.Z,Playlist:f["default"]},props:{selectedPlaylist:{type:String,default:null},filter:{type:String,default:null}},data(){return{playlists:[],loading:!1}},computed:{playlistsById(){return this.playlists.filter((t=>!this.filter||t.name.toLowerCase().includes(this.filter.toLowerCase()))).reduce(((t,e)=>(t[e.id]=e,t)),{})}},methods:{async loadPlaylists(){this.loading=!0;try{this.playlists=await this.request("youtube.get_playlists")}finally{this.loading=!1}}},mounted(){this.loadPlaylists()}},w=s(3744);const v=(0,w.Z)(h,[["render",y],["__scopeId","data-v-1eb25ed0"]]);var k=v}}]);
//# sourceMappingURL=8957.9d8afb4f.js.map //# sourceMappingURL=8957.7113d8bf.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9516],{3222:function(e,t,s){s.d(t,{Z:function(){return r}});var i=s(6252),l=s(3577);const n={class:"no-items-container"};function a(e,t,s,a,o,u){return(0,i.wg)(),(0,i.iD)("div",n,[(0,i._)("div",{class:(0,l.C_)(["no-items fade-in",{shadow:s.withShadow}])},[(0,i.WI)(e.$slots,"default",{},void 0,!0)],2)])}var o={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},u=s(3744);const d=(0,u.Z)(o,[["render",a],["__scopeId","data-v-4856c4d7"]]);var r=d},9516:function(e,t,s){s.r(t),s.d(t,{default:function(){return f}});var i=s(6252);const l={class:"media-youtube-playlist"};function n(e,t,s,n,a,o){const u=(0,i.up)("Loading"),d=(0,i.up)("NoItems"),r=(0,i.up)("Results");return(0,i.wg)(),(0,i.iD)("div",l,[a.loading?((0,i.wg)(),(0,i.j4)(u,{key:0})):a.items?.length?((0,i.wg)(),(0,i.j4)(r,{key:2,results:a.items,sources:{youtube:!0},filter:s.filter,"selected-result":a.selectedResult,onSelect:t[0]||(t[0]=e=>a.selectedResult=e),onPlay:t[1]||(t[1]=t=>e.$emit("play",t))},null,8,["results","filter","selected-result"])):((0,i.wg)(),(0,i.j4)(d,{key:1,"with-shadow":!1},{default:(0,i.w5)((()=>[(0,i.Uk)(" No videos found. ")])),_:1}))])}var a=s(3222),o=s(6791),u=s(382),d=s(8637),r={emits:["play"],mixins:[d.Z],components:{Loading:o.Z,NoItems:a.Z,Results:u.Z},props:{id:{type:String,required:!0},filter:{type:String,default:null}},data(){return{items:[],loading:!1,selectedResult:null}},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.loadItems()}},c=s(3744);const p=(0,c.Z)(r,[["render",n],["__scopeId","data-v-f6d5d450"]]);var f=p}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9516],{3222:function(e,t,s){s.d(t,{Z:function(){return r}});var i=s(6252),l=s(3577);const n={class:"no-items-container"};function a(e,t,s,a,o,u){return(0,i.wg)(),(0,i.iD)("div",n,[(0,i._)("div",{class:(0,l.C_)(["no-items fade-in",{shadow:s.withShadow}])},[(0,i.WI)(e.$slots,"default",{},void 0,!0)],2)])}var o={name:"NoItems",props:{withShadow:{type:Boolean,default:!0}}},u=s(3744);const d=(0,u.Z)(o,[["render",a],["__scopeId","data-v-4856c4d7"]]);var r=d},9516:function(e,t,s){s.r(t),s.d(t,{default:function(){return f}});var i=s(6252);const l={class:"media-youtube-playlist"};function n(e,t,s,n,a,o){const u=(0,i.up)("Loading"),d=(0,i.up)("NoItems"),r=(0,i.up)("Results");return(0,i.wg)(),(0,i.iD)("div",l,[a.loading?((0,i.wg)(),(0,i.j4)(u,{key:0})):a.items?.length?((0,i.wg)(),(0,i.j4)(r,{key:2,results:a.items,sources:{youtube:!0},filter:s.filter,"selected-result":a.selectedResult,onSelect:t[0]||(t[0]=e=>a.selectedResult=e),onPlay:t[1]||(t[1]=t=>e.$emit("play",t))},null,8,["results","filter","selected-result"])):((0,i.wg)(),(0,i.j4)(d,{key:1,"with-shadow":!1},{default:(0,i.w5)((()=>[(0,i.Uk)(" No videos found. ")])),_:1}))])}var a=s(3222),o=s(6791),u=s(382),d=s(8637),r={emits:["play"],mixins:[d.Z],components:{Loading:o.Z,NoItems:a.Z,Results:u.Z},props:{id:{type:String,required:!0},filter:{type:String,default:null}},data(){return{items:[],loading:!1,selectedResult:null}},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.loadItems()}},c=s(3744);const p=(0,c.Z)(r,[["render",n],["__scopeId","data-v-f6d5d450"]]);var f=p}}]);
//# sourceMappingURL=9516.7c5f8e4e.js.map //# sourceMappingURL=9516.4b9851c1.js.map