From 565b6b5c7607c863ab6542567563fc15b1906b29 Mon Sep 17 00:00:00 2001 From: moonlitgrace Date: Thu, 19 Dec 2024 12:10:38 +0530 Subject: [PATCH] refactor: move components to root level and remove specific components --- .../components/pages/home/recent_quibs.svelte | 42 ----------------- .../components/{pages/home => }/quib.svelte | 0 .../{pages/home => }/quibs_header.svelte | 0 frontend/src/routes/(app)/+page.svelte | 46 +++++++++++++++++-- .../src/routes/(app)/q/[name]/+page.svelte | 9 ++-- 5 files changed, 45 insertions(+), 52 deletions(-) delete mode 100644 frontend/src/lib/components/pages/home/recent_quibs.svelte rename frontend/src/lib/components/{pages/home => }/quib.svelte (100%) rename frontend/src/lib/components/{pages/home => }/quibs_header.svelte (100%) diff --git a/frontend/src/lib/components/pages/home/recent_quibs.svelte b/frontend/src/lib/components/pages/home/recent_quibs.svelte deleted file mode 100644 index f1e8cdc..0000000 --- a/frontend/src/lib/components/pages/home/recent_quibs.svelte +++ /dev/null @@ -1,42 +0,0 @@ - - -

Recent Quibs

-
- {#each recent_posts as post} -
-
- - {#if post.cover} - - {/if} -
-
-

{readable(post.likes)} upvotes

- -

{readable(post.comments)} comments

-
-
- {/each} -
diff --git a/frontend/src/lib/components/pages/home/quib.svelte b/frontend/src/lib/components/quib.svelte similarity index 100% rename from frontend/src/lib/components/pages/home/quib.svelte rename to frontend/src/lib/components/quib.svelte diff --git a/frontend/src/lib/components/pages/home/quibs_header.svelte b/frontend/src/lib/components/quibs_header.svelte similarity index 100% rename from frontend/src/lib/components/pages/home/quibs_header.svelte rename to frontend/src/lib/components/quibs_header.svelte diff --git a/frontend/src/routes/(app)/+page.svelte b/frontend/src/routes/(app)/+page.svelte index ff72e20..c5edf4a 100644 --- a/frontend/src/routes/(app)/+page.svelte +++ b/frontend/src/routes/(app)/+page.svelte @@ -1,7 +1,9 @@