From 3888ec41c8b4977c23b78a0d706e707110f3e5e2 Mon Sep 17 00:00:00 2001 From: joschuatonn Date: Sun, 19 May 2024 11:19:52 +0200 Subject: [PATCH] - Outsorced the settings popup into its own component - Chats with more than 2 users are now displayed correctly - The user can now select chats as well - Added header which displays the Name and ProfilePicture of the selected user (and displayName and groupProfilePicture for group chats) --- quasar.config.js | 4 +- src/components/ChatCardComponent.vue | 48 +++++ .../HeaderInfoContainerComponent.vue | 31 +++ src/components/SettingsPopUp.vue | 175 +++++++++++++++++ src/pages/IndexPage.vue | 183 +++++++----------- src/stores/user-store.ts | 8 + 6 files changed, 335 insertions(+), 114 deletions(-) create mode 100644 src/components/ChatCardComponent.vue create mode 100644 src/components/HeaderInfoContainerComponent.vue create mode 100644 src/components/SettingsPopUp.vue diff --git a/quasar.config.js b/quasar.config.js index 488e6c0..ef30214 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -133,7 +133,9 @@ module.exports = configure(function (/* ctx */) { // directives: [], // Quasar plugins - plugins: [] + plugins: [ + 'Notify' + ] }, // animations: 'all', // --- includes all animations diff --git a/src/components/ChatCardComponent.vue b/src/components/ChatCardComponent.vue new file mode 100644 index 0000000..b677429 --- /dev/null +++ b/src/components/ChatCardComponent.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/src/components/HeaderInfoContainerComponent.vue b/src/components/HeaderInfoContainerComponent.vue new file mode 100644 index 0000000..856183a --- /dev/null +++ b/src/components/HeaderInfoContainerComponent.vue @@ -0,0 +1,31 @@ + + + + + \ No newline at end of file diff --git a/src/components/SettingsPopUp.vue b/src/components/SettingsPopUp.vue new file mode 100644 index 0000000..7d8aba2 --- /dev/null +++ b/src/components/SettingsPopUp.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/src/pages/IndexPage.vue b/src/pages/IndexPage.vue index b9c7d53..f276a85 100644 --- a/src/pages/IndexPage.vue +++ b/src/pages/IndexPage.vue @@ -2,91 +2,7 @@
- - - - -

Einstellungen

- - -
- - -
Nutzerdaten
-
-
-
-

{{ userStore.user?.firstName }}

-

{{ userStore.user?.lastName }}

-

{{ userStore.user?.username }}

-

{{ userStore.user?.id }}

-
-
- -
-
-
-
- -
- - -
Status
-

Hier kannst du deinen Status festlegen

- - - - - -
- - -
Profilbild
-

Du kannst eins der folgenden Porfilbilder aussuchen

- -
- - - - - - - - -
-
- - - - -
-
- - +