summaryrefslogtreecommitdiffstats
path: root/test-scheduler/ui/src/router/index.js
blob: 8cc3da13eb971ee4fabfdbda6f2c3c0168bc173f (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
import Vue from 'vue'
import Router from 'vue-router'
import testsuite from '@/components/testsuite'
import testcase from '@/components/testcase'
import testcase_content from '@/components/testcase_content'
import environment from '@/components/environment'
Vue.use(Router)
const Result = {
  template: "<div>please visit <a target='blank' href='http://lab205.jios.org:30002/dashboard/db/cluster?orgId=1'>grafana page.</a></div>"
}
const Report = {
  template: "<div></div>"
}
export default new Router({
  routes: [
    {
      path: '/',
      name: 'testsuite',
      component: testsuite
    },
    {
      path: '/testcase',
      name: 'testcase',
      component: testcase
    },
    {
      path: '/content',
      name: 'testcase_content',
      component: testcase_content
    },
    {
      path: '/result',
      component: Result
    },
    {
      path: '/report',
      component: Report
    },
    {
      path: '/environment',
      component: environment
    }
  ]
})