add testsuite and testcase list pages in frontend of testing-scheduler
[bottlenecks.git] / 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 (file)
index 0000000..fa178cd
--- /dev/null
@@ -0,0 +1,44 @@
+import Vue from 'vue'\r
+import Router from 'vue-router'\r
+import testsuite from '@/components/testsuite'\r
+import testcase from '@/components/testcase'\r
+import testcase_content from '@/components/testcase_content'\r
+import environment from '@/components/environment'\r
+Vue.use(Router)\r
+const Result = {\r
+  template: "<div>please visit <a target='blank' href='http://lab205.jios.org:30002/dashboard/db/cluster?orgId=1'>grafana page.</a></div>"\r
+}\r
+const Report = {\r
+  template: "<div></div>"\r
+}\r
+export default new Router({\r
+  routes: [\r
+    {\r
+      path: '/',\r
+      name: 'testsuite',\r
+      component: testsuite\r
+    },\r
+    {\r
+      path: '/testcase',\r
+      name: 'testcase',\r
+      component: testcase\r
+    },\r
+    {\r
+      path: '/content',\r
+      name: 'testcase_content',\r
+      component: testcase_content\r
+    },\r
+    {\r
+      path: '/result',\r
+      component: Result\r
+    },\r
+    {\r
+      path: '/report',\r
+      component: Report\r
+    },\r
+    {\r
+      path: '/environment',\r
+      component: environment\r
+    }\r
+  ]\r
+})
\ No newline at end of file