1
|
var module = angular.module('reposUI', ['ngGrid', 'ngRoute', 'repoControllers']);
|
2
|
|
3
|
addCommonDirectives(module);
|
4
|
|
5
|
module.config([
|
6
|
'$routeProvider',
|
7
|
function ($routeProvider) {
|
8
|
$routeProvider
|
9
|
.when('/browse', {templateUrl: '../resources/html/repoBrowse.html', controller: 'repoBrowseCtrl'})
|
10
|
.when('/list/:param/:value', {templateUrl: '../resources/html/repoList.html', controller: 'repoListCtrl'})
|
11
|
.otherwise({redirectTo: '/browse'});
|
12
|
}
|
13
|
]);
|
14
|
|
15
|
module.directive('ngApiMdstoreInfo', function () {
|
16
|
return {
|
17
|
restrict: 'E',
|
18
|
scope: {
|
19
|
'label': '@',
|
20
|
'date': '=',
|
21
|
'total': '=',
|
22
|
'id': '='
|
23
|
},
|
24
|
templateUrl: '../resources/html/ngApiMdstoreInfo.html'
|
25
|
}
|
26
|
});
|
27
|
|
28
|
module.directive('ngApiObjectstoreInfo', function () {
|
29
|
return {
|
30
|
restrict: 'E',
|
31
|
scope: {
|
32
|
'label': '@',
|
33
|
'date': '=',
|
34
|
'total': '=',
|
35
|
'id': '='
|
36
|
},
|
37
|
templateUrl: '../resources/html/ngApiObjectstoreInfo.html'
|
38
|
}
|
39
|
});
|
40
|
|
41
|
module.directive('ngRepoCountryCell', function () {
|
42
|
return {
|
43
|
restrict: 'E',
|
44
|
templateUrl: '../resources/html/ngRepoCountryCell.html'
|
45
|
}
|
46
|
});
|
47
|
|
48
|
module.directive('ngReponameCell', function () {
|
49
|
return {
|
50
|
restrict: 'E',
|
51
|
templateUrl: '../resources/html/ngRepoNameCell.html'
|
52
|
}
|
53
|
});
|
54
|
|
55
|
module.directive('ngAggrDateCell', function () {
|
56
|
return {
|
57
|
restrict: 'E',
|
58
|
templateUrl: '../resources/html/ngAggrDateCell.html'
|
59
|
}
|
60
|
});
|
61
|
|
62
|
module.directive('ngAggrTotalCell', function () {
|
63
|
return {
|
64
|
restrict: 'E',
|
65
|
templateUrl: '../resources/html/ngAggrTotalCell.html'
|
66
|
}
|
67
|
});
|