luci-app-dawn: Implement in JavaScript
authorDaniel Vijge <danielvijge@gmail.com>
Thu, 26 Oct 2023 20:58:03 +0000 (22:58 +0200)
committerNick Hainke <vincent@systemli.org>
Mon, 30 Oct 2023 23:28:03 +0000 (00:28 +0100)
commitea8c0aa2a1a1ff9f29ffd452049a7b749298ed17
treea2d46eb95166b157c2edb5670ba8ce632e718447
parenteabf1d020fad5f866ea6742c02fc808d0c43b349
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 <danielvijge@gmail.com>
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