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>
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);