From de95de56b9b3d188167a3465c8de523ff746fbef Mon Sep 17 00:00:00 2001 From: RijaRR <47516266+RijaRR@users.noreply.github.com> Date: Fri, 5 Aug 2022 10:50:27 +0300 Subject: [PATCH 1/7] can paste image in card desc on paste image in edition of card description. We insert image as card attachement and in card description Signed-off-by: RijaRR <47516266+RijaRR@users.noreply.github.com> --- src/components/card/Description.vue | 76 ++++++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/src/components/card/Description.vue b/src/components/card/Description.vue index 4e7f49f6e..e1d8156ca 100644 --- a/src/components/card/Description.vue +++ b/src/components/card/Description.vue @@ -21,11 +21,22 @@ --> @@ -88,7 +88,7 @@ import MarkdownItTaskCheckbox from 'markdown-it-task-checkbox' import MarkdownItLinkAttributes from 'markdown-it-link-attributes' import AttachmentList from './AttachmentList' import AttachmentUploadProgress from './AttachmentUploadProgress' -import { Actions, ActionButton, Modal } from '@nextcloud/vue' +import { NcActions, NcActionButton, NcModal } from '@nextcloud/vue' import { formatFileSize } from '@nextcloud/files' import { generateUrl } from '@nextcloud/router' import { mapState, mapGetters } from 'vuex' @@ -111,9 +111,9 @@ export default { name: 'Description', components: { VueEasymde: () => import('vue-easymde/dist/VueEasyMDE.common'), - Actions, - ActionButton, - Modal, + NcActions, + NcActionButton, + NcModal, AttachmentList, PaperclipIcon, AttachmentUploadProgress, @@ -421,4 +421,4 @@ h5 { .vue-easymde .cm-s-easymde .cm-formatting.cm-image { color: var(--color-text-maxcontrast); } - + \ No newline at end of file From dfef7dabcad6aee2759d06be1b2310c152994003 Mon Sep 17 00:00:00 2001 From: "rija.propitech" Date: Mon, 26 Sep 2022 13:06:27 +0300 Subject: [PATCH 6/7] update Description.vue --- src/components/card/Description.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/card/Description.vue b/src/components/card/Description.vue index bc126c900..0d9e837d2 100644 --- a/src/components/card/Description.vue +++ b/src/components/card/Description.vue @@ -36,20 +36,20 @@ target="_blank" class="icon icon-info" /> - + {{ t('deck', 'Edit description') }} - - + + {{ t('deck', 'View description') }} - + - + {{ t('deck', 'Add Attachment') }} - + @@ -86,7 +86,7 @@ import MarkdownIt from 'markdown-it' import MarkdownItTaskCheckbox from 'markdown-it-task-checkbox' import MarkdownItLinkAttributes from 'markdown-it-link-attributes' -import AttachmentList from './AttachmentList' +import AttachmentList from './AttachmentList.vue' import AttachmentUploadProgress from './AttachmentUploadProgress' import { NcActions, NcActionButton, NcModal } from '@nextcloud/vue' import { formatFileSize } from '@nextcloud/files' From 291227c599a8d33f67fc91fa73597baee3a35da7 Mon Sep 17 00:00:00 2001 From: "rija.propitech" Date: Tue, 6 Dec 2022 15:59:57 +0300 Subject: [PATCH 7/7] correction es lint --- src/components/card/AttachmentList.vue | 11 ++++------- src/components/card/Description.vue | 18 +++++++----------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/src/components/card/AttachmentList.vue b/src/components/card/AttachmentList.vue index 0197a0d77..6b86c94b5 100755 --- a/src/components/card/AttachmentList.vue +++ b/src/components/card/AttachmentList.vue @@ -30,8 +30,7 @@ {{ t('deck', 'Share from Files') }} - -
  • - @@ -108,7 +105,7 @@ import { mapState, mapActions } from 'vuex' import { loadState } from '@nextcloud/initial-state' import attachmentUpload from '../../mixins/attachmentUpload.js' import { getFilePickerBuilder } from '@nextcloud/dialogs' -import AttachmentUploadProgress from './AttachmentUploadProgress' +import AttachmentUploadProgress from './AttachmentUploadProgress.vue' const maxUploadSizeState = loadState('deck', 'maxUploadSize') const picker = getFilePickerBuilder(t('deck', 'File to share')) diff --git a/src/components/card/Description.vue b/src/components/card/Description.vue index 9bfa634ed..d44e16717 100644 --- a/src/components/card/Description.vue +++ b/src/components/card/Description.vue @@ -30,8 +30,7 @@ - @@ -53,16 +52,14 @@ -

    {{ t('deck', 'Write a description …') }}

    - @@ -88,12 +84,12 @@ import MarkdownIt from 'markdown-it' import MarkdownItTaskCheckbox from 'markdown-it-task-checkbox' import MarkdownItLinkAttributes from 'markdown-it-link-attributes' import AttachmentList from './AttachmentList.vue' -import AttachmentUploadProgress from './AttachmentUploadProgress' +import AttachmentUploadProgress from './AttachmentUploadProgress.vue' import { NcActions, NcActionButton, NcModal } from '@nextcloud/vue' import { formatFileSize } from '@nextcloud/files' import { generateUrl } from '@nextcloud/router' import { mapState, mapGetters } from 'vuex' -import attachmentUpload from '../../mixins/attachmentUpload' +import attachmentUpload from '../../mixins/attachmentUpload.js' import PaperclipIcon from 'vue-material-design-icons/Paperclip.vue' const markdownIt = new MarkdownIt({ @@ -446,4 +442,4 @@ h5 { .vue-easymde .cm-s-easymde .cm-formatting.cm-image { color: var(--color-text-maxcontrast); } - \ No newline at end of file +