router.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. const routes = [
  3. {
  4. path: '/',
  5. name: 'Home',
  6. component: () => import('./pages/index.vue'),
  7. },
  8. {
  9. path: '/basic',
  10. name: 'Basic',
  11. component: () => import('./pages/TheBasic.vue'),
  12. },
  13. {
  14. path: '/groups',
  15. name: 'Groups',
  16. component: () => import('./pages/TheGroups.vue'),
  17. },
  18. {
  19. path: '/responsiveness',
  20. name: 'Responsiveness',
  21. component: () => import('./pages/Responsiveness.vue'),
  22. },
  23. {
  24. path: '/conditional',
  25. name: 'Conditional',
  26. component: () => import('./pages/TheConditional.vue'),
  27. },
  28. {
  29. path: '/multiple',
  30. name: 'Multiple',
  31. component: () => import('./pages/Multiple.vue'),
  32. },
  33. {
  34. path: '/cameras/multiple-cameras',
  35. name: 'Multiple Cameras',
  36. component: () => import('./pages/cameras/MultipleCameras.vue'),
  37. },
  38. {
  39. path: '/cameras/no-camera',
  40. name: 'No Camera',
  41. component: () => import('./pages/cameras/NoCamera.vue'),
  42. },
  43. {
  44. path: '/cameras/camera',
  45. name: 'Camera',
  46. component: () => import('./pages/cameras/Cameras.vue'),
  47. },
  48. {
  49. path: '/raycaster/events',
  50. name: 'Raycaster',
  51. component: () => import('./pages/raycaster/TheEvents.vue'),
  52. },
  53. {
  54. path: '/misc/text-3d',
  55. name: 'Text3D',
  56. component: () => import('./pages/misc/Text3DDemo.vue'),
  57. },
  58. {
  59. path: '/misc/gui-controls',
  60. name: 'GUI Controls',
  61. component: () => import('./pages/misc/GUI.vue'),
  62. },
  63. {
  64. path: '/misc/particles',
  65. name: 'Particles',
  66. component: () => import('./pages/misc/TheParticles.vue'),
  67. },
  68. {
  69. path: '/click-blocking-box',
  70. name: 'Click Blocking Box',
  71. component: () => import('./pages/click-blocking-box.vue'),
  72. },
  73. {
  74. path: '/perf',
  75. name: 'Perf',
  76. component: () => import('./pages/perf/index.vue'),
  77. },
  78. {
  79. path: '/rendering-modes',
  80. name: 'Rendering Modes',
  81. component: () => import('./pages/rendering-modes/index.vue'),
  82. },
  83. {
  84. path: '/empty',
  85. name: 'empty',
  86. component: () => import('./pages/empty.vue'),
  87. },
  88. ]
  89. export const router = createRouter({
  90. history: createWebHistory(),
  91. routes,
  92. })