選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.js 7.1KB

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