index.js 999 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import GdprNotice from '@/views/GdprNotice'
  4. import HostConfig from '@/views/HostConfig'
  5. import Experiments from './experiments'
  6. Vue.use(Router)
  7. export default new Router({
  8. routes: [
  9. {
  10. path: '/',
  11. redirect: 'gdpr'
  12. },
  13. {
  14. path: '/gdpr',
  15. name: 'GdprNotice',
  16. component: GdprNotice
  17. },
  18. {
  19. path: '/hostConfig',
  20. name: 'HostConfig',
  21. component: HostConfig
  22. },
  23. {
  24. path: '/experiments',
  25. name: 'ExperimentsList',
  26. component: () => import('@/views/ExperimentsList')
  27. },
  28. {
  29. path: '/experiments/:experimentName',
  30. name: 'SelectExperimentScene',
  31. component: () => import('@/views/SelectExperimentScene'),
  32. props: true
  33. },
  34. {
  35. path: '/experiments/:experimentName/:sceneName/validated',
  36. name: 'ExperimentValidated',
  37. component: () => import('@/views/ExperimentValidated'),
  38. props: true
  39. },
  40. ...Experiments
  41. ]
  42. })