fix testsuite name bugs and improve some ui details
[bottlenecks.git] / test-scheduler / ui / src / router / index.js
1 import Vue from 'vue'
2 import Router from 'vue-router'
3 import testsuite from '@/components/testsuite'
4 import testcase from '@/components/testcase'
5 import testcase_content from '@/components/testcase_content'
6 import test_result from '@/components/test_result'
7 import environment from '@/components/environment'
8 Vue.use(Router)
9
10 const Report = {
11   template: "<div></div>"
12 }
13 export default new Router({
14   routes: [
15     {
16       path: '/',
17       name: 'testsuite',
18       component: testsuite
19     },
20     {
21       path: '/testcase',
22       name: 'testcase',
23       component: testcase
24     },
25     {
26       path: '/content',
27       name: 'testcase_content',
28       component: testcase_content
29     },
30     {
31       path: '/result',
32       name: 'result',
33       component: test_result
34     },
35     {
36       path: '/report',
37       name: 'report',
38       component: Report
39     },
40     {
41       path: '/environment',
42       name: 'environment',
43       component: environment
44     }
45   ]
46 })