index.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import Home from 'pages/Home'
  4. import Item from 'pages/Item'
  5. import ListCorpus from 'pages/ListCorpus'
  6. import Corpus from 'pages/Corpus'
  7. import Texts from 'pages/Texts'
  8. import IndexNominum from 'pages/IndexNominum'
  9. import IndexLocorum from 'pages/IndexLocorum'
  10. import IndexOperum from 'pages/IndexOperum'
  11. import Nominum from 'pages/Nominum'
  12. import Locorum from 'pages/Locorum'
  13. import Operum from 'pages/Operum'
  14. import Bibliographie from 'pages/Bibliographie'
  15. Vue.use(Router)
  16. const routes = [
  17. {
  18. name: 'home',
  19. path: '/',
  20. component: Home
  21. },
  22. {
  23. name: 'item',
  24. path: '/babar/:uuid',
  25. component: Item,
  26. props: true
  27. },
  28. {
  29. name: 'listcorpus',
  30. path: '/corpus',
  31. component: ListCorpus
  32. },
  33. {
  34. name: 'corpus',
  35. path: '/corpus/:id',
  36. component: Corpus
  37. },
  38. {
  39. name: 'texts',
  40. path: '/texts/:id',
  41. component: Texts
  42. },
  43. {
  44. name: 'indexNominum',
  45. path: '/nominum',
  46. component: IndexNominum
  47. },
  48. {
  49. name: 'nominum',
  50. path: '/nominum/:id',
  51. component: Nominum
  52. },
  53. {
  54. name: 'indexLocorum',
  55. path: '/locorum',
  56. component: IndexLocorum
  57. },
  58. {
  59. name: 'locorum',
  60. path: '/locorum/:id',
  61. component: Locorum
  62. },
  63. {
  64. name: 'indexOperum',
  65. path: '/operum',
  66. component: IndexOperum
  67. },
  68. {
  69. name: 'operum',
  70. path: '/operum/:id',
  71. component: Operum
  72. },
  73. {
  74. name: 'bibliographie',
  75. path: '/bibliographie',
  76. component: Bibliographie
  77. }
  78. ]
  79. export default new Router({
  80. mode: 'history',
  81. routes
  82. })