diff --git a/package.json b/package.json index 4778b77..5d0396e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite", + "dev": "vite --host 0.0.0.0", "build": "vite build", "preview": "vite preview", "appwrite": "docker compose -f ./appwrite/docker-compose.yml up" diff --git a/src/lib/components/Inputs/Hidden_Input_type2.svelte b/src/lib/components/Inputs/Hidden_Input_type2.svelte new file mode 100644 index 0000000..0a9da7f --- /dev/null +++ b/src/lib/components/Inputs/Hidden_Input_type2.svelte @@ -0,0 +1,56 @@ + + +
+ + +
+ + diff --git a/src/lib/svg/CookieMonster.svelte b/src/lib/svg/CookieMonster.svelte index 534d562..81291e3 100644 --- a/src/lib/svg/CookieMonster.svelte +++ b/src/lib/svg/CookieMonster.svelte @@ -4,6 +4,7 @@ + diff --git a/src/lib/svg/Logout.svelte b/src/lib/svg/Logout.svelte index ffbd144..fcf4d13 100644 --- a/src/lib/svg/Logout.svelte +++ b/src/lib/svg/Logout.svelte @@ -1,10 +1,3 @@ - - - - - - - - - + + diff --git a/src/lib/utils/database/game.ts b/src/lib/utils/database/game.ts index 8abc5f8..a997e30 100644 --- a/src/lib/utils/database/game.ts +++ b/src/lib/utils/database/game.ts @@ -6,7 +6,7 @@ import { getLocationDataFromLatAndLong } from '../locations' export const load = async (pathName: string) => { const checkPoints = [] const game = (await databases.listDocuments('63cef30d6da945dd4250', '63cef4bd210fdf2e5888', [Query.equal('ExpURL', pathName)])).documents[0] - + const checkPointsIds = game.ExpCPsID for (const checkPointId of checkPointsIds) { @@ -46,5 +46,6 @@ export const getExpiriences = async () => { link: `${expirience.ExpURL}`, }) } + return items } diff --git a/src/routes/explore/explore.svelte b/src/routes/explore/explore.svelte index 04a23ad..6654498 100644 --- a/src/routes/explore/explore.svelte +++ b/src/routes/explore/explore.svelte @@ -2,12 +2,11 @@ import NavigationBarLayout from '../../lib/components/Layouts/NavigationBarLayout.svelte' import Result from './Components/Result.svelte' import Top from './Components/Top.svelte' + import { getExpiriences } from '$lib/utils/database/game' + import Loading from '$lib/components/Common/Loading.svelte' let Search: string - function search(value: string) { - return [value, value, value] - } @@ -15,9 +14,16 @@
- {#each search(Search) as result} - - {/each} + {#await getExpiriences()} +
+ +
+ {:then expiriences} + {#each expiriences as result} + + {/each} + {/await} +
diff --git a/src/routes/homepage/Components/Comparment.svelte b/src/routes/homepage/Components/Comparment.svelte index e2801d6..c00e3e7 100644 --- a/src/routes/homepage/Components/Comparment.svelte +++ b/src/routes/homepage/Components/Comparment.svelte @@ -4,6 +4,8 @@ import Headline from './Headline.svelte' export let items = [] + + console.log(items)
diff --git a/src/routes/profile/functions/Interests-Update.svelte b/src/routes/profile/functions/Interests-Update.svelte index 65fa4d9..45a8f64 100644 --- a/src/routes/profile/functions/Interests-Update.svelte +++ b/src/routes/profile/functions/Interests-Update.svelte @@ -1,7 +1,70 @@ -
-

What are you most interested in?

-
\ No newline at end of file +
+

What are you most interested in?

+
+ +
+ +
+ + +
+
+ + \ No newline at end of file diff --git a/src/routes/profile/functions/Profile-Update.svelte b/src/routes/profile/functions/Profile-Update.svelte index 6ec325b..fde0b10 100644 --- a/src/routes/profile/functions/Profile-Update.svelte +++ b/src/routes/profile/functions/Profile-Update.svelte @@ -1,17 +1,92 @@ -
+
-
+ +
-
-
-
+
-
-
\ No newline at end of file + + + + + + + +
+ + \ No newline at end of file