From 0965a56204a07f584d0aab8e210bc2dc87b32465 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 20 Nov 2023 16:19:23 -0800 Subject: [PATCH] Download progress bar --- frontend/src/components/DownloadButton.vue | 171 +++++++++++++++++++++ frontend/src/components/HeaderSelected.vue | 92 +---------- frontend/src/components/TransferBar.vue | 87 +++++++++++ frontend/src/components/UploadButton.vue | 69 +-------- 4 files changed, 263 insertions(+), 156 deletions(-) create mode 100644 frontend/src/components/DownloadButton.vue create mode 100644 frontend/src/components/TransferBar.vue diff --git a/frontend/src/components/DownloadButton.vue b/frontend/src/components/DownloadButton.vue new file mode 100644 index 0000000..f3d5565 --- /dev/null +++ b/frontend/src/components/DownloadButton.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/frontend/src/components/HeaderSelected.vue b/frontend/src/components/HeaderSelected.vue index 998c71d..acab35b 100644 --- a/frontend/src/components/HeaderSelected.vue +++ b/frontend/src/components/HeaderSelected.vue @@ -2,7 +2,7 @@ -
-
- - [{{ uprogress.fileidx }}/{{ uprogress.filecount }}] - - {{ uprogress.filename.split('/').pop() }} - - {{ (uprogress.filepos / uprogress.filesize * 100).toFixed(0) + '\u202F%' }} - - - - {{ (uprogress.uploaded / 1e6).toFixed(0) + '\u202F/\u202F' + (uprogress.total / 1e6).toFixed(0) + '\u202FMB' }} - - {{ speeddisp }} - -
-
+ - - -@/stores/main