luci-app-dawn: Implement in JavaScript
authorDaniel Vijge <[email protected]>
Thu, 26 Oct 2023 20:58:03 +0000 (22:58 +0200)
committerNick Hainke <[email protected]>
Tue, 31 Oct 2023 08:10:23 +0000 (09:10 +0100)
commit2eb74226a43e407e03edcf43ac62269196f3e7de
tree13d72bf5c134bb6a9d622488396afb14f2072b6f
parent1b127953e6eb98874c5e2bd7d20246add264f621
luci-app-dawn: Implement in JavaScript

This commit re-implements luci-app-dawn in JavaScript, removing the older
lua implementation. Besides a 1-to-1 port, there are some
changes/improvements:

* In both the network overview and the hearing map, replace MAC addresses
  by host name if known.
* In the hearing map, the table is sortable. If the same client is
  connected to multiple access points/frequencies the MAC/host name is
  listed twice, whereas in the lua implementation the second MAC address
  was empty to show it was referring to the same client. This means the
  table can be sorted on any column, and the information remains correct.
* The view in the network overview is a bit different. This table is not
  sortable, because LuCi doesn't seem to like a table inside a table for
  sorting.
* Align the column names between the network overview and the hearing
  table.
* Add tooltips for abbreviations in column names.

Signed-off-by: Daniel Vijge <[email protected]>
(cherry picked from commit ea8c0aa2a1a1ff9f29ffd452049a7b749298ed17)
[apply latest Makefile changes that did not get backported to 23.05]
Signed-off-by: Nick Hainke <[email protected]>
applications/luci-app-dawn/Makefile
applications/luci-app-dawn/htdocs/luci-static/resources/dawn/dawn-common.js [new file with mode: 0644]
applications/luci-app-dawn/htdocs/luci-static/resources/view/dawn/hearing_map.js [new file with mode: 0644]
applications/luci-app-dawn/htdocs/luci-static/resources/view/dawn/network_overview.js [new file with mode: 0644]
applications/luci-app-dawn/luasrc/controller/dawn.lua [deleted file]
applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_hearing_map.lua [deleted file]
applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_network.lua [deleted file]
applications/luci-app-dawn/luasrc/tools/ieee80211.lua [deleted file]
applications/luci-app-dawn/root/usr/share/luci/menu.d/luci-app-dawn.json [new file with mode: 0644]
applications/luci-app-dawn/root/usr/share/rpcd/acl.d/luci-app-dawn.json