diff --git a/assets/index.css b/assets/index.css index ab0e96c..7f5764b 100644 --- a/assets/index.css +++ b/assets/index.css @@ -149,7 +149,7 @@ body { } .path svg { - height: 100%; + height: 16px; fill: rgba(3,47,98,0.5); padding-right: 0.5em; vertical-align: text-top; diff --git a/assets/index.js b/assets/index.js index 22349ef..77d422d 100644 --- a/assets/index.js +++ b/assets/index.js @@ -32,31 +32,17 @@ let $emptyFolder; class Uploader { /** - * @type number + * + * @param {File} file + * @param {string[]} dirs */ - idx; - /** - * @type File - */ - file; - /** - * @type string - */ - name; - /** - * @type Element - */ - $uploadStatus; - /** - * @type number - */ - uploaded = 0; - /** - * @type number - */ - lastUptime = 0; - static globalIdx = 0; constructor(file, dirs) { + /** + * @type Element + */ + this.$uploadStatus = null + this.uploaded = 0; + this.lastUptime = 0; this.name = [...dirs, file.name].join("/"); this.idx = Uploader.globalIdx++; this.file = file; @@ -70,7 +56,7 @@ class Uploader { $uploadersTable.insertAdjacentHTML("beforeend", `