Commit Graph

1641 Commits

Author SHA1 Message Date
Kyle Johnson 6764211ebd Add initial MonitorController 2014-12-16 17:11:28 -05:00
Kyle Johnson f770382268 Move FPS options to bottom of General tab 2014-12-16 17:11:02 -05:00
Kyle Johnson f9519d963c Fix ng-model names in General tab
As ng-model is namespaced into the MonitorController,
it is safe to name the variables 'Name' instead of
newMonitor[Name] as before
2014-12-16 17:10:02 -05:00
Kyle Johnson d662bf41e9 First pass at formatting Misc tab 2014-12-16 17:07:19 -05:00
Kyle Johnson 2f254eefef Split 'Local' and 'Remote' tabs into their own files 2014-12-16 17:06:54 -05:00
Kyle Johnson 00427c2e41 Fix indenting and missing </div> in monitor.php 2014-12-16 17:04:02 -05:00
Kyle Johnson 735c14ea2d Replace 'name' with 'ng-model' in General monitor tab 2014-12-16 14:18:54 -05:00
Kyle Johnson 21f29cfa29 Open the General monitor tab by default 2014-12-16 14:04:30 -05:00
Kyle Johnson d76e9e5f5d Initial work on cleaning up monitor view.
Starting by splitting each 'tab' out into their own php
file, and then including it.  Easier to manage.  Following up by
removing tables and replacing with a responsive form layout.
Also working on removing PHP dependencies and using the UI instead.
2014-12-13 23:15:31 -05:00
Kyle Johnson 030f6af057 Initial angular view for Logs 2014-12-01 16:16:30 +00:00
Kyle Johnson 904b946bfb Initial Logs controller 2014-12-01 16:15:42 +00:00
Kyle Johnson 87e1133506 Initial Log factory for returning log entires 2014-12-01 16:15:12 +00:00
Kyle Johnson f213657c0e Add cakephp route for logs 2014-12-01 16:14:23 +00:00
Kyle Johnson 9a041efbf0 Remove log.js 2014-12-01 16:14:02 +00:00
Kyle Johnson dd9188b7cd Remove Logs views, ouput log json via _serialize 2014-12-01 16:13:08 +00:00
Kyle Johnson 682190c186 Redo console HTML to be organized by flexbox, not bootstrap grid
Utilizing css3 flexbox, I'm able to easily lay out all monitors
with equal width and height, while not having to worry about parent
.row <div>'s
2014-11-28 16:56:22 +00:00
Kyle Johnson 8b7733cd37 Remove mootools, overlay and logger from bootstrap
Everything these files do is being replaced by AngularJS
2014-11-28 16:55:12 +00:00
Kyle Johnson e56248ab88 Remove copywrite from console view header 2014-11-28 00:27:55 +00:00
Kyle Johnson cdcf29964b Remove rest of unused php from console view. 2014-11-28 00:27:04 +00:00
Kyle Johnson ff65a701eb Display stills of each monitor, set per-monitor alerts
This commit displays a still of each monitor at page load time.
The panel surrounding the monitor is context sensitive - if zmc or
zma is not running, the panel is red (well, pink).

Also if either zmc or zma are not running, we add an icon in the
panel's header, explaining what is wrong.
2014-11-28 00:25:15 +00:00
Kyle Johnson addc985656 Load ui.bootstrap angular module 2014-11-28 00:20:04 +00:00
Kyle Johnson 1d7d53d166 Add ui-bootstrap 0.12 2014-11-27 14:50:31 +00:00
Kyle Johnson b3d1811c43 Add getMonitors factory to angular 2014-11-27 14:35:00 +00:00
Kyle Johnson d9e65e37f9 Add daemonStatus factory to angular.
Used to query the status of daemons (zmc, zma, etc)
2014-11-27 14:34:08 +00:00
Kyle Johnson dcde5e16ad Add API function to check daemon status of monitor
This replaces daemonStatus(), zmcStatus() and zmaStatus() from
the original includes/functions.php.

