Message ID | 20240724222709.6417-1-jakob.kirsch@web.de |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BE7CB27BBEA; Wed, 24 Jul 2024 23:28:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1889A27BBE2 for <patchwork@mira.cbaines.net>; Wed, 24 Jul 2024 23:28:11 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1sWkSk-0003s9-8x; Wed, 24 Jul 2024 18:27:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1sWkSi-0003om-Ha for guix-patches@gnu.org; Wed, 24 Jul 2024 18:27:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1sWkSi-00052e-9L for guix-patches@gnu.org; Wed, 24 Jul 2024 18:27:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1sWkSo-0007uv-C7 for guix-patches@gnu.org; Wed, 24 Jul 2024 18:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72281] [PATCH] Guix Packager: add copy feature for fetch command Resent-From: Jakob Kirsch <jakob.kirsch@web.de> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 24 Jul 2024 22:28:02 +0000 Resent-Message-ID: <handler.72281.B.172186008030423@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72281 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72281@debbugs.gnu.org Cc: Jakob Kirsch <jakob.kirsch@web.de> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172186008030423 (code B ref -1); Wed, 24 Jul 2024 22:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jul 2024 22:28:00 +0000 Received: from localhost ([127.0.0.1]:34661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1sWkSm-0007ud-Hj for submit@debbugs.gnu.org; Wed, 24 Jul 2024 18:28:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:58746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jakob.kirsch@web.de>) id 1sWkSk-0007uS-5L for submit@debbugs.gnu.org; Wed, 24 Jul 2024 18:27:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jakob.kirsch@web.de>) id 1sWkSd-0003jX-GM for guix-patches@gnu.org; Wed, 24 Jul 2024 18:27:51 -0400 Received: from mout.web.de ([212.227.15.4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jakob.kirsch@web.de>) id 1sWkSb-00051g-I4 for guix-patches@gnu.org; Wed, 24 Jul 2024 18:27:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1721860062; x=1722464862; i=jakob.kirsch@web.de; bh=tz6WNSvo/Yadx2hjShJDRBT/1IU9M9Q7Yr8s0r+R4GU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:Message-ID: MIME-Version:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=BH/bNDqq997eigf+XJFqiJofqYlHnpek7jNZreojtP+OYfqKHAy+XCq/KvHZV//I HTPpVXcALkKjWKg/++C+8nEyAo83yyq6WIkuZcV/6xant/z9wbmaXL8ycQMIiS9qa IjMWzmynOKCmNO9sRCCSRVKmdNCizXVzMfYYvvczWsXw8LZ3pKNmIvLRWcpLcW9l1 4FeDPa2OrDEa83EBODK8hGQw3XUZktwTqmv3BLODslDy4L+FPeVbibafPvILjKPmp ZHO9mE63X22Ksn3Gm9Os6/V9UF5YXn/NPYFZKvtlTl2+mOhzHCx3yd3qLZZe8NRJt c7swTKFUQAvjT4Hm5w== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from kernelpanicroom.fritz.box ([134.19.55.247]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MRF3I-1stkx00Xqu-00J2QH; Thu, 25 Jul 2024 00:27:42 +0200 Date: Thu, 25 Jul 2024 00:26:23 +0200 Message-ID: <20240724222709.6417-1-jakob.kirsch@web.de> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:2VeLJiQ0xiDPQSdwbjY/3Mq/LFtUrSpSofYUTACYB7J3AlQBpxu zWzAWPL/yofHSUOYlJrlV/mLFCHo792V/YE/70ejAw8nBrkTl8eePlUuliFHCEoPdKUkBwt qmefTgFDHCyiZFoq41lyHMK4gbgtIb6dZR7s8gS9PcnTrwkU8PctZOy6ZKsfl7T9050/lix GzqdDutupFoENWVzaCdAA== UI-OutboundReport: notjunk:1;M01:P0:2tek43p1Pjs=;qzzNb7KAJW4r1QfyemeDTdTzuNu dRf6nEV9ifU2xOZXsTrZZlYZSMdPT1GvUIMuJOvzYK6eZCHF3vlis2lnUu1u67/cxGzKsS1Ju nUkOOFpdEgvanEgC8rMLA8DxVVMh4oN6Dngt3z5qnZ8497NCC5EsZQJcjIoUVtfukt3CSwUam EXCTP/o1d3yE+BUqjlmdl8CQ9APqd3lhZm9xNqPLEqraxqBMqYLxMSWBjIbN5yhuMo3j3crYg MEwP15Cpg424zw/zFV0aIOXEomTjuxiW7z1UYOP0Vosd3KQW5BUgImcaQMM1oDGpMfpAHifA4 q7dMWNQkzAinkbDPbr38koJWeiC3msIaFZiDExdPAphnGPkXzDKZ/gXjVzdI50QRTJtvhXWNm hpp1r7pCx1ZI8CPpTdfrNqPpWaGZIKdxnMhkPTvpfilcP+f8zLeQi10+e+6cDDQaZK7Dzu0j/ rgiL9sfddx2R8VV//kYDFJMK5f/2cKbg/AIPKp2i+5gLalkvcGwNWVJKI8Nsw8b35jPM2GvTg HgcaV7GF0C60cmTuZiumpa9R9mDZsh3TLRPoKuqlyma5ylIXCyApEAEoxsdAzXeA76aCS8eZ8 7sda7OolqCSea1bvbD2A5D9Dy7oa9Y0SrEsI3TokS3xkLK4lPEVUFPp0QV0bdiPCG9yf8f6ld uROVHVjz+QpXmUP+f0APV+7LCDL4X/6W677Ie3N4UZIKC/WzuWJQW0JBIc7F5R8QsMcvqAOQS FHQ8Foe6HISjHZRTPlPxRY+F2/4MMu/vZM+fKc+ToZWzq9rU87o76RMiQkQeMeQiR5iPU82XC 4mWydE/uwoEdMWqUlCn36BDw== Received-SPF: pass client-ip=212.227.15.4; envelope-from=jakob.kirsch@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Reply-to: Jakob Kirsch <jakob.kirsch@web.de> X-ACL-Warn: , Jakob Kirsch via Guix-patches <guix-patches@gnu.org> From: Jakob Kirsch via Guix-patches via <guix-patches@gnu.org> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#72281] Guix Packager: add copy feature for fetch command
|
|
Commit Message
Jakob Kirsch
July 24, 2024, 10:26 p.m. UTC
--- src/components/inputs/SourceInput.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.45.2
Comments
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’.
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’.
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)}