mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
Disabled the EXIF library for Dropzone for fixing the orientation as it was getting applied twice (fixes #1923)
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.10.0-rc.15
|
||||
## mm/dd/2020
|
||||
|
||||
1. [](#bugfix)
|
||||
* Disabled the EXIF library for Dropzone for fixing the orientation as it was getting applied twice [#1923](https://github.com/getgrav/grav-plugin-admin/issues/1923)
|
||||
|
||||
# v1.10.0-rc.14
|
||||
## 07/09/2020
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import $ from 'jquery';
|
||||
import Dropzone from 'dropzone';
|
||||
import EXIF from 'exif-js';
|
||||
// import EXIF from 'exif-js';
|
||||
import request from '../../utils/request';
|
||||
import { config, translations } from 'grav-config';
|
||||
|
||||
@@ -71,7 +71,7 @@ const DropzoneMediaConfig = {
|
||||
</div>`.trim()
|
||||
};
|
||||
|
||||
global.EXIF = EXIF;
|
||||
// global.EXIF = EXIF;
|
||||
|
||||
const ACCEPT_FUNC = function(file, done, settings) {
|
||||
const resolution = settings.resolution;
|
||||
|
||||
@@ -141,7 +141,7 @@ export default class PageMedia extends FilesField {
|
||||
let URL = target.closest('[data-media-path]').data('media-path');
|
||||
let original = this.dropzone.files.filter((file) => encodeURIComponent(file.name) === filename).shift();
|
||||
|
||||
original = original.extras.original || encodeURIComponent(original.name);
|
||||
original = original && ((original.extras && original.extras.original) || encodeURIComponent(original.name));
|
||||
|
||||
target.attr('href', `${URL}/${original}`);
|
||||
});
|
||||
|
||||
36
themes/grav/js/admin.min.js
vendored
36
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
2
themes/grav/js/vendor.min.js
vendored
2
themes/grav/js/vendor.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -19,7 +19,7 @@
|
||||
"codemirror": "^5.51.0",
|
||||
"cookies-js": "^1.2.3",
|
||||
"debounce": "^1.2.0",
|
||||
"dropzone": "^5.5.1",
|
||||
"dropzone": "^5.7.1",
|
||||
"es6-map": "^0.1.5",
|
||||
"es6-promise": "^4.2.8",
|
||||
"eventemitter3": "^4.0.0",
|
||||
|
||||
@@ -1973,10 +1973,10 @@ dot-prop@^5.2.0:
|
||||
dependencies:
|
||||
is-obj "^2.0.0"
|
||||
|
||||
dropzone@^5.5.1:
|
||||
version "5.7.0"
|
||||
resolved "https://registry.yarnpkg.com/dropzone/-/dropzone-5.7.0.tgz#8d1007f3ebcc6e6d64096823f854d898f7564ef2"
|
||||
integrity sha512-kOltiZXH5cO/72I22JjE+w6BoT6uaVLfWdFMsi1PMKFkU6BZWpqRwjnsRm0o6ANGTBuZar5Piu7m/CbKqRPiYg==
|
||||
dropzone@^5.7.1:
|
||||
version "5.7.1"
|
||||
resolved "https://registry.yarnpkg.com/dropzone/-/dropzone-5.7.1.tgz#8e41a85879ff145562e8fcce39c6ff619dce81be"
|
||||
integrity sha512-eqcJafupMKRlVUihZtsLkzLn02WTPUMHeImP5ZtWm3ERObC/dv15te0qqn/X2rEKaSqRC0pNTHUBPgrPWcP52w==
|
||||
|
||||
duplexer2@0.0.2:
|
||||
version "0.0.2"
|
||||
|
||||
Reference in New Issue
Block a user