Move Navigation from NavDrawer to AppBar, redesign page structure and routes

This commit is contained in:
2024-09-27 13:08:43 +02:00
parent 941fd711d5
commit e3863058a0
38 changed files with 184 additions and 92 deletions

View 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 },
]

View File

@@ -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

View File

@@ -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

View 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 },
]

View 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 }
]