From 170319119e94fde9130a1c1d8c6690a4629f3cc0 Mon Sep 17 00:00:00 2001 From: m4a11205 Date: Fri, 2 Dec 2016 14:23:32 -0600 Subject: [PATCH 01/34] beautify --- chute/web/app-dist/index.html | 60 +- .../web/app-dist/scripts/scripts.27ca6ab5.js | 53 +- chute/web/app-dist/scripts/vendor.01519822.js | 14642 +++++++++++++++- 3 files changed, 14735 insertions(+), 20 deletions(-) diff --git a/chute/web/app-dist/index.html b/chute/web/app-dist/index.html index 563c393..f3bde9d 100644 --- a/chute/web/app-dist/index.html +++ b/chute/web/app-dist/index.html @@ -1,9 +1,53 @@ - SecCam
+ ga('create', 'UA-XXXXX-X'); + ga('send', 'pageview'); + + + diff --git a/chute/web/app-dist/scripts/scripts.27ca6ab5.js b/chute/web/app-dist/scripts/scripts.27ca6ab5.js index 6a390cb..9ae8e24 100644 --- a/chute/web/app-dist/scripts/scripts.27ca6ab5.js +++ b/chute/web/app-dist/scripts/scripts.27ca6ab5.js @@ -1 +1,52 @@ -"use strict";angular.module("seccamApp",["ngAnimate","ngAria","ngCookies","ngMessages","ngResource","ngRoute","ngSanitize","ngTouch"]).config(["$routeProvider",function(a){a.when("/",{templateUrl:"views/main.html",controller:"MainCtrl",controllerAs:"main"}).when("/live-stream",{templateUrl:"views/live-stream.html",controller:"LiveStreamCtrl"}).when("/photos",{templateUrl:"views/photos.html",controller:"PhotosCtrl"}).otherwise({redirectTo:"/"})}]).controller("BaseController",["$scope","$location",function(a,b){a.isActive=function(a){return a===b.url()}}]),angular.module("seccamApp").controller("MainCtrl",function(){this.awesomeThings=["HTML5 Boilerplate","AngularJS","Karma"]}),angular.module("seccamApp").controller("LiveStreamCtrl",["$scope",function(a){a.streamStarted=!1;var b="http://admin@" + window.location.hostname + ":81/video.cgi";a.startStream=function(){a.streamStarted||(a.streamStarted=!0,$("#video-stream").attr("src",b))}}]),angular.module("seccamApp").controller("PhotosCtrl",["$scope","$http","$interval",function(a,b,c){a.photos=[];var d="http://" + window.location.hostname + ":8010",e=6e4,f=null,g=function(){b.get(d).then(function(b){a.photos=b.data})};g(),f=c(g,e)}]),angular.module("seccamApp").run(["$templateCache",function(a){a.put("views/live-stream.html",'

Live Stream

Stream is live!

Stream has not started.

Click to start stream
'),a.put("views/main.html",'

SecCam


Security brought to you by
Paradrop


Live Stream

Photos

'),a.put("views/photos.html",'

Photos

Taken at {{ photos[$index + 0].ts | date:\'mediumTime\':\'CST\' }}
A SecCam photo
Taken at {{ photos[$index + 1].ts | date:\'mediumTime\':\'CST\' }}
A SecCam photo
Taken at {{ photos[$index + 2].ts | date:\'mediumTime\':\'CST\' }}
A SecCam photo
Taken at {{ photos[$index + 3].ts | date:\'mediumTime\':\'CST\' }}
A SecCam photo
')}]); +"use strict"; +angular.module("seccamApp", ["ngAnimate", "ngAria", "ngCookies", "ngMessages", "ngResource", "ngRoute", "ngSanitize", "ngTouch"]) + .config(["$routeProvider", function(a) { + a.when("/", { + templateUrl: "views/main.html", + controller: "MainCtrl", + controllerAs: "main" + }) + .when("/live-stream", { + templateUrl: "views/live-stream.html", + controller: "LiveStreamCtrl" + }) + .when("/photos", { + templateUrl: "views/photos.html", + controller: "PhotosCtrl" + }) + .otherwise({ + redirectTo: "/" + }) +}]) + .controller("BaseController", ["$scope", "$location", function(a, b) { + a.isActive = function(a) { + return a === b.url() + } +}]), angular.module("seccamApp") + .controller("MainCtrl", function() { + this.awesomeThings = ["HTML5 Boilerplate", "AngularJS", "Karma"] + }), angular.module("seccamApp") + .controller("LiveStreamCtrl", ["$scope", function(a) { + a.streamStarted = !1; + var b = "http://admin@" + window.location.hostname + ":81/video.cgi"; + a.startStream = function() { + a.streamStarted || (a.streamStarted = !0, $("#video-stream") + .attr("src", b)) + } +}]), angular.module("seccamApp") + .controller("PhotosCtrl", ["$scope", "$http", "$interval", function(a, b, c) { + a.photos = []; + var d = "http://" + window.location.hostname + ":8010", + e = 6e4, + f = null, + g = function() { + b.get(d) + .then(function(b) { + a.photos = b.data + }) + }; + g(), f = c(g, e) +}]), angular.module("seccamApp") + .run(["$templateCache", function(a) { + a.put("views/live-stream.html", '

Live Stream

Stream is live!

Stream has not started.

Click to start stream
'), a.put("views/main.html", '

SecCam


Security brought to you by
Paradrop


Live Stream

Photos

'), a.put("views/photos.html", '

Photos

Taken at {{ photos[$index + 0].ts | date:\'mediumTime\':\'CST\' }}
A SecCam photo
Taken at {{ photos[$index + 1].ts | date:\'mediumTime\':\'CST\' }}
A SecCam photo
Taken at {{ photos[$index + 2].ts | date:\'mediumTime\':\'CST\' }}
A SecCam photo
Taken at {{ photos[$index + 3].ts | date:\'mediumTime\':\'CST\' }}
A SecCam photo
') +}]); diff --git a/chute/web/app-dist/scripts/vendor.01519822.js b/chute/web/app-dist/scripts/vendor.01519822.js index 94b5219..f0e3d3d 100644 --- a/chute/web/app-dist/scripts/vendor.01519822.js +++ b/chute/web/app-dist/scripts/vendor.01519822.js @@ -1,11 +1,14631 @@ -if(function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=!!a&&"length"in a&&a.length,c=fa.type(a);return"function"===c||fa.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(fa.isFunction(b))return fa.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return fa.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(pa.test(b))return fa.filter(b,a,c);b=fa.filter(b,a)}return fa.grep(a,function(a){return _.call(b,a)>-1!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b={};return fa.each(a.match(va)||[],function(a,c){b[c]=!0}),b}function g(){X.removeEventListener("DOMContentLoaded",g),a.removeEventListener("load",g),fa.ready()}function h(){this.expando=fa.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Ca,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:Ba.test(c)?fa.parseJSON(c):c}catch(e){}Aa.set(a,b,c)}else c=void 0;return c}function j(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return fa.css(a,b,"")},i=h(),j=c&&c[3]||(fa.cssNumber[b]?"":"px"),k=(fa.cssNumber[b]||"px"!==j&&+i)&&Ea.exec(fa.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,fa.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function k(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&fa.nodeName(a,b)?fa.merge([a],c):c}function l(a,b){for(var c=0,d=a.length;d>c;c++)za.set(a[c],"globalEval",!b||za.get(b[c],"globalEval"))}function m(a,b,c,d,e){for(var f,g,h,i,j,m,n=b.createDocumentFragment(),o=[],p=0,q=a.length;q>p;p++)if(f=a[p],f||0===f)if("object"===fa.type(f))fa.merge(o,f.nodeType?[f]:f);else if(La.test(f)){for(g=g||n.appendChild(b.createElement("div")),h=(Ia.exec(f)||["",""])[1].toLowerCase(),i=Ka[h]||Ka._default,g.innerHTML=i[1]+fa.htmlPrefilter(f)+i[2],m=i[0];m--;)g=g.lastChild;fa.merge(o,g.childNodes),g=n.firstChild,g.textContent=""}else o.push(b.createTextNode(f));for(n.textContent="",p=0;f=o[p++];)if(d&&fa.inArray(f,d)>-1)e&&e.push(f);else if(j=fa.contains(f.ownerDocument,f),g=k(n.appendChild(f),"script"),j&&l(g),c)for(m=0;f=g[m++];)Ja.test(f.type||"")&&c.push(f);return n}function n(){return!0}function o(){return!1}function p(){try{return X.activeElement}catch(a){}}function q(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)q(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=o;else if(!e)return a;return 1===f&&(g=e,e=function(a){return fa().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=fa.guid++)),a.each(function(){fa.event.add(this,b,e,d,c)})}function r(a,b){return fa.nodeName(a,"table")&&fa.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function s(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function t(a){var b=Sa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function u(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(za.hasData(a)&&(f=za.access(a),g=za.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)fa.event.add(b,e,j[e][c])}Aa.hasData(a)&&(h=Aa.access(a),i=fa.extend({},h),Aa.set(b,i))}}function v(a,b){var c=b.nodeName.toLowerCase();"input"===c&&Ha.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function w(a,b,c,d){b=Z.apply([],b);var e,f,g,h,i,j,l=0,n=a.length,o=n-1,p=b[0],q=fa.isFunction(p);if(q||n>1&&"string"==typeof p&&!da.checkClone&&Ra.test(p))return a.each(function(e){var f=a.eq(e);q&&(b[0]=p.call(this,e,f.html())),w(f,b,c,d)});if(n&&(e=m(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(g=fa.map(k(e,"script"),s),h=g.length;n>l;l++)i=e,l!==o&&(i=fa.clone(i,!0,!0),h&&fa.merge(g,k(i,"script"))),c.call(a[l],i,l);if(h)for(j=g[g.length-1].ownerDocument,fa.map(g,t),l=0;h>l;l++)i=g[l],Ja.test(i.type||"")&&!za.access(i,"globalEval")&&fa.contains(j,i)&&(i.src?fa._evalUrl&&fa._evalUrl(i.src):fa.globalEval(i.textContent.replace(Ta,"")))}return a}function x(a,b,c){for(var d,e=b?fa.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||fa.cleanData(k(d)),d.parentNode&&(c&&fa.contains(d.ownerDocument,d)&&l(k(d,"script")),d.parentNode.removeChild(d));return a}function y(a,b){var c=fa(b.createElement(a)).appendTo(b.body),d=fa.css(c[0],"display");return c.detach(),d}function z(a){var b=X,c=Va[a];return c||(c=y(a,b),"none"!==c&&c||(Ua=(Ua||fa("