homebridge-camera-ui
Version:
User Interface for RTSP capable cameras with HSV support.
1 lines • 6.51 kB
JavaScript
(function(e){function t(t){for(var r,a,c=t[0],u=t[1],s=t[2],f=0,l=[];f<c.length;f++)a=c[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&l.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);d&&d(t);while(l.length)l.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var c=n[a];0!==o[c]&&(r=!1)}r&&(i.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={app:0},o={app:0},i=[];function c(e){return u.p+"js/"+({cameras:"cameras",config:"config"}[e]||e)+"."+{cameras:"1f9ca8c0",config:"38137959"}[e]+".js"}function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={cameras:1,config:1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="css/"+({cameras:"cameras",config:"config"}[e]||e)+"."+{cameras:"bfe7093b",config:"0a64fc62"}[e]+".css",o=u.p+r,i=document.getElementsByTagName("link"),c=0;c<i.length;c++){var s=i[c],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===r||f===o))return t()}var l=document.getElementsByTagName("style");for(c=0;c<l.length;c++){s=l[c],f=s.getAttribute("data-href");if(f===r||f===o)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var r=t&&t.target&&t.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete a[e],d.parentNode.removeChild(d),n(i)},d.href=o;var m=document.getElementsByTagName("head")[0];m.appendChild(d)})).then((function(){a[e]=0})));var r=o[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=i);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=c(e);var l=new Error;s=function(t){f.onerror=f.onload=null,clearTimeout(d);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",l.name="ChunkLoadError",l.type=r,l.request=a,n[1](l)}o[e]=void 0}};var d=setTimeout((function(){s({type:"timeout",target:f})}),12e4);f.onerror=f.onload=s,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="",u.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var d=f;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"034f":function(e,t,n){"use strict";n("85ec")},"346c":function(e,t,n){},"4ffd":function(e,t,n){e.exports=n.p+"img/logo.84ee0528.png"},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var r=n("2b0e"),a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-app",{staticClass:"app tw-p-4"},[r("div",{staticClass:"tw-flex tw-items-center tw-justify-center tw-flex-col"},[r("v-img",{attrs:{src:n("4ffd"),alt:"camera.ui",width:"100px"}}),r("h5",[e._v("Welcome to ")]),r("h1",{staticClass:"subtitle"},[e._v("camera.ui")]),r("div",{staticClass:"tw-my-3 text-muted"},[e._v("User Interface for RTSP capable cameras.")]),r("a",{staticClass:"github-link",attrs:{href:"https://github.com/SeydX/homebridge-camera-ui",target:"_blank"}},[r("v-icon",{staticClass:"text-default tw-mr-1",staticStyle:{"margin-top":"-3px"}},[e._v(e._s(e.icons["mdiGithub"])+" ")]),e._v("Github")],1),r("div",{staticClass:"tw-mt-3"},[r("router-link",{attrs:{to:"/cameras"}},[e._v("Cameras ")]),r("span",[e._v("| ")]),r("router-link",{attrs:{to:"/config"}},[e._v("Config ")]),e.interfaceLink?r("span",[e._v("| ")]):e._e(),e.interfaceLink?r("a",{attrs:{href:e.interfaceLink,target:"_blank"}},[e._v("Interface")]):e._e()],1),r("router-view")],1)])},o=[],i=n("1da1"),c=(n("96cf"),n("99af"),n("94ed")),u={name:"App",data:function(){return{icons:{mdiGithub:c["a"]},interfaceLink:null}},mounted:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:window.homebridge.showSpinner(),window.homebridge.addEventListener("ready",Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return window.document.body.classList.contains("dark-mode")?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.setAttribute("data-theme","light"),document.documentElement.setAttribute("data-theme-color","pink"),t.next=4,window.homebridge.request("/interfaceConfig");case 4:n=t.sent,n&&(r=n.protocol,a=n.port,e.interfaceLink="".concat(r,"://").concat(window.location.hostname,":").concat(a)),window.homebridge.hideSpinner();case 7:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()}},s=u,f=(n("034f"),n("2877")),l=n("6544"),d=n.n(l),m=n("7496"),p=n("132d"),h=n("adda"),g=Object(f["a"])(s,a,o,!1,null,null,null),v=g.exports;d()(g,{VApp:m["a"],VIcon:p["a"],VImg:h["a"]});n("d3b7"),n("3ca3"),n("ddb0");var b=n("8c4f");r["a"].use(b["a"]);var w=[{path:"/cameras",name:"Cameras",component:function(){return n.e("cameras").then(n.bind(null,"b64ba"))}},{path:"/config",name:"Config",component:function(){return n.e("config").then(n.bind(null,"1071"))}}],y=new b["a"]({routes:w}),_=y,k=n("f309"),C=n("21eb"),x=n.n(C);r["a"].use(k["a"]);var j=new k["a"]({icons:{iconfont:"mdiSvg"},options:{minifyTheme:x.a}});n("def6"),n("5aea"),n("346c");r["a"].config.productionTip=!1,new r["a"]({router:_,vuetify:j,render:function(e){return e(v)}}).$mount("#app")},"5aea":function(e,t,n){},"85ec":function(e,t,n){},def6:function(e,t,n){}});