From 58cbd07e1b92159e2cc1eaa3130d327f43bf8133 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2019 10:17:55 +0000 Subject: [PATCH 1/4] build(deps): bump styleguide from `808b3c5` to `d46fc15` Bumps [styleguide](https://github.com/Human-Connection/Nitro-Styleguide) from `808b3c5` to `d46fc15`. - [Release notes](https://github.com/Human-Connection/Nitro-Styleguide/releases) - [Commits](https://github.com/Human-Connection/Nitro-Styleguide/compare/808b3c5a9523505cb80b20b50348d29ba9932845...d46fc1570c6bcea328ae4cc3a4892745edea7319) Signed-off-by: dependabot-preview[bot] --- styleguide | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styleguide b/styleguide index 808b3c5a9..d46fc1570 160000 --- a/styleguide +++ b/styleguide @@ -1 +1 @@ -Subproject commit 808b3c5a9523505cb80b20b50348d29ba9932845 +Subproject commit d46fc1570c6bcea328ae4cc3a4892745edea7319 From 8d5e0b0e2c20f4ec0052e29b97235ac85c775cdd Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2019 10:18:30 +0000 Subject: [PATCH 2/4] build(deps): bump date-fns from 2.4.1 to 2.5.0 in /backend Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.4.1 to 2.5.0. - [Release notes](https://github.com/date-fns/date-fns/releases) - [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md) - [Commits](https://github.com/date-fns/date-fns/compare/v2.4.1...v2.5.0) Signed-off-by: dependabot-preview[bot] --- backend/package.json | 2 +- backend/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/package.json b/backend/package.json index ea65785d6..64cfcbfe5 100644 --- a/backend/package.json +++ b/backend/package.json @@ -54,7 +54,7 @@ "cheerio": "~1.0.0-rc.3", "cors": "~2.8.5", "cross-env": "~6.0.3", - "date-fns": "2.4.1", + "date-fns": "2.5.0", "debug": "~4.1.1", "dotenv": "~8.2.0", "express": "^4.17.1", diff --git a/backend/yarn.lock b/backend/yarn.lock index ab8c0d88a..b29318b5a 100644 --- a/backend/yarn.lock +++ b/backend/yarn.lock @@ -2782,10 +2782,10 @@ data-urls@^1.0.0: whatwg-mimetype "^2.2.0" whatwg-url "^7.0.0" -date-fns@2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.4.1.tgz#b53f9bb65ae6bd9239437035710e01cf383b625e" - integrity sha512-2RhmH/sjDSCYW2F3ZQxOUx/I7PvzXpi89aQL2d3OAxSTwLx6NilATeUbe0menFE3Lu5lFkOFci36ivimwYHHxw== +date-fns@2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.5.0.tgz#b939f17c2902ce81cffe449702ba22c0781b38ec" + integrity sha512-I6Tkis01//nRcmvMQw/MRE1HAtcuA5Ie6jGPb8bJZJub7494LGOObqkV3ParnsSVviAjk5C8mNKDqYVBzCopWg== debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: version "2.6.9" From a815d92eb26c69b9d8594b49ff5e3418f5ac6c95 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2019 10:19:18 +0000 Subject: [PATCH 3/4] build(deps): bump date-fns from 2.4.1 to 2.5.0 in /webapp Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.4.1 to 2.5.0. - [Release notes](https://github.com/date-fns/date-fns/releases) - [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md) - [Commits](https://github.com/date-fns/date-fns/compare/v2.4.1...v2.5.0) Signed-off-by: dependabot-preview[bot] --- webapp/package.json | 2 +- webapp/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/webapp/package.json b/webapp/package.json index 7c892f181..19848882a 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -65,7 +65,7 @@ "cookie-universal-nuxt": "~2.0.18", "cropperjs": "^1.5.5", "cross-env": "~6.0.3", - "date-fns": "2.4.1", + "date-fns": "2.5.0", "express": "~4.17.1", "graphql": "~14.5.8", "isemail": "^3.2.0", diff --git a/webapp/yarn.lock b/webapp/yarn.lock index 23aae565b..567620dda 100644 --- a/webapp/yarn.lock +++ b/webapp/yarn.lock @@ -6053,10 +6053,10 @@ data-urls@^1.0.0: whatwg-mimetype "^2.2.0" whatwg-url "^7.0.0" -date-fns@2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.4.1.tgz#b53f9bb65ae6bd9239437035710e01cf383b625e" - integrity sha512-2RhmH/sjDSCYW2F3ZQxOUx/I7PvzXpi89aQL2d3OAxSTwLx6NilATeUbe0menFE3Lu5lFkOFci36ivimwYHHxw== +date-fns@2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.5.0.tgz#b939f17c2902ce81cffe449702ba22c0781b38ec" + integrity sha512-I6Tkis01//nRcmvMQw/MRE1HAtcuA5Ie6jGPb8bJZJub7494LGOObqkV3ParnsSVviAjk5C8mNKDqYVBzCopWg== date-fns@^1.27.2: version "1.30.1" From d62ee23f2af3336978c4c561a0cd91851d789e1c Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Wed, 16 Oct 2019 17:20:35 +0200 Subject: [PATCH 4/4] Create new File with blob - maintain filename - reduce image size --- webapp/components/TeaserImage/TeaserImage.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp/components/TeaserImage/TeaserImage.vue b/webapp/components/TeaserImage/TeaserImage.vue index d5b618c03..dc096710d 100644 --- a/webapp/components/TeaserImage/TeaserImage.vue +++ b/webapp/components/TeaserImage/TeaserImage.vue @@ -100,8 +100,9 @@ export default { thumbnailElement.appendChild(image) // Remove the editor from view editor.parentNode.removeChild(editor) - this.$emit('addTeaserImage', blob) - }) + const croppedImageFile = new File([blob], file.name, { type: 'image/jpeg' }) + this.$emit('addTeaserImage', croppedImageFile) + }, 'image/jpeg') }) editor.appendChild(confirm)