From 26b13e50c888bc0ca03c0f68731f7c5abff0c6b6 Mon Sep 17 00:00:00 2001 From: LeoQi Date: Fri, 20 Jul 2018 02:52:12 +0800 Subject: add testsuite and testcase list pages in frontend of testing-scheduler JIRA: BOTTLENECK-236 add two base pages: testsuite page and testcase list page. Change-Id: I2c8eefac58893b0a3c0fb9c20f724f8612893dc0 Signed-off-by: Zheng Qibin --- testing-scheduler/ui/src/router/index.js | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 testing-scheduler/ui/src/router/index.js (limited to 'testing-scheduler/ui/src/router/index.js') 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: "
please visit grafana page.
" +} +const Report = { + template: "
" +} +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 -- cgit 1.2.3-korg