From 7d8c7f300978e489e28da3759c11c7cedb1fa1b5 Mon Sep 17 00:00:00 2001 From: leebj Date: Wed, 2 Oct 2024 15:16:44 +0900 Subject: [PATCH] =?UTF-8?q?sneat=ED=94=84=EB=A0=88=EC=9E=84=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95(Dropzone?= =?UTF-8?q?=EC=9D=98=20uploadFiles=EB=A9=94=EC=86=8C=EB=93=9C=20=EC=98=A4?= =?UTF-8?q?=EB=B2=84=EB=9D=BC=EC=9D=B4=EB=94=A9=20=EC=A0=9C=EA=B1=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/resources/3rd-party/sneat/libs/dropzone/dropzone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/resources/3rd-party/sneat/libs/dropzone/dropzone.js b/src/main/webapp/resources/3rd-party/sneat/libs/dropzone/dropzone.js index cd71649..77683e3 100644 --- a/src/main/webapp/resources/3rd-party/sneat/libs/dropzone/dropzone.js +++ b/src/main/webapp/resources/3rd-party/sneat/libs/dropzone/dropzone.js @@ -26,7 +26,7 @@ return /******/ (function() { // webpackBootstrap /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "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?"); /***/ }),