From be3bb2b3a029b778b811dda26ab0f490db42150c Mon Sep 17 00:00:00 2001 From: Ota Prokopec Date: Mon, 27 Feb 2023 19:33:42 +0100 Subject: [PATCH] profile data-database --- src/__routes.svelte | 12 +- src/lib/collections.ts | 6 +- .../Layouts/NavigationBarLayout.svelte | 12 +- .../profile/functions/Profile-Update.svelte | 148 +++++++++--------- src/routes/profile/profile.svelte | 43 ++--- src/routes/register/register.svelte | 42 ++--- 6 files changed, 126 insertions(+), 137 deletions(-) diff --git a/src/__routes.svelte b/src/__routes.svelte index 07db58d..cab0bc1 100644 --- a/src/__routes.svelte +++ b/src/__routes.svelte @@ -4,6 +4,7 @@ import Layout from '$src/__layout.svelte' import Loading from '$src/__loading.svelte' import Error from '$src/__error.svelte' + import NavigationBarLayout from '$lib/components/Layouts/NavigationBarLayout.svelte' import('$routes/explore/explore.svelte'), }, { - path: '/profile', - component: () => import('$routes/profile/profile.svelte'), + path: '/profile/', + component: () => import('$src/__error.svelte'), }, { - path: '/profile/:function', + path: '/profile/:erantId', + component: () => import('$routes/profile/profile.svelte'), + layout: NavigationBarLayout, + }, + { + path: '/profile/setting/:function', component: () => import('$routes/profile/profile-functions.svelte'), }, { diff --git a/src/lib/collections.ts b/src/lib/collections.ts index 6e31bcf..b6272ae 100644 --- a/src/lib/collections.ts +++ b/src/lib/collections.ts @@ -1,7 +1,9 @@ import { Collection } from './appwrite' -const expiriences = new Collection('63cef30d6da945dd4250', '63cef4bd210fdf2e5888') +const experiences = new Collection('63cef30d6da945dd4250', '63cef4bd210fdf2e5888') +const users = new Collection('63ded6c18e8493bffc83', 'Users') export default { - expiriences, + experiences, + users, } diff --git a/src/lib/components/Layouts/NavigationBarLayout.svelte b/src/lib/components/Layouts/NavigationBarLayout.svelte index f82b1b7..663c7d4 100644 --- a/src/lib/components/Layouts/NavigationBarLayout.svelte +++ b/src/lib/components/Layouts/NavigationBarLayout.svelte @@ -1,8 +1,13 @@