From 0dd60e96fc855df4ed882fb93b23c241115bf1f0 Mon Sep 17 00:00:00 2001 From: arabakevin <34araba@gmail.com> Date: Mon, 3 Aug 2020 08:13:49 +0200 Subject: [PATCH 1/9] File sharing feature --- demo/src/App.vue | 8 +- src/ChatWindow.vue | 1 + src/Launcher.vue | 1 + src/Message.vue | 6 +- src/MessageList.vue | 2 +- src/assets/mimes/application_msword.svg.vue | 3 + src/assets/mimes/application_pdf.svg.vue | 3 + .../mimes/application_vnd.ms-excel.svg.vue | 3 + .../application_vnd.ms-powerpoint.svg.vue | 3 + src/assets/mimes/application_zip.svg.vue | 3 + src/assets/mimes/default_file.svg.vue | 3 + src/assets/mimes/image_jpeg.svg.vue | 3 + src/assets/mimes/image_png.svg.vue | 3 + src/assets/mimes/image_svg.svg.vue | 3 + src/assets/mimes/text_csv.svg.vue | 3 + src/components/mimes/IconPdfFile.vue | 17 ++ src/messages/FileMessage.vue | 145 +++++++++++++++--- src/messages/ImageMessage.vue | 106 +++++++++++++ 18 files changed, 286 insertions(+), 30 deletions(-) create mode 100644 src/assets/mimes/application_msword.svg.vue create mode 100644 src/assets/mimes/application_pdf.svg.vue create mode 100644 src/assets/mimes/application_vnd.ms-excel.svg.vue create mode 100644 src/assets/mimes/application_vnd.ms-powerpoint.svg.vue create mode 100644 src/assets/mimes/application_zip.svg.vue create mode 100644 src/assets/mimes/default_file.svg.vue create mode 100644 src/assets/mimes/image_jpeg.svg.vue create mode 100644 src/assets/mimes/image_png.svg.vue create mode 100644 src/assets/mimes/image_svg.svg.vue create mode 100644 src/assets/mimes/text_csv.svg.vue create mode 100644 src/components/mimes/IconPdfFile.vue create mode 100644 src/messages/ImageMessage.vue diff --git a/demo/src/App.vue b/demo/src/App.vue index 054867da..9596a8f8 100644 --- a/demo/src/App.vue +++ b/demo/src/App.vue @@ -24,13 +24,14 @@ @onType="handleOnType" @edit="editMessage" @remove="removeMessage" + @download="downloadMessage" > -