All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Sen Hastings <sen@phobosdpl.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v2 1/2] support/scripts/pkg-stats: move to procedurally generated row/column clases
Date: Sat, 6 Aug 2022 23:51:27 +0200	[thread overview]
Message-ID: <20220806235127.220d5546@windsurf> (raw)
In-Reply-To: <20220805200114.288208-1-sen@phobosdpl.com>

Hello,

On Fri,  5 Aug 2022 15:01:13 -0500
Sen Hastings <sen@phobosdpl.com> wrote:

> Rather than having pre-baked classes in the markup for sorting purposes,
> all the cells in package-grid are iterated over at load time and given
> a row/column class.
> 
> example: https://sen-h.github.io/pkg-stats/b6f4cbddb14233c3ab3fdfea1e486c14871cfb2a.html
> 
> Signed-off-by: Sen Hastings <sen@phobosdpl.com>

I am probably not versed enough into HTML/CSS/JS sorcery, but I don't
understand the benefit of this. Could you explain a bit more?

>  function sortGrid(sortLabel){
>  	let i = 0;
>  	let pkgSortArray = [], sortedPkgArray = [], pkgStringSortArray = [], pkgNumSortArray = [];
> @@ -774,14 +785,11 @@ function sortGrid(sortLabel){
>  	const styleSheet = styleElement.sheet;
>  
>          columnValues.shift();
> -        columnValues.forEach((listing) => {
> +	columnValues.forEach((listing) => {

This is a spurious change.

>          if (fieldText == "see all " + fieldTotal + triangleDown){
> -		field.firstElementChild.innerText = "see less " + fieldTotal + triangleUp;
> +                field.firstElementChild.innerText = "see less " + fieldTotal + triangleUp;

This is also a spurious change.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2022-08-06 21:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-05 20:01 [Buildroot] [PATCH v2 1/2] support/scripts/pkg-stats: move to procedurally generated row/column clases Sen Hastings
2022-08-05 20:01 ` [Buildroot] [PATCH v1 2/2] support/scripts/pkg-stats: optimize CSS selector usage Sen Hastings
2022-08-06 21:55   ` Thomas Petazzoni via buildroot
2022-08-06 21:51 ` Thomas Petazzoni via buildroot [this message]
2022-08-30  6:32   ` [Buildroot] [PATCH v2 1/2] support/scripts/pkg-stats: move to procedurally generated row/column clases Sen Hastings
  -- strict thread matches above, loose matches on Subject: below --
2022-08-08 22:23 Sen Hastings

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=20220806235127.220d5546@windsurf \
    --to=buildroot@buildroot.org \
    --cc=sen@phobosdpl.com \
    --cc=thomas.petazzoni@bootlin.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.