From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3] pkg-stats: allow to sort by column
Date: Thu, 6 Jul 2017 21:54:09 +0200 [thread overview]
Message-ID: <20170706215409.109ed854@windsurf.lan> (raw)
In-Reply-To: <20170706013631.19238-1-ricardo.martincoski@gmail.com>
Hello,
On Wed, 5 Jul 2017 22:36:31 -0300, Ricardo Martincoski wrote:
> With 2000+ packages it's not trivial to identify i.e.:
> - all packages that don't have a hash file;
> - all packages that have patches;
> - all packages that have code style warnings;
>
> User experience can be improved by dynamically sorting the resulting
> table.
>
> There is an open-source solution that does that in the client-side and
> requires minimal changes to our script: sorttable.js.
> The script is MIT licensed as stated in its website.
>
> Include instructions to download the third-party script and adapt our
> script accordingly, following the example in the tool's website.
>
> Also add a hint to the user that the table can be sorted.
> Display the hint when all these conditions are met:
> - the browser has JavaScript support enabled;
> - the sorttable.js script is loaded;
> - the page is loaded.
>
> Usage (static table):
> ./support/scripts/pkg-stats > /tmp/pkg.html
>
> Usage (sortable table):
> ./support/scripts/pkg-stats > /tmp/pkg.html
> wget https://www.kryogenix.org/code/browser/sorttable/sorttable.js \
> -O /tmp/sorttable.js
> Open /tmp/pkg.html using a JavaScript-enabled web browser and click on
> the headers of the table to sort it.
>
> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
> Cc: Arnout Vandecappelle <arnout@mind.be>
I've changed your patch so that the generated HTML directly uses the
online Javascript file, rather than having to download it separately.
Applied with this change, and a few other additional changes to
pkg-stats.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
prev parent reply other threads:[~2017-07-06 19:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-30 21:24 [Buildroot] [RFC PATCH] pkg-stats: allow to sort by column Ricardo Martincoski
2017-07-01 4:35 ` [Buildroot] [RFC PATCH v2] " Ricardo Martincoski
2017-07-01 8:01 ` Arnout Vandecappelle
2017-07-03 0:48 ` Ricardo Martincoski
2017-07-06 1:36 ` [Buildroot] [PATCH v3] " Ricardo Martincoski
2017-07-06 19:54 ` Thomas Petazzoni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170706215409.109ed854@windsurf.lan \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox