123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- /* eslint-disable import/prefer-default-export */
- import Vue from "vue";
- import Router from "vue-router";
-
- import Home from "../components/shared/home.vue";
-
- import Registration from "../components/accounts/register.vue";
- import Login from "../components/accounts/login.vue";
- import RegisterRestaurant from "../components/accounts/restaurantRegistration.vue";
- import RegistrationPage from "../components/accounts/registrationPage.vue";
- import RestaurantCategory from "../components/restaurants/restaurantCategories.vue";
- import RestaurantSearch from "../components/home/restaurantSearch.vue";
- import RestuarantList from "../components/restaurants/restaurantList.vue";
- import Restaurant from "../components/restaurants/restaurantDetails.vue";
- import CustomerDetails from "../components/customer/customerDetails.vue";
- import CustomerOrders from "../components/customer/customerOrders.vue";
- import CustomerList from "../components/customer/customerList.vue";
- import RestaurantMenuCategories from "../components/restaurants/restaurantMenuCategories.vue";
-
- Vue.use(Router);
-
- export default new Router({
- // eslint-disable-next-line no-unused-vars
- scrollBehavior(to, from, savedPosition) {
- return {
- x: 0,
- y: 0
- };
- },
- routes: [{
- path: "/",
- name: "Home",
- component: Home
- },
- {
- path: "/Registration",
- name: "Registration",
- component: Registration
- },
- {
- path: "/Login",
- name: "Login",
- component: Login
- },
- {
- path: "/RegisterRestaurant",
- name: "RegisterRestaurant",
- component: RegisterRestaurant
- },
- {
- path: "/RegistrationPage",
- name: "RegistrationPage",
- component: RegistrationPage
- },
- {
- path: "/RestaurantCategory",
- name: "RestaurantCategory",
- component: RestaurantCategory
- },
- {
- path: "/search",
- name: "RestaurantSearch",
- component: RestaurantSearch
- },
- {
- path: "/MyDetails",
- name: "MyDetails",
- component: CustomerDetails
- },
- {
- path: "/MyOrders",
- name: "MyOrders",
- component: CustomerOrders
- },
- {
- path: "/RestuarantList",
- name: "RestuarantList",
- component: RestuarantList
- },
- {
- path: "/CustomerList",
- name: "CustomerList",
- component: CustomerList
- },
- {
- path: "/Restaurant",
- name: "Restaurant",
- component: Restaurant
- },
- {
- path: "/MenuCategory",
- name: "MenuCategory",
- component: RestaurantMenuCategories
- }
- ]
- });
|