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

* bug#72281: [PATCH] Guix Packager: add copy feature for fetch command
  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 ` Ludovic Courtès
  2024-08-26  6:52   ` [bug#72281] " Philippe Virouleau
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2024-08-19 12:53 UTC (permalink / raw)
  To: Jakob Kirsch; +Cc: 72281-done, Philippe Virouleau

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’.




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

* [bug#72281] [PATCH] Guix Packager: add copy feature for fetch command
  2024-08-19 12:53 ` bug#72281: " Ludovic Courtès
@ 2024-08-26  6:52   ` Philippe Virouleau
  0 siblings, 0 replies; 3+ messages in thread
From: Philippe Virouleau @ 2024-08-26  6:52 UTC (permalink / raw)
  To: Ludovic Courtès, Jakob Kirsch; +Cc: 72281-done

Hi Ludo and Jakob,

Thanks a lot, that looks great to me :)

Regards,
Philippe

On 8/19/24 14:53, Ludovic Courtès wrote:
> 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’.




^ permalink raw reply	[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).