emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#72281: closed ([PATCH] Guix Packager: add copy feature for fetch com


From: GNU bug Tracking System
Subject: bug#72281: closed ([PATCH] Guix Packager: add copy feature for fetch command)
Date: Mon, 19 Aug 2024 12:55:02 +0000

Your message dated Mon, 19 Aug 2024 14:53:43 +0200
with message-id <87r0akvfl4.fsf@gnu.org>
and subject line Re: [bug#72281] [PATCH] Guix Packager: add copy feature for 
fetch command
has caused the debbugs.gnu.org bug report #72281,
regarding [PATCH] Guix Packager: add copy feature for fetch command
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
72281: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72281
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] Guix Packager: add copy feature for fetch command Date: Thu, 25 Jul 2024 00:26:23 +0200
---
 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




--- End Message ---
--- Begin Message --- Subject: Re: [bug#72281] [PATCH] Guix Packager: add copy feature for fetch command Date: Mon, 19 Aug 2024 14:53:43 +0200 User-agent: Gnus/5.13 (Gnus v5.13)
Hello,

(Cc: Philippe, the author of Guix Packager.)

Jakob Kirsch <jakob.kirsch@web.de> skribis:

> ---
>  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):

I took the liberty to apply this patch and it’s now deployed:

  https://guix-hpc.gitlabpages.inria.fr/guix-packager/

Philippe, lemme know if anything needs to be tweaked.  :-)

Thanks for your contribution!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]