From 84bc781c4e35eb176cb2e4005a5f2b9acc578f48 Mon Sep 17 00:00:00 2001 From: mishanya Date: Sun, 2 Jun 2024 22:42:15 +0200 Subject: [PATCH] Added post view --- cookingd-front/src/App.vue | 23 +++++++- .../src/components/posts/PostTopDetails.vue | 18 ++++++ .../src/components/posts/ShortPost.vue | 26 ++++----- .../src/components/posts/TagList.vue | 2 +- cookingd-front/src/router/index.ts | 7 ++- cookingd-front/src/types/post.ts | 1 + cookingd-front/src/views/AccountView.vue | 4 +- cookingd-front/src/views/HomeView.vue | 14 +---- cookingd-front/src/views/Post.vue | 57 +++++++++++++++++++ 9 files changed, 119 insertions(+), 33 deletions(-) create mode 100644 cookingd-front/src/components/posts/PostTopDetails.vue create mode 100644 cookingd-front/src/views/Post.vue diff --git a/cookingd-front/src/App.vue b/cookingd-front/src/App.vue index 0668534..1aa5b17 100644 --- a/cookingd-front/src/App.vue +++ b/cookingd-front/src/App.vue @@ -67,8 +67,29 @@ if (tokenFromCookies && !userStore.isLoggedIn) { Go to login +
+
- + diff --git a/cookingd-front/src/components/posts/PostTopDetails.vue b/cookingd-front/src/components/posts/PostTopDetails.vue new file mode 100644 index 0000000..d01016d --- /dev/null +++ b/cookingd-front/src/components/posts/PostTopDetails.vue @@ -0,0 +1,18 @@ + + \ No newline at end of file diff --git a/cookingd-front/src/components/posts/ShortPost.vue b/cookingd-front/src/components/posts/ShortPost.vue index 8a06efa..7719024 100644 --- a/cookingd-front/src/components/posts/ShortPost.vue +++ b/cookingd-front/src/components/posts/ShortPost.vue @@ -1,6 +1,7 @@