Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/homebridge-camera-ui/interface/js/ drwxr-xr-x | |
| Viewing file: Select action/file-type: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["camera"],{"301e":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("BackToTop"),a("Navbar",{attrs:{name:e.$route.params.name}}),a("main",{staticClass:"inner-container w-100 h-100vh-calc pt-save footer-offset"},[e.loading?a("div",{staticClass:"container pt-3 d-flex flex-wrap justify-content-center align-content-center position-absolute-fullsize"},[a("b-spinner",{staticClass:"text-color-primary"})],1):!e.loading&&Object.keys(e.camera).length?a("div",{staticClass:"container pt-3"},[a("div",{staticClass:"card overflow-hidden bg-dark"},[a("VideoCard",{key:e.camera.name,ref:e.camera.name,attrs:{camera:e.camera,cardClass:"w-100 h-100",fullsize:!0,showFullsizeIndicator:!0,showRefreshIndicator:!0,showSpinner:!0,onlyStream:!0},on:{refreshStream:e.refreshStreamSocket}})],1),a("b-card-title",{staticClass:"mb-0 ml-1 mt-3"},[e._v(e._s(e.$route.params.name))]),a("b-card-text",{staticClass:"text-muted ml-1"},[e._v(e._s(e.camera.settings.room))]),a("div",{staticClass:"notifications-card"},[a("b-card-title",{staticClass:"notification-title mb-4"},[e._v(e._s(e.$t("notifications")))]),e.camera.lastNotifications.length?a("ul",e._l(e.camera.lastNotifications,(function(t,n){return a("li",[a("b-link",{on:{click:function(a){t.recordStoring?e.index=n:e.index=null}}},[a("b",[e._v(e._s(t.camera+": "))]),e._v(e._s(t.time))]),a("b-link",{staticClass:"float-right text-color-primary",on:{click:function(a){t.recordStoring?e.index=n:e.index=null}}},[a("b-icon",{attrs:{icon:"arrow-right-circle-fill"}})],1)],1)})),0):a("ul",[a("li",{staticClass:"text-center"},[e._v(e._s(e.$t("no_notifications")))])])],1),a("CoolLightBox",{attrs:{items:e.images,index:e.index,closeOnClickOutsideMobile:!0,useZoomBar:!0},on:{close:function(t){e.index=null}}})],1):e._e()]),a("Footer")],1)},r=[],c=a("1da1"),i=(a("96cf"),a("b0c0"),a("d81d"),a("99af"),a("0759")),s=a("7386"),o=a("5547"),l=(a("2223"),a("4add")),m=a("9f6c"),d=a("b879"),u=a("076e"),f=a("9d8d"),h=a("068a"),p={name:"Camera",components:{BackToTop:d["a"],BIcon:i["a"],BIconArrowRightCircleFill:s["b"],CoolLightBox:o["a"],Footer:u["a"],Navbar:f["a"],VideoCard:h["a"]},data:function(){return{camera:{},images:[],index:null,loading:!0}},computed:{currentUser:function(){return this.$store.state.auth.user}},mounted:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,!e.checkLevel("cameras:access")){t.next=15;break}return t.next=4,Object(l["a"])(e.$route.params.name);case 4:return a=t.sent,t.next=7,Object(m["a"])("?cameras=".concat(a.data.name,"&pageSize=5"));case 7:n=t.sent,a.data.lastNotifications=n.data.result,e.images=n.data.result.map((function(e){return{title:"".concat(e.camera," - ").concat(e.time),src:"/files/".concat(e.fileName),thumb:"Video"===e.recordType?"/files/".concat(e.name,"@2.jpeg"):"/files/".concat(e.fileName)}})),e.$socket.client.on(a.data.name,(function(t){e.$refs[a.data.name]&&e.$refs[a.data.name].writeStream(t)})),e.camera=a.data,e.loading=!1,t.next=16;break;case 15:e.$toast.error(e.$t("no_access"));case 16:t.next=21;break;case 18:t.prev=18,t.t0=t["catch"](0),e.$toast.error(t.t0.message);case 21:case"end":return t.stop()}}),t,null,[[0,18]])})))()},methods:{refreshStreamSocket:function(e){this.$refs[e.camera]&&this.$refs[e.camera].pauseStream(!0),this.$socket.client.emit("join_stream",{feed:e.camera,destroy:!0})}}},b=p,g=(a("7e1c"),a("2877")),v=Object(g["a"])(b,n,r,!1,null,"5e06da00",null);t["default"]=v.exports},"5b79":function(e,t,a){},"7e1c":function(e,t,a){"use strict";a("5b79")}}]); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0044 ]-- |