diff --git a/src/components/home_components/HelloWorld.vue b/src/components/home_components/HelloWorld.vue
deleted file mode 100644
index 5230910..0000000
--- a/src/components/home_components/HelloWorld.vue
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
- {{ msg }}
-
-
-
-
- Edit
- components/HelloWorld.vue to test HMR
-
-
-
-
- Check out
- create-vue, the official Vue + Vite starter
-
-
- Install
- Volar
- in your IDE for a better DX
-
- Click on the Vite and Vue logos to learn more
-
-
-
diff --git a/src/components/home_components/feed.vue b/src/components/home_components/feed.vue
index 41072be..6a5bba2 100644
--- a/src/components/home_components/feed.vue
+++ b/src/components/home_components/feed.vue
@@ -91,11 +91,10 @@ import {onMounted, ref} from "vue";
-
+
-
-
@@ -119,6 +118,10 @@ import {onMounted, ref} from "vue";
+
+
+
+ View Post
diff --git a/src/components/home_components/navigationbar.vue b/src/components/home_components/navigationbar.vue
index eb11cea..abb1388 100644
--- a/src/components/home_components/navigationbar.vue
+++ b/src/components/home_components/navigationbar.vue
@@ -5,63 +5,21 @@
import router from "../../router";
import { ref, onMounted } from 'vue';
-const componentsStatus = ref({});
-const selected_destination = ref('');
-
-async function loadComponentsStatus() {
- const response = await fetch('src/components/status.json');
- componentsStatus.value = await response.json();
-}
-
-onMounted(() => {
- loadComponentsStatus();
-});
-
-function fun_route(destination: string) {
- selected_destination.value = destination;
- if (componentsStatus.value[destination] === 'wip') {
- router.push("wip");
- } else {
- switch (destination) {
- case "home":
- router.push("/");
- break;
- case "search":
- router.push("search");
- break;
- case "notifications":
- router.push("notifications");
- break;
- case "messages":
- router.push("messages");
- break;
- case "accounts":
- router.push("accounts");
- break;
- case "settings":
- router.push("settings");
- break;
- default:
- router.push("/");
- break;
- }
- }
-}
-

+
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/components/posts.vue b/src/components/posts.vue
new file mode 100644
index 0000000..6733561
--- /dev/null
+++ b/src/components/posts.vue
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
{{ post.author_display_name }}
+
@{{ post.author_username }}
+
{{ post.content }}
+
Likes: {{ post.likes }}
+
Comments: {{ post.comments_count }}
+
Comments disabled
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/status.json b/src/components/status.json
deleted file mode 100644
index abd22cc..0000000
--- a/src/components/status.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "home": "completed",
- "search": "testing",
- "notifications": "testing",
- "messages": "wip",
- "accounts": "wip",
- "settings": "testing"
-}
diff --git a/src/router/index.ts b/src/router/index.ts
index f93b426..d6abfe8 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -10,6 +10,7 @@ import settings from "../components/settings.vue";
import nottifications from "../components/notifications.vue";
import register from "../components/register.vue";
import search from "../components/search.vue";
+import post from '../components/posts.vue';
// The routing does not happen automatically
// Each route has to be defined here, or it won't work.
const routes = [
@@ -47,6 +48,12 @@ const routes = [
path: "/search",
name: "Search",
component: search,
+ },
+ {
+ path: '/post/:id',
+ name: 'PostDetail',
+ component: post,
+ props: true
}
]
@@ -55,4 +62,4 @@ const router = createRouter({
routes,
});
-export default router;
+export default router;
\ No newline at end of file