summaryrefslogtreecommitdiffstats
path: root/test-scheduler/ui/src/router/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'test-scheduler/ui/src/router/index.js')
-rw-r--r--test-scheduler/ui/src/router/index.js44
1 files changed, 44 insertions, 0 deletions
diff --git a/test-scheduler/ui/src/router/index.js b/test-scheduler/ui/src/router/index.js
new file mode 100644
index 00000000..8cc3da13
--- /dev/null
+++ b/test-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
+ }
+ ]
+})