treewide: Update JS using luci-rpc getHostHints
authorNiels Widger <niels@qacafe.com>
Wed, 31 Mar 2021 12:23:12 +0000 (08:23 -0400)
committerJo-Philipp Wich <jo@mein.io>
Thu, 3 Jun 2021 07:51:09 +0000 (09:51 +0200)
commitc7b7b42cd3840cfd67f412191578a8659eb63c87
tree7b2e0c100d7cb6155da7159df3066b5dae7456f0
parenta5195e7825cbbc3942ca6e571ae0020c1cf080c4
treewide: Update JS using luci-rpc getHostHints

Update frontend JS code which uses luci-rpc getHostHints to support the new
response format which removes the `ipv4` and `ipv6` host hint string fields
and replaces them with `ipaddrs` and `ip6addrs` weighted string list fields.

Signed-off-by: Niels Widger <niels@qacafe.com>
[rework code to be forwards/backwards compatible, fix some Network.Hosts
 methods, fix IP choice ordering, change commit subject, rewrap commit
 message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js
modules/luci-base/htdocs/luci-static/resources/network.js
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
modules/luci-mod-network/htdocs/luci-static/resources/view/network/hosts.js