Uprava setovani 404 (asi porad nefunguje), ruzne podminky, priprava na zapomenute heslo, sjednoceni nacitani letu v profilu

This commit is contained in:
Michal Kváček
2024-01-20 15:40:31 +01:00
parent 0c89884b23
commit b0aa6b5628
18 changed files with 444 additions and 97 deletions
+7 -11
View File
@@ -3,7 +3,7 @@ import PlainLayout from "layouts/PlainLayout.vue";
const routes = [
{path: '/login', name: "login", component: () => import('pages/public/user/LoginPage.vue'), meta: {layout: PlainLayout}},
{path: '/registrace', name: "registration", component: () => import('pages/public/user/RegisterPage.vue'), meta: {layout: PlainLayout}},
{path: '/zapomenute-heslo', name: "forgottenPassword", component: () => import('pages/public/user/RegisterPage.vue'), meta: {layout: PlainLayout}},
{path: '/zapomenute-heslo', name: "forgottenPassword", component: () => import('pages/public/user/ForgottenPasswordPage.vue'), meta: {layout: PlainLayout}},
{path: '', name: "homepage", component: () => import('pages/public/IndexPage.vue'), meta: {layout: PlainLayout}},
@@ -13,6 +13,12 @@ const routes = [
children: [
{path: 'o-projektu', name: "about", component: () => import('pages/public/AboutPage.vue')},
{path: 'kontakt', name: "contact", component: () => import('pages/public/ContactPage.vue')},
{path: 'podminky', name: "termsAndConditions", component: () => import('pages/public/TermsAndConditionsPage.vue')},
{path: 'osobni-udaje', name: "personalInformation", component: () => import('pages/public/PersonalInformationPage.vue')},
{path: 'funkce', name: "features", component: () => import('pages/public/FeaturesPage.vue')},
{path: 'letadlo/:callSign', name: "publicAircraftDetail", component: () => import('pages/public/aircraft/AircraftDetailPage.vue')},
{path: 'mista', name: "publicPOIs", component: () => import('pages/public/poi/PointsOfInterestPage.vue')},
{path: 'mista/:slug', name: "publicPOIDetail", component: () => import('pages/public/poi/PointOfInterestDetailPage.vue')},
{
path: ':username',
component: () => import('pages/public/PilotProfileWrapper.vue'),
@@ -24,9 +30,6 @@ const routes = [
{path: 'udalosti/:eventSlug', name: "publicEventDetail", component: () => import('pages/public/pilotProfile/EventDetailPage.vue')},
]
},
{path: 'letadlo/:callSign', name: "publicAircraftDetail", component: () => import('pages/public/aircraft/AircraftDetailPage.vue')},
{path: 'mista', name: "publicPOIs", component: () => import('pages/public/poi/PointsOfInterestPage.vue')},
{path: 'mista/:slug', name: "publicPOIDetail", component: () => import('pages/public/poi/PointOfInterestDetailPage.vue')},
]
},
{
@@ -79,13 +82,6 @@ const routes = [
{path: '/refresh', name: "profileRefresh", component: () => import('pages/profile/ProfileRefreshPage.vue')},
// Always leave this as last one,
// but you can also remove it
// {
// path: '/:catchAll(.*)*',
// component: () => import('pages/ErrorNotFound.vue')
// }
]
export default routes