Run js-beautify and fixjsstyle on code
Found this pointer on stackoverflow:
https://stackoverflow.com/a/31660434/5508494
End goal is to get the code formatted well enough that
clang format will run correctly against it.
Change-Id: I80053e78d253d8eee49233e42d55e5807ae8fdc8
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/app/server-health/index.js b/app/server-health/index.js
index 57670ce..c090f82 100644
--- a/app/server-health/index.js
+++ b/app/server-health/index.js
@@ -5,68 +5,68 @@
* @exports app/server-health/index
*/
-window.angular && (function (angular) {
- 'use strict';
+window.angular && (function(angular) {
+ 'use strict';
- angular
- .module('app.serverHealth', [
- 'ngRoute',
- 'app.constants',
- 'app.common.services'
- ])
- // Route configuration
- .config(['$routeProvider', function ($routeProvider) {
- $routeProvider
- .when('/server-health/event-log', {
- 'template': require('./controllers/log-controller.html'),
- 'controller': 'logController',
- authenticated: true
- })
- .when('/server-health/event-log/:type', {
- 'template': require('./controllers/log-controller.html'),
- 'controller': 'logController',
- authenticated: true
- })
- .when('/server-health/event-log/:type/:id', {
- 'template': require('./controllers/log-controller.html'),
- 'controller': 'logController',
- authenticated: true
- })
- .when('/server-health/inventory-overview', {
- 'template': require('./controllers/inventory-overview-controller.html'),
- 'controller': 'inventoryOverviewController',
- authenticated: true
- })
- .when('/server-health/inventory', {
- 'template': require('./controllers/inventory-controller.html'),
- 'controller': 'inventoryController',
- authenticated: true
- })
- .when('/server-health/sensors-overview', {
- 'template': require('./controllers/sensors-overview-controller.html'),
- 'controller': 'sensorsOverviewController',
- authenticated: true
- })
- .when('/server-health/sensors/:type', {
- 'template': require('./controllers/sensors-controller.html'),
- 'controller': 'sensorsController',
- authenticated: true
- })
- .when('/server-health/power-consumption', {
- 'template': require('./controllers/power-consumption-controller.html'),
- 'controller': 'powerConsumptionController',
- authenticated: true
- })
- .when('/server-health/diagnostics', {
- 'template': require('./controllers/diagnostics-controller.html'),
- 'controller': 'diagnosticsController',
- authenticated: true
- })
- .when('/server-health', {
- 'template': require('./controllers/log-controller.html'),
- 'controller': 'logController',
- authenticated: true
- });
- }]);
+ angular
+ .module('app.serverHealth', [
+ 'ngRoute',
+ 'app.constants',
+ 'app.common.services'
+ ])
+ // Route configuration
+ .config(['$routeProvider', function($routeProvider) {
+ $routeProvider
+ .when('/server-health/event-log', {
+ 'template': require('./controllers/log-controller.html'),
+ 'controller': 'logController',
+ authenticated: true
+ })
+ .when('/server-health/event-log/:type', {
+ 'template': require('./controllers/log-controller.html'),
+ 'controller': 'logController',
+ authenticated: true
+ })
+ .when('/server-health/event-log/:type/:id', {
+ 'template': require('./controllers/log-controller.html'),
+ 'controller': 'logController',
+ authenticated: true
+ })
+ .when('/server-health/inventory-overview', {
+ 'template': require('./controllers/inventory-overview-controller.html'),
+ 'controller': 'inventoryOverviewController',
+ authenticated: true
+ })
+ .when('/server-health/inventory', {
+ 'template': require('./controllers/inventory-controller.html'),
+ 'controller': 'inventoryController',
+ authenticated: true
+ })
+ .when('/server-health/sensors-overview', {
+ 'template': require('./controllers/sensors-overview-controller.html'),
+ 'controller': 'sensorsOverviewController',
+ authenticated: true
+ })
+ .when('/server-health/sensors/:type', {
+ 'template': require('./controllers/sensors-controller.html'),
+ 'controller': 'sensorsController',
+ authenticated: true
+ })
+ .when('/server-health/power-consumption', {
+ 'template': require('./controllers/power-consumption-controller.html'),
+ 'controller': 'powerConsumptionController',
+ authenticated: true
+ })
+ .when('/server-health/diagnostics', {
+ 'template': require('./controllers/diagnostics-controller.html'),
+ 'controller': 'diagnosticsController',
+ authenticated: true
+ })
+ .when('/server-health', {
+ 'template': require('./controllers/log-controller.html'),
+ 'controller': 'logController',
+ authenticated: true
+ });
+ }]);
})(window.angular);