Move Navigation from NavDrawer to AppBar, redesign page structure and routes
This commit is contained in:
11
software/src/router/account.routes.ts
Normal file
11
software/src/router/account.routes.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import AccountHomePage from "@/pages/account/accountHomePage/index.vue";
|
||||
import AccountDataPage from "@/pages/account/accountDataPage/index.vue";
|
||||
import OrdersPage from "@/pages/account/ordersPage/index.vue";
|
||||
import LoginPage from "@/pages/account/loginPage/index.vue"
|
||||
|
||||
export const accountRoutes = [
|
||||
{ path: '/account/home', component: AccountHomePage },
|
||||
{ path: '/account/login', component: LoginPage },
|
||||
{ path: '/account/edit', component: AccountDataPage },
|
||||
{ path: '/account/orders', component: OrdersPage },
|
||||
]
|
||||
@@ -4,7 +4,7 @@ import AccountsPage from "@/pages/admin/accountsPage/index.vue"
|
||||
import ProductsPage from "@/pages/admin/productsPage/index.vue"
|
||||
import BrandsPage from "@/pages/admin/brandsPage/index.vue"
|
||||
|
||||
export default [
|
||||
export const adminRoutes = [
|
||||
{
|
||||
path: '/admin/dashboard',
|
||||
component: DashboardPage
|
||||
|
||||
@@ -1,23 +1,17 @@
|
||||
import AccountPage from "@/pages/accountPage/index.vue";
|
||||
import OrdersPage from "@/pages/ordersPage/index.vue";
|
||||
import PreferencesPage from "@/pages/preferencesPage/index.vue";
|
||||
import TourPage from "@/pages/toursPage/index.vue";
|
||||
import LoginPage from "@/pages/loginPage/index.vue"
|
||||
import BasketPage from "@/pages/basketPage/index.vue"
|
||||
import HelpPage from "@/pages/helpPage/index.vue"
|
||||
import ScoreBoardPage from "@/pages/scoreBoardPage/index.vue"
|
||||
import adminRoutes from "./admin.routes";
|
||||
import HomePage from "@/pages/homePage/index.vue"
|
||||
import { adminRoutes } from "./admin.routes";
|
||||
import { accountRoutes } from "./account.routes";
|
||||
import { showRoutes } from "./show.routes";
|
||||
import { systemRoutes } from "./system.routes";
|
||||
|
||||
const routes = [
|
||||
{ path: '/', component: TourPage },
|
||||
{ path: '/account', component: AccountPage },
|
||||
{ path: '/orders', component: OrdersPage },
|
||||
{ path: '/preferences', component: PreferencesPage },
|
||||
{ path: '/login', component: LoginPage },
|
||||
{ path: "/", component: HomePage },
|
||||
{ path: '/basket', component: BasketPage },
|
||||
{ path: '/scoreboard', component: ScoreBoardPage },
|
||||
{ path: '/help', component: HelpPage },
|
||||
...adminRoutes
|
||||
...showRoutes,
|
||||
...accountRoutes,
|
||||
...adminRoutes,
|
||||
...systemRoutes
|
||||
]
|
||||
|
||||
export default routes
|
||||
11
software/src/router/show.routes.ts
Normal file
11
software/src/router/show.routes.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import EventsPage from "@/pages/shows/eventsPage/index.vue";
|
||||
import GenresPage from "@/pages/shows/genresPage/index.vue";
|
||||
import LocationsPage from "@/pages/shows/locationsPage/index.vue"
|
||||
import SearchPage from "@/pages/shows/searchPage/index.vue"
|
||||
|
||||
export const showRoutes = [
|
||||
{ path: '/shows/events', component: EventsPage },
|
||||
{ path: '/shows/genres', component: GenresPage },
|
||||
{ path: '/shows/locations', component: LocationsPage },
|
||||
{ path: '/shows/search', component: SearchPage },
|
||||
]
|
||||
7
software/src/router/system.routes.ts
Normal file
7
software/src/router/system.routes.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import PreferencesPage from "@/pages/system/preferencesPage/index.vue";
|
||||
import HelpPage from "@/pages/system/helpPage/index.vue"
|
||||
|
||||
export const systemRoutes = [
|
||||
{ path: '/system/preferences', component: PreferencesPage },
|
||||
{ path: '/system/help', component: HelpPage }
|
||||
]
|
||||
Reference in New Issue
Block a user