[Automatic] Updated UI files

This commit is contained in:
Fabio Manganiello 2024-10-19 15:05:19 +00:00
parent fa942b06e3
commit 4015cf356d
Signed by untrusted user: blacklight
GPG key ID: AD6D273C08B82EC9
44 changed files with 50 additions and 50 deletions

View file

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2305],{2305:function(e,n,t){t.r(n),t.d(n,{default:function(){return i}});var u=t(6252);function a(e,n,t,a,r,c){const s=(0,u.up)("Media");return(0,u.wg)(),(0,u.j4)(s,{"plugin-name":"media.chromecast"})}var r=t(4669),c={components:{Media:r["default"]}},s=t(3744);const p=(0,s.Z)(c,[["render",a]]);var i=p}}]);
//# sourceMappingURL=2305.d6f27d19.js.map
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2305],{2305:function(e,n,t){t.r(n),t.d(n,{default:function(){return i}});var u=t(6252);function a(e,n,t,a,r,c){const s=(0,u.up)("Media");return(0,u.wg)(),(0,u.j4)(s,{"plugin-name":"media.chromecast"})}var r=t(3897),c={components:{Media:r["default"]}},s=t(3744);const p=(0,s.Z)(c,[["render",a]]);var i=p}}]);
//# sourceMappingURL=2305.d81317b5.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/2305.d6f27d19.js","mappings":"iPACEA,EAAAA,EAAAA,IAAwCC,EAAA,CAAjC,cAAY,oB,eAMrB,GACEC,WAAY,CAACC,MAAKA,EAAAA,a,UCHpB,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/components/panels/MediaChromecast/Index.vue","webpack://platypush/./src/components/panels/MediaChromecast/Index.vue?bdff"],"sourcesContent":["<template>\n <Media plugin-name=\"media.chromecast\" />\n</template>\n\n<script>\nimport Media from '@/components/panels/Media/Index'\n\nexport default {\n components: {Media},\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=1adadaac\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.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":["_createBlock","_component_Media","components","Media","__exports__","render"],"sourceRoot":""}
{"version":3,"file":"static/js/2305.d81317b5.js","mappings":"iPACEA,EAAAA,EAAAA,IAAwCC,EAAA,CAAjC,cAAY,oB,eAMrB,GACEC,WAAY,CAACC,MAAKA,EAAAA,a,UCHpB,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/components/panels/MediaChromecast/Index.vue","webpack://platypush/./src/components/panels/MediaChromecast/Index.vue?bdff"],"sourcesContent":["<template>\n <Media plugin-name=\"media.chromecast\" />\n</template>\n\n<script>\nimport Media from '@/components/panels/Media/Index'\n\nexport default {\n components: {Media},\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=1adadaac\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.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":["_createBlock","_component_Media","components","Media","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2614],{2614:function(e,n,a){a.r(n),a.d(n,{default:function(){return i}});var u=a(6252);function t(e,n,a,t,c,r){const p=(0,u.up)("Media");return(0,u.wg)(),(0,u.j4)(p,{"plugin-name":"media.vlc"})}var c=a(4669),r={name:"MediaVlc",components:{Media:c["default"]}},p=a(3744);const s=(0,p.Z)(r,[["render",t]]);var i=s}}]);
//# sourceMappingURL=2614.b54172e8.js.map
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2614],{2614:function(e,n,a){a.r(n),a.d(n,{default:function(){return i}});var u=a(6252);function t(e,n,a,t,c,r){const p=(0,u.up)("Media");return(0,u.wg)(),(0,u.j4)(p,{"plugin-name":"media.vlc"})}var c=a(3897),r={name:"MediaVlc",components:{Media:c["default"]}},p=a(3744);const s=(0,p.Z)(r,[["render",t]]);var i=s}}]);
//# sourceMappingURL=2614.34a64dd4.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/2614.b54172e8.js","mappings":"iPACEA,EAAAA,EAAAA,IAAiCC,EAAA,CAA1B,cAAY,a,eAMrB,GACEC,KAAM,WACNC,WAAY,CAACC,MAAKA,EAAAA,a,UCJpB,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/components/panels/MediaVlc/Index.vue","webpack://platypush/./src/components/panels/MediaVlc/Index.vue?7b0b"],"sourcesContent":["<template>\n <Media plugin-name=\"media.vlc\" />\n</template>\n\n<script>\nimport Media from '@/components/panels/Media/Index'\n\nexport default {\n name: \"MediaVlc\",\n components: {Media},\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=9233e214\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.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":["_createBlock","_component_Media","name","components","Media","__exports__","render"],"sourceRoot":""}
{"version":3,"file":"static/js/2614.34a64dd4.js","mappings":"iPACEA,EAAAA,EAAAA,IAAiCC,EAAA,CAA1B,cAAY,a,eAMrB,GACEC,KAAM,WACNC,WAAY,CAACC,MAAKA,EAAAA,a,UCJpB,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/components/panels/MediaVlc/Index.vue","webpack://platypush/./src/components/panels/MediaVlc/Index.vue?7b0b"],"sourcesContent":["<template>\n <Media plugin-name=\"media.vlc\" />\n</template>\n\n<script>\nimport Media from '@/components/panels/Media/Index'\n\nexport default {\n name: \"MediaVlc\",\n components: {Media},\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=9233e214\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.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":["_createBlock","_component_Media","name","components","Media","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3518],{3518:function(e,n,a){a.r(n),a.d(n,{default:function(){return i}});var u=a(6252);function t(e,n,a,t,r,p){const s=(0,u.up)("Media");return(0,u.wg)(),(0,u.j4)(s,{"plugin-name":"media.mplayer"})}var r=a(4669),p={name:"MediaMplayer",components:{Media:r["default"]}},s=a(3744);const c=(0,s.Z)(p,[["render",t]]);var i=c}}]);
//# sourceMappingURL=3518.296a97b6.js.map
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3518],{3518:function(e,n,a){a.r(n),a.d(n,{default:function(){return i}});var u=a(6252);function t(e,n,a,t,r,p){const s=(0,u.up)("Media");return(0,u.wg)(),(0,u.j4)(s,{"plugin-name":"media.mplayer"})}var r=a(3897),p={name:"MediaMplayer",components:{Media:r["default"]}},s=a(3744);const c=(0,s.Z)(p,[["render",t]]);var i=c}}]);
//# sourceMappingURL=3518.d45c16f7.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/3518.296a97b6.js","mappings":"iPACEA,EAAAA,EAAAA,IAAqCC,EAAA,CAA9B,cAAY,iB,eAMrB,GACEC,KAAM,eACNC,WAAY,CAACC,MAAKA,EAAAA,a,UCJpB,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/components/panels/MediaMplayer/Index.vue","webpack://platypush/./src/components/panels/MediaMplayer/Index.vue?becb"],"sourcesContent":["<template>\n <Media plugin-name=\"media.mplayer\" />\n</template>\n\n<script>\nimport Media from '@/components/panels/Media/Index'\n\nexport default {\n name: \"MediaMplayer\",\n components: {Media},\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=08ab61b7\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.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":["_createBlock","_component_Media","name","components","Media","__exports__","render"],"sourceRoot":""}
{"version":3,"file":"static/js/3518.d45c16f7.js","mappings":"iPACEA,EAAAA,EAAAA,IAAqCC,EAAA,CAA9B,cAAY,iB,eAMrB,GACEC,KAAM,eACNC,WAAY,CAACC,MAAKA,EAAAA,a,UCJpB,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/components/panels/MediaMplayer/Index.vue","webpack://platypush/./src/components/panels/MediaMplayer/Index.vue?becb"],"sourcesContent":["<template>\n <Media plugin-name=\"media.mplayer\" />\n</template>\n\n<script>\nimport Media from '@/components/panels/Media/Index'\n\nexport default {\n name: \"MediaMplayer\",\n components: {Media},\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=08ab61b7\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.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":["_createBlock","_component_Media","name","components","Media","__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

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4765],{4765:function(e,n,a){a.r(n),a.d(n,{default:function(){return i}});var u=a(6252);function t(e,n,a,t,p,r){const s=(0,u.up)("Media");return(0,u.wg)(),(0,u.j4)(s,{"plugin-name":"media.mpv"})}var p=a(4669),r={name:"MediaMpv",components:{Media:p["default"]}},s=a(3744);const c=(0,s.Z)(r,[["render",t]]);var i=c}}]);
//# sourceMappingURL=4765.1df6a916.js.map
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4765],{4765:function(e,n,a){a.r(n),a.d(n,{default:function(){return i}});var u=a(6252);function t(e,n,a,t,p,r){const s=(0,u.up)("Media");return(0,u.wg)(),(0,u.j4)(s,{"plugin-name":"media.mpv"})}var p=a(3897),r={name:"MediaMpv",components:{Media:p["default"]}},s=a(3744);const c=(0,s.Z)(r,[["render",t]]);var i=c}}]);
//# sourceMappingURL=4765.784e31d6.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/4765.1df6a916.js","mappings":"iPACEA,EAAAA,EAAAA,IAAiCC,EAAA,CAA1B,cAAY,a,eAMrB,GACEC,KAAM,WACNC,WAAY,CAACC,MAAKA,EAAAA,a,UCJpB,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/components/panels/MediaMpv/Index.vue","webpack://platypush/./src/components/panels/MediaMpv/Index.vue?4cb2"],"sourcesContent":["<template>\n <Media plugin-name=\"media.mpv\" />\n</template>\n\n<script>\nimport Media from '@/components/panels/Media/Index'\n\nexport default {\n name: \"MediaMpv\",\n components: {Media},\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=52effd7c\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.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":["_createBlock","_component_Media","name","components","Media","__exports__","render"],"sourceRoot":""}
{"version":3,"file":"static/js/4765.784e31d6.js","mappings":"iPACEA,EAAAA,EAAAA,IAAiCC,EAAA,CAA1B,cAAY,a,eAMrB,GACEC,KAAM,WACNC,WAAY,CAACC,MAAKA,EAAAA,a,UCJpB,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/components/panels/MediaMpv/Index.vue","webpack://platypush/./src/components/panels/MediaMpv/Index.vue?4cb2"],"sourcesContent":["<template>\n <Media plugin-name=\"media.mpv\" />\n</template>\n\n<script>\nimport Media from '@/components/panels/Media/Index'\n\nexport default {\n name: \"MediaMpv\",\n components: {Media},\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=52effd7c\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.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":["_createBlock","_component_Media","name","components","Media","__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

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5408],{5408:function(e,n,t){t.r(n),t.d(n,{default:function(){return i}});var u=t(6252);function a(e,n,t,a,r,s){const p=(0,u.up)("Media");return(0,u.wg)(),(0,u.j4)(p,{"plugin-name":"media.gstreamer"})}var r=t(4669),s={components:{Media:r["default"]}},p=t(3744);const c=(0,p.Z)(s,[["render",a]]);var i=c}}]);
//# sourceMappingURL=5408.64fb003c.js.map
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5408],{5408:function(e,n,t){t.r(n),t.d(n,{default:function(){return i}});var u=t(6252);function a(e,n,t,a,r,s){const p=(0,u.up)("Media");return(0,u.wg)(),(0,u.j4)(p,{"plugin-name":"media.gstreamer"})}var r=t(3897),s={components:{Media:r["default"]}},p=t(3744);const c=(0,p.Z)(s,[["render",a]]);var i=c}}]);
//# sourceMappingURL=5408.6ba0bde8.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/5408.64fb003c.js","mappings":"iPACEA,EAAAA,EAAAA,IAAuCC,EAAA,CAAhC,cAAY,mB,eAMrB,GACEC,WAAY,CAACC,MAAKA,EAAAA,a,UCHpB,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/components/panels/MediaGstreamer/Index.vue","webpack://platypush/./src/components/panels/MediaGstreamer/Index.vue?3f1f"],"sourcesContent":["<template>\n <Media plugin-name=\"media.gstreamer\" />\n</template>\n\n<script>\nimport Media from '@/components/panels/Media/Index'\n\nexport default {\n components: {Media},\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=42961f3c\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.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":["_createBlock","_component_Media","components","Media","__exports__","render"],"sourceRoot":""}
{"version":3,"file":"static/js/5408.6ba0bde8.js","mappings":"iPACEA,EAAAA,EAAAA,IAAuCC,EAAA,CAAhC,cAAY,mB,eAMrB,GACEC,WAAY,CAACC,MAAKA,EAAAA,a,UCHpB,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://platypush/./src/components/panels/MediaGstreamer/Index.vue","webpack://platypush/./src/components/panels/MediaGstreamer/Index.vue?3f1f"],"sourcesContent":["<template>\n <Media plugin-name=\"media.gstreamer\" />\n</template>\n\n<script>\nimport Media from '@/components/panels/Media/Index'\n\nexport default {\n components: {Media},\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render } from \"./Index.vue?vue&type=template&id=42961f3c\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.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":["_createBlock","_component_Media","components","Media","__exports__","render"],"sourceRoot":""}

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8179],{8179:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return I}});var t=i(6252);const d={class:"plugin"};function o(e,n,i,o,a,r){const s=(0,t.up)("Loading");return(0,t.wg)(),(0,t.iD)("div",d,[a.loading?((0,t.wg)(),(0,t.j4)(s,{key:0})):a.component?((0,t.wg)(),(0,t.j4)((0,t.LL)(a.component),{key:1,config:a.config},null,8,["config"])):(0,t.kq)("",!0)])}var a=i(8637),r=i(6791),s=i(2262),c={name:"Plugin",components:{Loading:r.Z},mixins:[a.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,t.RC)((()=>i(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=i(3744);const x=(0,u.Z)(c,[["render",o],["__scopeId","data-v-69b17daa"]]);var I=x},3379:function(e,n,i){var t={"./Alarm/Index":[1949,5933,7897,7651,2844,2992,6517,637,8756,3248,9480,8409,6217,2831,9502,1019,2029,7257,4795,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":[557,5933,7897,2992,7257,669,864,4795,557],"./Execute/Index":[4221,5933,637,3248,9502,5053],"./Extensions/Index":[3426,5933,637,3248,6217,2831,2924,3426,8697],"./File/Index":[2496,5933,7897,6517,637,8756,9480,8409,7976],"./Light/Index":[9751,7651,2844,9751],"./LightHue/Index":[2976,7651,2844,9751,2976],"./Media/Index":[4669,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,4669],"./Media/Providers/Jellyfin/views/Media/Index":[1039,5933,7897,2992,5167,1319,1137,1009,9049],"./Media/Providers/Jellyfin/views/Movies/Index":[6593,5933,7897,2992,6517,5167,9025,6692,3295],"./Media/Providers/Jellyfin/views/Music/Index":[1137,5933,7897,2992,5167,1319,1137,2726],"./Media/Providers/YouTube/Index":[2200,2200],"./MediaChromecast/Index":[2305,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,4669,2305],"./MediaGstreamer/Index":[5408,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,4669,5408],"./MediaMplayer/Index":[3518,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,4669,3518],"./MediaMpv/Index":[4765,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,4669,4765],"./MediaVlc/Index":[2614,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,4669,2614],"./Music/Index":[4015,5933,7897,7651,906,1421,4015],"./MusicMopidy/Index":[3400,5933,7897,7651,906,1421,4015,3400],"./MusicMpd/Index":[3083,5933,7897,7651,906,1421,4015,3083],"./MusicSnapcast/Index":[5285,7651,2844,5285],"./MusicSpotify/Index":[4053,5933,7897,7651,906,1421,4015,4053],"./Procedures/Index":[3865,5933,2992,6517,637,8756,3248,6217,2831,9502,1019,7257,5144,3865],"./Rtorrent/Index":[2183,5933,7897,7624,6429,2183],"./Settings/Index":[293,5933,7897,2844,2992,6517,3248,215,2924,293],"./Settings/Tokens/Index":[215,5933,7897,2992,3248,215],"./Sound/Index":[746,746],"./Torrent/Index":[8784,5933,7897,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,5933,7897,7651,2844,6882],"./Zwave/Index":[2732,5933,7897,7651,2844,2718,2732],"./ZwaveMqtt/Index":[1088,5933,7897,7651,2844,2718,1088]};function d(e){if(!i.o(t,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=t[e],d=n[0];return Promise.all(n.slice(1).map(i.e)).then((function(){return i(d)}))}d.keys=function(){return Object.keys(t)},d.id=3379,e.exports=d}}]);
//# sourceMappingURL=8179.08096f00.js.map
(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8179],{8179:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return I}});var t=i(6252);const d={class:"plugin"};function o(e,n,i,o,a,r){const s=(0,t.up)("Loading");return(0,t.wg)(),(0,t.iD)("div",d,[a.loading?((0,t.wg)(),(0,t.j4)(s,{key:0})):a.component?((0,t.wg)(),(0,t.j4)((0,t.LL)(a.component),{key:1,config:a.config},null,8,["config"])):(0,t.kq)("",!0)])}var a=i(8637),r=i(6791),s=i(2262),c={name:"Plugin",components:{Loading:r.Z},mixins:[a.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,t.RC)((()=>i(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=i(3744);const x=(0,u.Z)(c,[["render",o],["__scopeId","data-v-69b17daa"]]);var I=x},3379:function(e,n,i){var t={"./Alarm/Index":[1949,5933,7897,7651,2844,2992,6517,637,8756,3248,9480,8409,6217,2831,9502,1019,2029,7257,4795,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":[557,5933,7897,2992,7257,669,864,4795,557],"./Execute/Index":[4221,5933,637,3248,9502,5053],"./Extensions/Index":[3426,5933,637,3248,6217,2831,2924,3426,8697],"./File/Index":[2496,5933,7897,6517,637,8756,9480,8409,7976],"./Light/Index":[9751,7651,2844,9751],"./LightHue/Index":[2976,7651,2844,9751,2976],"./Media/Index":[3897,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,3897],"./Media/Providers/Jellyfin/views/Media/Index":[1039,5933,7897,2992,5167,1319,1137,1009,9049],"./Media/Providers/Jellyfin/views/Movies/Index":[6593,5933,7897,2992,6517,5167,9025,6692,3295],"./Media/Providers/Jellyfin/views/Music/Index":[1137,5933,7897,2992,5167,1319,1137,2726],"./Media/Providers/YouTube/Index":[2200,2200],"./MediaChromecast/Index":[2305,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,3897,2305],"./MediaGstreamer/Index":[5408,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,3897,5408],"./MediaMplayer/Index":[3518,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,3897,3518],"./MediaMpv/Index":[4765,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,3897,4765],"./MediaVlc/Index":[2614,5933,7897,7651,6517,637,8756,9480,906,8409,1421,5167,7624,3897,2614],"./Music/Index":[4015,5933,7897,7651,906,1421,4015],"./MusicMopidy/Index":[3400,5933,7897,7651,906,1421,4015,3400],"./MusicMpd/Index":[3083,5933,7897,7651,906,1421,4015,3083],"./MusicSnapcast/Index":[5285,7651,2844,5285],"./MusicSpotify/Index":[4053,5933,7897,7651,906,1421,4015,4053],"./Procedures/Index":[3865,5933,2992,6517,637,8756,3248,6217,2831,9502,1019,7257,5144,3865],"./Rtorrent/Index":[2183,5933,7897,7624,6429,2183],"./Settings/Index":[293,5933,7897,2844,2992,6517,3248,215,2924,293],"./Settings/Tokens/Index":[215,5933,7897,2992,3248,215],"./Sound/Index":[746,746],"./Torrent/Index":[8784,5933,7897,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,5933,7897,7651,2844,6882],"./Zwave/Index":[2732,5933,7897,7651,2844,2718,2732],"./ZwaveMqtt/Index":[1088,5933,7897,7651,2844,2718,1088]};function d(e){if(!i.o(t,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=t[e],d=n[0];return Promise.all(n.slice(1).map(i.e)).then((function(){return i(d)}))}d.keys=function(){return Object.keys(t)},d.id=3379,e.exports=d}}]);
//# sourceMappingURL=8179.84455de5.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
(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.d2829947.js.map
//# sourceMappingURL=dashboard.8e6f9fe8.js.map

View file

@ -1,2 +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.184d8b7d.js.map
//# sourceMappingURL=login.5ccc27d1.js.map

View file

@ -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.45c82f8a.js.map
//# sourceMappingURL=notfound.c3830a81.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/notfound.45c82f8a.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.c3830a81.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":""}

View file

@ -1,2 +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.9f630d1a.js.map
//# sourceMappingURL=register.807d88c0.js.map