aboutsummaryrefslogtreecommitdiffstats
path: root/homepage-services.yaml
blob: 9a2a0deca38eab44bbbc3f466bb43547e76812ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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: ""