diff options
author | Iftekharul Islam <iislam@us.ibm.com> | 2017-03-24 15:28:25 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-09-20 12:41:33 -0500 |
commit | 99d199f300405c3700837a21ae97f6742c16b513 (patch) | |
tree | 4208e0d0697a889d29c6262353404a135cef011d /app/overview/index.js | |
parent | 38f681feee9d576ad962aae5fa46ad24ccc02d29 (diff) | |
download | phosphor-webui-99d199f300405c3700837a21ae97f6742c16b513.tar.gz phosphor-webui-99d199f300405c3700837a21ae97f6742c16b513.zip |
Major update to code structure
* Split files into independent files based on functionality.
* Switch to bower/gulp for build.
Change-Id: Ibc775dd9b7f6a0a49f63c22162b7582e781e2d9c
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
Diffstat (limited to 'app/overview/index.js')
-rw-r--r-- | app/overview/index.js | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/app/overview/index.js b/app/overview/index.js new file mode 100644 index 0000000..bc37a37 --- /dev/null +++ b/app/overview/index.js @@ -0,0 +1,48 @@ +/** + * A module for the overview + * + * @module app/overview/index + * @exports app/overview/index + * @version 0.0.1 + */ + +window.angular && (function (angular) { + 'use strict'; + + angular + .module('app.overview', [ + 'ngRoute', + 'app.constants', + 'app.common.services' + ]) + // Route configuration + .config(['$routeProvider', function ($routeProvider) { + $routeProvider + .when('/overview/bmc-reboot', { + 'templateUrl': 'overview/controllers/bmc-reboot-controller.html', + 'controller': 'bmcRebootController', + authenticated: true + }) + .when('/overview/log', { + 'templateUrl': 'overview/controllers/log-controller.html', + 'controller': 'logController', + authenticated: true + }) + .when('/overview/power-operations', { + 'templateUrl': 'overview/controllers/power-operations-controller.html', + 'controller': 'powerOperationsController', + authenticated: true + }) + .when('/overview/unit-id', { + 'templateUrl': 'overview/controllers/unit-id-controller.html', + 'controller': 'unitIdController', + authenticated: true + }) + .when('/overview/system', { + 'templateUrl': 'overview/controllers/system-overview-controller.html', + 'controller': 'systemOverviewController', + authenticated: true + }); + }]); + +})(window.angular); |