forked from platypush/platypush
[Automatic] Updated UI files
This commit is contained in:
parent
6b5dbe7c1e
commit
683ffa98c1
69 changed files with 79 additions and 79 deletions
|
@ -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.05911ac4.js"></script><script defer="defer" src="/static/js/app.47aad9f7.js"></script><link href="/static/css/chunk-vendors.d510eff2.css" rel="stylesheet"><link href="/static/css/app.81a70139.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.05911ac4.js"></script><script defer="defer" src="/static/js/app.90d7ba58.js"></script><link href="/static/css/chunk-vendors.d510eff2.css" rel="stylesheet"><link href="/static/css/app.495b8abb.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
1
platypush/backend/http/webapp/dist/static/css/8010.c7bd209b.css
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/css/8010.c7bd209b.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/css/9122.910eaed1.css
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/css/9122.910eaed1.css
vendored
Normal file
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 +1,2 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1949],{2797:function(t,e,a){a.d(e,{Z:function(){return m}});var l=a(6252),i=a(3577);const n=["title"];function s(t,e,a,s,o,r){const d=(0,l.up)("Icon");return(0,l.wg)(),(0,l.iD)("div",{class:(0,i.C_)(["floating-btn",r.className])},[(0,l._)("button",{type:"button",class:"btn btn-primary",title:a.title,onClick:e[0]||(e[0]=e=>t.$emit("click",e))},[(0,l.Wm)(d,{class:(0,i.C_)(a.iconClass),url:a.iconUrl},null,8,["class","url"])],8,n)],2)}var o=a(657),r={name:"FloatingButton",components:{Icon:o.Z},emits:["click"],props:{iconClass:{type:String},iconUrl:{type:String},class:{type:String},title:{type:String}},computed:{className(){return this.class}}},d=a(3744);const u=(0,d.Z)(r,[["render",s],["__scopeId","data-v-f812ef1c"]]);var m=u},1949:function(t,e,a){a.r(e),a.d(e,{default:function(){return b}});var l=a(6252);const i={key:2,class:"alarms-container"},n={class:"alarms items"};function s(t,e,a,s,o,r){const d=(0,l.up)("Loading"),u=(0,l.up)("NoItems"),m=(0,l.up)("Entity"),c=(0,l.up)("EntityModal"),p=(0,l.up)("AlarmEditor"),h=(0,l.up)("Modal"),y=(0,l.up)("FloatingButton");return(0,l.wg)(),(0,l.iD)(l.HY,null,[o.loading?((0,l.wg)(),(0,l.j4)(d,{key:0})):Object.keys(o.alarms).length?((0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",n,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.alarms,(t=>((0,l.wg)(),(0,l.iD)("div",{class:"item",key:t.external_id},[(0,l.Wm)(m,{value:t,onShowModal:e=>o.selectedAlarm=t.external_id},null,8,["value","onShowModal"])])))),128))])])):((0,l.wg)(),(0,l.j4)(u,{key:1},{default:(0,l.w5)((()=>[(0,l.Uk)(" No alarms configured ")])),_:1})),r.modalVisible?((0,l.wg)(),(0,l.j4)(c,{key:3,entity:o.alarms[o.selectedAlarm],visible:r.modalVisible,"config-values":{},onClose:e[0]||(e[0]=t=>o.selectedAlarm=null)},null,8,["entity","visible"])):(0,l.kq)("",!0),(0,l.Wm)(h,{title:"Add Alarm",visible:o.addAlarmModalVisible,onClose:e[1]||(e[1]=t=>o.addAlarmModalVisible=!1)},{default:(0,l.w5)((()=>[o.addAlarmModalVisible?((0,l.wg)(),(0,l.j4)(p,{key:0,value:o.newAlarm,"new-alarm":"",onInput:r.addAlarm},null,8,["value","onInput"])):(0,l.kq)("",!0)])),_:1},8,["visible"]),(0,l.Wm)(y,{"icon-class":"fa fa-stopwatch",text:"Add Alarm",onClick:e[2]||(e[2]=t=>o.addAlarmModalVisible=!0)})],64)}var o=a(9381),r=a(6791),d=a(1999),u=a(4558),m=a(2797),c=a(3493),p=a(3222),h=a(8637),y={components:{AlarmEditor:o["default"],Entity:u["default"],EntityModal:d["default"],FloatingButton:m.Z,Loading:r.Z,Modal:c.Z,NoItems:p.Z},mixins:[h.Z],props:{pluginName:{type:String},config:{type:Object,default:()=>{}}},data(){return{loading:!1,addAlarmModalVisible:!1,alarms:{},selectedAlarm:null,newAlarm:{condition_type:"cron",when:"* * * * *",audio_volume:this.$root.config?.alarm?.audio_volume??100,media_repeat:!0}}},computed:{modalVisible(){return null!=this.alarms[this.selectedAlarm]}},methods:{addAlarm(t){null!=t.external_id&&(t.name=t?.meta?.name_override||t.name,t.meta={...t.meta,icon:{class:t.meta?.icon?.["class"]||"fas fa-stopwatch"}},this.alarms[t.external_id]=t,this.addAlarmModalVisible=!1)},async refresh(){this.$emit("loading",!0);try{await this.request("alarm.status"),(await this.request("entities.get",{plugins:[this.pluginName]})).forEach((t=>this.addAlarm(t)))}finally{this.$emit("loading",!1)}},async onEntityUpdate(t){const e=t?.entity;e?.plugin===this.pluginName&&this.addAlarm(e)},async onEntityDelete(t){const e=t?.entity;e?.plugin===this.pluginName&&(this.selectedAlarm===e.external_id&&(this.selectedAlarm=null),this.alarms[e.external_id]&&delete this.alarms[e.external_id])}},mounted(){this.refresh(),this.subscribe(this.onEntityUpdate,"on-alarm-entity-update","platypush.message.event.entities.EntityUpdateEvent"),this.subscribe(this.onEntityDelete,"on-alarm-entity-delete","platypush.message.event.entities.EntityDeleteEvent")},unmounted(){this.unsubscribe("on-alarm-entity-update"),this.unsubscribe("on-alarm-entity-delete")}},g=a(3744);const f=(0,g.Z)(y,[["render",s],["__scopeId","data-v-52431f4a"]]);var b=f}}]);
|
||||
//# sourceMappingURL=1949.aa522c80.js.map
|
||||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1949],{2797:function(t,e,a){a.d(e,{Z:function(){return m}});var l=a(6252),i=a(3577);const n=["title"];function s(t,e,a,s,o,r){const d=(0,l.up)("Icon");return(0,l.wg)(),(0,l.iD)("div",{class:(0,i.C_)(["floating-btn",r.className])},[(0,l._)("button",{type:"button",class:"btn btn-primary",title:a.title,onClick:e[0]||(e[0]=e=>t.$emit("click",e))},[(0,l.Wm)(d,{class:(0,i.C_)(a.iconClass),url:a.iconUrl},null,8,["class","url"])],8,n)],2)}var o=a(657),r={name:"FloatingButton",components:{Icon:o.Z},emits:["click"],props:{iconClass:{type:String},iconUrl:{type:String},class:{type:String},title:{type:String}},computed:{className(){return this.class}}},d=a(3744);const u=(0,d.Z)(r,[["render",s],["__scopeId","data-v-f812ef1c"]]);var m=u},1949:function(t,e,a){a.r(e),a.d(e,{default:function(){return b}});var l=a(6252);const i={key:2,class:"alarms-container"},n={class:"alarms items"};function s(t,e,a,s,o,r){const d=(0,l.up)("Loading"),u=(0,l.up)("NoItems"),m=(0,l.up)("Entity"),c=(0,l.up)("EntityModal"),p=(0,l.up)("AlarmEditor"),h=(0,l.up)("Modal"),y=(0,l.up)("FloatingButton");return(0,l.wg)(),(0,l.iD)(l.HY,null,[o.loading?((0,l.wg)(),(0,l.j4)(d,{key:0})):Object.keys(o.alarms).length?((0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",n,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.alarms,(t=>((0,l.wg)(),(0,l.iD)("div",{class:"item",key:t.external_id},[(0,l.Wm)(m,{value:t,onShowModal:e=>o.selectedAlarm=t.external_id},null,8,["value","onShowModal"])])))),128))])])):((0,l.wg)(),(0,l.j4)(u,{key:1},{default:(0,l.w5)((()=>[(0,l.Uk)(" No alarms configured ")])),_:1})),r.modalVisible?((0,l.wg)(),(0,l.j4)(c,{key:3,entity:o.alarms[o.selectedAlarm],visible:r.modalVisible,"config-values":{},onClose:e[0]||(e[0]=t=>o.selectedAlarm=null)},null,8,["entity","visible"])):(0,l.kq)("",!0),(0,l.Wm)(h,{title:"Add Alarm",visible:o.addAlarmModalVisible,onClose:e[1]||(e[1]=t=>o.addAlarmModalVisible=!1)},{default:(0,l.w5)((()=>[o.addAlarmModalVisible?((0,l.wg)(),(0,l.j4)(p,{key:0,value:o.newAlarm,"new-alarm":"",onInput:r.addAlarm},null,8,["value","onInput"])):(0,l.kq)("",!0)])),_:1},8,["visible"]),(0,l.Wm)(y,{"icon-class":"fa fa-stopwatch",text:"Add Alarm",onClick:e[2]||(e[2]=t=>o.addAlarmModalVisible=!0)})],64)}var o=a(9381),r=a(6791),d=a(1999),u=a(4558),m=a(2797),c=a(5166),p=a(3222),h=a(8637),y={components:{AlarmEditor:o["default"],Entity:u["default"],EntityModal:d["default"],FloatingButton:m.Z,Loading:r.Z,Modal:c.Z,NoItems:p.Z},mixins:[h.Z],props:{pluginName:{type:String},config:{type:Object,default:()=>{}}},data(){return{loading:!1,addAlarmModalVisible:!1,alarms:{},selectedAlarm:null,newAlarm:{condition_type:"cron",when:"* * * * *",audio_volume:this.$root.config?.alarm?.audio_volume??100,media_repeat:!0}}},computed:{modalVisible(){return null!=this.alarms[this.selectedAlarm]}},methods:{addAlarm(t){null!=t.external_id&&(t.name=t?.meta?.name_override||t.name,t.meta={...t.meta,icon:{class:t.meta?.icon?.["class"]||"fas fa-stopwatch"}},this.alarms[t.external_id]=t,this.addAlarmModalVisible=!1)},async refresh(){this.$emit("loading",!0);try{await this.request("alarm.status"),(await this.request("entities.get",{plugins:[this.pluginName]})).forEach((t=>this.addAlarm(t)))}finally{this.$emit("loading",!1)}},async onEntityUpdate(t){const e=t?.entity;e?.plugin===this.pluginName&&this.addAlarm(e)},async onEntityDelete(t){const e=t?.entity;e?.plugin===this.pluginName&&(this.selectedAlarm===e.external_id&&(this.selectedAlarm=null),this.alarms[e.external_id]&&delete this.alarms[e.external_id])}},mounted(){this.refresh(),this.subscribe(this.onEntityUpdate,"on-alarm-entity-update","platypush.message.event.entities.EntityUpdateEvent"),this.subscribe(this.onEntityDelete,"on-alarm-entity-delete","platypush.message.event.entities.EntityDeleteEvent")},unmounted(){this.unsubscribe("on-alarm-entity-update"),this.unsubscribe("on-alarm-entity-delete")}},g=a(3744);const f=(0,g.Z)(y,[["render",s],["__scopeId","data-v-52431f4a"]]);var b=f}}]);
|
||||
//# sourceMappingURL=1949.3baca6d5.js.map
|
File diff suppressed because one or more lines are too long
|
@ -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}}]);
|
||||
//# sourceMappingURL=2106.50dde272.js.map
|
||||
"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(5166),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.283a2018.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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
platypush/backend/http/webapp/dist/static/js/8010.c9b590a2.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/8010.c9b590a2.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/js/8010.c9b590a2.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/8010.c9b590a2.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,2 +1,2 @@
|
|||
(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8179],{8179:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return x}});var i=t(6252);const o={class:"plugin"};function a(e,n,t,a,d,r){const s=(0,i.up)("Loading");return(0,i.wg)(),(0,i.iD)("div",o,[d.loading?((0,i.wg)(),(0,i.j4)(s,{key:0})):d.component?((0,i.wg)(),(0,i.j4)((0,i.LL)(d.component),{key:1,config:d.config},null,8,["config"])):(0,i.kq)("",!0)])}var d=t(8637),r=t(6791),s=t(2262),c={name:"Plugin",components:{Loading:r.Z},mixins:[d.Z],props:{pluginName:{type:String,required:!0}},data(){return{loading:!1,component:null,config:{}}},computed:{componentName(){return this.pluginName.split(".").map((e=>e[0].toUpperCase()+e.slice(1))).join("")}},methods:{refresh:async function(){this.loading=!0;try{this.component=(0,s.XI)((0,i.RC)((()=>t(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=t(3744);const p=(0,u.Z)(c,[["render",a],["__scopeId","data-v-69b17daa"]]);var x=p},3379:function(e,n,t){var i={"./Alarm/Index":[1949,7651,5933,7243,2844,2308,2992,735,6281,58,1807,9381,9732,1949],"./Camera/Index":[7528,7528],"./CameraAndroidIpcam/Index":[3924,3924],"./CameraCv/Index":[6148,7528,6148],"./CameraFfmpeg/Index":[9334,7528,9334],"./CameraGstreamer/Index":[813,7528,813],"./CameraIrMlx90640/Index":[7381,7528,7381],"./CameraPi/Index":[5214,7528,8895],"./CameraPiLegacy/Index":[1512,7528,1512],"./Entities/Index":[2948,5933,7243,2992,669,864,9732,2948],"./Execute/Index":[4221,5933,735,1807,5197],"./Extensions/Index":[2018,5933,735,58,2924,6217,2018,3862],"./Light/Index":[9751,7651,2844,9751],"./LightHue/Index":[2976,7651,2844,9751,2976],"./Media/Index":[7493,7651,5933,7243,906,1171,2308,7624,182,7493],"./Media/Providers/YouTube/Index":[2200,2200],"./MediaMplayer/Index":[3518,7651,5933,7243,906,1171,2308,7624,182,7493,3518],"./MediaMpv/Index":[4765,7651,5933,7243,906,1171,2308,7624,182,7493,4765],"./MediaOmxplayer/Index":[7819,7651,5933,7243,906,1171,2308,7624,182,7493,7819],"./MediaVlc/Index":[2614,7651,5933,7243,906,1171,2308,7624,182,7493,2614],"./Music/Index":[4015,7651,5933,7243,906,1171,4015],"./MusicMopidy/Index":[3400,7651,5933,7243,906,1171,4015,3400],"./MusicMpd/Index":[3083,7651,5933,7243,906,1171,4015,3083],"./MusicSnapcast/Index":[5285,7651,2844,5285],"./MusicSpotify/Index":[4053,7651,5933,7243,906,1171,4015,4053],"./Rtorrent/Index":[2183,5933,7243,7624,6429,2183],"./Settings/Index":[4166,5933,7243,6281,2924,4166],"./Sound/Index":[746,746],"./Torrent/Index":[8784,5933,7243,7624,6429,8784],"./Tts/Index":[3732,8069,3732],"./TtsGoogle/Index":[7605,8069,2853],"./TtsPicovoice/Index":[7089,8069,7089],"./TvSamsungWs/Index":[34,34],"./ZigbeeMqtt/Index":[6882,7651,5933,7243,2844,6882],"./Zwave/Index":[2732,7651,5933,7243,2844,2718,2732],"./ZwaveMqtt/Index":[1088,7651,5933,7243,2844,2718,1088]};function o(e){if(!t.o(i,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=i[e],o=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(o)}))}o.keys=function(){return Object.keys(i)},o.id=3379,e.exports=o}}]);
|
||||
//# sourceMappingURL=8179.373b33c6.js.map
|
||||
(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8179],{8179:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return x}});var i=t(6252);const o={class:"plugin"};function a(e,n,t,a,d,r){const s=(0,i.up)("Loading");return(0,i.wg)(),(0,i.iD)("div",o,[d.loading?((0,i.wg)(),(0,i.j4)(s,{key:0})):d.component?((0,i.wg)(),(0,i.j4)((0,i.LL)(d.component),{key:1,config:d.config},null,8,["config"])):(0,i.kq)("",!0)])}var d=t(8637),r=t(6791),s=t(2262),c={name:"Plugin",components:{Loading:r.Z},mixins:[d.Z],props:{pluginName:{type:String,required:!0}},data(){return{loading:!1,component:null,config:{}}},computed:{componentName(){return this.pluginName.split(".").map((e=>e[0].toUpperCase()+e.slice(1))).join("")}},methods:{refresh:async function(){this.loading=!0;try{this.component=(0,s.XI)((0,i.RC)((()=>t(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=t(3744);const p=(0,u.Z)(c,[["render",a],["__scopeId","data-v-69b17daa"]]);var x=p},3379:function(e,n,t){var i={"./Alarm/Index":[1949,7651,5933,7243,2844,2308,2992,735,6281,58,1807,9381,9732,1949],"./Camera/Index":[7528,7528],"./CameraAndroidIpcam/Index":[3924,3924],"./CameraCv/Index":[6148,7528,6148],"./CameraFfmpeg/Index":[9334,7528,9334],"./CameraGstreamer/Index":[813,7528,813],"./CameraIrMlx90640/Index":[7381,7528,7381],"./CameraPi/Index":[5214,7528,8895],"./CameraPiLegacy/Index":[1512,7528,1512],"./Entities/Index":[2948,5933,7243,2992,669,864,9732,2948],"./Execute/Index":[4221,5933,735,1807,5197],"./Extensions/Index":[2018,5933,735,58,2924,6217,2018,3862],"./Light/Index":[9751,7651,2844,9751],"./LightHue/Index":[2976,7651,2844,9751,2976],"./Media/Index":[7493,7651,5933,7243,906,1171,2308,7624,182,7493],"./Media/Providers/YouTube/Index":[2200,2200],"./MediaMplayer/Index":[3518,7651,5933,7243,906,1171,2308,7624,182,7493,3518],"./MediaMpv/Index":[4765,7651,5933,7243,906,1171,2308,7624,182,7493,4765],"./MediaOmxplayer/Index":[7819,7651,5933,7243,906,1171,2308,7624,182,7493,7819],"./MediaVlc/Index":[2614,7651,5933,7243,906,1171,2308,7624,182,7493,2614],"./Music/Index":[4015,7651,5933,7243,906,1171,4015],"./MusicMopidy/Index":[3400,7651,5933,7243,906,1171,4015,3400],"./MusicMpd/Index":[3083,7651,5933,7243,906,1171,4015,3083],"./MusicSnapcast/Index":[5285,7651,2844,5285],"./MusicSpotify/Index":[4053,7651,5933,7243,906,1171,4015,4053],"./Rtorrent/Index":[2183,5933,7243,7624,6429,2183],"./Settings/Index":[8010,5933,7243,2844,6281,2924,8010],"./Sound/Index":[746,746],"./Torrent/Index":[8784,5933,7243,7624,6429,8784],"./Tts/Index":[3732,8069,3732],"./TtsGoogle/Index":[7605,8069,2853],"./TtsPicovoice/Index":[7089,8069,7089],"./TvSamsungWs/Index":[34,34],"./ZigbeeMqtt/Index":[6882,7651,5933,7243,2844,6882],"./Zwave/Index":[2732,7651,5933,7243,2844,2718,2732],"./ZwaveMqtt/Index":[1088,7651,5933,7243,2844,2718,1088]};function o(e){if(!t.o(i,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=i[e],o=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(o)}))}o.keys=function(){return Object.keys(i)},o.id=3379,e.exports=o}}]);
|
||||
//# sourceMappingURL=8179.8cdc4214.js.map
|
1
platypush/backend/http/webapp/dist/static/js/8179.8cdc4214.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/8179.8cdc4214.js.map
vendored
Normal file
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
2
platypush/backend/http/webapp/dist/static/js/app.90d7ba58.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/app.90d7ba58.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/js/app.90d7ba58.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/app.90d7ba58.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,2 +1,2 @@
|
|||
(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9966],{8332:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return _}});var a=t(6252),r=t(3577);function n(e,s,t,n,o,l){const d=(0,a.up)("Loading"),i=(0,a.up)("Widget"),c=(0,a.up)("Row");return(0,a.wg)(),(0,a.iD)(a.HY,null,[o.loading?((0,a.wg)(),(0,a.j4)(d,{key:0})):(0,a.kq)("",!0),(0,a._)("div",{id:"dashboard",class:(0,r.C_)(["col-12",l.classes]),style:(0,r.j5)(o.style)},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(o.rows,((e,s)=>((0,a.wg)(),(0,a.j4)(c,{key:s,class:(0,r.C_)(e.class),style:(0,r.j5)(e.style)},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.widgets,((e,s)=>((0,a.wg)(),(0,a.j4)(a.Ob,{key:s},[(0,a.Wm)(i,{style:(0,r.j5)(e.style),class:(0,r.C_)(e.class)},{default:(0,a.w5)((()=>[((0,a.wg)(),(0,a.j4)((0,a.LL)(e.component),(0,a.dG)({ref_for:!0},l.getWidgetProps(e)),null,16))])),_:2},1032,["style","class"])],1024)))),128))])),_:2},1032,["class","style"])))),128))],6)],64)}var o=t(2262),l=t(8637),d=t(6791);function i(e,s,t,n,o,l){return(0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["row",l.classes]),style:(0,r.j5)(t.style)},[(0,a.WI)(e.$slots,"default",{},void 0,!0)],6)}var c={name:"Row",props:{class:{type:String,required:!1,default:""},style:{type:String,required:!1,default:""}},computed:{classes(){return this.class}}},u=t(3744);const p=(0,u.Z)(c,[["render",i],["__scopeId","data-v-1b4663f2"]]);var h=p;function f(e,s,t,n,o,l){return(0,a.wg)(),(0,a.iD)("div",{style:(0,r.j5)(t.style),class:(0,r.C_)(l.classes)},[(0,a.WI)(e.$slots,"default",{},void 0,!0)],6)}var m={name:"Widget",props:{style:{type:String,required:!1,default:""},class:{type:String,required:!1,default:""}},computed:{classes(){return(this.class?.length?this.class.split(" "):["col-3"]).concat(["widget","column"])}}};const g=(0,u.Z)(m,[["render",f],["__scopeId","data-v-5df52982"]]);var y=g,w={name:"Dashboard",mixins:[l.Z],components:{Widget:y,Loading:d.Z,Row:h},props:{refreshSeconds:{type:Number,required:!1,default:0}},data(){return{rows:[],loading:!1,style:void 0,class:void 0}},computed:{classes(){return this.class},_refreshSeconds(){return parseFloat(this.refreshSeconds)||0}},methods:{getWidgetProps(e){const s={...e.props};return s.class&&delete s.class,s},parseTemplate(e){const s=(new DOMParser).parseFromString(e,"text/xml").childNodes[0],r=this;this.style=s.attributes.style?.nodeValue,this.class=s.attributes.class?.nodeValue,this.rows=[...s.getElementsByTagName("Row")].map((e=>({style:e.attributes.style?.nodeValue,class:e.attributes.class?.nodeValue,widgets:[...e.children].map((e=>{const s=(0,o.XI)((0,a.RC)((()=>t(6725)(`./${e.nodeName}/Index`)))),n=e.attributes.style?.nodeValue,l=e.attributes.class?.nodeValue,d=[...e.attributes].reduce(((e,s)=>("style"!==s.nodeName&&(e[s.nodeName]=s.nodeValue),e)),{content:e.innerHTML}),i={component:s,style:n,class:l,props:d||{}};return r.$options.components[e.nodeName]=s,i}))}))),this.loading=!1},async refreshDashboard(){this.loading=!0,this.widgets=[];const e=this.$route.params.name,s=await this.request("config.get_dashboard",{name:e});s||this.notifyError(`Dashboard ${e} not found`),this.parseTemplate(s)}},mounted(){if(this.refreshDashboard(),this._refreshSeconds){const e=this;setInterval((()=>{e.refreshDashboard()}),parseInt((1e3*this._refreshSeconds).toFixed(0)))}}};const v=(0,u.Z)(w,[["render",n],["__scopeId","data-v-462fad8c"]]);var _=v},6725:function(e,s,t){var a={"./Calendar/Index":[5638,5638],"./Camera/Index":[446,446],"./Component/Index":[1449,7651,2844,1449],"./DateTime/Index":[4619,1391,4619],"./DateTimeWeather/Index":[9962,9211,1391,9962],"./ImageCarousel/Index":[2140,9211,1391,2140],"./Music/Index":[7841,7651,906,7841],"./Plugin/Index":[8179,8179],"./RssNews/Index":[6523,6523],"./Weather/Index":[9211,9211]};function r(e){if(!t.o(a,e))return Promise.resolve().then((function(){var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}));var s=a[e],r=s[0];return Promise.all(s.slice(1).map(t.e)).then((function(){return t(r)}))}r.keys=function(){return Object.keys(a)},r.id=6725,e.exports=r}}]);
|
||||
//# sourceMappingURL=dashboard.8eaf2de4.js.map
|
||||
//# sourceMappingURL=dashboard.fd1a4743.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,2 +0,0 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4535],{8925:function(e,t,s){s.r(t),s.d(t,{default:function(){return q}});var r=s(6252),a=s(3577);const i=e=>((0,r.dD)("data-v-f5e7f974"),e=e(),(0,r.Cn)(),e),n={key:1,class:"login-container"},o=i((()=>(0,r._)("div",{class:"header"},[(0,r._)("span",{class:"logo"},[(0,r._)("img",{src:"/logo.svg",alt:"logo"})]),(0,r._)("span",{class:"text"},"Platypush")],-1))),l={class:"row"},c=["disabled"],d={class:"row"},u=["disabled"],h={key:0,class:"row"},p=["disabled"],g={class:"row buttons"},m=["disabled"],w=i((()=>(0,r._)("div",{class:"row pull-right"},[(0,r._)("label",{class:"checkbox"},[(0,r._)("input",{type:"checkbox",name:"remember"}),(0,r.Uk)(" Keep me logged in on this device ")])],-1))),_={key:1,class:"auth-error"};function b(e,t,s,i,b,y){const k=(0,r.up)("Loading");return b.initialized?((0,r.wg)(),(0,r.iD)("div",n,[b.isAuthenticated?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("form",{key:0,class:"login",method:"POST",onSubmit:t[0]||(t[0]=(...e)=>y.submitForm&&y.submitForm(...e))},[o,(0,r._)("div",l,[(0,r._)("label",null,[(0,r._)("input",{type:"text",name:"username",disabled:b.authenticating,placeholder:"Username",ref:"username"},null,8,c)])]),(0,r._)("div",d,[(0,r._)("label",null,[(0,r._)("input",{type:"password",name:"password",disabled:b.authenticating,placeholder:"Password"},null,8,u)])]),s.register?((0,r.wg)(),(0,r.iD)("div",h,[(0,r._)("label",null,[(0,r._)("input",{type:"password",name:"confirm_password",disabled:b.authenticating,placeholder:"Confirm password"},null,8,p)])])):(0,r.kq)("",!0),(0,r._)("div",g,[(0,r._)("button",{type:"submit",class:(0,a.C_)(["btn btn-primary",{loading:b.authenticating}]),disabled:b.authenticating},[b.authenticating?((0,r.wg)(),(0,r.j4)(k,{key:0})):(0,r.kq)("",!0),(0,r.Uk)(" "+(0,a.zw)(s.register?"Register":"Login"),1)],10,m)]),w,b.authError?((0,r.wg)(),(0,r.iD)("div",_,(0,a.zw)(b.authError),1)):(0,r.kq)("",!0)],32))])):((0,r.wg)(),(0,r.j4)(k,{key:0}))}var y=s(6791),k=s(8637),f=s(7066),v={name:"Login",mixins:[k.Z],components:{Loading:y.Z},props:{register:{type:Boolean,required:!1,default:!1}},computed:{redirect(){return this.$route.query.redirect?.length?this.$route.query.redirect:"/"}},data(){return{authError:null,authenticating:!1,isAuthenticated:!1,initialized:!1}},methods:{async submitForm(e){e.preventDefault();const t=e.target,s=new FormData(t),r="/auth?type="+(this.register?"register":"login");if(this.register&&s.get("password")!==s.get("confirm_password"))this.authError="Passwords don't match";else{this.authError=null;try{const e=await f.Z.post(r,s),t=e?.data?.session_token;if(t){const s=e.expires_at?Date.parse(e.expires_at):null;this.isAuthenticated=!0,this.setCookie("session_token",t,{expires:s}),window.location.href=e.redirect||this.redirect}else this.authError="Invalid credentials"}catch(e){this.authError=e.response.data.message||e.response.data.error,401===e.response?.status?this.authError=this.authError||"Invalid credentials":(this.authError=this.authError||"An error occurred while processing the request",e.response?console.error(e.response.status,e.response.data):console.error(e))}}},async checkAuth(){try{const e=await f.Z.get("/auth");e.data.session_token&&(this.isAuthenticated=!0,window.location.href=e.redirect||this.redirect)}catch(e){this.isAuthenticated=!1}finally{this.initialized=!0}}},async created(){await this.checkAuth()},async mounted(){this.$nextTick((()=>{this.$refs.username?.focus()}))}},E=s(3744);const x=(0,E.Z)(v,[["render",b],["__scopeId","data-v-f5e7f974"]]);var q=x}}]);
|
||||
//# sourceMappingURL=login.2645d0f5.js.map
|
File diff suppressed because one or more lines are too long
2
platypush/backend/http/webapp/dist/static/js/login.588012cf.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/login.588012cf.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4535],{8137:function(e,t,s){s.r(t),s.d(t,{default:function(){return A}});var r=s(6252),i=s(3577);const a=e=>((0,r.dD)("data-v-1b764fc6"),e=e(),(0,r.Cn)(),e),n={key:1,class:"login-container"},o=a((()=>(0,r._)("div",{class:"header"},[(0,r._)("span",{class:"logo"},[(0,r._)("img",{src:"/logo.svg",alt:"logo"})]),(0,r._)("span",{class:"text"},"Platypush")],-1))),l={class:"row"},d=["type","disabled"],c={class:"row"},u=["type","disabled"],h={key:0,class:"row"},p=["disabled"],g={key:1,class:"row"},m=["disabled"],w={class:"row buttons"},b=["disabled"],_=a((()=>(0,r._)("div",{class:"row pull-right"},[(0,r._)("label",{class:"checkbox"},[(0,r._)("input",{type:"checkbox",name:"remember"}),(0,r.Uk)(" Keep me logged in on this device ")])],-1))),f={key:2,class:"auth-error"};function y(e,t,s,a,y,k){const v=(0,r.up)("Loading");return y.initialized?((0,r.wg)(),(0,r.iD)("div",n,[y.isAuthenticated?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("form",{key:0,class:"login",method:"POST",onSubmit:t[0]||(t[0]=(...e)=>k.submitForm&&k.submitForm(...e))},[o,(0,r._)("div",l,[(0,r._)("label",null,[(0,r._)("input",{type:y.requires2fa?"hidden":"text",name:"username",disabled:y.authenticating,placeholder:"Username",ref:"username"},null,8,d)])]),(0,r._)("div",c,[(0,r._)("label",null,[(0,r._)("input",{type:y.requires2fa?"hidden":"password",name:"password",disabled:y.authenticating,placeholder:"Password"},null,8,u)])]),y.requires2fa?((0,r.wg)(),(0,r.iD)("div",h,[(0,r._)("label",null,[(0,r._)("input",{type:"text",name:"code",disabled:y.authenticating,placeholder:"2FA code",ref:"code"},null,8,p)])])):(0,r.kq)("",!0),s.register?((0,r.wg)(),(0,r.iD)("div",g,[(0,r._)("label",null,[(0,r._)("input",{type:"password",name:"confirm_password",disabled:y.authenticating,placeholder:"Confirm password"},null,8,m)])])):(0,r.kq)("",!0),(0,r._)("div",w,[(0,r._)("button",{type:"submit",class:(0,i.C_)(["btn btn-primary",{loading:y.authenticating}]),disabled:y.authenticating},[y.authenticating?((0,r.wg)(),(0,r.j4)(v,{key:0})):(0,r.kq)("",!0),(0,r.Uk)(" "+(0,i.zw)(s.register?"Register":"Login"),1)],10,b)]),_,y.authError?((0,r.wg)(),(0,r.iD)("div",f,(0,i.zw)(y.authError),1)):(0,r.kq)("",!0)],32))])):((0,r.wg)(),(0,r.j4)(v,{key:0}))}var k=s(6791),v=s(8637),q=s(7066),E={name:"Login",mixins:[v.Z],components:{Loading:k.Z},props:{register:{type:Boolean,required:!1,default:!1}},computed:{redirect(){return this.$route.query.redirect?.length?this.$route.query.redirect:"/"}},data(){return{authError:null,authenticating:!1,isAuthenticated:!1,initialized:!1,requires2fa:!1}},methods:{async submitForm(e){e.preventDefault();const t=e.target,s=new FormData(t),r="/auth?type="+(this.register?"register":"login");if(this.register&&s.get("password")!==s.get("confirm_password"))this.authError="Passwords don't match";else{this.authError=null;try{const e=await q.Z.post(r,s),t=e?.data?.session_token;if(t){const s=e.expires_at?Date.parse(e.expires_at):null;this.isAuthenticated=!0,this.setCookie("session_token",t,{expires:s}),window.location.href=e.redirect||this.redirect}else this.authError="Invalid credentials"}catch(e){"MISSING_OTP_CODE"===e.response?.data?.error?(this.requires2fa=!0,this.$nextTick((()=>{this.$refs.code?.focus()}))):(this.authError=e.response.data.message||e.response.data.error,401===e.response?.status?this.authError=this.authError||"Invalid credentials":(this.authError=this.authError||"An error occurred while processing the request",e.response?console.error(e.response.status,e.response.data):console.error(e)))}}},async checkAuth(){try{const e=await q.Z.get("/auth");e.data.session_token&&(this.isAuthenticated=!0,window.location.href=e.redirect||this.redirect)}catch(e){this.isAuthenticated=!1}finally{this.initialized=!0}}},async created(){await this.checkAuth()},async mounted(){this.$nextTick((()=>{this.$refs.username?.focus()}))}},x=s(3744);const D=(0,x.Z)(E,[["render",y],["__scopeId","data-v-1b764fc6"]]);var A=D}}]);
|
||||
//# sourceMappingURL=login.588012cf.js.map
|
1
platypush/backend/http/webapp/dist/static/js/login.588012cf.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/login.588012cf.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,2 +1,2 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2245],{2751:function(n,u,t){t.r(u),t.d(u,{default:function(){return s}});var e=t(6252);function r(n,u,t,r,a,c){return(0,e.wg)(),(0,e.iD)("h1",null,"Object not found")}var a={name:"NotFound"},c=t(3744);const o=(0,c.Z)(a,[["render",r]]);var s=o}}]);
|
||||
//# sourceMappingURL=notfound.46477842.js.map
|
||||
//# sourceMappingURL=notfound.388a3a0b.js.map
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"static/js/notfound.46477842.js","mappings":"uNACEA,EAAAA,EAAAA,IAAyB,UAArB,mB,CAIN,OACEC,KAAM,Y,UCDR,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/views/NotFound.vue","webpack://platypush/./src/views/NotFound.vue?0aab"],"sourcesContent":["<template>\n <h1>Object not found</h1>\n</template>\n\n<script>\nexport default {\n name: \"NotFound\"\n}\n</script>\n\n","import { render } from \"./NotFound.vue?vue&type=template&id=49501f4d\"\nimport script from \"./NotFound.vue?vue&type=script&lang=js\"\nexport * from \"./NotFound.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["_createElementBlock","name","__exports__","render"],"sourceRoot":""}
|
||||
{"version":3,"file":"static/js/notfound.388a3a0b.js","mappings":"uNACEA,EAAAA,EAAAA,IAAyB,UAArB,mB,CAIN,OACEC,KAAM,Y,UCDR,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/views/NotFound.vue","webpack://platypush/./src/views/NotFound.vue?0aab"],"sourcesContent":["<template>\n <h1>Object not found</h1>\n</template>\n\n<script>\nexport default {\n name: \"NotFound\"\n}\n</script>\n\n","import { render } from \"./NotFound.vue?vue&type=template&id=49501f4d\"\nimport script from \"./NotFound.vue?vue&type=script&lang=js\"\nexport * from \"./NotFound.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["_createElementBlock","name","__exports__","render"],"sourceRoot":""}
|
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/js/panel.8a0ee873.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/panel.8a0ee873.js.map
vendored
Normal file
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
platypush/backend/http/webapp/dist/static/js/plugin.9bdd8cab.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/plugin.9bdd8cab.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,2 +0,0 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[685,4535],{8925:function(e,t,r){r.r(t),r.d(t,{default:function(){return q}});var s=r(6252),i=r(3577);const a=e=>((0,s.dD)("data-v-f5e7f974"),e=e(),(0,s.Cn)(),e),n={key:1,class:"login-container"},o=a((()=>(0,s._)("div",{class:"header"},[(0,s._)("span",{class:"logo"},[(0,s._)("img",{src:"/logo.svg",alt:"logo"})]),(0,s._)("span",{class:"text"},"Platypush")],-1))),l={class:"row"},u=["disabled"],d={class:"row"},c=["disabled"],h={key:0,class:"row"},p=["disabled"],g={class:"row buttons"},m=["disabled"],w=a((()=>(0,s._)("div",{class:"row pull-right"},[(0,s._)("label",{class:"checkbox"},[(0,s._)("input",{type:"checkbox",name:"remember"}),(0,s.Uk)(" Keep me logged in on this device ")])],-1))),f={key:1,class:"auth-error"};function y(e,t,r,a,y,_){const b=(0,s.up)("Loading");return y.initialized?((0,s.wg)(),(0,s.iD)("div",n,[y.isAuthenticated?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("form",{key:0,class:"login",method:"POST",onSubmit:t[0]||(t[0]=(...e)=>_.submitForm&&_.submitForm(...e))},[o,(0,s._)("div",l,[(0,s._)("label",null,[(0,s._)("input",{type:"text",name:"username",disabled:y.authenticating,placeholder:"Username",ref:"username"},null,8,u)])]),(0,s._)("div",d,[(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"password",disabled:y.authenticating,placeholder:"Password"},null,8,c)])]),r.register?((0,s.wg)(),(0,s.iD)("div",h,[(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"confirm_password",disabled:y.authenticating,placeholder:"Confirm password"},null,8,p)])])):(0,s.kq)("",!0),(0,s._)("div",g,[(0,s._)("button",{type:"submit",class:(0,i.C_)(["btn btn-primary",{loading:y.authenticating}]),disabled:y.authenticating},[y.authenticating?((0,s.wg)(),(0,s.j4)(b,{key:0})):(0,s.kq)("",!0),(0,s.Uk)(" "+(0,i.zw)(r.register?"Register":"Login"),1)],10,m)]),w,y.authError?((0,s.wg)(),(0,s.iD)("div",f,(0,i.zw)(y.authError),1)):(0,s.kq)("",!0)],32))])):((0,s.wg)(),(0,s.j4)(b,{key:0}))}var _=r(6791),b=r(8637),k=r(7066),v={name:"Login",mixins:[b.Z],components:{Loading:_.Z},props:{register:{type:Boolean,required:!1,default:!1}},computed:{redirect(){return this.$route.query.redirect?.length?this.$route.query.redirect:"/"}},data(){return{authError:null,authenticating:!1,isAuthenticated:!1,initialized:!1}},methods:{async submitForm(e){e.preventDefault();const t=e.target,r=new FormData(t),s="/auth?type="+(this.register?"register":"login");if(this.register&&r.get("password")!==r.get("confirm_password"))this.authError="Passwords don't match";else{this.authError=null;try{const e=await k.Z.post(s,r),t=e?.data?.session_token;if(t){const r=e.expires_at?Date.parse(e.expires_at):null;this.isAuthenticated=!0,this.setCookie("session_token",t,{expires:r}),window.location.href=e.redirect||this.redirect}else this.authError="Invalid credentials"}catch(e){this.authError=e.response.data.message||e.response.data.error,401===e.response?.status?this.authError=this.authError||"Invalid credentials":(this.authError=this.authError||"An error occurred while processing the request",e.response?console.error(e.response.status,e.response.data):console.error(e))}}},async checkAuth(){try{const e=await k.Z.get("/auth");e.data.session_token&&(this.isAuthenticated=!0,window.location.href=e.redirect||this.redirect)}catch(e){this.isAuthenticated=!1}finally{this.initialized=!0}}},async created(){await this.checkAuth()},async mounted(){this.$nextTick((()=>{this.$refs.username?.focus()}))}},E=r(3744);const x=(0,E.Z)(v,[["render",y],["__scopeId","data-v-f5e7f974"]]);var q=x},9780:function(e,t,r){r.r(t),r.d(t,{default:function(){return u}});var s=r(6252);function i(e,t,r,i,a,n){const o=(0,s.up)("Login");return(0,s.wg)(),(0,s.j4)(o,{register:!0})}var a=r(8925),n={name:"Register",mixins:[a["default"]],components:{Login:a["default"]},props:{register:{type:Boolean,required:!1,default:!0}}},o=r(3744);const l=(0,o.Z)(n,[["render",i]]);var u=l}}]);
|
||||
//# sourceMappingURL=register.5ed802b7.js.map
|
File diff suppressed because one or more lines are too long
2
platypush/backend/http/webapp/dist/static/js/register.c6276a24.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/register.c6276a24.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[685,4535],{8137:function(e,t,r){r.r(t),r.d(t,{default:function(){return A}});var s=r(6252),i=r(3577);const a=e=>((0,s.dD)("data-v-1b764fc6"),e=e(),(0,s.Cn)(),e),n={key:1,class:"login-container"},o=a((()=>(0,s._)("div",{class:"header"},[(0,s._)("span",{class:"logo"},[(0,s._)("img",{src:"/logo.svg",alt:"logo"})]),(0,s._)("span",{class:"text"},"Platypush")],-1))),d={class:"row"},l=["type","disabled"],u={class:"row"},c=["type","disabled"],h={key:0,class:"row"},p=["disabled"],g={key:1,class:"row"},m=["disabled"],f={class:"row buttons"},w=["disabled"],b=a((()=>(0,s._)("div",{class:"row pull-right"},[(0,s._)("label",{class:"checkbox"},[(0,s._)("input",{type:"checkbox",name:"remember"}),(0,s.Uk)(" Keep me logged in on this device ")])],-1))),y={key:2,class:"auth-error"};function _(e,t,r,a,_,k){const v=(0,s.up)("Loading");return _.initialized?((0,s.wg)(),(0,s.iD)("div",n,[_.isAuthenticated?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("form",{key:0,class:"login",method:"POST",onSubmit:t[0]||(t[0]=(...e)=>k.submitForm&&k.submitForm(...e))},[o,(0,s._)("div",d,[(0,s._)("label",null,[(0,s._)("input",{type:_.requires2fa?"hidden":"text",name:"username",disabled:_.authenticating,placeholder:"Username",ref:"username"},null,8,l)])]),(0,s._)("div",u,[(0,s._)("label",null,[(0,s._)("input",{type:_.requires2fa?"hidden":"password",name:"password",disabled:_.authenticating,placeholder:"Password"},null,8,c)])]),_.requires2fa?((0,s.wg)(),(0,s.iD)("div",h,[(0,s._)("label",null,[(0,s._)("input",{type:"text",name:"code",disabled:_.authenticating,placeholder:"2FA code",ref:"code"},null,8,p)])])):(0,s.kq)("",!0),r.register?((0,s.wg)(),(0,s.iD)("div",g,[(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"confirm_password",disabled:_.authenticating,placeholder:"Confirm password"},null,8,m)])])):(0,s.kq)("",!0),(0,s._)("div",f,[(0,s._)("button",{type:"submit",class:(0,i.C_)(["btn btn-primary",{loading:_.authenticating}]),disabled:_.authenticating},[_.authenticating?((0,s.wg)(),(0,s.j4)(v,{key:0})):(0,s.kq)("",!0),(0,s.Uk)(" "+(0,i.zw)(r.register?"Register":"Login"),1)],10,w)]),b,_.authError?((0,s.wg)(),(0,s.iD)("div",y,(0,i.zw)(_.authError),1)):(0,s.kq)("",!0)],32))])):((0,s.wg)(),(0,s.j4)(v,{key:0}))}var k=r(6791),v=r(8637),q=r(7066),x={name:"Login",mixins:[v.Z],components:{Loading:k.Z},props:{register:{type:Boolean,required:!1,default:!1}},computed:{redirect(){return this.$route.query.redirect?.length?this.$route.query.redirect:"/"}},data(){return{authError:null,authenticating:!1,isAuthenticated:!1,initialized:!1,requires2fa:!1}},methods:{async submitForm(e){e.preventDefault();const t=e.target,r=new FormData(t),s="/auth?type="+(this.register?"register":"login");if(this.register&&r.get("password")!==r.get("confirm_password"))this.authError="Passwords don't match";else{this.authError=null;try{const e=await q.Z.post(s,r),t=e?.data?.session_token;if(t){const r=e.expires_at?Date.parse(e.expires_at):null;this.isAuthenticated=!0,this.setCookie("session_token",t,{expires:r}),window.location.href=e.redirect||this.redirect}else this.authError="Invalid credentials"}catch(e){"MISSING_OTP_CODE"===e.response?.data?.error?(this.requires2fa=!0,this.$nextTick((()=>{this.$refs.code?.focus()}))):(this.authError=e.response.data.message||e.response.data.error,401===e.response?.status?this.authError=this.authError||"Invalid credentials":(this.authError=this.authError||"An error occurred while processing the request",e.response?console.error(e.response.status,e.response.data):console.error(e)))}}},async checkAuth(){try{const e=await q.Z.get("/auth");e.data.session_token&&(this.isAuthenticated=!0,window.location.href=e.redirect||this.redirect)}catch(e){this.isAuthenticated=!1}finally{this.initialized=!0}}},async created(){await this.checkAuth()},async mounted(){this.$nextTick((()=>{this.$refs.username?.focus()}))}},E=r(3744);const D=(0,E.Z)(x,[["render",_],["__scopeId","data-v-1b764fc6"]]);var A=D},9780:function(e,t,r){r.r(t),r.d(t,{default:function(){return l}});var s=r(6252);function i(e,t,r,i,a,n){const o=(0,s.up)("Login");return(0,s.wg)(),(0,s.j4)(o,{register:!0})}var a=r(8137),n={name:"Register",mixins:[a["default"]],components:{Login:a["default"]},props:{register:{type:Boolean,required:!1,default:!0}}},o=r(3744);const d=(0,o.Z)(n,[["render",i]]);var l=d}}]);
|
||||
//# sourceMappingURL=register.c6276a24.js.map
|
1
platypush/backend/http/webapp/dist/static/js/register.c6276a24.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/register.c6276a24.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue