unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#72281] [PATCH] Guix Packager: add copy feature for fetch command
@ 2024-07-24 22:26 Jakob Kirsch via Guix-patches via
  2024-08-19 12:53 ` bug#72281: " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Jakob Kirsch via Guix-patches via @ 2024-07-24 22:26 UTC (permalink / raw)
  To: 72281; +Cc: Jakob Kirsch

---
 src/components/inputs/SourceInput.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/components/inputs/SourceInput.tsx b/src/components/inputs/SourceInput.tsx
index aa1b714..2f67425 100644
--- a/src/components/inputs/SourceInput.tsx
+++ b/src/components/inputs/SourceInput.tsx
@@ -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)}
--
2.45.2





^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-26  6:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-24 22:26 [bug#72281] [PATCH] Guix Packager: add copy feature for fetch command Jakob Kirsch via Guix-patches via
2024-08-19 12:53 ` bug#72281: " Ludovic Courtès
2024-08-26  6:52   ` [bug#72281] " Philippe Virouleau

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).