Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

index.js 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /* eslint-disable import/prefer-default-export */
  2. import Vue from "vue";
  3. import Router from "vue-router";
  4. import Home from "../components/shared/home.vue";
  5. import Registration from "../components/accounts/register.vue";
  6. import Login from "../components/accounts/login.vue";
  7. import RegisterRestaurant from "../components/accounts/restaurantRegistration.vue";
  8. import RegistrationPage from "../components/accounts/registrationPage.vue";
  9. import RestaurantCategory from "../components/restaurants/restaurantCategories.vue";
  10. import RestaurantSearch from "../components/home/restaurantSearch.vue";
  11. import RestuarantList from "../components/restaurants/restaurantList.vue";
  12. import Restaurant from "../components/restaurants/restaurantDetails.vue";
  13. import CustomerDetails from "../components/customer/customerDetails.vue";
  14. import CustomerOrders from "../components/customer/customerOrders.vue";
  15. import CustomerList from "../components/customer/customerList.vue";
  16. import RestaurantMenuCategories from "../components/restaurants/restaurantMenuCategories.vue";
  17. Vue.use(Router);
  18. export default new Router({
  19. // eslint-disable-next-line no-unused-vars
  20. scrollBehavior(to, from, savedPosition) {
  21. return {
  22. x: 0,
  23. y: 0
  24. };
  25. },
  26. routes: [{
  27. path: "/",
  28. name: "Home",
  29. component: Home
  30. },
  31. {
  32. path: "/Registration",
  33. name: "Registration",
  34. component: Registration
  35. },
  36. {
  37. path: "/Login",
  38. name: "Login",
  39. component: Login
  40. },
  41. {
  42. path: "/RegisterRestaurant",
  43. name: "RegisterRestaurant",
  44. component: RegisterRestaurant
  45. },
  46. {
  47. path: "/RegistrationPage",
  48. name: "RegistrationPage",
  49. component: RegistrationPage
  50. },
  51. {
  52. path: "/RestaurantCategory",
  53. name: "RestaurantCategory",
  54. component: RestaurantCategory
  55. },
  56. {
  57. path: "/search",
  58. name: "RestaurantSearch",
  59. component: RestaurantSearch
  60. },
  61. {
  62. path: "/MyDetails",
  63. name: "MyDetails",
  64. component: CustomerDetails
  65. },
  66. {
  67. path: "/MyOrders",
  68. name: "MyOrders",
  69. component: CustomerOrders
  70. },
  71. {
  72. path: "/RestuarantList",
  73. name: "RestuarantList",
  74. component: RestuarantList
  75. },
  76. {
  77. path: "/CustomerList",
  78. name: "CustomerList",
  79. component: CustomerList
  80. },
  81. {
  82. path: "/Restaurant",
  83. name: "Restaurant",
  84. component: Restaurant
  85. },
  86. {
  87. path: "/MenuCategory",
  88. name: "MenuCategory",
  89. component: RestaurantMenuCategories
  90. }
  91. ]
  92. });