diff options
author | Yang (Gabriel) Yu <Gabriel.yuyang@huawei.com> | 2018-09-04 11:03:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-09-04 11:03:46 +0000 |
commit | d5f7a33fc251788320b03ae2217611f14ec68fab (patch) | |
tree | e0790c6d2f432202efbedb92ca64018e68a36cf5 /testing-scheduler/ui/src/router/index.js | |
parent | 16d91f7832021bd446192d0025b58a6565bbd067 (diff) | |
parent | 26b13e50c888bc0ca03c0f68731f7c5abff0c6b6 (diff) |
Merge "add testsuite and testcase list pages in frontend of testing-scheduler"
Diffstat (limited to 'testing-scheduler/ui/src/router/index.js')
-rw-r--r-- | testing-scheduler/ui/src/router/index.js | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing-scheduler/ui/src/router/index.js b/testing-scheduler/ui/src/router/index.js new file mode 100644 index 00000000..fa178cd7 --- /dev/null +++ b/testing-scheduler/ui/src/router/index.js @@ -0,0 +1,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
+ }
+ ]
+})
\ No newline at end of file |