Remove EventTable in database, redesign frontend URL paths

This commit is contained in:
2024-10-12 15:54:03 +02:00
parent 7b991d2ff8
commit 60e217db03
40 changed files with 955 additions and 1203 deletions

View File

@@ -1,11 +0,0 @@
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

@@ -1,27 +1,50 @@
import BasketPage from "@/pages/basketPage/index.vue"
import BasketPage from "@/pages/misc/basketPage/index.vue"
import HomePage from "@/pages/homePage/index.vue"
import { adminRoutes } from "./admin.routes";
import { accountRoutes } from "./account.routes";
import { systemRoutes } from "./system.routes";
import EventsPage from "@/pages/events/eventsPage/index.vue";
import BandsPage from "@/pages/bands/bandsPage/index.vue"
import BandDetailPage from "@/pages/bands/bandDetailPage/index.vue"
import LocationsPage from "@/pages/locations/locationsPage/index.vue"
import SearchPage from "@/pages/searchPage/index.vue"
import BandDetailPage from "@/pages/events/bandDetailPage/index.vue"
import LocationDetailPage from "@/pages/locations/locationDetailPage/index.vue"
import TicketOrderPage from "@/pages/events/ticketOrderPage/index.vue"
import SearchPage from "@/pages/misc/searchPage/index.vue"
import ConcertsPage from "@/pages/concerts/concertsPage/index.vue"
import ConcertBookingPage from "@/pages/concerts/concertBookingPage/index.vue"
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"
import PreferencesPage from "@/pages/misc/preferencesPage/index.vue";
import HelpPage from "@/pages/misc/helpPage/index.vue"
const routes = [
// Main page
{ path: "/", component: HomePage },
{ path: '/basket', component: BasketPage },
{ path: '/locations', component: LocationsPage },
{ path: '/locations/:locationName', name: 'locationDetails', component: LocationDetailPage },
{ path: '/bands/:bandName', component: BandDetailPage },
{ path: '/concert/:id', component: TicketOrderPage },
{ path: '/events', component: EventsPage },
{ path: '/search', component: SearchPage },
...accountRoutes,
// Account
{ path: '/account', component: AccountHomePage },
{ path: '/account/orders', component: OrdersPage },
{ path: '/account/data', component: AccountDataPage },
{ path: '/account/login', component: LoginPage },
// Admin
...adminRoutes,
...systemRoutes
// Bands
{ path: '/bands', component: BandsPage },
{ path: '/bands/detail/:name', component: BandDetailPage },
// Concerts
{ path: '/concerts', component: ConcertsPage },
{ path: '/concert/booking/:id', component: ConcertBookingPage },
// Locations
{ path: '/locations', component: LocationsPage },
{ path: '/locations/detail/:name', name: 'locationDetails', component: LocationDetailPage },
// Misc
{ path: '/search', component: SearchPage },
{ path: '/basket', component: BasketPage },
{ path: '/preferences', component: PreferencesPage },
{ path: '/help', component: HelpPage }
]
export default routes

View File

@@ -1,7 +0,0 @@
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 }
]