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 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. /* eslint-disable import/prefer-default-export */
  2. import Vue from 'vue';
  3. import Router from 'vue-router';
  4. import HomePage from '../components/home/homePage.vue';
  5. import TimeshareBuy from '../components/timeshare/buy/buyPage.vue';
  6. import TimeshareSell from '../components/timeshare/sell/sellPage.vue';
  7. import TimeshareFAQ from '../components/timeshare/faqPage.vue';
  8. import TimeshareSearch from '../components/timeshare/buy/weekListPage.vue';
  9. import MyWeeksPage from '../components/timeshare/myWeeksPage.vue';
  10. import Login from '../components/user/loginPage.vue';
  11. import PrivateIndividual from '../components/user/registerPage.vue';
  12. import Agency from '../components/user/registerAgencySection.vue';
  13. import UpdateInfo from '../components/user/updateProfileInfo.vue';
  14. import PropertySearch from '../components/property/propertySearchPage.vue';
  15. import PropertyPage from '../components/property/propertyPage.vue';
  16. import PropertyEdit from '../components/property/propertyeditPage.vue';
  17. import PropertyCreate from '../components/property/propertyCreate.vue';
  18. import PropertyList from '../components/property/propertyList.vue';
  19. import PropertyTypeList from '../components/admin/property/propertyTypeList.vue';
  20. import PropertyType from '../components/admin/property/propertyTypeEdit.vue';
  21. import UserDefinedGroups from '../components/admin/property/userDefinedGroupsPage.vue';
  22. import UserDefinedGroup from '../components/admin/property/userDefinedGroupPage.vue';
  23. import AboutUs from '../components/about/aboutUsPage.vue';
  24. import AboutTimeshare from '../components/about/aboutTimeshare.vue';
  25. import Status from '../components/admin/status/statusPage.vue';
  26. import timeshareAdminPage from '../components/admin/status/timeshareAdminPage.vue';
  27. import tenderWeekAdminPage from '../components/admin/status/tenderWeekAdminPage.vue';
  28. import userManagementPage from '../components/admin/status/userManagementPage.vue';
  29. import changeLogPage from '../components/admin/status/changeLogPage.vue';
  30. import UnitConfiguration from '../components/admin/unitConfiguration/unitConfigurationPage.vue';
  31. import agentManagementPage from '../components/admin/status/agentsUserManagementPage.vue';
  32. import ResortPage from '../components/timeshare/resort/resortPage.vue';
  33. import UnitPage from '../components/timeshare/resort/unitPage.vue';
  34. import ContactUs from '../components/misc/contactUs.vue';
  35. import PrivacyPolicy from '../components/misc/privacyPolicyPage.vue';
  36. import MakeOffer from '../components/processFlow/makeOffer.vue';
  37. import Offer from '../components/processFlow/offers.vue';
  38. import searchLog from '../components/admin/logs/SearchLogs.vue';
  39. // import store from '../store';
  40. import TemplatePage from '../components/communication/templatePage.vue';
  41. import CarouselList from '../components/admin/misc/carouselList.vue';
  42. import CarouselDetail from '../components/admin/misc/carousel.vue';
  43. import AlertPage from '../components/shared/alertPage.vue';
  44. import PropertySearchResults from '../components/property/propertySearchResults.vue';
  45. Vue.use(Router);
  46. export default new Router({
  47. // eslint-disable-next-line no-unused-vars
  48. scrollBehavior(to, from, savedPosition) {
  49. return {
  50. x: 0,
  51. y: 0,
  52. };
  53. },
  54. routes: [
  55. {
  56. path: '/',
  57. name: 'Home',
  58. component: HomePage,
  59. },
  60. {
  61. path: '/shared/alert',
  62. name: 'AlertPage',
  63. component: AlertPage,
  64. },
  65. {
  66. path: '/about/us',
  67. name: 'aboutus',
  68. component: AboutUs,
  69. },
  70. {
  71. path: '/about/timeshare',
  72. name: 'abouttimeshare',
  73. component: AboutTimeshare,
  74. },
  75. {
  76. path: '/communication/template',
  77. name: 'template',
  78. component: TemplatePage,
  79. },
  80. {
  81. path: '/timeshare/sell',
  82. name: 'TimeshareSell',
  83. component: TimeshareSell,
  84. },
  85. {
  86. path: '/timeshare/buy',
  87. name: 'TimeshareBuy',
  88. component: TimeshareBuy,
  89. },
  90. {
  91. path: '/timeshare/faq',
  92. name: 'TimeshareFAQ',
  93. component: TimeshareFAQ,
  94. },
  95. {
  96. path: '/timeshare/myWeeks',
  97. name: 'MyWeeks',
  98. component: MyWeeksPage,
  99. },
  100. {
  101. path: '/user/login',
  102. name: 'Login',
  103. component: Login,
  104. },
  105. {
  106. path: '/user/updateProfileInfo',
  107. name: 'UpdateInfo',
  108. component: UpdateInfo,
  109. },
  110. {
  111. path: '/user/register',
  112. name: 'PrivateIndividual',
  113. component: PrivateIndividual,
  114. },
  115. {
  116. path: '/user/registeragency',
  117. name: 'Agency',
  118. component: Agency,
  119. },
  120. {
  121. path: '/property/property/:id',
  122. name: 'PropertyPage',
  123. component: PropertyPage,
  124. },
  125. {
  126. path: '/property/:propertyUsageType/search',
  127. name: 'PropertySearch',
  128. component: PropertySearch,
  129. },
  130. {
  131. path: '/property/search',
  132. name: 'PropertySearchTab',
  133. component: PropertySearch,
  134. },
  135. {
  136. path: '/property/new/:saleType',
  137. name: 'PropertyNew',
  138. component: PropertyCreate,
  139. },
  140. {
  141. path: '/property/new/:propertyUsageType/:saleType',
  142. name: 'PropertyNewFromSearch',
  143. component: PropertyCreate,
  144. },
  145. {
  146. path: '/property/edit',
  147. name: 'PropertyEdit',
  148. component: PropertyEdit,
  149. },
  150. {
  151. path: '/properties',
  152. name: 'PropertyListAdmin',
  153. component: PropertyList,
  154. },
  155. {
  156. path: '/propertyTypes/list',
  157. name: 'PropertyTypeList',
  158. component: PropertyTypeList,
  159. },
  160. {
  161. path: '/propertyType/new',
  162. name: 'PropertyTypeNew',
  163. component: PropertyType,
  164. },
  165. {
  166. path: '/propertyType/:id',
  167. name: 'PropertyTypeEdit',
  168. component: PropertyType,
  169. },
  170. {
  171. path: '/userDefinedGroups/list',
  172. name: 'UserDefinedGroupsList',
  173. component: UserDefinedGroups,
  174. },
  175. {
  176. path: '/userDefinedGroups/userDefinedGroup/:id',
  177. name: 'UserDefinedGroupEdit',
  178. component: UserDefinedGroup,
  179. },
  180. {
  181. path: '/userDefinedGroups/userDefinedGroup',
  182. name: 'UserDefinedGroupNew',
  183. component: UserDefinedGroup,
  184. },
  185. {
  186. path: '/status/list',
  187. name: 'StatusList',
  188. component: Status,
  189. },
  190. {
  191. path: '/status/timeshareAdmin',
  192. name: 'TimeshareAdmin',
  193. component: timeshareAdminPage,
  194. },
  195. {
  196. path: '/status/tenderWeekAdmin',
  197. name: 'TenderWeekAdmin',
  198. component: tenderWeekAdminPage,
  199. },
  200. {
  201. path: '/status/userManagementPage',
  202. name: 'userManagementPage',
  203. component: userManagementPage,
  204. },
  205. {
  206. path: '/status/agentUserManagementPage',
  207. name: 'agentManagementPage',
  208. component: agentManagementPage,
  209. },
  210. {
  211. path: '/status/changeLogPage',
  212. name: 'changeLogPage',
  213. component: changeLogPage,
  214. },
  215. {
  216. path: '/unitConfiguration/list',
  217. name: 'UnitConfiguration',
  218. component: UnitConfiguration,
  219. },
  220. {
  221. path: '/contactus',
  222. name: 'ContactUs',
  223. component: ContactUs,
  224. },
  225. {
  226. path: '/privacypolicy',
  227. name: 'PrivacyPolicy',
  228. component: PrivacyPolicy,
  229. },
  230. {
  231. path: '/resort/:resortCode',
  232. name: 'ResortPage',
  233. component: ResortPage,
  234. props: true,
  235. },
  236. {
  237. path: '/resort/:resortCode/:unitNumber',
  238. name: 'UnitPage',
  239. component: UnitPage,
  240. props: true,
  241. },
  242. {
  243. path: '/timeshare/:weekId',
  244. name: 'TimeshareSellEdit',
  245. component: TimeshareSell,
  246. props: true,
  247. },
  248. {
  249. path: '/MakeOffer',
  250. name: 'MakeOffer',
  251. component: MakeOffer,
  252. },
  253. {
  254. path: '/Offers',
  255. name: 'Offers',
  256. component: Offer,
  257. },
  258. {
  259. path: '/timesharesearch',
  260. name: 'TimeshareSearch',
  261. component: TimeshareSearch,
  262. },
  263. {
  264. path: '/searchLog',
  265. name: 'SearchLog',
  266. component: searchLog,
  267. },
  268. {
  269. path: '/carousel',
  270. name: 'carousel',
  271. component: CarouselList,
  272. },
  273. {
  274. path: '/carousel/details/:id',
  275. name: 'CarouselDetails',
  276. component: CarouselDetail,
  277. },
  278. {
  279. path: '/property/propertySearch/results',
  280. name: 'PropertySearchResults',
  281. component: PropertySearchResults,
  282. },
  283. ],
  284. });