From 95669e7027eb0a9e34f5ce6145d8cd626ea22b25 Mon Sep 17 00:00:00 2001 From: Marco Ambrosini Date: Sun, 10 Jan 2021 10:29:27 +0100 Subject: [PATCH 1/4] Add conversationpictureeditor component Signed-off-by: Marco Ambrosini --- package-lock.json | 25 +++- package.json | 1 + src/App.vue | 1 + .../ConversationPictureEditor.vue | 141 ++++++++++++++++++ 4 files changed, 167 insertions(+), 1 deletion(-) create mode 100644 src/components/ConversationPictureEditor/ConversationPictureEditor.vue diff --git a/package-lock.json b/package-lock.json index 2d9909df853..6cce05ac111 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4241,6 +4241,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "optional": true, "requires": { "color-convert": "^2.0.1" } @@ -4287,6 +4288,7 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "optional": true, "requires": { "color-name": "~1.1.4" } @@ -4295,7 +4297,8 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "optional": true }, "css-loader": { "version": "3.6.0", @@ -7166,6 +7169,11 @@ } } }, + "classnames": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz", + "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==" + }, "clean-css": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.3.tgz", @@ -8977,6 +8985,11 @@ "stream-shift": "^1.0.0" } }, + "easy-bem": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/easy-bem/-/easy-bem-1.0.2.tgz", + "integrity": "sha512-tHtLDhcEHZIMKdiiZElQoR8TcZ/6rvcNp7//93Vx/mqNLah9BOFGhhzTUfWLJs7uxZiKMdP/KzGOtzq14DrrqQ==" + }, "easy-stack": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/easy-stack/-/easy-stack-1.0.0.tgz", @@ -20733,6 +20746,16 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.12.tgz", "integrity": "sha512-uhmLFETqPPNyuLLbsKz6ioJ4q7AZHzD8ZVFNATNyICSZouqP2Sz0rotWQC8UNBF6VGSCs5abnKJoStA6JbCbfg==" }, + "vue-advanced-cropper": { + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/vue-advanced-cropper/-/vue-advanced-cropper-0.20.1.tgz", + "integrity": "sha512-G/RloEFoAIMd8hK9xczcu9muUNq0GzHupcnuFQuiyk9+4W+JkT4Ypnrr0CLDrtuFwd1BFabiX9bdpk+Z/XP2EQ==", + "requires": { + "classnames": "^2.2.6", + "debounce": "^1.2.0", + "easy-bem": "^1.0.2" + } + }, "vue-at": { "version": "2.5.0-beta.2", "resolved": "https://registry.npmjs.org/vue-at/-/vue-at-2.5.0-beta.2.tgz", diff --git a/package.json b/package.json index 2c7c8f893d5..7e30c08b979 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "url-parse": "^1.4.7", "util": "^0.12.3", "vue": "^2.6.12", + "vue-advanced-cropper": "^0.20.1", "vue-at": "^2.5.0-beta.2", "vue-clipboard2": "^0.3.1", "vue-fragment": "^1.5.1", diff --git a/src/App.vue b/src/App.vue index 818b01f31f0..700d6101067 100644 --- a/src/App.vue +++ b/src/App.vue @@ -71,6 +71,7 @@ import '@nextcloud/dialogs/styles/toast.scss' export default { name: 'App', + components: { AppContent, Content, diff --git a/src/components/ConversationPictureEditor/ConversationPictureEditor.vue b/src/components/ConversationPictureEditor/ConversationPictureEditor.vue new file mode 100644 index 00000000000..a96a21d5bf5 --- /dev/null +++ b/src/components/ConversationPictureEditor/ConversationPictureEditor.vue @@ -0,0 +1,141 @@ + + + + + + + From 0db5d118e76f9ae7fc42292615b33d33bce1bc84 Mon Sep 17 00:00:00 2001 From: Marco Ambrosini Date: Wed, 20 Jan 2021 10:59:40 +0000 Subject: [PATCH 2/4] Add generalconversationsettings component Signed-off-by: Marco Ambrosini --- .../ConversationPictureEditor.vue | 5 +- .../ConversationSettingsDialog.vue | 6 + .../GeneralConversationSettings.vue | 113 ++++++++++++++++++ src/services/conversationsService.js | 2 + 4 files changed, 124 insertions(+), 2 deletions(-) create mode 100644 src/components/ConversationSettings/GeneralConversationSettings.vue diff --git a/src/components/ConversationPictureEditor/ConversationPictureEditor.vue b/src/components/ConversationPictureEditor/ConversationPictureEditor.vue index a96a21d5bf5..4ae7da930a0 100644 --- a/src/components/ConversationPictureEditor/ConversationPictureEditor.vue +++ b/src/components/ConversationPictureEditor/ConversationPictureEditor.vue @@ -21,6 +21,7 @@