sneat프레임워크 오류 수정(Dropzone의 uploadFiles메소드 오버라이딩 제거)

master
이범준 1 month ago
parent 8420670612
commit 7d8c7f3009

@ -26,7 +26,7 @@ return /******/ (function() { // webpackBootstrap
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Dropzone: function() { return /* reexport default from dynamic */ dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0___default.a; }\n/* harmony export */ });\n/* harmony import */ var dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dropzone/dist/dropzone */ \"./node_modules/dropzone/dist/dropzone.js\");\n/* harmony import */ var dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0__);\n\n(dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0___default().autoDiscover) = false;\n\n// File upload progress animation\n(dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0___default().prototype).uploadFiles = function (files) {\n var minSteps = 6;\n var maxSteps = 60;\n var timeBetweenSteps = 100;\n var bytesPerStep = 100000;\n var isUploadSuccess = true;\n var self = this;\n for (var i = 0; i < files.length; i++) {\n var file = files[i];\n var totalSteps = Math.round(Math.min(maxSteps, Math.max(minSteps, file.size / bytesPerStep)));\n for (var step = 0; step < totalSteps; step++) {\n var duration = timeBetweenSteps * (step + 1);\n setTimeout(function (file, totalSteps, step) {\n return function () {\n file.upload = {\n progress: 100 * (step + 1) / totalSteps,\n total: file.size,\n bytesSent: (step + 1) * file.size / totalSteps\n };\n self.emit('uploadprogress', file, file.upload.progress, file.upload.bytesSent);\n if (file.upload.progress === 100) {\n if (isUploadSuccess) {\n file.status = (dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0___default().SUCCESS);\n self.emit('success', file, 'success', null);\n } else {\n file.status = (dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0___default().ERROR);\n self.emit('error', file, 'Some upload error', null);\n }\n self.emit('complete', file);\n self.processQueue();\n }\n };\n }(file, totalSteps, step), duration);\n }\n }\n};\ntry {\n window.Dropzone = (dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0___default());\n} catch (e) {}\n\n\n//# sourceURL=webpack://Sneat/./libs/dropzone/dropzone.js?"); eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Dropzone: function() { return /* reexport default from dynamic */ dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0___default.a; }\n/* harmony export */ });\n/* harmony import */ var dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dropzone/dist/dropzone */ \"./node_modules/dropzone/dist/dropzone.js\");\n/* harmony import */ var dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0__);\n\n(dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0___default().autoDiscover) = false;\n\n\ntry {\n window.Dropzone = (dropzone_dist_dropzone__WEBPACK_IMPORTED_MODULE_0___default());\n} catch (e) {}\n\n\n//# sourceURL=webpack://Sneat/./libs/dropzone/dropzone.js?");
/***/ }), /***/ }),

Loading…
Cancel
Save