From 72ca1f4b485d5636366efc696e9749db30c96f16 Mon Sep 17 00:00:00 2001 From: Weidi Deng Date: Fri, 11 Dec 2020 10:41:07 +0800 Subject: [PATCH] allow download multiple shares --- frontend/src/css/_share.css | 8 +++- frontend/src/i18n/en.json | 3 +- frontend/src/i18n/zh-cn.json | 3 +- frontend/src/views/Share.vue | 81 +++++++++++++++++++++++++++++++++--- http/http.go | 1 + http/public.go | 9 ++++ 6 files changed, 96 insertions(+), 9 deletions(-) diff --git a/frontend/src/css/_share.css b/frontend/src/css/_share.css index 9e1b3528..a9c4e624 100644 --- a/frontend/src/css/_share.css +++ b/frontend/src/css/_share.css @@ -49,11 +49,17 @@ } .share__box__items #listing.list .item { - cursor: auto; + cursor: pointer; border-left: 0; border-right: 0; border-bottom: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); + -webkit-user-select:none; + -khtml-user-select:none; + -moz-user-select:none; + -ms-user-select:none; + -o-user-select:none; + user-select:none; } .share__box__items #listing.list .item .name { diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index a925c0c4..96d3ad8b 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -245,6 +245,7 @@ }, "download": { "downloadFile": "Download File", - "downloadFolder": "Download Folder" + "downloadFolder": "Download Folder", + "downloadSelected": "Download Selected" } } diff --git a/frontend/src/i18n/zh-cn.json b/frontend/src/i18n/zh-cn.json index 67564253..6c323786 100644 --- a/frontend/src/i18n/zh-cn.json +++ b/frontend/src/i18n/zh-cn.json @@ -242,6 +242,7 @@ }, "download": { "downloadFile": "下载文件", - "downloadFolder": "下载文件夹" + "downloadFolder": "下载文件夹", + "downloadSelected": "下载已选" } } \ No newline at end of file diff --git a/frontend/src/views/Share.vue b/frontend/src/views/Share.vue index 53dc681b..cb1240b1 100644 --- a/frontend/src/views/Share.vue +++ b/frontend/src/views/Share.vue @@ -13,7 +13,7 @@