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.js46
1 files changed, 46 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..7617eddf
--- /dev/null
+++ b/test-scheduler/ui/src/router/index.js
@@ -0,0 +1,46 @@
+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 test_result from '@/components/test_result'
+import environment from '@/components/environment'
+Vue.use(Router)
+
+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',
+ name: 'result',
+ component: test_result
+ },
+ {
+ path: '/report',
+ name: 'report',
+ component: Report
+ },
+ {
+ path: '/environment',
+ name: 'environment',
+ component: environment
+ }
+ ]
+})