Skip to content

Commit

Permalink
Creating one single bundle.js file (contiv#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal-j committed May 18, 2016
1 parent 07c688c commit 710dc50
Show file tree
Hide file tree
Showing 2,966 changed files with 263,053 additions and 109 deletions.
4 changes: 2 additions & 2 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ angular.module('contivApp', [
'contiv.volumes',
'contiv.nodes'
])
.config(function ($stateProvider, $urlRouterProvider) {
.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
$stateProvider
//abstract state serves as a PLACEHOLDER or NAMESPACE for application states
.state('contiv', {
Expand Down Expand Up @@ -54,4 +54,4 @@ angular.module('contivApp', [
;

$urlRouterProvider.otherwise('/');
});
}]);
4 changes: 2 additions & 2 deletions app/applicationgroups/applicationgroupcreatectrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
* Created by vjain3 on 3/10/16.
*/
angular.module('contiv.applicationgroups')
.config(function ($stateProvider) {
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.applicationgroups.create', {
url: '/create',
controller: 'ApplicationGroupCreateCtrl as applicationGroupCreateCtrl',
templateUrl: 'applicationgroups/applicationgroupcreate.html'
})
;
})
}])
.controller('ApplicationGroupCreateCtrl', [
'$state',
'ApplicationGroupsModel',
Expand Down
4 changes: 2 additions & 2 deletions app/applicationgroups/applicationgroupdetailsctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Created by vjain3 on 3/15/16.
*/
angular.module('contiv.applicationgroups')
.config(function ($stateProvider) {
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.applicationgroups.details', {
url: '/details/:key',
Expand All @@ -15,7 +15,7 @@ angular.module('contiv.applicationgroups')
templateUrl: 'applicationgroups/applicationgroupdetails.html'
})
;
})
}])
.controller('ApplicationGroupDetailsCtrl', [
'$state',
'$stateParams',
Expand Down
6 changes: 3 additions & 3 deletions app/applicationgroups/applicationgrouplistctrl.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/**
* Created by vjain3 on 3/11/16.
*/
angular.module('contiv.applicationgroups', ['contiv.models', 'contiv.directives', 'contiv.utils'])
.config(function ($stateProvider) {
angular.module('contiv.applicationgroups')
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.applicationgroups.list', {
url: '/list',
controller: 'ApplicationGroupListCtrl as applicationGroupListCtrl',
templateUrl: 'applicationgroups/applicationgrouplist.html'
})
;
})
}])
.controller('ApplicationGroupListCtrl',
['$scope', '$interval', '$filter', 'ApplicationGroupsModel', 'CRUDHelperService',
function ($scope, $interval, $filter, ApplicationGroupsModel, CRUDHelperService) {
Expand Down
4 changes: 4 additions & 0 deletions app/applicationgroups/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Created by vjain3 on 5/18/16.
*/
angular.module('contiv.applicationgroups', ['contiv.models', 'contiv.directives', 'contiv.utils']);
3 changes: 3 additions & 0 deletions app/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/components/directives/errormessagedirective.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Created by vjain3 on 4/28/16.
*/
angular.module("contiv.directives", [])
angular.module("contiv.directives")
.directive("ctvError", function () {
return {
restrict: 'E',
Expand Down
1 change: 1 addition & 0 deletions app/components/directives/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
angular.module("contiv.directives", []);
File renamed without changes.
2 changes: 1 addition & 1 deletion app/components/utils/crudhelperservice.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Created by vjain3 on 4/29/16.
*/
angular.module('contiv.utils', [])
angular.module('contiv.utils')
.factory('CRUDHelperService', function () {
function startLoader(controller) {
controller.showLoader = true;
Expand Down
4 changes: 4 additions & 0 deletions app/components/utils/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Created by vjain3 on 5/18/16.
*/
angular.module('contiv.utils', []);
6 changes: 3 additions & 3 deletions app/dashboard/dashboardctrl.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* Created by vjain3 on 3/11/16.
*/
angular.module('contiv.dashboard', ['contiv.models'])
.config(function ($stateProvider) {
angular.module('contiv.dashboard')
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.dashboard', {
url: '/',
controller: 'DashboardCtrl as dashboardCtrl',
templateUrl: 'dashboard/dashboard.html'
});
})
}])
.controller('DashboardCtrl',
[
'$scope',
Expand Down
4 changes: 4 additions & 0 deletions app/dashboard/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Created by vjain3 on 5/18/16.
*/
angular.module('contiv.dashboard', ['contiv.models']);
52 changes: 8 additions & 44 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="bower_components/html5-boilerplate/dist/css/normalize.css">
<link rel="stylesheet" href="bower_components/html5-boilerplate/dist/css/main.css">
<link rel="stylesheet" href="app.css">
<script src="bower_components/html5-boilerplate/dist/js/vendor/modernizr-2.8.3.min.js"></script>
<link rel="stylesheet" href="bower_components/semantic-ui/dist/semantic.css">
<link rel="stylesheet" href="bower_components/semantic-ui/dist/semantic.min.css">
<link rel="stylesheet" href="app.css">
</head>
<body>

Expand Down Expand Up @@ -76,48 +76,12 @@ <h1 class="header" style="margin-left:200px; margin-right:auto;">
<!-- In production use:
<script src="//ajax.googleapis.com/ajax/libs/angularjs/x.x.x/angular.min.js"></script>
-->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
<script src="bower_components/semantic-ui/dist/semantic.js"></script>
<script src="bower_components/lodash/dist/lodash.js"></script>
<script src="app.js"></script>
<script src="components/directives/errormessagedirective.js"></script>
<script src="components/directives/tabledirective.js"></script>
<script src="components/directives/namevaluedirective.js"></script>
<script src="components/utils/crudhelperservice.js"></script>
<script src="components/models/collection.js"></script>
<script src="dashboard/dashboardctrl.js"></script>
<script src="components/models/registermodelsmodule.js"></script>
<script src="components/models/applicationgroupsmodel.js"></script>
<script src="applicationgroups/applicationgrouplistctrl.js"></script>
<script src="applicationgroups/applicationgroupservice.js"></script>
<script src="applicationgroups/applicationgroupdetailsctrl.js"></script>
<script src="applicationgroups/applicationgroupcreatectrl.js"></script>
<script src="components/models/networksmodel.js"></script>
<script src="networks/networklistctrl.js"></script>
<script src="networks/networkdetailsctrl.js"></script>
<script src="networks/networkcreatectrl.js"></script>
<script src="components/models/policiesmodel.js"></script>
<script src="components/models/rulesmodel.js"></script>
<script src="network_policies/networkpoliciestabsctrl.js"></script>
<script src="network_policies/isolationpolicylistctrl.js"></script>
<script src="network_policies/isolationpolicydetailsctrl.js"></script>
<script src="network_policies/isolationpolicycreatectrl.js"></script>
<script src="components/models/storagepoliciesmodel.js"></script>
<script src="storage_policies/storagepolicylistctrl.js"></script>
<script src="components/models/volumesmodel.js"></script>
<script src="volumes/volumelistctrl.js"></script>
<script src="volumes/volumedetailsctrl.js"></script>
<script src="components/models/nodesmodel.js"></script>
<script src="nodes/nodelistctrl.js"></script>
<script src="nodes/nodedetailsctrl.js"></script>
<script src="nodes/nodecommissionctrl.js"></script>
<script src="components/models/servicelbsmodel.js"></script>
<script src="service_lbs/servicelblistctrl.js"></script>
<script src="service_lbs/servicelbdetailsctrl.js"></script>
<script src="service_lbs/servicelbcreatectrl.js"></script>
<script src="service_lbs/servicelbportsdirective.js"></script>
<script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script>
<script src="bower_components/semantic-ui/dist/semantic.min.js"></script>
<script src="bower_components/lodash/dist/lodash.min.js"></script>
<script src="bundle.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions app/network_policies/isolationpolicycreatectrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
* Created by vjain3 on 3/10/16.
*/
angular.module('contiv.networkpolicies')
.config(function ($stateProvider) {
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.networkpolicies.isolation.create', {
url: '/create',
controller: 'IsolationPolicyCreateCtrl as isolationPolicyCreateCtrl',
templateUrl: 'network_policies/isolationpolicycreate.html'
})
;
})
}])
.controller('IsolationPolicyCreateCtrl', ['$state', 'PoliciesModel', 'CRUDHelperService',
function ($state, PoliciesModel, CRUDHelperService) {
var isolationPolicyCreateCtrl = this;
Expand Down
8 changes: 4 additions & 4 deletions app/network_policies/isolationpolicydetailsctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
* Created by vjain3 on 3/8/16.
*/
angular.module('contiv.networkpolicies')
.config(function ($stateProvider) {
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.networkpolicies.isolation.details', {
url: '/details/:key',
controller: 'IsolationPolicyDetailsCtrl as isolationPolicyDetailsCtrl',
templateUrl: 'network_policies/isolationpolicydetails.html'
});
})
.config(function ($stateProvider) {
}])
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.networkpolicies.isolation.edit', {
url: '/edit/:key',
controller: 'IsolationPolicyDetailsCtrl as isolationPolicyDetailsCtrl',
templateUrl: 'network_policies/isolationpolicydetails.html'
});
})
}])
.controller('IsolationPolicyDetailsCtrl', [
'$state',
'$stateParams',
Expand Down
4 changes: 2 additions & 2 deletions app/network_policies/isolationpolicylistctrl.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
angular.module('contiv.networkpolicies')
.config(function ($stateProvider) {
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.networkpolicies.isolation.list', {
url: '/list',
controller: 'IsolationPolicyListCtrl as isolationPolicyListCtrl',
templateUrl: 'network_policies/isolationpolicylist.html'
})
;
})
}])
.controller('IsolationPolicyListCtrl', ['$scope', '$interval', '$filter', 'PoliciesModel', 'CRUDHelperService',
function ($scope, $interval, $filter, PoliciesModel, CRUDHelperService) {
var policiesListCtrl = this;
Expand Down
5 changes: 5 additions & 0 deletions app/network_policies/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* Created by vjain3 on 5/18/16.
*/

angular.module('contiv.networkpolicies', ['contiv.models', 'contiv.directives', 'contiv.utils']);
6 changes: 3 additions & 3 deletions app/network_policies/networkpoliciestabsctrl.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Created by vjain3 on 3/9/16.
*/
angular.module('contiv.networkpolicies', ['contiv.models', 'contiv.directives', 'contiv.utils'])
.config(function ($stateProvider) {
angular.module('contiv.networkpolicies')
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.networkpolicies', {
url: '/networkpolicies',
Expand Down Expand Up @@ -30,6 +30,6 @@ angular.module('contiv.networkpolicies', ['contiv.models', 'contiv.directives',
templateUrl: 'network_policies/redirectionpolicylist.html'
})
;
})
}])
.controller('NetworkPoliciesTabsCtrl', ['$state', function ($state) {
}]);
4 changes: 4 additions & 0 deletions app/networks/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Created by vjain3 on 5/18/16.
*/
angular.module('contiv.networks', ['contiv.models', 'contiv.directives', 'contiv.utils']);
4 changes: 2 additions & 2 deletions app/networks/networkcreatectrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
* Created by vjain3 on 2/19/16.
*/
angular.module('contiv.networks')
.config(function ($stateProvider) {
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.networks.create', {
url: '/create',
templateUrl: 'networks/networkcreate.html',
controller: 'NetworkCreateCtrl as networkCreateCtrl'
})
;
})
}])
.controller('NetworkCreateCtrl', ['$state', '$stateParams', 'NetworksModel', 'CRUDHelperService',
function ($state, $stateParams, NetworksModel, CRUDHelperService) {
var networkCreateCtrl = this;
Expand Down
4 changes: 2 additions & 2 deletions app/networks/networkdetailsctrl.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
angular.module('contiv.networks')
.config(function ($stateProvider) {
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.networks.details', {
url: '/details/:key',
controller: 'NetworkDetailsCtrl as networkDetailsCtrl',
templateUrl: 'networks/networkdetails.html'
});
})
}])
.controller('NetworkDetailsCtrl',
['$state', '$stateParams', '$scope', '$interval', '$filter', 'NetworksModel', 'ApplicationGroupsModel', 'CRUDHelperService',
function ($state, $stateParams, $scope, $interval, $filter, NetworksModel, ApplicationGroupsModel, CRUDHelperService) {
Expand Down
6 changes: 3 additions & 3 deletions app/networks/networklistctrl.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
angular.module('contiv.networks', ['contiv.models', 'contiv.directives', 'contiv.utils'])
.config(function ($stateProvider) {
angular.module('contiv.networks')
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.networks.list', {
url: '/list',
controller: 'NetworksListCtrl as networksListCtrl',
templateUrl: 'networks/networklist.html'
})
;
})
}])
.controller('NetworksListCtrl', ['$scope', '$interval', '$filter', 'NetworksModel', 'CRUDHelperService',
function ($scope, $interval, $filter, NetworksModel, CRUDHelperService) {
var networksListCtrl = this;
Expand Down
4 changes: 4 additions & 0 deletions app/nodes/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Created by vjain3 on 5/18/16.
*/
angular.module('contiv.nodes', ['contiv.models', 'contiv.directives', 'contiv.utils']);
4 changes: 2 additions & 2 deletions app/nodes/nodecommissionctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Created by vjain3 on 3/25/16.
*/
angular.module('contiv.nodes')
.config(function ($stateProvider) {
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.nodes.commission', {
url: '/commission/:key',
Expand All @@ -15,7 +15,7 @@ angular.module('contiv.nodes')
templateUrl: 'nodes/nodecommission.html'
})
;
})
}])
.controller('NodeCommissionCtrl', ['$state', '$stateParams', 'NodesModel', function ($state, $stateParams, NodesModel) {
var nodeCommissionCtrl = this;

Expand Down
4 changes: 2 additions & 2 deletions app/nodes/nodedetailsctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Created by vjain3 on 3/25/16.
*/
angular.module('contiv.nodes')
.config(function ($stateProvider) {
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.nodes.details', {
url: '/details/:key',
Expand All @@ -25,7 +25,7 @@ angular.module('contiv.nodes')
templateUrl: 'nodes/nodelogs.html'
})
;
})
}])
.controller('NodeDetailsCtrl', ['$state', '$stateParams', '$scope', '$interval', 'NodesModel',
function ($state, $stateParams, $scope, $interval, NodesModel) {
var nodeDetailsCtrl = this;
Expand Down
6 changes: 3 additions & 3 deletions app/nodes/nodelistctrl.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/**
* Created by vjain3 on 3/22/16.
*/
angular.module('contiv.nodes', ['contiv.models', 'contiv.directives', 'contiv.utils'])
.config(function ($stateProvider) {
angular.module('contiv.nodes')
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('contiv.nodes.list', {
url: '/list',
controller: 'NodeListCtrl as nodeListCtrl',
templateUrl: 'nodes/nodelist.html'
})
;
})
}])
.controller('NodeListCtrl', ['$scope', '$interval', '$filter', 'NodesModel', 'CRUDHelperService',
function ($scope, $interval, $filter, NodesModel, CRUDHelperService) {
var nodeListCtrl = this;
Expand Down
Loading

0 comments on commit 710dc50

Please sign in to comment.