From f1450f10afdb80c9b3e89c9ab78d05e2bb66498e Mon Sep 17 00:00:00 2001 From: Nosaraei Date: Thu, 9 Feb 2023 03:11:49 +0330 Subject: [PATCH 1/3] Add unmount button for buckets --- backend/channel/BucketsChannel.js | 7 +++++++ src/sections/BucketsList/BucketsList.js | 28 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/backend/channel/BucketsChannel.js b/backend/channel/BucketsChannel.js index 3d47354..db15731 100644 --- a/backend/channel/BucketsChannel.js +++ b/backend/channel/BucketsChannel.js @@ -544,6 +544,13 @@ storage_class = STANDARD`; }); } + + async unMountBucket(){ + + if(GlobalData.RClone){ + GlobalData.RClone.kill(); + } + } } const instance = new BucketsChannel(); diff --git a/src/sections/BucketsList/BucketsList.js b/src/sections/BucketsList/BucketsList.js index c829de1..efcb72a 100644 --- a/src/sections/BucketsList/BucketsList.js +++ b/src/sections/BucketsList/BucketsList.js @@ -281,6 +281,28 @@ const BucketsList = () => { }; + const handleUnMountBucket = async (params) => { + + try{ + + await window.channel("Buckets@unMountBucket"); + + layout.notify(params.row.Name + " unmounted successfully", { + severity: "success" + }); + + } + catch (e) { + + console.log(e); + + layout.notify("Error in bucket unmount", { + severity: "error" + }); + } + + }; + function getCreationDateAttribute(params) { return moment(params.value).locale('en').format('DD MMMM YYYY - HH:mm'); @@ -350,6 +372,12 @@ const BucketsList = () => { Mount as drive + + + + + Unmount bucket + From 9239c8fdcf20dafcb8b46026083b7d10d5ce2f5f Mon Sep 17 00:00:00 2001 From: Nosaraei Date: Thu, 9 Feb 2023 03:37:07 +0330 Subject: [PATCH 2/3] Change position of search box in object lists --- src/sections/ObjectsList/ObjectsList.js | 58 +++++++++++++------------ 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/src/sections/ObjectsList/ObjectsList.js b/src/sections/ObjectsList/ObjectsList.js index a93d051..643144f 100644 --- a/src/sections/ObjectsList/ObjectsList.js +++ b/src/sections/ObjectsList/ObjectsList.js @@ -457,34 +457,10 @@ const ObjectsList = () => { Bucket {mountedBucket} - - - - - - Download objects - - - - - - Access public read - - - - - - Remove public read access - - - - - - Delete objects - - +
{ onChange={(e) => setSearchKey(e.target.value)} />
+ + + + + + + Download objects + + + + + + Access public read + + + + + + Remove public read access + + + + + + Delete objects + + + + - Date: Fri, 10 Feb 2023 16:15:17 +0330 Subject: [PATCH 3/3] Change window dimensions and main title --- backend/view/loading.html | 2 +- main.js | 14 ++++++++++---- package.json | 4 ++-- public/index.html | 2 +- src/App.js | 4 ++-- src/index.css | 2 +- src/sections/ProfilesList/ProfilesList.js | 2 +- 7 files changed, 18 insertions(+), 12 deletions(-) diff --git a/backend/view/loading.html b/backend/view/loading.html index 055639d..d9b43c4 100644 --- a/backend/view/loading.html +++ b/backend/view/loading.html @@ -2,7 +2,7 @@ - Loading Arvan S3 Application + Loading Arvan Cloud S3 Application