diff --git a/src/components/home_components/feed.vue b/src/components/home_components/feed.vue index e755d26..d3eb366 100644 --- a/src/components/home_components/feed.vue +++ b/src/components/home_components/feed.vue @@ -1,6 +1,6 @@ @@ -101,7 +107,7 @@ onMounted(async () => { - + @@ -127,7 +133,8 @@ onMounted(async () => { - View Post + View Post + Share Post diff --git a/src/components/posts.vue b/src/components/posts.vue index 6e72c28..55f9c85 100644 --- a/src/components/posts.vue +++ b/src/components/posts.vue @@ -1,11 +1,9 @@ @@ -126,11 +155,11 @@ async function getComment(post_id: number) { {{ post.comments }} Comments disabled - {{ post.likes }} + Share Post @@ -147,17 +176,31 @@ async function getComment(post_id: number) { - - - {{ c.author?.displayname || 'Unknown' }}: {{ c.comment_text }} + + + + + + + {{c.displayname}} + @{{ c.username }} + + + {{ c.text }} + + + + + + {{ c.likes }} + + + + No comments yet. - - - - diff --git a/src/components/register.vue b/src/components/register.vue index a31ceb8..05bacc3 100644 --- a/src/components/register.vue +++ b/src/components/register.vue @@ -14,7 +14,7 @@ function route_home() { - + diff --git a/src/router/index.ts b/src/router/index.ts index eadfd97..51ecae8 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -56,7 +56,6 @@ const routes = [ path: "/post/:id", name: "PostDetail", component: post, - props: true, meta: { requiresAuth: true } }, {
{{ c.author?.displayname || 'Unknown' }}: {{ c.comment_text }}
{{ c.text }}