From 6523328c9628084e85ccdb6f6376ffe78fdfec1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 12 Jun 2020 21:47:19 +0200 Subject: [PATCH 1/3] Add contenthash to chunk filename MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- webpack.common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.common.js b/webpack.common.js index d5f36ed1f..ac9189533 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -10,7 +10,8 @@ module.exports = { filename: '[name].js', path: __dirname + '/js', publicPath: '/js/', - jsonpFunction: 'webpackJsonpOCADeck' + jsonpFunction: 'webpackJsonpOCADeck', + chunkFilename: '[name].js?v=[contenthash]', }, module: { rules: [ From 4cc630e808c05348afa1b438e8e799df739dbaed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 12 Jun 2020 22:06:48 +0200 Subject: [PATCH 2/3] Fix autosave on blur/card change and trigger easymde rerendering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/card/CardSidebar.vue | 31 ++++++++++++++++++----------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 0dcaec879..0f0a65900 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -152,10 +152,12 @@ @click="clickedPreview" v-html="renderedDescription" /> + @input="updateDescription" + @blur="saveDescription" /> { - if (!Object.prototype.hasOwnProperty.call(this.copiedCard, 'descriptionLastEdit') || this.descriptionSaving) { - return - } - this.descriptionSaving = true - await this.$store.dispatch('updateCardDesc', this.copiedCard) - delete this.copiedCard.descriptionLastEdit - this.descriptionSaving = false + await this.saveDescription() }, 2500) - }, closeSidebar() { From cdc98a4849574aaa550236ff4c88b8aee3ebda62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 12 Jun 2020 22:10:52 +0200 Subject: [PATCH 3/3] Fix edit toggle button jump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/card/CardSidebar.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 0f0a65900..32b74b5cc 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -132,11 +132,6 @@ href="https://deck.readthedocs.io/en/latest/Markdown/" target="_blank" class="icon icon-info" /> - - - {{ t('deck', 'Add Attachment') }} - - {{ t('deck', 'Edit description') }} @@ -145,6 +140,11 @@ {{ t('deck', 'View description') }} + + + {{ t('deck', 'Add Attachment') }} + +