Mentions légales du service

Skip to content
Snippets Groups Projects
Unverified Commit 63e13d73 authored by Jakob Kirsch's avatar Jakob Kirsch Committed by Ludovic Courtès
Browse files

Add copy feature for fetch command.


Signed-off-by: Ludovic Courtès's avatarLudovic Courtès <ludovic.courtes@inria.fr>
parent ce727852
No related branches found
No related tags found
No related merge requests found
Pipeline #1022177 passed
......@@ -136,9 +136,12 @@ function HashHelp({ method, url, version }: {
method: Method, url: UrlType, version: string
}) {
return (
<div>
<div
onClick={() => {
navigator.clipboard.writeText(getFetchHelp(method, url, version))
}}>
<Typography variant="body2">
You may compute the sha256 by running the following command(s):
You may compute the sha256 by running the following command(s) (click to copy):
</Typography>
<SyntaxHighlighter
text={getFetchHelp(method, url, version)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment