forked from platypush/platypush
[Automatic] Updated UI files
This commit is contained in:
parent
d048752184
commit
d484a34c00
35 changed files with 35 additions and 23 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.ff3a041a.js"></script><script defer="defer" src="/static/js/app.eb8008a4.js"></script><link href="/static/css/chunk-vendors.a2412607.css" rel="stylesheet"><link href="/static/css/app.bcaae6be.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.ff3a041a.js"></script><script defer="defer" src="/static/js/app.9c540193.js"></script><link href="/static/css/chunk-vendors.a2412607.css" rel="stylesheet"><link href="/static/css/app.bcaae6be.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
1
platypush/backend/http/webapp/dist/static/css/1706.bb2c61ca.css
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/css/1706.bb2c61ca.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
1
platypush/backend/http/webapp/dist/static/css/5193.35501079.css
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/css/5193.35501079.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/css/5906.ccc5b63c.css
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/css/5906.ccc5b63c.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/css/8498.f3525f17.css
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/css/8498.f3525f17.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/css/8989.adfbe91a.css
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/css/8989.adfbe91a.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
2
platypush/backend/http/webapp/dist/static/js/1706.d8ebffd5.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/1706.d8ebffd5.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1706],{1706:function(l,a,s){s.r(a),s.d(a,{default:function(){return D}});var e=s(6252),n=s(3577),t=s(9963);const c=l=>((0,e.dD)("data-v-75353a60"),l=l(),(0,e.Cn)(),l),i={class:"entity ping-host-container"},o={class:"head"},d={class:"col-1 icon-container"},u=["textContent"],v={key:0,class:"body children attributes fade-in"},r={class:"child"},p=c((()=>(0,e._)("div",{class:"col-s-12 col-m-6 label"},[(0,e._)("div",{class:"name"},"Host")],-1))),C={class:"value"},_=["textContent"],h={key:0,class:"child"},m=c((()=>(0,e._)("div",{class:"col-s-12 col-m-6 label"},[(0,e._)("div",{class:"name"},"Ping")],-1))),f={class:"value"},k=["textContent"];function b(l,a,s,c,b,w){return(0,e.wg)(),(0,e.iD)("div",i,[(0,e._)("div",o,[(0,e._)("div",d,[(0,e._)("span",{class:(0,n.C_)(["icon",w.iconClass])},null,2)]),(0,e._)("div",{class:"col-10 name",onClick:a[0]||(a[0]=(0,t.iM)((l=>b.isCollapsed=!b.isCollapsed),["stop"]))},[(0,e._)("div",{class:"name",textContent:(0,n.zw)(l.value.name)},null,8,u)]),(0,e._)("div",{class:"col-1 collapse-toggler",onClick:a[1]||(a[1]=(0,t.iM)((l=>b.isCollapsed=!b.isCollapsed),["stop"]))},[(0,e._)("i",{class:(0,n.C_)(["fas",{"fa-chevron-down":b.isCollapsed,"fa-chevron-up":!b.isCollapsed}])},null,2)])]),b.isCollapsed?(0,e.kq)("",!0):((0,e.wg)(),(0,e.iD)("div",v,[(0,e._)("div",r,[p,(0,e._)("div",C,[(0,e._)("div",{class:"name",textContent:(0,n.zw)(l.value.name)},null,8,_)])]),l.value.reachable?((0,e.wg)(),(0,e.iD)("div",h,[m,(0,e._)("div",f,[(0,e._)("span",{textContent:(0,n.zw)(l.value.avg)},null,8,k),(0,e.Uk)(" ms ")])])):(0,e.kq)("",!0)]))])}var w=s(847),g={mixins:[w["default"]],data(){return{isCollapsed:!0}},computed:{iconClass(){return this.value.reachable?"reachable":"unreachable"}}},x=s(3744);const y=(0,x.Z)(g,[["render",b],["__scopeId","data-v-75353a60"]]);var D=y}}]);
|
||||
//# sourceMappingURL=1706.d8ebffd5.js.map
|
1
platypush/backend/http/webapp/dist/static/js/1706.d8ebffd5.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/1706.d8ebffd5.js.map
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"static/js/1706.d8ebffd5.js","mappings":"gQACOA,MAAM,8B,GACJA,MAAM,Q,GACJA,MAAM,wB,2BAaRA,MAAM,oC,GACJA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,0BAAwB,EACjCC,EAAAA,EAAAA,GAA4B,OAAvBD,MAAM,QAAO,UAAI,K,GAEnBA,MAAM,S,2BAKRA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,0BAAwB,EACjCC,EAAAA,EAAAA,GAA4B,OAAvBD,MAAM,QAAO,UAAI,K,GAEnBA,MAAM,S,4DA7BjBE,EAAAA,EAAAA,IAkCM,MAlCNC,EAkCM,EAjCJF,EAAAA,EAAAA,GAYM,MAZNG,EAYM,EAXJH,EAAAA,EAAAA,GAEM,MAFNI,EAEM,EADJJ,EAAAA,EAAAA,GAAwC,QAAlCD,OAAKM,EAAAA,EAAAA,IAAA,CAAC,OAAeC,EAAAC,a,WAG7BP,EAAAA,EAAAA,GAEM,OAFDD,MAAM,cAAeS,QAAKC,EAAA,KAAAA,EAAA,IAAAC,EAAAA,EAAAA,KAAAC,GAAOC,EAAAC,aAAeD,EAAAC,aAAW,Y,EAC9Db,EAAAA,EAAAA,GAAwC,OAAnCD,MAAM,O,aAAOe,EAAAA,EAAAA,IAAQC,EAAWC,MAALC,O,aAGlCjB,EAAAA,EAAAA,GAEM,OAFDD,MAAM,yBAA0BS,QAAKC,EAAA,KAAAA,EAAA,IAAAC,EAAAA,EAAAA,KAAAC,GAAOC,EAAAC,aAAeD,EAAAC,aAAW,Y,EACzEb,EAAAA,EAAAA,GAA0F,KAAvFD,OAAKM,EAAAA,EAAAA,IAAA,CAAC,MAAK,mBAA6BO,EAAAC,YAAW,iBAAoBD,EAAAC,gB,YAIzBD,EAAAC,aAgBjD,iBAhB4D,WAAhEZ,EAAAA,EAAAA,IAkBM,MAlBNiB,EAkBM,EAjBJlB,EAAAA,EAAAA,GAOM,MAPNmB,EAOM,CANJC,GAGApB,EAAAA,EAAAA,GAEM,MAFNqB,EAEM,EADJrB,EAAAA,EAAAA,GAAwC,OAAnCD,MAAM,O,aAAOe,EAAAA,EAAAA,IAAQC,EAAWC,MAALC,O,cAIXF,EAAAC,MAAMM,YAAS,WAAxCrB,EAAAA,EAAAA,IAOM,MAPNsB,EAOM,CANJC,GAGAxB,EAAAA,EAAAA,GAEM,MAFNyB,EAEM,EADJzB,EAAAA,EAAAA,GAA2B,Q,aAArBc,EAAAA,EAAAA,IAAQC,EAAUC,MAAJU,M,mBAAO,cAC7B,mB,cASR,GACEC,OAAQ,CAACC,EAAAA,YAETC,IAAAA,GACE,MAAO,CACLhB,aAAa,EAEjB,EAEAiB,SAAU,CACRvB,SAAAA,GACE,OAAOwB,KAAKf,MAAMM,UAAY,YAAc,aAC9C,I,UC9CJ,MAAMU,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/PingHost.vue","webpack://platypush/./src/components/panels/Entities/PingHost.vue?cc57"],"sourcesContent":["<template>\n <div class=\"entity ping-host-container\">\n <div class=\"head\">\n <div class=\"col-1 icon-container\">\n <span class=\"icon\" :class=\"iconClass\" />\n </div>\n\n <div class=\"col-10 name\" @click.stop=\"isCollapsed = !isCollapsed\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-1 collapse-toggler\" @click.stop=\"isCollapsed = !isCollapsed\">\n <i class=\"fas\" :class=\"{'fa-chevron-down': isCollapsed, 'fa-chevron-up': !isCollapsed}\" />\n </div>\n </div>\n\n <div class=\"body children attributes fade-in\" v-if=\"!isCollapsed\">\n <div class=\"child\">\n <div class=\"col-s-12 col-m-6 label\">\n <div class=\"name\">Host</div>\n </div>\n <div class=\"value\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n </div>\n\n <div class=\"child\" v-if=\"value.reachable\">\n <div class=\"col-s-12 col-m-6 label\">\n <div class=\"name\">Ping</div>\n </div>\n <div class=\"value\">\n <span v-text=\"value.avg\" /> ms\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\n\nexport default {\n mixins: [EntityMixin],\n\n data() {\n return {\n isCollapsed: true,\n }\n },\n\n computed: {\n iconClass() {\n return this.value.reachable ? \"reachable\" : \"unreachable\"\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.ping-host-container {\n .head .icon-container {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 2em;\n margin-right: 0.5em;\n padding-right: 0;\n\n .icon {\n width: 1.25em;\n height: 1.25em;\n border-radius: 50%;\n\n &.reachable {\n background-color: $ok-fg;\n }\n\n &.unreachable {\n background-color: $error-fg;\n }\n }\n }\n}\n</style>\n","import { render } from \"./PingHost.vue?vue&type=template&id=75353a60&scoped=true\"\nimport script from \"./PingHost.vue?vue&type=script&lang=js\"\nexport * from \"./PingHost.vue?vue&type=script&lang=js\"\n\nimport \"./PingHost.vue?vue&type=style&index=0&id=75353a60&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-75353a60\"]])\n\nexport default __exports__"],"names":["class","_createElementVNode","_createElementBlock","_hoisted_1","_hoisted_2","_hoisted_3","_normalizeClass","$options","iconClass","onClick","_cache","_withModifiers","$event","$data","isCollapsed","_toDisplayString","_ctx","value","name","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","reachable","_hoisted_10","_hoisted_11","_hoisted_12","avg","mixins","EntityMixin","data","computed","this","__exports__","render"],"sourceRoot":""}
|
|
@ -1,2 +1,2 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[306,4619],{4619:function(e,t,s){s.r(t),s.d(t,{default:function(){return w}});var o=s(6252),i=s(3577);const a={class:"date-time"},r=["textContent"],h=["textContent"];function n(e,t,s,n,m,u){return(0,o.wg)(),(0,o.iD)("div",a,[u._showDate?((0,o.wg)(),(0,o.iD)("div",{key:0,class:"date",textContent:(0,i.zw)(e.formatDate(e.now))},null,8,r)):(0,o.kq)("",!0),u._showTime?((0,o.wg)(),(0,o.iD)("div",{key:1,class:"time",textContent:(0,i.zw)(e.formatTime(e.now,u._showSeconds))},null,8,h)):(0,o.kq)("",!0)])}var m=s(8637),u={name:"DateTime",mixins:[m.Z],props:{showDate:{required:!1,default:!0},showTime:{required:!1,default:!0},showSeconds:{required:!1,default:!0}},computed:{_showTime(){return this.parseBoolean(this.showTime)},_showDate(){return this.parseBoolean(this.showDate)},_showSeconds(){return this.parseBoolean(this.showSeconds)}},data:function(){return{now:new Date}},methods:{refreshTime(){this.now=new Date}},mounted:function(){this.refreshTime(),setInterval(this.refreshTime,1e3)}},c=s(3744);const l=(0,c.Z)(u,[["render",n],["__scopeId","data-v-ca42eb9c"]]);var w=l},306:function(e,t,s){s.r(t),s.d(t,{default:function(){return k}});var o=s(6252),i=s(3577);const a={class:"image-carousel"},r={ref:"background",class:"background"},h=["src"],n={key:1,class:"row info-container"},m={class:"col-6 weather-container"},u={key:0},c={class:"col-6 date-time-container"};function l(e,t,s,l,w,d){const g=(0,o.up)("Loading"),f=(0,o.up)("Weather"),p=(0,o.up)("DateTime");return(0,o.wg)(),(0,o.iD)("div",a,[w.images.length?(0,o.kq)("",!0):((0,o.wg)(),(0,o.j4)(g,{key:0})),(0,o._)("div",r,null,512),(0,o._)("img",{ref:"img",src:d.imgURL,alt:"Your carousel images",style:(0,i.j5)({display:w.images.length?"block":"none"})},null,12,h),d._showDate||d._showTime?((0,o.wg)(),(0,o.iD)("div",n,[(0,o._)("div",m,[d._showWeather?((0,o.wg)(),(0,o.j4)(f,{key:1,"show-icon":d._showWeatherIcon,"show-summary":d._showWeatherSummary,"show-temperature":d._showTemperature,"icon-color":s.weatherIconColor,"icon-size":s.weatherIconSize,animate:d._animateWeatherIcon},null,8,["show-icon","show-summary","show-temperature","icon-color","icon-size","animate"])):((0,o.wg)(),(0,o.iD)("span",u," "))]),(0,o._)("div",c,[d._showTime||d._showDate?((0,o.wg)(),(0,o.j4)(p,{key:0,"show-date":d._showDate,"show-time":d._showTime,"show-seconds":d._showSeconds},null,8,["show-date","show-time","show-seconds"])):(0,o.kq)("",!0)])])):(0,o.kq)("",!0)])}var w=s(8637),d=s(6791),g=s(4619),f=s(3594),p={name:"ImageCarousel",components:{Weather:f["default"],DateTime:g["default"],Loading:d.Z},mixins:[w.Z],props:{imgDir:{type:String,required:!0},refreshSeconds:{type:Number,default:15},showDate:{default:!1},showTime:{default:!1},showSeconds:{default:!1},showWeather:{default:!1},showTemperature:{default:!0},showWeatherIcon:{default:!0},showWeatherSummary:{default:!0},weatherIconColor:{type:String,default:"white"},weatherIconSize:{type:Number,default:70},animateWeatherIcon:{default:!0}},data(){return{images:[],currentImage:void 0,loading:!1}},computed:{imgURL(){let e=8008;return"backend.http"in this.$root.config&&"port"in this.$root.config["backend.http"]&&(e=this.$root.config["backend.http"].port),"//"+window.location.hostname+":"+e+this.currentImage},_showDate(){return this.parseBoolean(this.showDate)},_showTime(){return this.parseBoolean(this.showTime)},_showSeconds(){return this.parseBoolean(this.showSeconds)},_showTemperature(){return this.parseBoolean(this.showTemperature)},_showWeather(){return this.parseBoolean(this.showWeather)},_showWeatherIcon(){return this.parseBoolean(this.showWeatherIcon)},_showWeatherSummary(){return this.parseBoolean(this.showWeatherSummary)},_animateWeatherIcon(){return this.parseBoolean(this.animateWeatherIcon)}},methods:{async refresh(){if(!this.images.length){this.loading=!0;try{this.images=await this.request("utils.search_web_directory",{directory:this.imgDir,extensions:[".jpg",".jpeg",".png"]}),this.shuffleImages()}finally{this.loading=!1}}this.images.length&&(this.currentImage=this.images.pop())},onNewImage(){if(this.$refs.img&&(this.$refs.background.style["background-image"]="url("+this.imgURL+")",this.$refs.img.style.width="auto",this.$refs.img.width>this.$refs.img.height)){const e=this.$refs.img.width/this.$refs.img.height;e>=4/3&&e<=16/9?this.$refs.img.style.width="100%":e<=4/3&&(this.$refs.img.style.height="100%")}},shuffleImages(){for(let e=this.images.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1)),s=this.images[e];this.images[e]=this.images[t],this.images[t]=s}}},mounted(){this.$refs.img.addEventListener("load",this.onNewImage),this.$refs.img.addEventListener("error",this.refresh),this.refresh(),setInterval(this.refresh,Math.round(1e3*this.refreshSeconds))}},_=s(3744);const y=(0,_.Z)(p,[["render",l],["__scopeId","data-v-72b02f7c"]]);var k=y}}]);
|
||||
//# sourceMappingURL=306.65920e65.js.map
|
||||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[306,4619],{4619:function(e,t,s){s.r(t),s.d(t,{default:function(){return w}});var o=s(6252),i=s(3577);const a={class:"date-time"},r=["textContent"],h=["textContent"];function n(e,t,s,n,m,u){return(0,o.wg)(),(0,o.iD)("div",a,[u._showDate?((0,o.wg)(),(0,o.iD)("div",{key:0,class:"date",textContent:(0,i.zw)(e.formatDate(e.now))},null,8,r)):(0,o.kq)("",!0),u._showTime?((0,o.wg)(),(0,o.iD)("div",{key:1,class:"time",textContent:(0,i.zw)(e.formatTime(e.now,u._showSeconds))},null,8,h)):(0,o.kq)("",!0)])}var m=s(8637),u={name:"DateTime",mixins:[m.Z],props:{showDate:{required:!1,default:!0},showTime:{required:!1,default:!0},showSeconds:{required:!1,default:!0}},computed:{_showTime(){return this.parseBoolean(this.showTime)},_showDate(){return this.parseBoolean(this.showDate)},_showSeconds(){return this.parseBoolean(this.showSeconds)}},data:function(){return{now:new Date}},methods:{refreshTime(){this.now=new Date}},mounted:function(){this.refreshTime(),setInterval(this.refreshTime,1e3)}},c=s(3744);const l=(0,c.Z)(u,[["render",n],["__scopeId","data-v-ca42eb9c"]]);var w=l},306:function(e,t,s){s.r(t),s.d(t,{default:function(){return k}});var o=s(6252),i=s(3577);const a={class:"image-carousel"},r={ref:"background",class:"background"},h=["src"],n={key:1,class:"row info-container"},m={class:"col-6 weather-container"},u={key:0},c={class:"col-6 date-time-container"};function l(e,t,s,l,w,d){const g=(0,o.up)("Loading"),f=(0,o.up)("Weather"),p=(0,o.up)("DateTime");return(0,o.wg)(),(0,o.iD)("div",a,[w.images.length?(0,o.kq)("",!0):((0,o.wg)(),(0,o.j4)(g,{key:0})),(0,o._)("div",r,null,512),(0,o._)("img",{ref:"img",src:d.imgURL,alt:"Your carousel images",style:(0,i.j5)({display:w.images.length?"block":"none"})},null,12,h),d._showDate||d._showTime?((0,o.wg)(),(0,o.iD)("div",n,[(0,o._)("div",m,[d._showWeather?((0,o.wg)(),(0,o.j4)(f,{key:1,"show-icon":d._showWeatherIcon,"show-summary":d._showWeatherSummary,"show-temperature":d._showTemperature,"icon-color":s.weatherIconColor,"icon-size":s.weatherIconSize,animate:d._animateWeatherIcon},null,8,["show-icon","show-summary","show-temperature","icon-color","icon-size","animate"])):((0,o.wg)(),(0,o.iD)("span",u," "))]),(0,o._)("div",c,[d._showTime||d._showDate?((0,o.wg)(),(0,o.j4)(p,{key:0,"show-date":d._showDate,"show-time":d._showTime,"show-seconds":d._showSeconds},null,8,["show-date","show-time","show-seconds"])):(0,o.kq)("",!0)])])):(0,o.kq)("",!0)])}var w=s(8637),d=s(6791),g=s(4619),f=s(5193),p={name:"ImageCarousel",components:{Weather:f["default"],DateTime:g["default"],Loading:d.Z},mixins:[w.Z],props:{imgDir:{type:String,required:!0},refreshSeconds:{type:Number,default:15},showDate:{default:!1},showTime:{default:!1},showSeconds:{default:!1},showWeather:{default:!1},showTemperature:{default:!0},showWeatherIcon:{default:!0},showWeatherSummary:{default:!0},weatherIconColor:{type:String,default:"white"},weatherIconSize:{type:Number,default:70},animateWeatherIcon:{default:!0}},data(){return{images:[],currentImage:void 0,loading:!1}},computed:{imgURL(){let e=8008;return"backend.http"in this.$root.config&&"port"in this.$root.config["backend.http"]&&(e=this.$root.config["backend.http"].port),"//"+window.location.hostname+":"+e+this.currentImage},_showDate(){return this.parseBoolean(this.showDate)},_showTime(){return this.parseBoolean(this.showTime)},_showSeconds(){return this.parseBoolean(this.showSeconds)},_showTemperature(){return this.parseBoolean(this.showTemperature)},_showWeather(){return this.parseBoolean(this.showWeather)},_showWeatherIcon(){return this.parseBoolean(this.showWeatherIcon)},_showWeatherSummary(){return this.parseBoolean(this.showWeatherSummary)},_animateWeatherIcon(){return this.parseBoolean(this.animateWeatherIcon)}},methods:{async refresh(){if(!this.images.length){this.loading=!0;try{this.images=await this.request("utils.search_web_directory",{directory:this.imgDir,extensions:[".jpg",".jpeg",".png"]}),this.shuffleImages()}finally{this.loading=!1}}this.images.length&&(this.currentImage=this.images.pop())},onNewImage(){if(this.$refs.img&&(this.$refs.background.style["background-image"]="url("+this.imgURL+")",this.$refs.img.style.width="auto",this.$refs.img.width>this.$refs.img.height)){const e=this.$refs.img.width/this.$refs.img.height;e>=4/3&&e<=16/9?this.$refs.img.style.width="100%":e<=4/3&&(this.$refs.img.style.height="100%")}},shuffleImages(){for(let e=this.images.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1)),s=this.images[e];this.images[e]=this.images[t],this.images[t]=s}}},mounted(){this.$refs.img.addEventListener("load",this.onNewImage),this.$refs.img.addEventListener("error",this.refresh),this.refresh(),setInterval(this.refresh,Math.round(1e3*this.refreshSeconds))}},_=s(3744);const y=(0,_.Z)(p,[["render",l],["__scopeId","data-v-72b02f7c"]]);var k=y}}]);
|
||||
//# sourceMappingURL=306.a654daef.js.map
|
File diff suppressed because one or more lines are too long
2
platypush/backend/http/webapp/dist/static/js/3322.12d6bfa0.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/3322.12d6bfa0.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3322],{3322:function(a,e,n){n.r(e),n.d(e,{default:function(){return p}});var c=n(6252);const s={class:"entity weather-icon-container"},t=["src","alt"],r=["src","alt"];function l(a,e,n,l,u,i){return(0,c.wg)(),(0,c.iD)("span",s,[n.value.icon?((0,c.wg)(),(0,c.iD)("img",{key:0,src:`/icons/openweathermap/dark/${n.value.icon}.png`,alt:n.value?.summary,class:"weather-icon"},null,8,t)):n.value.image?((0,c.wg)(),(0,c.iD)("img",{key:1,src:n.value.image,alt:n.value?.summary,class:"weather-icon"},null,8,r)):(0,c.kq)("",!0)])}var u={props:{value:Object}},i=n(3744);const o=(0,i.Z)(u,[["render",l],["__scopeId","data-v-1c0bfb77"]]);var p=o}}]);
|
||||
//# sourceMappingURL=3322.12d6bfa0.js.map
|
1
platypush/backend/http/webapp/dist/static/js/3322.12d6bfa0.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/3322.12d6bfa0.js.map
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"static/js/3322.12d6bfa0.js","mappings":"sLACQA,MAAM,iC,0EAAZC,EAAAA,EAAAA,IAUO,OAVPC,EAUO,CANMC,EAAAC,MAAMC,OAAI,WAHrBJ,EAAAA,EAAAA,IAGyB,O,MAHnBK,IAAG,8BAAgCH,EAAAC,MAAMC,WACzCE,IAAKJ,EAAAC,OAAOI,QACbR,MAAM,gB,WAMKG,EAAAC,MAAMK,QAAK,WAH3BR,EAAAA,EAAAA,IAG+B,O,MAHzBK,IAAKH,EAAAC,MAAMK,MACXF,IAAKJ,EAAAC,OAAOI,QACbR,MAAM,gB,6BAMf,OACEU,MAAO,CACLN,MAAOO,S,UCVX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/WeatherIcon.vue","webpack://platypush/./src/components/panels/Entities/WeatherIcon.vue?1d06"],"sourcesContent":["<template>\n <span class=\"entity weather-icon-container\">\n <img :src=\"`/icons/openweathermap/dark/${value.icon}.png`\"\n :alt=\"value?.summary\"\n class=\"weather-icon\"\n v-if=\"value.icon\" />\n\n <img :src=\"value.image\"\n :alt=\"value?.summary\"\n class=\"weather-icon\"\n v-else-if=\"value.image\" />\n </span>\n</template>\n\n<script>\nexport default {\n props: {\n value: Object,\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.weather-icon-container {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 2.5em;\n\n .weather-icon {\n max-width: 100%;\n height: 100%;\n margin: 0.5em 0.5em 0.5em 1em;\n }\n}\n</style>\n","import { render } from \"./WeatherIcon.vue?vue&type=template&id=1c0bfb77&scoped=true\"\nimport script from \"./WeatherIcon.vue?vue&type=script&lang=js\"\nexport * from \"./WeatherIcon.vue?vue&type=script&lang=js\"\n\nimport \"./WeatherIcon.vue?vue&type=style&index=0&id=1c0bfb77&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1c0bfb77\"]])\n\nexport default __exports__"],"names":["class","_createElementBlock","_hoisted_1","$props","value","icon","src","alt","summary","image","props","Object","__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
1
platypush/backend/http/webapp/dist/static/js/4558.e5529517.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/4558.e5529517.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
2
platypush/backend/http/webapp/dist/static/js/5193.4d134540.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/5193.4d134540.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/js/5193.4d134540.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/5193.4d134540.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
platypush/backend/http/webapp/dist/static/js/8498.9c110f62.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/8498.9c110f62.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/js/8498.9c110f62.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/8498.9c110f62.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
platypush/backend/http/webapp/dist/static/js/8930.5c981bf1.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/8930.5c981bf1.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/js/8930.5c981bf1.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/8930.5c981bf1.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
2
platypush/backend/http/webapp/dist/static/js/app.9c540193.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/app.9c540193.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/js/app.9c540193.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/app.9c540193.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
Loading…
Reference in a new issue