From cd454bae51f40b1249e6fa6133c2949970eb3018 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Fri, 19 Jun 2020 04:46:33 -0300 Subject: [PATCH] feat: upload progress based on total size (#993) --- frontend/package-lock.json | 5 ++ frontend/package.json | 1 + frontend/src/components/files/Listing.vue | 67 +++++++++++++++++------ 3 files changed, 55 insertions(+), 18 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 543297d9..eb5f4b61 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -8802,6 +8802,11 @@ "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", "dev": true }, + "lodash.throttle": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", + "integrity": "sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=" + }, "lodash.transform": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/lodash.transform/-/lodash.transform-4.6.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index 93865b95..e99c0643 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -13,6 +13,7 @@ "clipboard": "^2.0.4", "js-base64": "^2.5.1", "lodash.clonedeep": "^4.5.0", + "lodash.throttle": "^4.1.1", "material-design-icons": "^3.0.1", "moment": "^2.24.0", "normalize.css": "^8.0.1", diff --git a/frontend/src/components/files/Listing.vue b/frontend/src/components/files/Listing.vue index ca9b7244..3e4c64c2 100644 --- a/frontend/src/components/files/Listing.vue +++ b/frontend/src/components/files/Listing.vue @@ -89,6 +89,7 @@