From 1aec117ce1b50fde538705cd6515a23015babd8c Mon Sep 17 00:00:00 2001 From: Schokobonlean Date: Thu, 11 Jan 2024 18:06:43 +0100 Subject: [PATCH 1/5] added standard profile picture --- src/lib/Store.ts | 4 ++-- src/routes/search/users/+page.svelte | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/Store.ts b/src/lib/Store.ts index 6b6a9c0..9001baf 100644 --- a/src/lib/Store.ts +++ b/src/lib/Store.ts @@ -5,9 +5,9 @@ export const registerUsername = writable(''); //https://server-beta.de/api //https://alpha.c930.net/api -//http://localhost:3000 +//http://localhost:3000/api // local network http://192.168.0.126:3000/api -export const serverURL = writable('https://server-beta.de/api'); +export const serverURL = writable('http://localhost:3000/api'); export const token = persisted('token', ''); export const refreshToken = persisted('refreshToken', ''); diff --git a/src/routes/search/users/+page.svelte b/src/routes/search/users/+page.svelte index 0a5c5e2..7470954 100644 --- a/src/routes/search/users/+page.svelte +++ b/src/routes/search/users/+page.svelte @@ -91,7 +91,7 @@ {#each users as user}
- Avatar + Avatar
{user.nickname}

@{user.username}

From e0743df63b724930ff93e8b2d0c674baa2e31a74 Mon Sep 17 00:00:00 2001 From: Schokobonlean Date: Thu, 11 Jan 2024 18:29:20 +0100 Subject: [PATCH 2/5] added Buttons for user and post search --- src/routes/search/posts/+page.svelte | 43 ++++++++++++++++++++++++++++ src/routes/search/users/+page.svelte | 8 ++++++ 2 files changed, 51 insertions(+) create mode 100644 src/routes/search/posts/+page.svelte diff --git a/src/routes/search/posts/+page.svelte b/src/routes/search/posts/+page.svelte new file mode 100644 index 0000000..ef906d7 --- /dev/null +++ b/src/routes/search/posts/+page.svelte @@ -0,0 +1,43 @@ + + + +
+ + +
+ +
+
\ No newline at end of file diff --git a/src/routes/search/users/+page.svelte b/src/routes/search/users/+page.svelte index 7470954..b8d28b4 100644 --- a/src/routes/search/users/+page.svelte +++ b/src/routes/search/users/+page.svelte @@ -80,6 +80,14 @@
+ Date: Wed, 17 Jan 2024 12:51:00 +0100 Subject: [PATCH 3/5] added new buttons --- src/routes/search/posts/+page.svelte | 2 +- src/routes/search/users/+page.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/search/posts/+page.svelte b/src/routes/search/posts/+page.svelte index ef906d7..00a63d3 100644 --- a/src/routes/search/posts/+page.svelte +++ b/src/routes/search/posts/+page.svelte @@ -27,7 +27,7 @@ - +
- + @@ -101,7 +101,7 @@ From 60f3f68edfc1f5e6b343b2ecb9d86f915cfda7e9 Mon Sep 17 00:00:00 2001 From: Schokobonlean Date: Wed, 17 Jan 2024 12:55:15 +0100 Subject: [PATCH 4/5] fixed format --- src/routes/search/posts/+page.svelte | 45 +++++++++++++--------------- src/routes/search/users/+page.svelte | 16 ++++++++-- 2 files changed, 33 insertions(+), 28 deletions(-) diff --git a/src/routes/search/posts/+page.svelte b/src/routes/search/posts/+page.svelte index 00a63d3..c1fa88b 100644 --- a/src/routes/search/posts/+page.svelte +++ b/src/routes/search/posts/+page.svelte @@ -1,23 +1,22 @@ @@ -27,17 +26,13 @@ - +
- -
- -
-
\ No newline at end of file + +
+
diff --git a/src/routes/search/users/+page.svelte b/src/routes/search/users/+page.svelte index 3b7691f..450e32a 100644 --- a/src/routes/search/users/+page.svelte +++ b/src/routes/search/users/+page.svelte @@ -82,7 +82,11 @@
- + @@ -99,9 +103,15 @@ {#each users as user}
From 3f6b8312e2b5e909d9a3920afffc8a4d9d83f314 Mon Sep 17 00:00:00 2001 From: Schokobonlean Date: Wed, 17 Jan 2024 13:54:30 +0100 Subject: [PATCH 5/5] fixed issues --- src/routes/search/posts/+page.svelte | 2 +- src/routes/search/users/+page.svelte | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/routes/search/posts/+page.svelte b/src/routes/search/posts/+page.svelte index c1fa88b..8d4a9d6 100644 --- a/src/routes/search/posts/+page.svelte +++ b/src/routes/search/posts/+page.svelte @@ -21,7 +21,7 @@
-
+
diff --git a/src/routes/search/users/+page.svelte b/src/routes/search/users/+page.svelte index 450e32a..17ca25f 100644 --- a/src/routes/search/users/+page.svelte +++ b/src/routes/search/users/+page.svelte @@ -6,6 +6,7 @@ import Icon from '@iconify/svelte'; import { serverURL } from '$lib/Store'; import type { Profil } from '$lib/types/User'; + import { Avatar } from '@skeletonlabs/skeleton'; initializeStores(); const toastStore = getToastStore(); @@ -80,7 +81,7 @@
-
+