You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. import Vue from 'vue';
  2. import Router from 'vue-router';
  3. import HomePage from '../components/home/homePage.vue';
  4. import TimeshareBuy from '../components/timeshare/buy/buyPage.vue';
  5. import TimeshareSell from '../components/timeshare/sell/sellPage.vue';
  6. import TimeshareFAQ from '../components/timeshare/faqPage.vue';
  7. import Login from '../components/user/loginPage.vue';
  8. import PrivateIndividual from '../components/user/registerPage.vue';
  9. import Agency from '../components/user/registerAgencySection.vue';
  10. import PropertySearch from '../components/property/propertySearchPage.vue';
  11. import PropertyPage from '../components/property/propertyPage.vue';
  12. import PropertyEdit from '../components/property/propertyeditPage.vue';
  13. import AboutUs from '../components/about/aboutUsPage.vue';
  14. import AboutTimeshare from '../components/about/aboutTimeshare.vue';
  15. import Status from '../components/admin/status/statusPage.vue';
  16. import UnitConfiguration from '../components/admin/unitConfiguration/unitConfigurationPage.vue';
  17. import ResortPage from '../components/timeshare/resort/resortPage.vue';
  18. import UnitPage from '../components/timeshare/resort/unitPage.vue';
  19. import ContactUs from '../components/misc/contactUs.vue';
  20. Vue.use(Router);
  21. export default new Router({
  22. routes: [{
  23. path: '/',
  24. name: 'Home',
  25. component: HomePage,
  26. },
  27. {
  28. path: '/about/us',
  29. name: 'aboutus',
  30. component: AboutUs,
  31. },
  32. {
  33. path: '/about/timeshare',
  34. name: 'abouttimeshare',
  35. component: AboutTimeshare,
  36. },
  37. {
  38. path: '/timeshare/sell',
  39. name: 'TimeshareSell',
  40. component: TimeshareSell,
  41. },
  42. {
  43. path: '/timeshare/buy',
  44. name: 'TimeshareBuy',
  45. component: TimeshareBuy,
  46. },
  47. {
  48. path: '/timeshare/faq',
  49. name: 'TimeshareFAQ',
  50. component: TimeshareFAQ,
  51. },
  52. {
  53. path: '/user/login',
  54. name: 'Login',
  55. component: Login,
  56. },
  57. {
  58. path: '/user/register',
  59. name: 'PrivateIndividual',
  60. component: PrivateIndividual,
  61. },
  62. {
  63. path: '/user/registeragency',
  64. name: 'Agency',
  65. component: Agency,
  66. },
  67. {
  68. path: '/property/property/:id',
  69. name: 'PropertyPage',
  70. component: PropertyPage,
  71. },
  72. {
  73. path: '/property/:propertyType/search',
  74. name: 'PropertySearch',
  75. component: PropertySearch,
  76. },
  77. {
  78. path: '/property/search',
  79. name: 'PropertySearchTab',
  80. component: PropertySearch,
  81. },
  82. {
  83. path: '/property/:propType/:saleType',
  84. name: 'PropertyEdit',
  85. component: PropertyEdit,
  86. },
  87. {
  88. path: '/status/list',
  89. name: 'StatusList',
  90. component: Status,
  91. },
  92. {
  93. path: '/unitConfiguration/list',
  94. name: 'UnitConfiguration',
  95. component: UnitConfiguration,
  96. },
  97. {
  98. path: '/contactus',
  99. name: 'ContactUs',
  100. component: ContactUs,
  101. },
  102. {
  103. path: '/resort/:resortCode',
  104. name: 'ResortPage',
  105. component: ResortPage,
  106. props: true,
  107. },
  108. {
  109. path: '/resort/:resortCode/:weekId',
  110. name: 'UnitPage',
  111. component: UnitPage,
  112. props: true,
  113. },
  114. ],
  115. });