From 1d910927fe1ce75ab6ace54135deaec9e6d70238 Mon Sep 17 00:00:00 2001 From: Troplo Date: Tue, 2 Feb 2021 23:44:45 +1100 Subject: [PATCH] Conversations and other stuff --- .env.development | 2 +- assets/css/kaverti.css | 8 + package.json | 3 + src/App.vue | 1 + src/assets/scss/editor.scss | 222 +++++++ src/assets/scss/elementStyles.scss | 315 +++++++++ src/assets/scss/elements.scss | 84 +++ src/components/ChatConversationInput.vue | 282 ++++++++ src/components/ChatMenu.vue | 115 ++++ src/components/ChatPagination.vue | 28 + src/components/ChatUserTyping.vue | 41 ++ src/components/ConversationMessage.vue | 113 ++++ src/components/ConversationTimeBreak.vue | 53 ++ src/components/Editor.vue | 13 + src/components/EditorIcons.vue | 67 ++ src/components/Navbar.vue | 2 +- src/components/SidebarChat.vue | 236 +++++++ src/components/SidebarChatComp.vue | 212 ++++++ src/locales/en.json | 3 +- src/main.js | 40 ++ src/router/index.js | 11 + src/store/index.js | 40 +- src/views/Chat.vue | 29 + src/views/ChatHome.vue | 27 + src/views/ChatMessage.vue | 434 ++++++++++++ src/views/ForumThread.vue | 210 +++++- src/views/Forums.vue | 2 +- src/views/Home.vue | 109 +++- src/views/Stats.vue | 2 +- yarn.lock | 799 ++++++++++++++++++++++- 30 files changed, 3468 insertions(+), 35 deletions(-) create mode 100644 src/assets/scss/editor.scss create mode 100644 src/assets/scss/elementStyles.scss create mode 100644 src/assets/scss/elements.scss create mode 100644 src/components/ChatConversationInput.vue create mode 100644 src/components/ChatMenu.vue create mode 100644 src/components/ChatPagination.vue create mode 100644 src/components/ChatUserTyping.vue create mode 100644 src/components/ConversationMessage.vue create mode 100644 src/components/ConversationTimeBreak.vue create mode 100644 src/components/Editor.vue create mode 100644 src/components/EditorIcons.vue create mode 100644 src/components/SidebarChat.vue create mode 100644 src/components/SidebarChatComp.vue create mode 100644 src/views/Chat.vue create mode 100644 src/views/ChatHome.vue create mode 100644 src/views/ChatMessage.vue diff --git a/.env.development b/.env.development index f5b345c..641216d 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ VUE_APP_APIENDPOINT="/api/" VUE_APP_APIVERSION="v1" -VUE_APP_GATEWAYENDPOINT="http://localhost:23981" +VUE_APP_GATEWAYENDPOINT="/socket.io/" VUE_APP_STAGING=true VUE_APP_RELEASE="Canary" \ No newline at end of file diff --git a/assets/css/kaverti.css b/assets/css/kaverti.css index 71e8b88..5bdda17 100644 --- a/assets/css/kaverti.css +++ b/assets/css/kaverti.css @@ -1,3 +1,11 @@ .large-icon { font-size: 60px; +} +.vertical { + margin: 0; + position: absolute; + top: 50%; + left: 50%; + -ms-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); } \ No newline at end of file diff --git a/package.json b/package.json index fcb794a..b86c6c5 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales 'src/locales/**/*.json'" }, "dependencies": { + "@kangc/v-md-editor": "^1.6.0", "@vue/cli": "^4.5.10", "axios": "^0.21.1", "buefy": "^0.9.4", @@ -17,6 +18,8 @@ "dotenv-webpack": "^6.0.0", "lodash.throttle": "^4.1.1", "socket.io": "^3.1.0", + "tiptap": "^1.32.0", + "tiptap-extensions": "^1.35.0", "to-boolean": "^1.0.0", "v-offline": "^1.3.0", "vue": "^2.6.11", diff --git a/src/App.vue b/src/App.vue index a5ef97e..271e935 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,6 @@ diff --git a/src/components/ChatMenu.vue b/src/components/ChatMenu.vue new file mode 100644 index 0000000..8abd684 --- /dev/null +++ b/src/components/ChatMenu.vue @@ -0,0 +1,115 @@ + + + + + diff --git a/src/components/ChatPagination.vue b/src/components/ChatPagination.vue new file mode 100644 index 0000000..a3f7552 --- /dev/null +++ b/src/components/ChatPagination.vue @@ -0,0 +1,28 @@ + + + \ No newline at end of file diff --git a/src/components/ChatUserTyping.vue b/src/components/ChatUserTyping.vue new file mode 100644 index 0000000..1af1751 --- /dev/null +++ b/src/components/ChatUserTyping.vue @@ -0,0 +1,41 @@ + + + + + diff --git a/src/components/ConversationMessage.vue b/src/components/ConversationMessage.vue new file mode 100644 index 0000000..b0c9cd8 --- /dev/null +++ b/src/components/ConversationMessage.vue @@ -0,0 +1,113 @@ + + + + + \ No newline at end of file diff --git a/src/components/ConversationTimeBreak.vue b/src/components/ConversationTimeBreak.vue new file mode 100644 index 0000000..61a197a --- /dev/null +++ b/src/components/ConversationTimeBreak.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/src/components/Editor.vue b/src/components/Editor.vue new file mode 100644 index 0000000..b737f5f --- /dev/null +++ b/src/components/Editor.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/src/components/EditorIcons.vue b/src/components/EditorIcons.vue new file mode 100644 index 0000000..e4964f9 --- /dev/null +++ b/src/components/EditorIcons.vue @@ -0,0 +1,67 @@ + + + + + \ No newline at end of file diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index e935454..3857ef2 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -224,7 +224,7 @@ required> - {{$t('register.agree')}} {{$t('tos')}} + {{$t('register.agree')}} {{$t('tos')}}