summaryrefslogtreecommitdiffstats
path: root/gui/app/scripts/router.config.js
blob: b42954272c7f20458a9bc49ff84650ed745881ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
'use strict';

angular.module('yardStickGui2App')
    .run(
        ['$rootScope', '$state', '$stateParams',
            function($rootScope, $state, $stateParams) {
                $rootScope.$state = $state;
                $rootScope.$stateParams = $stateParams;

            }
        ]
    )
    .config(['$stateProvider', '$urlRouterProvider', '$locationProvider',
        function($stateProvider, $urlRouterProvider, $locationProvider) {
            $urlRouterProvider
                .otherwise('main/environment');




            $stateProvider

                .state('app2', {
                    url: "/main",
                    controller: 'ContentController',
                    templateUrl: "views/main2.html",
                    ncyBreadcrumb: {
                        label: 'Main'
                    }
                })
                .state('app', {
                    url: "/main",
                    controller: 'ContentController',
                    templateUrl: "views/main.html",
                    ncyBreadcrumb: {
                        label: 'Main'
                    }
                })

            .state('app2.environment', {
                    url: '/environment',
                    templateUrl: 'views/environmentList.html',
                    controller: 'MainCtrl',
                    ncyBreadcrumb: {
                        label: 'Environment'
                    }
                })
                .state('app2.testcase', {
                    url: '/testcase',
                    templateUrl: 'views/testcaselist.html',
                    controller: 'TestcaseController',
                    ncyBreadcrumb: {
                        label: 'Test Case'
                    }
                })
                .state('app2.testsuite', {
                    url: '/suite',
                    templateUrl: 'views/suite.html',
                    controller: 'SuiteListController',
                    ncyBreadcrumb: {
                        label: 'Test Suite'
                    }
                })
                .state('app2.suitcreate', {
                    url: '/suitcreate',
                    templateUrl: 'views/testcasechoose.html',
                    controller: 'suitcreateController',
                    ncyBreadcrumb: {
                        label: 'Suite Create'
                    }
                })
                .state('app2.testcasedetail', {
                    url: '/testdetail/:name',
                    templateUrl: 'views/testcasedetail.html',
                    controller: 'testcaseDetailController',
                    ncyBreadcrumb: {
                        label: 'Test Case Detail'
                    },
                    params: { name: null }
                })
                .state('app2.suitedetail', {
                    url: '/suitedetail/:name',
                    templateUrl: 'views/suitedetail.html',
                    controller: 'suiteDetailController',
                    ncyBreadcrumb: {
                        label: 'Suite Detail'
                    },
                    params: { name: null }
                })
                .state('app.environmentDetail', {
                    url: '/envDetail/:uuid',
                    templateUrl: 'views/environmentDetail.html',
                    controller: 'DetailController',
                    params: { uuid: null, ifNew: null },
                    ncyBreadcrumb: {
                        label: 'Environment Detail'
                    }
                })
                .state('app.uploadImage', {
                    url: '/envimageDetail/:uuid',
                    templateUrl: 'views/uploadImage.html',
                    controller: 'ImageController',
                    params: { uuid: null },
                    ncyBreadcrumb: {
                        label: 'Upload Image'
                    }

                })
                .state('app.podUpload', {
                    url: '/envpodupload/:uuid',
                    templateUrl: 'views/podupload.html',
                    controller: 'PodController',
                    params: { uuid: null },
                    ncyBreadcrumb: {
                        label: 'Pod Upload'
                    }
                })
                .state('app.container', {
                    url: '/envcontainer/:uuid',
                    templateUrl: 'views/container.html',
                    controller: 'ContainerController',
                    params: { uuid: null },
                    ncyBreadcrumb: {
                        label: 'Container Manage'
                    }
                })
                .state('app2.projectList', {
                    url: '/project',
                    templateUrl: 'views/projectList.html',
                    controller: 'ProjectController',
                    ncyBreadcrumb: {
                        label: 'Project'
                    }

                })
                .state('app2.tasklist', {
                    url: '/task/:taskId',
                    templateUrl: 'views/taskList.html',
                    controller: 'TaskController',
                    params: { taskId: null },
                    ncyBreadcrumb: {
                        label: 'Task'
                    }

                })
                .state('app2.report', {
                    url: '/report/:taskId',
                    templateUrl: 'views/report.html',
                    controller: 'ReportController',
                    params: { taskId: null },
                    ncyBreadcrumb: {
                        label: 'Report'
                    }

                })
                .state('app2.projectdetail', {
                    url: '/projectdetail/:projectId',
                    templateUrl: 'views/projectdetail.html',
                    controller: 'ProjectDetailController',
                    params: { projectId: null },
                    ncyBreadcrumb: {
                        label: 'Project Detail'
                    }

                })
                .state('app2.taskModify', {
                    url: '/taskModify/:taskId',
                    templateUrl: 'views/taskmodify.html',
                    controller: 'TaskModifyController',
                    params: { taskId: null },
                    ncyBreadcrumb: {
                        label: 'Modify Task'
                    }


                })





        }
    ])
    .run();