luci-app-attendedsysupgrade: use new ASU API
authorPaul Spooren <mail@aparcar.org>
Thu, 5 Mar 2020 08:36:22 +0000 (22:36 -1000)
committerPaul Spooren <mail@aparcar.org>
Thu, 5 Mar 2020 21:35:42 +0000 (11:35 -1000)
commit0c7f3331aff33567e01e0d9c0c63b9a1a16fbe14
tree1b6a32f5485008c16a21f105dcf1c8f263040384
parent00c000b8d431b3ebca0bd7db77df582c8f1e8d87
luci-app-attendedsysupgrade: use new ASU API

The API of ASU changed as it now uses a static `versions` JSON file.
This moves the upgrade validation to the client site and simplifyies the
server code.

Build requests now use the unique `profile` withouth the need of sending
the devices target.

Also some XMLHttpRequests were replaced by the newer `fetch` function.

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