您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.js 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  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 ForgotPassword from '../components/user/forgotPassword.vue';
  15. import ForgotPasswordReset from '../components/user/forgotPasswordReset.vue'
  16. import PropertySearch from "../components/property/propertySearchPage.vue";
  17. import PropertyPage from "../components/property/propertyPage.vue";
  18. import PropertyEdit from "../components/property/editProperty/editProperty.vue";
  19. import PropertyCreate from "../components/property/propertyCreate.vue";
  20. import CommercialCreate from "../components/property/commercial/createProperty/commercialCreate.vue";
  21. import ResidentialCreate from "../components/property/residential/createProperty/residentialCreate.vue";
  22. import ListProperty from "../components/property/ListProperty/listPropertyPage.vue";
  23. import PropertyAdminList from "../components/admin/property/propertyAdmin.vue";
  24. import PropertyTypeList from "../components/admin/property/propertyTypeList.vue";
  25. import PropertyType from "../components/admin/property/propertyTypeEdit.vue";
  26. import UserDefinedGroups from "../components/admin/property/userDefinedGroupsPage.vue";
  27. import UserDefinedGroup from "../components/admin/property/userDefinedGroupPage.vue";
  28. import PropertyManagement from "../components/propertyManagement/sectionalTitle/propertyManagement.vue";
  29. import RentalPropertyManagement from "../components/propertyManagement/rentalManagement/rentalPropertyManagement.vue";
  30. import ResidentialPage from "../components/property/residential/residentialPage.vue";
  31. import CommercialPage from "../components/property/commercial/commercialPage.vue";
  32. import SingleCommercialPage from "../components/property/commercial/singleView/singleCommercialPage.vue";
  33. import SingleResidentialPage from "../components/property/residential/singleView/singleResidentialPage.vue";
  34. import AboutUs from "../components/about/aboutUsPage.vue";
  35. import AboutTimeshare from "../components/about/aboutTimeshare.vue";
  36. import Contact from "../components/shared/contact.vue";
  37. import Status from "../components/admin/status/statusPage.vue";
  38. import StatusNew from '../components/admin/status/statusNew.vue'
  39. import StatusEdit from '../components/admin/status/statusEdit.vue'
  40. import timeshareAdminPage from "../components/admin/status/timeshareAdminPage.vue";
  41. import tenderWeekAdminPage from "../components/admin/status/tenderWeekAdminPage.vue";
  42. import userManagementPage from "../components/admin/status/userManagementPage.vue";
  43. import changeLogPage from "../components/admin/status/changeLogPage.vue";
  44. import UnitConfiguration from "../components/admin/unitConfiguration/unitConfigurationPage.vue";
  45. import agentManagementPage from "../components/admin/status/agentsUserManagementPage.vue";
  46. import Fees from "../components/admin/fees/feesPage.vue";
  47. import PasswordOnLogin from "../components/user/firstLoginPasswordUpdate.vue";
  48. import ResortPage from "../components/timeshare/resort/resortPageNew.vue";
  49. import UnitPage from "../components/timeshare/resort/unit/unitPageNew.vue";
  50. import ToBuySearch from "../components/timeshare/buy/toBuySearchResults.vue";
  51. import ContactUs from "../components/misc/contactUs.vue";
  52. import PrivacyPolicy from "../components/misc//privacyPolicy/privacyPolicyPage.vue";
  53. import WebsiteDisclaimer from "../components/misc/Disclaimer/WebsiteDisclaimer.vue";
  54. import TermsConditions from "../components/admin/misc/termsConditions.vue";
  55. import TermsConditionsView from "../components/misc/TermsConditions/termsConditions.vue";
  56. import MakeOffer from "../components/processFlow/makeOffer.vue";
  57. import Offer from "../components/processFlow/offers.vue";
  58. import searchLog from "../components/admin/logs/SearchLogs.vue";
  59. // import store from '../store';
  60. import TemplatePage from "../components/communication/templatePage.vue";
  61. import CarouselList from "../components/admin/misc/carouselList.vue";
  62. import CarouselDetail from "../components/admin/misc/carousel.vue";
  63. import AlertPage from "../components/shared/alertPage.vue";
  64. import PropertySearchResults from "../components/property/propertySearchResults.vue";
  65. import EmailRecipient from '../components/communication/emailRecipients.vue'
  66. import EmailRecipientNew from '../components/communication/emailRecipientNew.vue'
  67. import EmailRecipientEdit from '../components/communication/emailRecipientEdit.vue'
  68. import CommercialSearchResults from "../components/property/commercial/commercialSearchResults.vue";
  69. import ResidentialSearchResults from "../components/property/residential/residentialSearchResults.vue";
  70. import PaymentGateway from "../components/financial/paygate/paygateProcess.vue";
  71. import Payments from "../components/financial/payments.vue";
  72. import PaymentSuccess from "../components/financial/OrderThankYou.vue";
  73. import PaymentError from '../components/financial/paymentError.vue'
  74. import LandingPages from "../components/marketing/landingPages.vue";
  75. import LandingPage from "../components/marketing/landingPage.vue";
  76. import LandingPageWeek from "../components/marketing/landingPageWeek.vue";
  77. import MarketingPage from "../components/marketing/clientView.vue";
  78. import MarketingPageExp from "../components/marketing/landingPageExpired.vue";
  79. import EnquireNow from "../components/property/enquireNow/enquirenow.vue";
  80. import MyWeeksEdit from "../components/admin/status/editTimeShareAdminPage.vue";
  81. import UserRoles from "../components/user/Roles/userRoles.vue";
  82. Vue.use(Router);
  83. export default new Router({
  84. // eslint-disable-next-line no-unused-vars
  85. scrollBehavior(to, from, savedPosition) {
  86. return {
  87. x: 0,
  88. y: 0
  89. };
  90. },
  91. routes: [
  92. {
  93. path: "/",
  94. name: "Home",
  95. component: HomePage
  96. },
  97. {
  98. path: "/shared/alert",
  99. name: "AlertPage",
  100. component: AlertPage
  101. },
  102. {
  103. path: "/about/us",
  104. name: "aboutus",
  105. component: AboutUs
  106. },
  107. {
  108. path: "/about/timeshare",
  109. name: "abouttimeshare",
  110. component: AboutTimeshare
  111. },
  112. {
  113. path: "/share/contact",
  114. name: "Contact",
  115. component: Contact
  116. },
  117. {
  118. path: "/communication/template",
  119. name: "template",
  120. component: TemplatePage
  121. },
  122. {
  123. path: "/timeshare/sell",
  124. name: "TimeshareSell",
  125. component: TimeshareSell
  126. },
  127. {
  128. path: "/timeshare/buy",
  129. name: "TimeshareBuy",
  130. component: TimeshareBuy
  131. },
  132. {
  133. path: "/timeshare/faq",
  134. name: "TimeshareFAQ",
  135. component: TimeshareFAQ
  136. },
  137. {
  138. path: "/timeshare/myWeeks",
  139. name: "MyWeeks",
  140. component: MyWeeksPage
  141. },
  142. {
  143. path: "/user/login",
  144. name: "Login",
  145. props: route => ({
  146. ...route.params
  147. }),
  148. component: Login
  149. },
  150. {
  151. path: "/user/updateProfileInfo",
  152. name: "UpdateInfo",
  153. props: route => ({
  154. ...route.params
  155. }),
  156. component: UpdateInfo
  157. },
  158. {
  159. path: "/user/changePasswordOnLogin",
  160. name: "PasswordOnLogin",
  161. component: PasswordOnLogin
  162. },
  163. {
  164. path: "/user/register",
  165. name: "PrivateIndividual",
  166. component: PrivateIndividual
  167. },
  168. {
  169. path: "/user/registeragency",
  170. name: "Agency",
  171. component: Agency
  172. },
  173. {
  174. path: "/property/property/:id",
  175. name: "PropertyPage",
  176. component: PropertyPage
  177. },
  178. {
  179. path: "/property/list",
  180. name: "ListProperty",
  181. component: ListProperty
  182. },
  183. {
  184. path: "/property/search",
  185. name: "PropertySearchTab",
  186. component: PropertySearch
  187. },
  188. {
  189. path: "/property/search/:propertyUsageType",
  190. name: "PropertySearchTabType",
  191. component: PropertySearch
  192. },
  193. {
  194. path: "/property/new/:saleType",
  195. name: "PropertyNew",
  196. component: PropertyCreate
  197. },
  198. {
  199. path: "/property/new/:propertyUsageType/:saleType",
  200. name: "PropertyNewFromSearch",
  201. component: PropertyCreate
  202. },
  203. {
  204. path: "/property/edit/:id",
  205. name: "PropertyEdit",
  206. component: PropertyEdit
  207. },
  208. {
  209. path: "/PropertyAdmin",
  210. name: "PropertyAdminList",
  211. component: PropertyAdminList
  212. },
  213. {
  214. path: "/propertyTypes/list",
  215. name: "PropertyTypeList",
  216. component: PropertyTypeList
  217. },
  218. {
  219. path: "/propertyType/new",
  220. name: "PropertyTypeNew",
  221. component: PropertyType
  222. },
  223. {
  224. path: "/propertyType/:id",
  225. name: "PropertyTypeEdit",
  226. component: PropertyType
  227. },
  228. {
  229. path: "/propertyManagement",
  230. name: "PropertyManagement",
  231. component: PropertyManagement
  232. },
  233. {
  234. path: "/rentalPropertyManagement",
  235. name: "RentalPropertyManagement",
  236. component: RentalPropertyManagement
  237. },
  238. {
  239. path: "/property/residential",
  240. name: "ResidentialPage",
  241. component: ResidentialPage
  242. },
  243. {
  244. path: "/property/commercial",
  245. name: "CommercialPage",
  246. component: CommercialPage
  247. },
  248. {
  249. path: "/property/commercial/searchResult",
  250. name: "CommercialSearchResults",
  251. component: CommercialSearchResults
  252. },
  253. {
  254. path: "/property/residential/searchResult",
  255. name: "ResidentialSearchResults",
  256. component: ResidentialSearchResults
  257. },
  258. {
  259. path: "/property/commercial/property/:id",
  260. name: "SingleCommercialPage",
  261. component: SingleCommercialPage
  262. },
  263. {
  264. path: "/property/commercial/new/:saleType",
  265. name: "CommercialCreate",
  266. component: CommercialCreate
  267. },
  268. {
  269. path: "/property/residential/new/:saleType",
  270. name: "ResidentialCreate",
  271. component: ResidentialCreate
  272. },
  273. {
  274. path: "/property/residential/property/:id",
  275. name: "SingleResidentialPage",
  276. component: SingleResidentialPage
  277. },
  278. {
  279. path: "/userDefinedGroups/list",
  280. name: "UserDefinedGroupsList",
  281. component: UserDefinedGroups
  282. },
  283. {
  284. path: "/userDefinedGroups/userDefinedGroup/:id",
  285. name: "UserDefinedGroupEdit",
  286. component: UserDefinedGroup
  287. },
  288. {
  289. path: "/userDefinedGroups/userDefinedGroup",
  290. name: "UserDefinedGroupNew",
  291. component: UserDefinedGroup
  292. },
  293. {
  294. path: "/status/list",
  295. name: "StatusList",
  296. component: Status
  297. },
  298. {
  299. path: "/status/timeshareAdmin",
  300. name: "TimeshareAdmin",
  301. component: timeshareAdminPage
  302. },
  303. {
  304. path: "/status/tenderWeekAdmin",
  305. name: "TenderWeekAdmin",
  306. component: tenderWeekAdminPage
  307. },
  308. {
  309. path: "/status/userManagementPage",
  310. name: "userManagementPage",
  311. component: userManagementPage
  312. },
  313. {
  314. path: "/status/agentUserManagementPage",
  315. name: "agentManagementPage",
  316. component: agentManagementPage
  317. },
  318. {
  319. path: "/status/changeLogPage",
  320. name: "changeLogPage",
  321. component: changeLogPage
  322. },
  323. {
  324. path: "/unitConfiguration/list",
  325. name: "UnitConfiguration",
  326. component: UnitConfiguration
  327. },
  328. {
  329. path: "/contactus",
  330. name: "ContactUs",
  331. component: ContactUs
  332. },
  333. {
  334. path: "/privacypolicy",
  335. name: "PrivacyPolicy",
  336. component: PrivacyPolicy
  337. },
  338. {
  339. path: "/websitedisclaimer",
  340. name: "WebsiteDisclaimer",
  341. component: WebsiteDisclaimer
  342. },
  343. {
  344. path: "/resort/:resortCode",
  345. name: "ResortPage",
  346. component: ResortPage,
  347. props: true
  348. },
  349. {
  350. path: "/resort/:resortCode/:unitNumber",
  351. name: "UnitPage",
  352. component: UnitPage,
  353. props: true
  354. },
  355. {
  356. path: "/timeshare/:weekId",
  357. name: "TimeshareSellEdit",
  358. component: TimeshareSell,
  359. props: true
  360. },
  361. {
  362. path: "/MakeOffer",
  363. name: "MakeOffer",
  364. component: MakeOffer
  365. },
  366. {
  367. path: "/Offers",
  368. name: "Offers",
  369. component: Offer
  370. },
  371. {
  372. path: "/timesharesearch",
  373. name: "TimeshareSearch",
  374. component: TimeshareSearch
  375. },
  376. {
  377. path: "/searchLog",
  378. name: "SearchLog",
  379. component: searchLog
  380. },
  381. {
  382. path: "/fees",
  383. name: "fees",
  384. component: Fees
  385. },
  386. {
  387. path: "/termsConditions",
  388. name: "termsConditions",
  389. component: TermsConditions
  390. },
  391. {
  392. path: "/termsConditionsView",
  393. name: "termsConditionsView",
  394. component: TermsConditionsView
  395. },
  396. {
  397. path: "/carousel",
  398. name: "carousel",
  399. component: CarouselList
  400. },
  401. {
  402. path: "/carousel/details/:id",
  403. name: "CarouselDetails",
  404. component: CarouselDetail
  405. },
  406. {
  407. path: "/property/propertySearch/results",
  408. name: "PropertySearchResults",
  409. component: PropertySearchResults
  410. },
  411. {
  412. path: "/payments/paymentGateway",
  413. name: "PaymentGateway",
  414. props: route => ({
  415. ...route.params
  416. }),
  417. component: PaymentGateway
  418. },
  419. {
  420. path: "/payments/success",
  421. name: "PaymentSuccess",
  422. component: PaymentSuccess
  423. },
  424. {
  425. path: "/payments/error/:id",
  426. name: "PaymentError",
  427. component: PaymentError
  428. },
  429. {
  430. path: "/payments",
  431. name: "Payments",
  432. component: Payments
  433. },
  434. {
  435. path: "/landingPages",
  436. name: "LandingPages",
  437. component: LandingPages
  438. },
  439. {
  440. path: "/landingPage/:id",
  441. name: "LandingPage",
  442. component: LandingPage
  443. },
  444. {
  445. path: "/landingPage/week/:id",
  446. name: "LandingPageWeek",
  447. component: LandingPageWeek
  448. },
  449. {
  450. path: "/MarketingCampaign/:id",
  451. name: "MarketingPage",
  452. component: MarketingPage
  453. },
  454. {
  455. path: "/CampaignExpired",
  456. name: "CampaignExpired",
  457. component: MarketingPageExp
  458. },
  459. {
  460. path: "/EnquireNow/:id",
  461. name: "EnquireNow",
  462. component: EnquireNow
  463. },
  464. {
  465. path: "/timeshareToByResults",
  466. name: "ToBuySearch",
  467. component: ToBuySearch
  468. },
  469. {
  470. path: "/UserRoles",
  471. name: "UserRoles",
  472. component: UserRoles
  473. },
  474. {
  475. path: "/editTimeShare",
  476. name: "EditTimeshare",
  477. props: route => ({
  478. ...route.params
  479. }),
  480. component: MyWeeksEdit
  481. },
  482. {
  483. path: "/user/forgotPassword",
  484. name: "forgotPassword",
  485. component: ForgotPassword
  486. },
  487. {
  488. path: "/forgotPasswordReset/:token",
  489. name: "ForgotPasswordReset",
  490. component: ForgotPasswordReset,
  491. },
  492. {
  493. path: "/emailRecipient",
  494. name: "emailRecipient",
  495. component: EmailRecipient,
  496. },
  497. {
  498. path: "/emailRecipient/new",
  499. name: "emailRecipientNew",
  500. component: EmailRecipientNew,
  501. },
  502. {
  503. path: "/emailRecipient/Edit/:id",
  504. name: "emailRecipientEdit",
  505. component: EmailRecipientEdit,
  506. },
  507. {
  508. path: "/status/new",
  509. name: "statusNew",
  510. component: StatusNew,
  511. },
  512. {
  513. path: "/status/Edit/:id",
  514. name: "statusEdit",
  515. component: StatusEdit,
  516. },
  517. ]
  518. });