summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-attendedsysupgrade/root/www
AgeCommit message (Collapse)Author
2020-05-27luci-app-attendedsysupgrade: Send target to serverPaul Spooren
Currently the running devices `board_name` is mapped to it's building `profile` name. In case of inconsistent `board_names` like the x86/64 target, it is hard to create a mapping that translates `lenovo-20q1s02m00` to x86/64 and the generic profile. To handle such cases, send the `target` per default. Also `model` is no longer needed as no heuristics are applied anymore to find the relation between model and profile. Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-03-05luci-app-attendedsysupgrade: use new ASU APIPaul Spooren
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>
2019-03-18luci-app-attendedsysupgrade: add 409 error codePaul Spooren
HTTP Error code is send by the upgrade server in case of package conflicts, like when requesting to install both `odhcpd` and `odhcpd-ipv6only`. Also put a <p> around download links to make them look more appealing. Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-03-18luci-app-attendedsysupgrade: refactor and formatPaul Spooren
* Reuse `request_dict` between requests. * used vim Autoformat plugin to make the javascript code nice. * add board_name as it eventually replaces board/model in requests Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-02-20luci-app-attendedsysupgrade: update to new apiPaul Spooren
there was a major rewrite of the database structure Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-02-03luci-app-attendedsysupgrade: fixup server urlPaul Spooren
server does not send full download url but only path fixup error_box Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-01-25luci-app-attendedsysupgrade: new api, unify statusPaul Spooren
to distinguish between installed packages and requested packages, the API call is now "installed" instead of "packages". Also unify "info_box" and "error_box" to "status_box" Signed-off-by: Paul Spooren <mail@aparcar.org>
2018-10-28Add missing variable declarations in JavaScript codeStefan Weil
This fixes errors reported by LGTM. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-10-12treewide: Fix typos in UI stringsyangfl
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-03-16luci-app-attendedsysupgrade: fixup missing packagePaul Spooren
Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
2018-03-07luci-app-attendedsysupgrade: reload rpcd fix #1668Paul Spooren
when installing the luci app and opening it for the first time the webinterface shows an error as some freshly installed rpcd calls are not yet available. The reload fixes the problem. luci-app-attendedsysupgrade: downloadable image the creted sysupgrade image can now easily be downloaded via web interface. also fixed some </br> to <br /> Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
2018-03-06luci-app-attendedsysupgrade: show unknown packagePaul Spooren
Reads the header X-Unknown-Package offered by the sysupgrade server and shows it in the error message. Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
2017-12-27luci-app-attendedsysupgrade: remove outdated checksPaul Spooren
the upgrade server used to store a md5 checksum and the image filesize, due to complexity this was removed. Instead a sha256sums file is created by the IB with additional signature. The firmware filesize can be retrived by requesting Content-Length data.sysupgrade_url. As the deeper layers (rpcd) currently do not offer an easy way to to perform a sha256sum check & verify a usign sig these features will be re-added once supported. Until then the security of the sysupgrades depend on TLS and so the luci-app is meant as a demonstration only. Signed-off-by: Paul Spooren <paul@spooren.de>
2017-12-27luci-app-attendedsysupgrade: separate js from htmlPaul Spooren
also use hide(), show() and $() like jquery Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>