diff --git a/database/sqlite3.exe b/database/sqlite3.exe new file mode 100644 index 0000000..b481b36 Binary files /dev/null and b/database/sqlite3.exe differ diff --git a/src/components/home_components/feed.vue b/src/components/home_components/feed.vue index 7629a68..450efad 100644 --- a/src/components/home_components/feed.vue +++ b/src/components/home_components/feed.vue @@ -81,17 +81,6 @@ async function addLike(post_id: string | number, user_id: number, index: number) } } -function gotoPost(post_id: string | number) { - localStorage.setItem("viewedpost", post_id.toString()); - router.push(`/post/${post_id}`); -} - -function copyLink(post_id: string | number) { - const tocopy = `http://localhost:5173/post/${post_id}`; - navigator.clipboard.writeText(tocopy); - alert("Copied to clipboard"); -} - async function post_create(post_text: string) { if (post_text === "") { alert("Please write something before posting."); @@ -114,6 +103,17 @@ async function post_create(post_text: string) { console.log(post_text); } +function gotoPost(post_id: string | number) { + localStorage.setItem("viewedpost", post_id.toString()); + router.push(`/post/${post_id}`); +} + +function copyLink(post_id: string | number) { + const tocopy = `http://localhost:5173/post/${post_id}`; + navigator.clipboard.writeText(tocopy); + alert("Copied to clipboard"); +} + function gotoProfile(user_id: string | number) { router.push(`/profile/${user_id}`); } @@ -126,7 +126,8 @@ function gotoProfile(user_id: string | number) {

Feed

- + +
@@ -141,7 +142,9 @@ function gotoProfile(user_id: string | number) {