Can be accessed like:
/api/monitors/daemonStatus/id:2/daemon:zma.json
2014-11-26 03:38:41 +00:00
Kyle Johnson b0aeea262b Set Monitor model to not be recursive 2014-11-26 03:31:20 +00:00
Kyle Johnson 348564de64 Remove a bunch of unused php in Console view 2014-11-25 17:56:54 +00:00
Kyle Johnson 963e02a0a3 Make all outputImageStill calls have class="img-responsive" 2014-11-25 17:47:28 +00:00
Kyle Johnson 50b1a53369 Put mid into the liveStream ID in console view 2014-11-25 17:45:47 +00:00
Kyle Johnson 929d332ce7 Remove group querystring from Host link 2014-11-25 16:31:40 +00:00
Kyle Johnson f854bf4dcb Move getDiskPercent from Footer to Host factory 2014-11-25 16:30:27 +00:00
Kyle Johnson 9b636c89bc Show disk usage as a chart on the Host view 2014-11-25 16:27:38 +00:00
Kyle Johnson f32cb32da9 Move getLoad to Host factory, and display via chartjs 2014-11-25 16:25:10 +00:00
Kyle Johnson 284b51b73d Update API to return disk usage for all monitors
This allows us to get back an array of monitor => usage key pairs
2014-11-25 16:10:34 +00:00
Kyle Johnson e7ab18236a Get load via sys_getloadavg() instead of `uptime` 2014-11-25 16:07:27 +00:00
Kyle Johnson d6a921810c Load the tc chartjs angular module 2014-11-25 15:25:34 +00:00
Kyle Johnson 7dff223aa6 Include Chart.js and tc-angular-chartjs in bootstrap skin 2014-11-25 15:23:06 +00:00
Kyle Johnson 7faace32b9 Initial commit of empty HostController 2014-11-25 15:21:30 +00:00
Kyle Johnson 840ead467b Remove Load and Disk Usage from Footer 2014-11-25 15:19:45 +00:00
Kyle Johnson 3e10ab10ac Added Chart.js v 1.0.1 beta-4 2014-11-24 20:09:22 +00:00
Kyle Johnson c8ab231cef Add Host view to header 2014-11-24 20:03:06 +00:00
Kyle Johnson fe87ca7bd7 Initial commit of Host view 2014-11-24 20:02:59 +00:00
Kyle Johnson d44b89b7fc Allow API to return per-monitor disk usage
* For monitor 1: api/host/getDiskPercent/1.json
 * For all: api/host/getDiskPercent.json
2014-11-24 19:56:44 +00:00
Kyle Johnson 941bf3535f Display version in footer via api / angular 2014-11-24 00:56:20 +00:00
Kyle Johnson 40dcca2084 Add API function to get ZM version 2014-11-24 00:52:27 +00:00
Kyle Johnson 7ba971806f Removed a console.log() 2014-11-21 22:17:01 +00:00
Kyle Johnson 1f74d1cd60 Get the diskPercent from angular, via the API 2014-11-21 22:16:19 +00:00
Kyle Johnson 055a494fe4 Add getDiskPercent function to the api
Returns the amount of space used
2014-11-21 22:15:32 +00:00
Kyle Johnson ffaa24d108 daemonCheck finds zmdc.pl via Configure::read 2014-11-21 21:42:21 +00:00
Kyle Johnson 0108f43cab Add function for making vars in zm.conf global in api
This loops throgh zm.conf and sets each variable in it
as global in CakePHP via Configure::write.  The vars
can then later be read withing CakePHP via Configure::read
2014-11-21 21:40:31 +00:00
Kyle Johnson 4da50a8199 Merge branch 'master' of github.com:ZoneMinder/ZoneMinder into bootstrap-skin 2014-11-21 21:06:32 +00:00
Kyle Johnson 403ece33bd Tell cmake to configure zm version and config path in cakephp 2014-11-21 21:04:46 +00:00
Kyle Johnson e541976b77 Grab system load from API and set with angular 2014-11-21 20:06:59 +00:00
Kyle Johnson 345f152181 Add function for returning system load via api 2014-11-21 19:49:03 +00:00
Emmanuel Papin 4e9c3494b8 Convert french lang file to UTF-8 2014-11-20 20:51:49 +01:00
Kyle Johnson 9dd1a2261f Output a real snapshot of the camera in console view 2014-11-20 13:47:41 +00:00
Kyle Johnson 2ae1880006 Initial commit of general purpose API event search 2014-11-20 13:46:49 +00:00
Kyle Johnson 4364c73143 Remake Options view with angular. Uses API. 2014-11-20 04:11:33 +00:00
Kyle Johnson ad65fa1820 Make Config table options available to angular 2014-11-20 04:10:01 +00:00
Kyle Johnson 92bfac0aad Add angular directive allowing elements to bind to html 2014-11-20 04:05:22 +00:00
Kyle Johnson 408c6111b8 Return specific configs as an HTML <form> in API 2014-11-20 04:04:23 +00:00
Kyle Johnson 4298d4a498 Fix <form> location in state.php 2014-11-20 03:40:15 +00:00
Kyle Johnson c8a3cb9df9 Initial refactor of console view to use api & angular
* Move eventCounts to the API and bind with angular
 * Display the console as a grid, rather than a table
 * Show only information we want to see
2014-11-19 15:53:07 +00:00
Kyle Johnson a0f12575fe Add API function to return event counts for console view 2014-11-19 15:49:38 +00:00
Kyle Johnson 64122b3b98 Set the logState in header via angular 2014-11-16 00:35:10 +00:00
Kyle Johnson 175e7d3e22 Initial commit of Host MVC.
Used for daemonCheck, getLoad, etc
2014-11-16 00:21:55 +00:00
Kyle Johnson f1a70076d0 Convert some of event view to angularjs 2014-11-15 23:51:31 +00:00
Kyle Johnson 5b4dfce34a Add Event controller and factory 2014-11-15 23:50:46 +00:00
Kyle Johnson 519a5e1612 Setup html5mode to enabled 2014-11-15 23:50:04 +00:00
Kyle Johnson 47770bffe4 Add <base> element to <head> so I can use $location.search 2014-11-15 23:49:18 +00:00
Kyle Johnson 1fc26c01ac Merge remote-tracking branch 'origin/master' into bootstrap-skin 2014-11-15 21:47:01 +00:00
Kyle Johnson 2db5d66134 Include state js and php in all pages.
As we can now start / stop the software from any page, via a modal,
we need the state's php and js files to do so.
2014-11-15 19:48:04 +00:00
Kyle Johnson f38a9c9f06 Add jquery 2014-11-15 19:46:34 +00:00
Kyle Johnson 36ebaaff33 Add HeaderController to the header nav 2014-11-15 19:45:18 +00:00
Kyle Johnson 58fbc6c833 Wrap pagination links in <li> instead of <p> 2014-11-15 19:38:45 +00:00
Kyle Johnson 4c0e2dc743 Include initial angularjs files 2014-11-15 19:34:00 +00:00
Kyle Johnson 35530c627a Initial commit of Logs MVC 2014-11-15 19:03:40 +00:00
Kyle Johnson 0129ca5f74 Rework the ConfigParser component. 2014-11-15 19:03:10 +00:00
Kyle Johnson e7d726bf75 Don't print out the Config string to the file system. 2014-11-15 19:02:54 +00:00
Kyle Johnson fcaa67e3c3 Slight refactor of ConfigParser Component. Needs more work. 2014-11-15 19:02:18 +00:00
Kyle Johnson cf3d0f962c Add view for Configs Edit 2014-11-15 19:02:03 +00:00
Kyle Johnson 9f80a7d5f5 Show a list of Config Key:Value pairs 2014-11-15 19:01:32 +00:00
Kyle Johnson 9268c503af Do not display the "hidden" config category 2014-11-15 19:01:19 +00:00
Kyle Johnson b9f54056da Add component for dumping Config table as HTML 2014-11-15 18:59:58 +00:00
Kyle Johnson de631075d3 Return possible source types ni DB via API 2014-11-15 18:59:24 +00:00
Kyle Johnson 0d57306790 Find category configs only when $category is not null. API 2014-11-15 18:58:58 +00:00
Kyle Johnson 9f150c4e46 Revert "Find category configs only when $category is not null. API"
This reverts commit efbbcadc7dad9aa52a7aab0483546eab48840ae6.
2014-11-15 18:58:51 +00:00
Kyle Johnson b88febeaee Find category configs only when $category is not null. API 2014-11-15 18:58:43 +00:00
Kyle Johnson 0a7ba112ab API support for querying config categories.
Either return a list of distinct categories, or all configs under a
certain category
2014-11-15 18:55:20 +00:00
Kyle Johnson b04d970132 Add charset and other meta tags to head 2014-11-15 17:34:51 +00:00
Kyle Johnson 6911b99271 Move groups link to the console sidebar 2014-11-15 16:51:39 +00:00
Kyle Johnson a6027ccdca Make the ZoneMinder text a link to the console 2014-11-15 16:49:44 +00:00
Kyle Johnson e359a1cf97 Move 'state' to header, as on/off btn, in a modal 2014-11-15 16:47:42 +00:00
Kyle Johnson 08d2cf801e Move header outside of form in console 2014-11-15 16:34:45 +00:00
Isaac Connor 9c30b806f2 don't require SystemView to view/select groups.
Change the way the groups ine is displayed to give people some idea that it might have something to do with grouping
use _POST instead of _REQUEST
2014-11-13 10:38:20 -05:00
Isaac Connor ebe35c2135 handle empty [file] to prevent logzilla 2014-11-13 09:17:54 -05:00
Kyle Johnson 7b4effc3ed Remove Chart.js 2014-11-11 16:49:56 +00:00
Kyle Johnson 7f83eeafbf Do not text-align center everything 2014-11-11 14:56:45 +00:00
Kyle Johnson 942c65f1e2 Remove the existing #header from timeline 2014-11-11 14:34:34 +00:00
Kyle Johnson 1c046a7afd Added header to the timeline view 2014-11-11 14:33:35 +00:00