[ARVADOS-WORKBENCH2] updated: 2.2.1-43-g41a57906
Git user
git at public.arvados.org
Thu Jul 29 15:10:02 UTC 2021
Summary of changes:
.../webdav-s3-dialog/webdav-s3-dialog.tsx | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
via 41a579060898b29e6d50000e6f95c93d97a7a433 (commit)
from e07a6c34953c6546de1c3d13a0bacf031981c356 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 41a579060898b29e6d50000e6f95c93d97a7a433
Author: Stephen Smith <stephen at curii.com>
Date: Thu Jul 29 11:07:14 2021 -0400
17526: Remove redundant user/pass from webdav wget tab and add curl command
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx b/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx
index 7255e756..49283813 100644
--- a/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx
+++ b/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx
@@ -148,6 +148,7 @@ export const WebDavS3InfoDialog = compose(
}
const wgetCommand = `wget --http-user=${props.data.username} --http-passwd=${props.data.token} --mirror --no-parent --no-host --cut-dirs=0 ${winDav.toString()}`;
+ const curlCommand = `curl -O -u ${props.data.username}:${props.data.token} ${winDav.toString()}<FILENAME>`;
return <Dialog
open={props.open}
@@ -270,14 +271,12 @@ export const WebDavS3InfoDialog = compose(
</DetailsAttribute>
<DetailsAttribute
- label='Username'
- value={props.data.username}
- copyValue={props.data.username} />
-
- <DetailsAttribute
- label='Password'
- value={props.data.token}
- copyValue={props.data.token} />
+ label='Curl command'
+ copyValue={curlCommand}
+ classValue={props.classes.detailsAttrValWithCode}>
+ <DefaultCodeSnippet
+ lines={[curlCommand]} />
+ </DetailsAttribute>
</TabPanel>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list