This commit is contained in:
Ota Prokopec 2023-03-21 17:40:58 +01:00
parent 823e15f671
commit 9aab42db08
3 changed files with 35 additions and 38 deletions

View File

@ -13,6 +13,36 @@
loading={Loading} loading={Loading}
error={Error} error={Error}
routes={[ routes={[
//experience
{
path: '/:gameurl',
component: () => import('$routes/game/experience.svelte'),
},
//authorization
{
path: '/login',
component: () => import('$routes/authorization/login/log_in.svelte'),
},
{
path: '/register',
component: () => import('$root/src/routes/authorization/register/register.svelte'),
},
{
path: '/register/failed',
component: () => import('$routes/authorization/register/registerFailed.svelte'),
},
{
path: '/register/emailverification/:erantId',
component: () => import('$routes/authorization/register/emailVerification.svelte'),
},
{
path: '/create/account/:erantId/',
component: () => import('$routes/authorization/register/createAccount.svelte'),
},
{
path: '/forgot-pswd',
component: () => import('$routes/authorization/forgottonPassword/forgot-pswd.svelte'),
},
...[ ...[
{ {
path: '/', path: '/',
@ -35,9 +65,8 @@
component: () => import('$routes/profile/profile-functions.svelte'), component: () => import('$routes/profile/profile-functions.svelte'),
}, },
].map((routes) => { ].map((routes) => {
return { ...routes, layout: NavigationBarLayout } return { ...routes, layout: ArrowBackLayout }
}), }),
{ {
path: '/error', path: '/error',
component: () => import('$routes/error.svelte'), component: () => import('$routes/error.svelte'),
@ -54,37 +83,11 @@
path: '/map', path: '/map',
component: () => import('$root/src/routes/map/map.svelte'), component: () => import('$root/src/routes/map/map.svelte'),
}, },
{ {
path: '/profile/', path: '/profile/',
component: () => import('$src/__error.svelte'), component: () => import('$src/__error.svelte'),
}, },
//policy
{
path: '/login',
component: () => import('$routes/authorization/login/log_in.svelte'),
},
{
path: '/register',
component: () => import('$root/src/routes/authorization/register/register.svelte'),
},
{
path: '/register/failed',
component: () => import('$routes/authorization/register/registerFailed.svelte'),
},
{
path: '/register/emailverification/:erantId',
component: () => import('$routes/authorization/register/emailVerification.svelte'),
},
{
path: '/create/account/:erantId/',
component: () => import('$routes/authorization/register/createAccount.svelte'),
},
{
path: '/:gameurl',
component: () => import('$routes/game/experience.svelte'),
},
{ {
path: '/terms-and-conditions', path: '/terms-and-conditions',
component: () => import('$routes/legal/terms-and-conditions.svelte'), component: () => import('$routes/legal/terms-and-conditions.svelte'),
@ -97,10 +100,6 @@
path: '/cookie-policy', path: '/cookie-policy',
component: () => import('$routes/legal/cookie-policy.svelte'), component: () => import('$routes/legal/cookie-policy.svelte'),
}, },
{
path: '/forgot-pswd',
component: () => import('$routes/authorization/forgottonPassword/forgot-pswd.svelte'),
},
{ {
path: '/preferences', path: '/preferences',
component: () => import('$root/src/routes/onboarding/interestsPage.svelte'), component: () => import('$root/src/routes/onboarding/interestsPage.svelte'),

View File

@ -6,7 +6,6 @@
import FooterItem from '../Common/NavBar_Item.svelte' import FooterItem from '../Common/NavBar_Item.svelte'
$: [userInfo] = collections.users.getDocument([Query.equal('userId', $user?.$id || '')]) $: [userInfo] = collections.users.getDocument([Query.equal('userId', $user?.$id || '')])
$: console.log($user)
$: items = [ $: items = [
{ {

View File

@ -1,10 +1,9 @@
<script> <script>
import Overlay from '../lib/components/Layouts/LayoutImg.svelte' import Overlay from '$lib/components/Layouts/LayoutImg.svelte'
import Section from '../lib/components/Common/Section.svelte' import Section from '$lib/components/Common/Section.svelte'
import Button from '../lib/components/Buttons/Button.svelte' import Button from '$lib/components/Buttons/Button.svelte'
</script> </script>
<Overlay img="/assets/images/main.jpg"> <Overlay img="/assets/images/main.jpg">
<div> <div>
<span>Erant</span> <span>Erant</span>