Updated dist files
This commit is contained in:
parent
9df4d5b5b8
commit
cda03887d4
|
@ -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"><link rel="icon" href="/favicon.ico"><link rel="stylesheet" href="/fonts/poppins.css"><title>platypush</title><script defer="defer" type="module" src="/static/js/chunk-vendors.95bedba1.js"></script><script defer="defer" type="module" src="/static/js/app.e153bc32.js"></script><link href="/static/css/chunk-vendors.0fcd36f0.css" rel="stylesheet"><link href="/static/css/app.4093f8c9.css" rel="stylesheet"><script defer="defer" src="/static/js/chunk-vendors-legacy.79dede0c.js" nomodule></script><script defer="defer" src="/static/js/app-legacy.1ba2ae16.js" nomodule></script></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"><link rel="icon" href="/favicon.ico"><link rel="stylesheet" href="/fonts/poppins.css"><title>platypush</title><script defer="defer" type="module" src="/static/js/chunk-vendors.95bedba1.js"></script><script defer="defer" type="module" src="/static/js/app.f2effacd.js"></script><link href="/static/css/chunk-vendors.0fcd36f0.css" rel="stylesheet"><link href="/static/css/app.af2ff39e.css" rel="stylesheet"><script defer="defer" src="/static/js/chunk-vendors-legacy.79dede0c.js" nomodule></script><script defer="defer" src="/static/js/app-legacy.96907e71.js" nomodule></script></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
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1818],{1818:function(n,t,e){e.r(t),e.d(t,{default:function(){return g}});var i=e(6252),o={class:"plugin"};function r(n,t,e,r,a,s){var c=(0,i.up)("Loading");return(0,i.wg)(),(0,i.iD)("div",o,[a.loading?((0,i.wg)(),(0,i.j4)(c,{key:0})):a.component?((0,i.wg)(),(0,i.j4)((0,i.LL)(a.component),{key:1,config:a.config},null,8,["config"])):(0,i.kq)("",!0)])}var a=e(8534),s=(e(5666),e(9600),e(1249),e(4916),e(3123),e(7042),e(1539),e(8783),e(3948),e(6813)),c=e(1232),u=e(2262),p={name:"Plugin",components:{Loading:c.Z},mixins:[s.Z],props:{pluginName:{type:String,required:!0}},data:function(){return{loading:!1,component:null,config:{}}},computed:{componentName:function(){return this.pluginName.split(".").map((function(n){return n[0].toUpperCase()+n.slice(1)})).join("")}},methods:{refresh:function(){var n=(0,a.Z)(regeneratorRuntime.mark((function n(){var t,o=this;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return this.loading=!0,n.prev=1,this.component=(0,u.XI)((0,i.RC)((function(){return e(3379)("./".concat(o.componentName,"/Index"))}))),this.$options.components[this.componentName]=this.component,n.next=6,this.request("config.get_plugins");case 6:if(n.t2=t=n.sent,n.t1=null===n.t2,n.t1){n.next=10;break}n.t1=void 0===t;case 10:if(!n.t1){n.next=14;break}n.t3=void 0,n.next=15;break;case 14:n.t3=t[this.pluginName];case 15:if(n.t0=n.t3,n.t0){n.next=18;break}n.t0={};case 18:this.config=n.t0;case 19:return n.prev=19,this.loading=!1,n.finish(19);case 22:case"end":return n.stop()}}),n,this,[[1,,19,22]])})));function t(){return n.apply(this,arguments)}return t}()},mounted:function(){this.refresh()}},f=e(3744);const l=(0,f.Z)(p,[["render",r],["__scopeId","data-v-69b17daa"]]);var g=l}}]);
|
||||
//# sourceMappingURL=1818-legacy.03a52113.js.map
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"static/js/1818-legacy.03a52113.js","mappings":"gLACOA,MAAM,U,oEAAX,QAGM,MAHN,EAGM,CAFW,EAAAC,UAAA,WAAf,QAA0B,YAC6B,EAAAC,YAAA,WAAvD,SAAoE,QAApD,EAAAA,WAAS,C,MAAGC,OAAQ,EAAAA,QAApC,qC,uHASJ,GACEC,KAAM,SACNC,WAAY,CAACC,QAAAA,EAAA,GACbC,OAAQ,CAACC,EAAA,GACTC,MAAO,CAELC,WAAY,CACVC,KAAMC,OACNC,UAAU,IAIdC,KAZa,WAaX,MAAO,CACLb,SAAS,EACTC,UAAW,KACXC,OAAQ,CAAC,EAEZ,EAEDY,SAAU,CACRC,cADQ,WAEN,OAAOC,KAAKP,WAAWQ,MAAM,KAAKC,KAAI,SAACC,GAAD,OAAOA,EAAE,GAAGC,cAAgBD,EAAEE,MAAM,EAApC,IAAwCC,KAAK,GACpF,GAGHC,QAAS,CACPC,QAAS,WAAF,uCAAE,kHACPR,KAAKhB,SAAU,EADR,SAILgB,KAAKf,WAAY,SAAW,SAAqB,kBAAM,QAAO,YAAuB,EAAKc,cAAnC,UAAN,KACjDC,KAAKS,SAASrB,WAAWY,KAAKD,eAAiBC,KAAKf,UAL/C,SAMgBe,KAAKU,QAAQ,sBAN7B,0JAMS,EAA6CV,KAAKP,YAN3D,gDAM0E,CAAC,EAN3E,QAMLO,KAAKd,OANA,8BAQLc,KAAKhB,SAAU,EARV,2EAAF,qDAAE,IAaX2B,QAAS,WACPX,KAAKQ,SACN,G,UC/CH,MAAMI,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/widgets/Plugin/Index.vue","webpack://platypush/./src/components/widgets/Plugin/Index.vue?cc4c"],"sourcesContent":["<template>\n <div class=\"plugin\">\n <Loading v-if=\"loading\" />\n <component :is=\"component\" :config=\"config\" v-else-if=\"component\" />\n </div>\n</template>\n\n<script>\nimport Utils from \"@/Utils\";\nimport Loading from \"@/components/Loading\";\nimport { defineAsyncComponent, shallowRef } from \"vue\";\n\nexport default {\n name: \"Plugin\",\n components: {Loading},\n mixins: [Utils],\n props: {\n // Name of the plugin view to be loaded\n pluginName: {\n type: String,\n required: true,\n },\n },\n\n data() {\n return {\n loading: false,\n component: null,\n config: {},\n }\n },\n\n computed: {\n componentName() {\n return this.pluginName.split('.').map((t) => t[0].toUpperCase() + t.slice(1)).join('')\n },\n },\n\n methods: {\n refresh: async function() {\n this.loading = true\n\n try {\n this.component = shallowRef(defineAsyncComponent(() => import(`@/components/panels/${this.componentName}/Index`)))\n this.$options.components[this.componentName] = this.component\n this.config = (await this.request('config.get_plugins'))?.[this.pluginName] || {}\n } finally {\n this.loading = false\n }\n },\n },\n\n mounted: function() {\n this.refresh()\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.plugin {\n margin: -1em 0 0 -1em !important;\n padding: 0;\n width: calc(100% + 2em);\n height: calc(100% + 2em);\n}\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=69b17daa&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=69b17daa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-69b17daa\"]])\n\nexport default __exports__"],"names":["class","loading","component","config","name","components","Loading","mixins","Utils","props","pluginName","type","String","required","data","computed","componentName","this","split","map","t","toUpperCase","slice","join","methods","refresh","$options","request","mounted","__exports__","render"],"sourceRoot":""}
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1818],{1818:function(n,t,e){e.r(t),e.d(t,{default:function(){return g}});var o=e(6252);const i={class:"plugin"};function s(n,t,e,s,a,p){const c=(0,o.up)("Loading");return(0,o.wg)(),(0,o.iD)("div",i,[a.loading?((0,o.wg)(),(0,o.j4)(c,{key:0})):a.component?((0,o.wg)(),(0,o.j4)((0,o.LL)(a.component),{key:1,config:a.config},null,8,["config"])):(0,o.kq)("",!0)])}var a=e(6813),p=e(1232),c=e(2262),u={name:"Plugin",components:{Loading:p.Z},mixins:[a.Z],props:{pluginName:{type:String,required:!0}},data(){return{loading:!1,component:null,config:{}}},computed:{componentName(){return this.pluginName.split(".").map((n=>n[0].toUpperCase()+n.slice(1))).join("")}},methods:{refresh:async function(){this.loading=!0;try{this.component=(0,c.XI)((0,o.RC)((()=>e(3379)(`./${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()}},r=e(3744);const l=(0,r.Z)(u,[["render",s],["__scopeId","data-v-69b17daa"]]);var g=l}}]);
|
||||
//# sourceMappingURL=1818.d8f79120.js.map
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"static/js/1818.d8f79120.js","mappings":"sLACOA,MAAM,U,sEAAX,QAGM,MAHN,EAGM,CAFW,EAAAC,UAAA,WAAf,QAA0B,YAC6B,EAAAC,YAAA,WAAvD,SAAoE,QAApD,EAAAA,WAAS,C,MAAGC,OAAQ,EAAAA,QAApC,qC,mCASJ,GACEC,KAAM,SACNC,WAAY,CAACC,QAAO,KACpBC,OAAQ,CAACC,EAAA,GACTC,MAAO,CAELC,WAAY,CACVC,KAAMC,OACNC,UAAU,IAIdC,OACE,MAAO,CACLb,SAAS,EACTC,UAAW,KACXC,OAAQ,CAAC,EAEZ,EAEDY,SAAU,CACRC,gBACE,OAAOC,KAAKP,WAAWQ,MAAM,KAAKC,KAAKC,GAAMA,EAAE,GAAGC,cAAgBD,EAAEE,MAAM,KAAIC,KAAK,GACpF,GAGHC,QAAS,CACPC,QAASC,iBACPT,KAAKhB,SAAU,EAEf,IACEgB,KAAKf,WAAY,SAAW,SAAqB,IAAM,QAAQ,KAAsBe,KAAKD,0BAC1FC,KAAKU,SAAStB,WAAWY,KAAKD,eAAiBC,KAAKf,UACpDe,KAAKd,cAAgBc,KAAKW,QAAQ,yBAAyBX,KAAKP,aAAe,CAAC,CAGlF,CANA,QAKEO,KAAKhB,SAAU,CACjB,CACD,GAGH4B,QAAS,WACPZ,KAAKQ,SACN,G,UC/CH,MAAMK,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/widgets/Plugin/Index.vue","webpack://platypush/./src/components/widgets/Plugin/Index.vue?cc4c"],"sourcesContent":["<template>\n <div class=\"plugin\">\n <Loading v-if=\"loading\" />\n <component :is=\"component\" :config=\"config\" v-else-if=\"component\" />\n </div>\n</template>\n\n<script>\nimport Utils from \"@/Utils\";\nimport Loading from \"@/components/Loading\";\nimport { defineAsyncComponent, shallowRef } from \"vue\";\n\nexport default {\n name: \"Plugin\",\n components: {Loading},\n mixins: [Utils],\n props: {\n // Name of the plugin view to be loaded\n pluginName: {\n type: String,\n required: true,\n },\n },\n\n data() {\n return {\n loading: false,\n component: null,\n config: {},\n }\n },\n\n computed: {\n componentName() {\n return this.pluginName.split('.').map((t) => t[0].toUpperCase() + t.slice(1)).join('')\n },\n },\n\n methods: {\n refresh: async function() {\n this.loading = true\n\n try {\n this.component = shallowRef(defineAsyncComponent(() => import(`@/components/panels/${this.componentName}/Index`)))\n this.$options.components[this.componentName] = this.component\n this.config = (await this.request('config.get_plugins'))?.[this.pluginName] || {}\n } finally {\n this.loading = false\n }\n },\n },\n\n mounted: function() {\n this.refresh()\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.plugin {\n margin: -1em 0 0 -1em !important;\n padding: 0;\n width: calc(100% + 2em);\n height: calc(100% + 2em);\n}\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=69b17daa&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=69b17daa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-69b17daa\"]])\n\nexport default __exports__"],"names":["class","loading","component","config","name","components","Loading","mixins","Utils","props","pluginName","type","String","required","data","computed","componentName","this","split","map","t","toUpperCase","slice","join","methods","refresh","async","$options","request","mounted","__exports__","render"],"sourceRoot":""}
|
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
|
@ -1,2 +0,0 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4826],{4826:function(n,t,e){e.r(t),e.d(t,{default:function(){return l}});var i=e(6252),o={class:"plugin"};function r(n,t,e,r,s,a){var c=(0,i.up)("Loading");return(0,i.wg)(),(0,i.iD)("div",o,[s.loading?((0,i.wg)(),(0,i.j4)(c,{key:0})):s.component?((0,i.wg)(),(0,i.j4)((0,i.LL)(s.component),{key:1,config:s.config},null,8,["config"])):(0,i.kq)("",!0)])}var s=e(8534),a=(e(5666),e(9600),e(1249),e(4916),e(3123),e(7042),e(1539),e(8783),e(3948),e(6813)),c=e(1232),u={name:"Plugin",components:{Loading:c.Z},mixins:[a.Z],props:{pluginName:{type:String,required:!0}},data:function(){return{loading:!1,component:null,config:{}}},computed:{componentName:function(){return this.pluginName.split(".").map((function(n){return n[0].toUpperCase()+n.slice(1)})).join("")}},methods:{refresh:function(){var n=(0,s.Z)(regeneratorRuntime.mark((function n(){var t,o=this;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return this.loading=!0,n.prev=1,this.component=(0,i.RC)((function(){return e(3379)("./".concat(o.componentName,"/Index"))})),this.$options.components[this.componentName]=this.component,n.next=6,this.request("config.get_plugins");case 6:if(n.t2=t=n.sent,n.t1=null===n.t2,n.t1){n.next=10;break}n.t1=void 0===t;case 10:if(!n.t1){n.next=14;break}n.t3=void 0,n.next=15;break;case 14:n.t3=t[this.pluginName];case 15:if(n.t0=n.t3,n.t0){n.next=18;break}n.t0={};case 18:this.config=n.t0;case 19:return n.prev=19,this.loading=!1,n.finish(19);case 22:case"end":return n.stop()}}),n,this,[[1,,19,22]])})));function t(){return n.apply(this,arguments)}return t}()},mounted:function(){this.refresh()}},p=e(3744);const f=(0,p.Z)(u,[["render",r],["__scopeId","data-v-3565b88b"]]);var l=f}}]);
|
||||
//# sourceMappingURL=4826-legacy.f73c82f0.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"static/js/4826-legacy.f73c82f0.js","mappings":"gLACOA,MAAM,U,oEAAX,QAGM,MAHN,EAGM,CAFW,EAAAC,UAAA,WAAf,QAA0B,YAC6B,EAAAC,YAAA,WAAvD,SAAoE,QAApD,EAAAA,WAAS,C,MAAGC,OAAQ,EAAAA,QAApC,qC,6GASJ,GACEC,KAAM,SACNC,WAAY,CAACC,QAAAA,EAAA,GACbC,OAAQ,CAACC,EAAA,GACTC,MAAO,CAELC,WAAY,CACVC,KAAMC,OACNC,UAAU,IAIdC,KAZa,WAaX,MAAO,CACLb,SAAS,EACTC,UAAW,KACXC,OAAQ,CAAC,EAEZ,EAEDY,SAAU,CACRC,cADQ,WAEN,OAAOC,KAAKP,WAAWQ,MAAM,KAAKC,KAAI,SAACC,GAAD,OAAOA,EAAE,GAAGC,cAAgBD,EAAEE,MAAM,EAApC,IAAwCC,KAAK,GACpF,GAGHC,QAAS,CACPC,QAAS,WAAF,uCAAE,kHACPR,KAAKhB,SAAU,EADR,SAILgB,KAAKf,WAAY,SAAqB,kBAAM,QAAO,YAAuB,EAAKc,cAAnC,UAAN,IACtCC,KAAKS,SAASrB,WAAWY,KAAKD,eAAiBC,KAAKf,UAL/C,SAMgBe,KAAKU,QAAQ,sBAN7B,0JAMS,EAA6CV,KAAKP,YAN3D,gDAM0E,CAAC,EAN3E,QAMLO,KAAKd,OANA,8BAQLc,KAAKhB,SAAU,EARV,2EAAF,qDAAE,IAaX2B,QAAS,WACPX,KAAKQ,SACN,G,UC/CH,MAAMI,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/widgets/Plugin/Index.vue","webpack://platypush/./src/components/widgets/Plugin/Index.vue?cc4c"],"sourcesContent":["<template>\n <div class=\"plugin\">\n <Loading v-if=\"loading\" />\n <component :is=\"component\" :config=\"config\" v-else-if=\"component\" />\n </div>\n</template>\n\n<script>\nimport Utils from \"@/Utils\";\nimport Loading from \"@/components/Loading\";\nimport {defineAsyncComponent} from \"vue\";\n\nexport default {\n name: \"Plugin\",\n components: {Loading},\n mixins: [Utils],\n props: {\n // Name of the plugin view to be loaded\n pluginName: {\n type: String,\n required: true,\n },\n },\n\n data() {\n return {\n loading: false,\n component: null,\n config: {},\n }\n },\n\n computed: {\n componentName() {\n return this.pluginName.split('.').map((t) => t[0].toUpperCase() + t.slice(1)).join('')\n },\n },\n\n methods: {\n refresh: async function() {\n this.loading = true\n\n try {\n this.component = defineAsyncComponent(() => import(`@/components/panels/${this.componentName}/Index`))\n this.$options.components[this.componentName] = this.component\n this.config = (await this.request('config.get_plugins'))?.[this.pluginName] || {}\n } finally {\n this.loading = false\n }\n },\n },\n\n mounted: function() {\n this.refresh()\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.plugin {\n margin: -1em 0 0 -1em !important;\n padding: 0;\n width: calc(100% + 2em);\n height: calc(100% + 2em);\n}\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=3565b88b&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=3565b88b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3565b88b\"]])\n\nexport default __exports__"],"names":["class","loading","component","config","name","components","Loading","mixins","Utils","props","pluginName","type","String","required","data","computed","componentName","this","split","map","t","toUpperCase","slice","join","methods","refresh","$options","request","mounted","__exports__","render"],"sourceRoot":""}
|
|
@ -1,2 +0,0 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4826],{4826:function(n,t,e){e.r(t),e.d(t,{default:function(){return l}});var o=e(6252);const i={class:"plugin"};function s(n,t,e,s,p,a){const c=(0,o.up)("Loading");return(0,o.wg)(),(0,o.iD)("div",i,[p.loading?((0,o.wg)(),(0,o.j4)(c,{key:0})):p.component?((0,o.wg)(),(0,o.j4)((0,o.LL)(p.component),{key:1,config:p.config},null,8,["config"])):(0,o.kq)("",!0)])}var p=e(6813),a=e(1232),c={name:"Plugin",components:{Loading:a.Z},mixins:[p.Z],props:{pluginName:{type:String,required:!0}},data(){return{loading:!1,component:null,config:{}}},computed:{componentName(){return this.pluginName.split(".").map((n=>n[0].toUpperCase()+n.slice(1))).join("")}},methods:{refresh:async function(){this.loading=!0;try{this.component=(0,o.RC)((()=>e(3379)(`./${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=e(3744);const r=(0,u.Z)(c,[["render",s],["__scopeId","data-v-3565b88b"]]);var l=r}}]);
|
||||
//# sourceMappingURL=4826.64f0df2a.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"static/js/4826.64f0df2a.js","mappings":"sLACOA,MAAM,U,sEAAX,QAGM,MAHN,EAGM,CAFW,EAAAC,UAAA,WAAf,QAA0B,YAC6B,EAAAC,YAAA,WAAvD,SAAoE,QAApD,EAAAA,WAAS,C,MAAGC,OAAQ,EAAAA,QAApC,qC,yBASJ,GACEC,KAAM,SACNC,WAAY,CAACC,QAAO,KACpBC,OAAQ,CAACC,EAAA,GACTC,MAAO,CAELC,WAAY,CACVC,KAAMC,OACNC,UAAU,IAIdC,OACE,MAAO,CACLb,SAAS,EACTC,UAAW,KACXC,OAAQ,CAAC,EAEZ,EAEDY,SAAU,CACRC,gBACE,OAAOC,KAAKP,WAAWQ,MAAM,KAAKC,KAAKC,GAAMA,EAAE,GAAGC,cAAgBD,EAAEE,MAAM,KAAIC,KAAK,GACpF,GAGHC,QAAS,CACPC,QAASC,iBACPT,KAAKhB,SAAU,EAEf,IACEgB,KAAKf,WAAY,SAAqB,IAAM,QAAQ,KAAsBe,KAAKD,yBAC/EC,KAAKU,SAAStB,WAAWY,KAAKD,eAAiBC,KAAKf,UACpDe,KAAKd,cAAgBc,KAAKW,QAAQ,yBAAyBX,KAAKP,aAAe,CAAC,CAGlF,CANA,QAKEO,KAAKhB,SAAU,CACjB,CACD,GAGH4B,QAAS,WACPZ,KAAKQ,SACN,G,UC/CH,MAAMK,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/widgets/Plugin/Index.vue","webpack://platypush/./src/components/widgets/Plugin/Index.vue?cc4c"],"sourcesContent":["<template>\n <div class=\"plugin\">\n <Loading v-if=\"loading\" />\n <component :is=\"component\" :config=\"config\" v-else-if=\"component\" />\n </div>\n</template>\n\n<script>\nimport Utils from \"@/Utils\";\nimport Loading from \"@/components/Loading\";\nimport {defineAsyncComponent} from \"vue\";\n\nexport default {\n name: \"Plugin\",\n components: {Loading},\n mixins: [Utils],\n props: {\n // Name of the plugin view to be loaded\n pluginName: {\n type: String,\n required: true,\n },\n },\n\n data() {\n return {\n loading: false,\n component: null,\n config: {},\n }\n },\n\n computed: {\n componentName() {\n return this.pluginName.split('.').map((t) => t[0].toUpperCase() + t.slice(1)).join('')\n },\n },\n\n methods: {\n refresh: async function() {\n this.loading = true\n\n try {\n this.component = defineAsyncComponent(() => import(`@/components/panels/${this.componentName}/Index`))\n this.$options.components[this.componentName] = this.component\n this.config = (await this.request('config.get_plugins'))?.[this.pluginName] || {}\n } finally {\n this.loading = false\n }\n },\n },\n\n mounted: function() {\n this.refresh()\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.plugin {\n margin: -1em 0 0 -1em !important;\n padding: 0;\n width: calc(100% + 2em);\n height: calc(100% + 2em);\n}\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=3565b88b&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=3565b88b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3565b88b\"]])\n\nexport default __exports__"],"names":["class","loading","component","config","name","components","Loading","mixins","Utils","props","pluginName","type","String","required","data","computed","componentName","this","split","map","t","toUpperCase","slice","join","methods","refresh","async","$options","request","mounted","__exports__","render"],"sourceRoot":""}
|
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
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
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7524,3673],{3673:function(e,n,t){t.r(n),t.d(n,{default:function(){return f}});var l=t(6252),a=t(3577),i=t(3540),o={key:0,src:i,class:"loading"},r={key:1,class:"fas fa-circle-exclamation error"};function u(e,n,t,i,u,s){var c=(0,l.up)("Icon");return(0,l.wg)(),(0,l.iD)("div",{class:(0,a.C_)(["entity-icon-container",{"with-color-fill":!!s.colorFill}]),style:(0,a.j5)(s.colorFillStyle)},[t.loading?((0,l.wg)(),(0,l.iD)("img",o)):t.error?((0,l.wg)(),(0,l.iD)("i",r)):((0,l.wg)(),(0,l.j4)(c,(0,a.vs)((0,l.dG)({key:2},s.computedIcon)),null,16))],6)}var s=t(4648),c=(t(7042),t(1478)),d={name:"EntityIcon",components:{Icon:c.Z},props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},icon:{type:Object,required:!0},hasColorFill:{type:Boolean,default:!1}},data:function(){return{component:null,modalVisible:!1}},computed:{colorFill:function(){return this.hasColorFill&&this.icon.color?this.icon.color:null},colorFillStyle:function(){return this.colorFill&&!this.error?{background:this.colorFill}:{}},computedIcon:function(){var e=(0,s.Z)({},this.icon);return this.colorFill&&delete e.color,e},type:function(){var e=this.entity.type||"";return e.charAt(0).toUpperCase()+e.slice(1)}}},v=t(3744);const p=(0,v.Z)(d,[["render",u],["__scopeId","data-v-e4043550"]]);var f=p},7524:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});t(8309),t(1539),t(3948);var l=t(6252),a=t(3577),i=t(9963),o={class:"entity switch-container"},r={class:"col-1 icon"},u={class:"col-s-8 col-m-9 label"},s=["textContent"],c={class:"col-s-3 col-m-2 buttons pull-right"},d=["textContent"],v={class:"row"},p={class:"input"},f=["disabled"],h={key:0,value:"",selected:""},g=["value","selected","textContent"];function y(e,n,t,y,m,w){var k,x,_=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",o,[(0,l._)("div",{class:(0,a.C_)(["head",{expanded:m.expanded}])},[(0,l._)("div",r,[(0,l.Wm)(_,{icon:(null===(k=this.value.meta)||void 0===k?void 0:k.icon)||{},loading:e.loading,error:e.error},null,8,["icon","loading","error"])]),(0,l._)("div",u,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,s)]),(0,l._)("div",c,[w.hasValues?((0,l.wg)(),(0,l.iD)("button",{key:0,onClick:n[0]||(n[0]=(0,i.iM)((function(e){return m.expanded=!m.expanded}),["stop"]))},[(0,l._)("i",{class:(0,a.C_)(["fas",{"fa-angle-up":m.expanded,"fa-angle-down":!m.expanded}])},null,2)])):(0,l.kq)("",!0),null!=(null===(x=e.value)||void 0===x?void 0:x.value)?((0,l.wg)(),(0,l.iD)("span",{key:1,class:"value",textContent:(0,a.zw)(e.value.values[e.value.value]||e.value.value)},null,8,d)):(0,l.kq)("",!0)])],2),m.expanded?((0,l.wg)(),(0,l.iD)("div",{key:0,class:"body",onClick:n[2]||(n[2]=(0,i.iM)((function(){return w.prevent&&w.prevent.apply(w,arguments)}),["stop"]))},[(0,l._)("div",v,[(0,l._)("div",p,[(0,l._)("select",{onInput:n[1]||(n[1]=function(){return w.setValue&&w.setValue.apply(w,arguments)}),ref:"values",disabled:e.loading},[e.value.is_write_only?((0,l.wg)(),(0,l.iD)("option",h,"--")):(0,l.kq)("",!0),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(w.displayValues,(function(n,t){return(0,l.wg)(),(0,l.iD)("option",{value:t,selected:t==e.value.value,key:t,textContent:(0,a.zw)(n)},null,8,g)})),128))],40,f)])])])):(0,l.kq)("",!0)])}var m=t(8534),w=(t(5666),t(2479),t(7909)),k=t(3673),x={name:"EnumSwitch",components:{EntityIcon:k["default"]},mixins:[w["default"]],data:function(){return{expanded:!1}},computed:{hasValues:function(){var e;return!!Object.values((null===this||void 0===this||null===(e=this.value)||void 0===e?void 0:e.values)||{}).length},displayValues:function(){var e,n;return(null===(e=this.value)||void 0===e?void 0:e.values)instanceof Array?this.value.values.reduce((function(e,n){return e[n]=n,e}),{}):(null===(n=this.value)||void 0===n?void 0:n.values)||{}}},methods:{prevent:function(e){return e.stopPropagation(),!1},setValue:function(e){var n=this;return(0,m.Z)(regeneratorRuntime.mark((function t(){var l,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(null!==(l=e.target.value)&&void 0!==l&&l.length){t.next=2;break}return t.abrupt("return");case 2:return n.$emit("loading",!0),n.value.is_write_only&&(a=n,setTimeout((function(){a.$refs.values.value=""}),1e3)),t.prev=4,t.next=7,n.request("entities.execute",{id:n.value.id,action:"set_value",data:e.target.value});case 7:return t.prev=7,n.$emit("loading",!1),t.finish(7);case 10:case"end":return t.stop()}}),t,null,[[4,,7,10]])})))()}}},_=t(3744);const C=(0,_.Z)(x,[["render",y],["__scopeId","data-v-9441eff8"]]);var b=C},3540:function(e,n,t){e.exports=t.p+"static/img/spinner.c0bee445.gif"}}]);
|
||||
//# sourceMappingURL=7524-legacy.68534ef0.js.map
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7524,3673],{3673:function(e,t,l){l.r(t),l.d(t,{default:function(){return p}});var n=l(6252),a=l(3577),o=l(3540);const i={key:0,src:o,class:"loading"},s={key:1,class:"fas fa-circle-exclamation error"};function u(e,t,l,o,u,r){const c=(0,n.up)("Icon");return(0,n.wg)(),(0,n.iD)("div",{class:(0,a.C_)(["entity-icon-container",{"with-color-fill":!!r.colorFill}]),style:(0,a.j5)(r.colorFillStyle)},[l.loading?((0,n.wg)(),(0,n.iD)("img",i)):l.error?((0,n.wg)(),(0,n.iD)("i",s)):((0,n.wg)(),(0,n.j4)(c,(0,a.vs)((0,n.dG)({key:2},r.computedIcon)),null,16))],6)}var r=l(1478),c={name:"EntityIcon",components:{Icon:r.Z},props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},icon:{type:Object,required:!0},hasColorFill:{type:Boolean,default:!1}},data(){return{component:null,modalVisible:!1}},computed:{colorFill(){return this.hasColorFill&&this.icon.color?this.icon.color:null},colorFillStyle(){return this.colorFill&&!this.error?{background:this.colorFill}:{}},computedIcon(){const e={...this.icon};return this.colorFill&&delete e.color,e},type(){let e=this.entity.type||"";return e.charAt(0).toUpperCase()+e.slice(1)}}},d=l(3744);const v=(0,d.Z)(c,[["render",u],["__scopeId","data-v-e4043550"]]);var p=v},7524:function(e,t,l){l.r(t),l.d(t,{default:function(){return C}});var n=l(6252),a=l(3577),o=l(9963);const i={class:"entity switch-container"},s={class:"col-1 icon"},u={class:"col-s-8 col-m-9 label"},r=["textContent"],c={class:"col-s-3 col-m-2 buttons pull-right"},d=["textContent"],v={class:"row"},p={class:"input"},h=["disabled"],y={key:0,value:"",selected:""},g=["value","selected","textContent"];function f(e,t,l,f,m,w){const _=(0,n.up)("EntityIcon");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",{class:(0,a.C_)(["head",{expanded:m.expanded}])},[(0,n._)("div",s,[(0,n.Wm)(_,{icon:this.value.meta?.icon||{},loading:e.loading,error:e.error},null,8,["icon","loading","error"])]),(0,n._)("div",u,[(0,n._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,r)]),(0,n._)("div",c,[w.hasValues?((0,n.wg)(),(0,n.iD)("button",{key:0,onClick:t[0]||(t[0]=(0,o.iM)((e=>m.expanded=!m.expanded),["stop"]))},[(0,n._)("i",{class:(0,a.C_)(["fas",{"fa-angle-up":m.expanded,"fa-angle-down":!m.expanded}])},null,2)])):(0,n.kq)("",!0),null!=e.value?.value?((0,n.wg)(),(0,n.iD)("span",{key:1,class:"value",textContent:(0,a.zw)(e.value.values[e.value.value]||e.value.value)},null,8,d)):(0,n.kq)("",!0)])],2),m.expanded?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"body",onClick:t[2]||(t[2]=(0,o.iM)(((...e)=>w.prevent&&w.prevent(...e)),["stop"]))},[(0,n._)("div",v,[(0,n._)("div",p,[(0,n._)("select",{onInput:t[1]||(t[1]=(...e)=>w.setValue&&w.setValue(...e)),ref:"values",disabled:e.loading},[e.value.is_write_only?((0,n.wg)(),(0,n.iD)("option",y,"--")):(0,n.kq)("",!0),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(w.displayValues,((t,l)=>((0,n.wg)(),(0,n.iD)("option",{value:l,selected:l==e.value.value,key:l,textContent:(0,a.zw)(t)},null,8,g)))),128))],40,h)])])])):(0,n.kq)("",!0)])}var m=l(7909),w=l(3673),_={name:"EnumSwitch",components:{EntityIcon:w["default"]},mixins:[m["default"]],data(){return{expanded:!1}},computed:{hasValues(){return!!Object.values(this?.value?.values||{}).length},displayValues(){return this.value?.values instanceof Array?this.value.values.reduce(((e,t)=>(e[t]=t,e)),{}):this.value?.values||{}}},methods:{prevent(e){return e.stopPropagation(),!1},async setValue(e){if(e.target.value?.length){if(this.$emit("loading",!0),this.value.is_write_only){const e=this;setTimeout((()=>{e.$refs.values.value=""}),1e3)}try{await this.request("entities.execute",{id:this.value.id,action:"set_value",data:e.target.value})}finally{this.$emit("loading",!1)}}}}},k=l(3744);const x=(0,k.Z)(_,[["render",f],["__scopeId","data-v-9441eff8"]]);var C=x},3540:function(e,t,l){e.exports=l.p+"static/img/spinner.c0bee445.gif"}}]);
|
||||
//# sourceMappingURL=7524.3d3eed4b.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
|
@ -1,2 +0,0 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[818,3673],{3673:function(e,n,t){t.r(n),t.d(n,{default:function(){return f}});var l=t(6252),o=t(3577),i=t(3540),a={key:0,src:i,class:"loading"},r={key:1,class:"fas fa-circle-exclamation error"};function u(e,n,t,i,u,c){var s=(0,l.up)("Icon");return(0,l.wg)(),(0,l.iD)("div",{class:(0,o.C_)(["entity-icon-container",{"with-color-fill":!!c.colorFill}]),style:(0,o.j5)(c.colorFillStyle)},[t.loading?((0,l.wg)(),(0,l.iD)("img",a)):t.error?((0,l.wg)(),(0,l.iD)("i",r)):((0,l.wg)(),(0,l.j4)(s,(0,o.vs)((0,l.dG)({key:2},c.computedIcon)),null,16))],6)}var c=t(4648),s=(t(7042),t(1478)),d={name:"EntityIcon",components:{Icon:s.Z},props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},icon:{type:Object,required:!0},hasColorFill:{type:Boolean,default:!1}},data:function(){return{component:null,modalVisible:!1}},computed:{colorFill:function(){return this.hasColorFill&&this.icon.color?this.icon.color:null},colorFillStyle:function(){return this.colorFill&&!this.error?{background:this.colorFill}:{}},computedIcon:function(){var e=(0,c.Z)({},this.icon);return this.colorFill&&delete e.color,e},type:function(){var e=this.entity.type||"";return e.charAt(0).toUpperCase()+e.slice(1)}}},p=t(3744);const v=(0,p.Z)(d,[["render",u],["__scopeId","data-v-e4043550"]]);var f=v},818:function(e,n,t){t.r(n),t.d(n,{default:function(){return C}});t(8309),t(1539),t(3948);var l=t(6252),o=t(3577),i=t(9963),a={class:"entity switch-container"},r={class:"col-1 icon"},u={class:"col-s-8 col-m-9 label"},c=["textContent"],s={class:"col-s-3 col-m-2 buttons pull-right"},d=["textContent"],p={class:"row"},v={class:"input"},f={key:0,value:"",selected:""},h=["value","textContent"];function g(e,n,t,g,y,m){var w,k,x=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",a,[(0,l._)("div",{class:(0,o.C_)(["head",{expanded:y.expanded}])},[(0,l._)("div",r,[(0,l.Wm)(x,{icon:(null===(w=this.value.meta)||void 0===w?void 0:w.icon)||{},loading:e.loading,error:e.error},null,8,["icon","loading","error"])]),(0,l._)("div",u,[(0,l._)("div",{class:"name",textContent:(0,o.zw)(e.value.name)},null,8,c)]),(0,l._)("div",s,[m.hasValues?((0,l.wg)(),(0,l.iD)("button",{key:0,onClick:n[0]||(n[0]=(0,i.iM)((function(e){return y.expanded=!y.expanded}),["stop"]))},[(0,l._)("i",{class:(0,o.C_)(["fas",{"fa-angle-up":y.expanded,"fa-angle-down":!y.expanded}])},null,2)])):(0,l.kq)("",!0),null!=(null===(k=e.value)||void 0===k?void 0:k.value)?((0,l.wg)(),(0,l.iD)("span",{key:1,class:"value",textContent:(0,o.zw)(e.value.value)},null,8,d)):(0,l.kq)("",!0)])],2),y.expanded?((0,l.wg)(),(0,l.iD)("div",{key:0,class:"body",onClick:n[2]||(n[2]=(0,i.iM)((function(){return m.prevent&&m.prevent.apply(m,arguments)}),["stop"]))},[(0,l._)("div",p,[(0,l._)("div",v,[(0,l._)("select",{onInput:n[1]||(n[1]=function(){return m.setValue&&m.setValue.apply(m,arguments)}),ref:"values"},[e.value.is_write_only?((0,l.wg)(),(0,l.iD)("option",f,"--")):(0,l.kq)("",!0),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.value.values,(function(e){return(0,l.wg)(),(0,l.iD)("option",{value:e,key:e,textContent:(0,o.zw)(e)},null,8,h)})),128))],544)])])])):(0,l.kq)("",!0)])}var y=t(8534),m=(t(5666),t(7909)),w=t(3673),k={name:"EnumSwitch",components:{EntityIcon:w["default"]},mixins:[m["default"]],data:function(){return{expanded:!1}},computed:{hasValues:function(){var e,n;return!(null===this||void 0===this||null===(e=this.value)||void 0===e||null===(n=e.values)||void 0===n||!n.length)}},methods:{prevent:function(e){return e.stopPropagation(),!1},setValue:function(e){var n=this;return(0,y.Z)(regeneratorRuntime.mark((function t(){var l,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(null!==(l=e.target.value)&&void 0!==l&&l.length){t.next=2;break}return t.abrupt("return");case 2:return n.$emit("loading",!0),n.value.is_write_only&&(o=n,setTimeout((function(){o.$refs.values.value=""}),1e3)),t.prev=4,t.next=7,n.request("entities.execute",{id:n.value.id,action:"set_value",data:e.target.value});case 7:return t.prev=7,n.$emit("loading",!1),t.finish(7);case 10:case"end":return t.stop()}}),t,null,[[4,,7,10]])})))()}}},x=t(3744);const _=(0,x.Z)(k,[["render",g],["__scopeId","data-v-714faba4"]]);var C=_},3540:function(e,n,t){e.exports=t.p+"static/img/spinner.c0bee445.gif"}}]);
|
||||
//# sourceMappingURL=818-legacy.b4ae6fe1.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,2 +0,0 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[818,3673],{3673:function(e,t,l){l.r(t),l.d(t,{default:function(){return v}});var n=l(6252),o=l(3577),a=l(3540);const i={key:0,src:a,class:"loading"},s={key:1,class:"fas fa-circle-exclamation error"};function r(e,t,l,a,r,c){const u=(0,n.up)("Icon");return(0,n.wg)(),(0,n.iD)("div",{class:(0,o.C_)(["entity-icon-container",{"with-color-fill":!!c.colorFill}]),style:(0,o.j5)(c.colorFillStyle)},[l.loading?((0,n.wg)(),(0,n.iD)("img",i)):l.error?((0,n.wg)(),(0,n.iD)("i",s)):((0,n.wg)(),(0,n.j4)(u,(0,o.vs)((0,n.dG)({key:2},c.computedIcon)),null,16))],6)}var c=l(1478),u={name:"EntityIcon",components:{Icon:c.Z},props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},icon:{type:Object,required:!0},hasColorFill:{type:Boolean,default:!1}},data(){return{component:null,modalVisible:!1}},computed:{colorFill(){return this.hasColorFill&&this.icon.color?this.icon.color:null},colorFillStyle(){return this.colorFill&&!this.error?{background:this.colorFill}:{}},computedIcon(){const e={...this.icon};return this.colorFill&&delete e.color,e},type(){let e=this.entity.type||"";return e.charAt(0).toUpperCase()+e.slice(1)}}},d=l(3744);const p=(0,d.Z)(u,[["render",r],["__scopeId","data-v-e4043550"]]);var v=p},818:function(e,t,l){l.r(t),l.d(t,{default:function(){return x}});var n=l(6252),o=l(3577),a=l(9963);const i={class:"entity switch-container"},s={class:"col-1 icon"},r={class:"col-s-8 col-m-9 label"},c=["textContent"],u={class:"col-s-3 col-m-2 buttons pull-right"},d=["textContent"],p={class:"row"},v={class:"input"},h={key:0,value:"",selected:""},g=["value","textContent"];function y(e,t,l,y,f,m){const w=(0,n.up)("EntityIcon");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",{class:(0,o.C_)(["head",{expanded:f.expanded}])},[(0,n._)("div",s,[(0,n.Wm)(w,{icon:this.value.meta?.icon||{},loading:e.loading,error:e.error},null,8,["icon","loading","error"])]),(0,n._)("div",r,[(0,n._)("div",{class:"name",textContent:(0,o.zw)(e.value.name)},null,8,c)]),(0,n._)("div",u,[m.hasValues?((0,n.wg)(),(0,n.iD)("button",{key:0,onClick:t[0]||(t[0]=(0,a.iM)((e=>f.expanded=!f.expanded),["stop"]))},[(0,n._)("i",{class:(0,o.C_)(["fas",{"fa-angle-up":f.expanded,"fa-angle-down":!f.expanded}])},null,2)])):(0,n.kq)("",!0),null!=e.value?.value?((0,n.wg)(),(0,n.iD)("span",{key:1,class:"value",textContent:(0,o.zw)(e.value.value)},null,8,d)):(0,n.kq)("",!0)])],2),f.expanded?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"body",onClick:t[2]||(t[2]=(0,a.iM)(((...e)=>m.prevent&&m.prevent(...e)),["stop"]))},[(0,n._)("div",p,[(0,n._)("div",v,[(0,n._)("select",{onInput:t[1]||(t[1]=(...e)=>m.setValue&&m.setValue(...e)),ref:"values"},[e.value.is_write_only?((0,n.wg)(),(0,n.iD)("option",h,"--")):(0,n.kq)("",!0),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.value.values,(e=>((0,n.wg)(),(0,n.iD)("option",{value:e,key:e,textContent:(0,o.zw)(e)},null,8,g)))),128))],544)])])])):(0,n.kq)("",!0)])}var f=l(7909),m=l(3673),w={name:"EnumSwitch",components:{EntityIcon:m["default"]},mixins:[f["default"]],data(){return{expanded:!1}},computed:{hasValues(){return!!this?.value?.values?.length}},methods:{prevent(e){return e.stopPropagation(),!1},async setValue(e){if(e.target.value?.length){if(this.$emit("loading",!0),this.value.is_write_only){const e=this;setTimeout((()=>{e.$refs.values.value=""}),1e3)}try{await this.request("entities.execute",{id:this.value.id,action:"set_value",data:e.target.value})}finally{this.$emit("loading",!1)}}}}},_=l(3744);const k=(0,_.Z)(w,[["render",y],["__scopeId","data-v-714faba4"]]);var x=k},3540:function(e,t,l){e.exports=l.p+"static/img/spinner.c0bee445.gif"}}]);
|
||||
//# sourceMappingURL=818.3f4c9ffa.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
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
Loading…
Reference in New Issue