diff --git a/frontend/src/components/BaseLayout.vue b/frontend/src/components/BaseLayout.vue
index bbb9854..2231b2e 100644
--- a/frontend/src/components/BaseLayout.vue
+++ b/frontend/src/components/BaseLayout.vue
@@ -17,88 +17,7 @@
- -
-
-
-
-
-
-
-
+
-
@@ -144,12 +63,14 @@ import * as BIcons from "bootstrap-icons-vue";
import Footer from "@/components/Footer.vue";
import Sidebar from "@/components/Sidebar.vue";
import Notifications from "@/components/Notifications.vue";
+import Messages from "@/components/Messages.vue";
export default {
name: 'BaseLayout',
components: {
Footer,
Sidebar,
+ Messages,
Notifications,
...BIcons
},
@@ -161,12 +82,11 @@ export default {
},
},
computed: {
- //...mapState(['notifications']),
+ ...mapState(['messages']),
...mapGetters(['notifications']),
username() {
return this.$route.params.username
},
- },
top_notifications() {
return this.notifications.slice(0, 5)
},
diff --git a/frontend/src/components/Messages.vue b/frontend/src/components/Messages.vue
new file mode 100644
index 0000000..99e880b
--- /dev/null
+++ b/frontend/src/components/Messages.vue
@@ -0,0 +1,111 @@
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/components/Notifications.vue b/frontend/src/components/Notifications.vue
index 1c8daab..329f2c5 100644
--- a/frontend/src/components/Notifications.vue
+++ b/frontend/src/components/Notifications.vue
@@ -54,7 +54,12 @@ export default {
components: {
...BIcons
},
- props: ['notifications'],
+ props: {
+ notifications: {
+ type: Array,
+ default: () => []
+ }
+ },
computed: {
top_notifications() {
return this.notifications.sort((a, b) => {
diff --git a/frontend/src/store.js b/frontend/src/store.js
index d253edd..b18ebff 100644
--- a/frontend/src/store.js
+++ b/frontend/src/store.js
@@ -17,6 +17,7 @@ export default createStore({
item_map: {},
home_servers: null,
all_friends_servers: null,
+ messages: [],
resolver: new FallBackResolver(),
unreachable_neighbors: new NeighborsCache(),
tags: [],