From c394c26b59112395dcaba37800f398363f52a222 Mon Sep 17 00:00:00 2001 From: Eduard Smetanin Date: Sat, 5 Sep 2020 16:51:34 -0600 Subject: [PATCH 01/32] Added multiple chats functionality. --- src/ChatList.vue | 66 +++++++++++++++++++++++++++++++++++++++++++ src/ChatWindow.vue | 69 ++++++++++++++++++++++++++++++++++++++------- src/Header.vue | 49 +++++++++++++++++++++++++------- src/Launcher.vue | 18 +++++++++++- src/MessageList.vue | 5 ++++ src/UserInput.vue | 2 +- 6 files changed, 187 insertions(+), 22 deletions(-) create mode 100644 src/ChatList.vue diff --git a/src/ChatList.vue b/src/ChatList.vue new file mode 100644 index 00000000..bd111d0f --- /dev/null +++ b/src/ChatList.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/src/ChatWindow.vue b/src/ChatWindow.vue index 72e92f43..a63d4d9a 100644 --- a/src/ChatWindow.vue +++ b/src/ChatWindow.vue @@ -2,18 +2,23 @@
- + + 0 ? this.messages[this.messages.length - 1].suggestions : [] + }, + initialState() { + return this.multipleChats ? uiState.CHAT_LIST : uiState.MESSAGE_LIST } } } diff --git a/src/Header.vue b/src/Header.vue index fc1032ab..2e9108ba 100644 --- a/src/Header.vue +++ b/src/Header.vue @@ -1,8 +1,13 @@