diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-08 10:08:23 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-08 10:08:23 +0200 |
| commit | ad24dcac58eea06f874055665aeed02801fde004 (patch) | |
| tree | 92ddb107de01a23a36000d28fd72248391a3d271 /homepage-services.yaml | |
| download | slackware-changelog-master.tar.gz slackware-changelog-master.zip | |
Homepage's customapi widget speaks JSON and cannot parse text, so the
ChangeLog needs something in front of it. This proxy fetches the file,
keeps only the entry above the first separator, and serves the counts,
the CVE ids, a truncated package list and the entry as a page.
Package lines are matched by starting at column 0 rather than by their
trailing period, since the indented notes below them frequently end in
one too.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0184D3xBAHPcZE9jZ45R5J26
Diffstat (limited to 'homepage-services.yaml')
| -rw-r--r-- | homepage-services.yaml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/homepage-services.yaml b/homepage-services.yaml new file mode 100644 index 0000000..9a2a0de --- /dev/null +++ b/homepage-services.yaml @@ -0,0 +1,60 @@ +# Append to Homepage's services.yaml. +# +# The href points at /entry, the full ChangeLog entry rendered as a page, so +# the card is worth clicking. Refresh is 30 min; the proxy caches upstream for +# CACHE_TTL anyway, so a shorter interval only redraws the widget. +# +# Two cards: a summary, and a package list. The list is truncated to TOP_N +# (8 by default, `?n=` overrides per widget) with a "... and N more" row, +# because customapi renders a fixed set of mapped fields and cannot scroll. +# The full list is one click away on the ChangeLog itself. + +- Slackware: + - ChangeLog current: + icon: slackware.png + href: http://127.0.0.1:8098/entry + description: Ultimo aggiornamento di -current + widget: + type: customapi + url: http://127.0.0.1:8098/latest + refreshInterval: 1800000 + display: list + mappings: + - field: date + label: Data + - field: summary + label: Modifiche + - field: packages + label: Pacchetti + format: number + - field: security + label: Fix di sicurezza + format: number + - Pacchetti aggiornati: + icon: slackware.png + href: https://mirrors.slackware.com/slackware/slackware64-current/ChangeLog.txt + description: Elenco completo sul ChangeLog + widget: + type: customapi + url: http://127.0.0.1:8098/top + refreshInterval: 1800000 + display: list + mappings: + - field: pkg1 + label: "1" + - field: pkg2 + label: "2" + - field: pkg3 + label: "3" + - field: pkg4 + label: "4" + - field: pkg5 + label: "5" + - field: pkg6 + label: "6" + - field: pkg7 + label: "7" + - field: pkg8 + label: "8" + - field: pkg9 + label: "" |
