Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 1 | /** |
| 2 | * A module for the serverHealth |
| 3 | * |
| 4 | * @module app/server-health/index |
| 5 | * @exports app/server-health/index |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 6 | */ |
| 7 | |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame] | 8 | window.angular && (function(angular) { |
| 9 | 'use strict'; |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 10 | |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame] | 11 | angular |
Andrew Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame^] | 12 | .module( |
| 13 | 'app.serverHealth', |
| 14 | ['ngRoute', 'app.constants', 'app.common.services']) |
| 15 | // Route configuration |
| 16 | .config([ |
| 17 | '$routeProvider', |
| 18 | function($routeProvider) { |
| 19 | $routeProvider |
| 20 | .when('/server-health/event-log', { |
| 21 | 'template': require('./controllers/log-controller.html'), |
| 22 | 'controller': 'logController', |
| 23 | authenticated: true |
| 24 | }) |
| 25 | .when('/server-health/event-log/:type', { |
| 26 | 'template': require('./controllers/log-controller.html'), |
| 27 | 'controller': 'logController', |
| 28 | authenticated: true |
| 29 | }) |
| 30 | .when('/server-health/event-log/:type/:id', { |
| 31 | 'template': require('./controllers/log-controller.html'), |
| 32 | 'controller': 'logController', |
| 33 | authenticated: true |
| 34 | }) |
| 35 | .when('/server-health/inventory-overview', { |
| 36 | 'template': |
| 37 | require('./controllers/inventory-overview-controller.html'), |
| 38 | 'controller': 'inventoryOverviewController', |
| 39 | authenticated: true |
| 40 | }) |
| 41 | .when('/server-health/inventory', { |
| 42 | 'template': require('./controllers/inventory-controller.html'), |
| 43 | 'controller': 'inventoryController', |
| 44 | authenticated: true |
| 45 | }) |
| 46 | .when('/server-health/sensors-overview', { |
| 47 | 'template': |
| 48 | require('./controllers/sensors-overview-controller.html'), |
| 49 | 'controller': 'sensorsOverviewController', |
| 50 | authenticated: true |
| 51 | }) |
| 52 | .when('/server-health/sensors/:type', { |
| 53 | 'template': require('./controllers/sensors-controller.html'), |
| 54 | 'controller': 'sensorsController', |
| 55 | authenticated: true |
| 56 | }) |
| 57 | .when('/server-health/power-consumption', { |
| 58 | 'template': |
| 59 | require('./controllers/power-consumption-controller.html'), |
| 60 | 'controller': 'powerConsumptionController', |
| 61 | authenticated: true |
| 62 | }) |
| 63 | .when('/server-health/diagnostics', { |
| 64 | 'template': |
| 65 | require('./controllers/diagnostics-controller.html'), |
| 66 | 'controller': 'diagnosticsController', |
| 67 | authenticated: true |
| 68 | }) |
| 69 | .when('/server-health', { |
| 70 | 'template': require('./controllers/log-controller.html'), |
| 71 | 'controller': 'logController', |
| 72 | authenticated: true |
| 73 | }); |
| 74 | } |
| 75 | ]); |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 76 | |
| 77 | })(window.angular); |