luci-app-attendedsysupgrade: support revision checks
authorPaul Spooren <mail@aparcar.org>
Sun, 29 Aug 2021 10:37:31 +0000 (00:37 -1000)
committerPaul Spooren <mail@aparcar.org>
Mon, 30 Aug 2021 20:20:12 +0000 (10:20 -1000)
commitf799d550b6389baee5b388eefe638ba9a690f4c5
tree220782d61b4357b50d4e8b94a0abef3b6e234381
parentab2f8b8b04d7a9b048e2c2bf92d7eb043d2d27b1
luci-app-attendedsysupgrade: support revision checks

SNAPSHOTS are not real releases and therefore the app always offers an
upgrade, even if running the latest build. To prevent that all SNAPSHOTS
now check for the running revision and if a newer one is available.

Also do a bunch of refactoring based on JavaScript I learned over the
last week.

Signed-off-by: Paul Spooren <mail@aparcar.org>
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js