Skip to contentSkip to conversation

support/scripts/pkg-stats: migrate to CSS grid and inline javascript

PATCH Superseded Sen Hastings 1 participant 1 message Jul 21, 2022

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 support/scripts/pkg-stats: migrate to CSS grid and inline javascript

This migrates pkg-stats.html from html tables to CSS grid, allowing the use of newer, simpler javascript that is short enough to be inlined, instead of relying on externally hosted javascript.

Javascript sorting function was rewritten from scratch in ~60 lines, short enough to be inlined directly in the html.

Tables were redone in CSS grid, but with care taken to mimic existing "look and feel" of prevous implementation, albeit with slightly better responsive behavior and default styling characteristics.

Column labels are now "sticky" and stay stuck to the top of the viewport as you scroll down the page.

Also, css was rewritten in fewer lines and table elements were changed to divs (for grid support).

Other small misc fixes include quoted hrefs and document language declarations to make the w3c html validator happy.

---
v1->v2:
* added new entry in DEVELOPERS as part of same commit
* sent patch with UTF-8 instead of base64 transfer encoding

---
 DEVELOPERS                |   3 +
 support/scripts/pkg-stats | 409 +++++++++++++++++++++-----------------
 2 files changed, 230 insertions(+), 182 deletions(-)
DEVELOPERS +3 -0
index 5c3c24ff7a..0246f80713 100644
@@ -2565,6 +2565,9 @@ F:	package/libbson/
 F:	package/lua-resty-http/
 F:	package/mpir/
 
+N:	Sen Hastings <[email protected]>
+F:	support/scripts/pkg-stats
+
 N:	Sergey Bobrenok <[email protected]>
 F:	package/sdbus-cpp/
 
support/scripts/pkg-stats +227 -182

555 lines not on this page · raw message

Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot