X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/87fff7ceda76e813646e3fe1c2c41bb8ad567143..3e3eaa213219ebcac9b52c8fbe3ec3ef7c39c863:/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx?ds=sidebyside 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 8e82619c..8e9edac1 100644 --- a/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx +++ b/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx @@ -10,8 +10,9 @@ import { WithDialogProps } from 'store/dialog/with-dialog'; import { compose } from 'redux'; import { DetailsAttribute } from "components/details-attribute/details-attribute"; import { DownloadIcon } from "components/icon/icon"; +import { DefaultCodeSnippet } from "components/default-code-snippet/default-code-snippet"; -export type CssRules = 'details' | 'downloadButton'; +export type CssRules = 'details' | 'downloadButton' | 'detailsAttrValWithCode'; const styles: StyleRulesCallback = theme => ({ details: { @@ -20,6 +21,10 @@ const styles: StyleRulesCallback = theme => ({ }, downloadButton: { marginTop: theme.spacing.unit * 2, + }, + detailsAttrValWithCode: { + display: "flex", + alignItems: "center", } }); @@ -135,25 +140,29 @@ export const WebDavS3InfoDialog = compose( tokenSecret = tokenUuid; } - const supportsWebdav = (props.data.uuid.indexOf("-4zz18-") === 5); + const isCollection = (props.data.uuid.indexOf("-4zz18-") === 5); let activeTab = props.data.activeTab; - if (!supportsWebdav) { + if (!isCollection) { activeTab = 2; } + 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()}`; + return + title={`Open with 3rd party client`} />
- {supportsWebdav && } - {supportsWebdav && } + {isCollection && } + {isCollection && } + {isCollection && } @@ -179,12 +188,14 @@ export const WebDavS3InfoDialog = compose(
  • Open File Explorer
  • Click on "This PC", then go to Computer → Add a Network Location
  • Click Next, then choose "Add a custom network location", then click Next
  • +
  • Use the "internet address" and credentials listed under Settings, above
  • MacOS

    1. Open Finder
    2. Click Go → Connect to server
    3. +
    4. Use the "internet address" and credentials listed under Settings, above
    @@ -204,6 +215,8 @@ export const WebDavS3InfoDialog = compose( value={props.data.token} copyValue={props.data.token} /> +

    Cyberduck/Mountain Duck

    +