treewide: Update JS using luci-rpc getHostHints
authorNiels Widger <[email protected]>
Wed, 31 Mar 2021 12:23:12 +0000 (08:23 -0400)
committerJo-Philipp Wich <[email protected]>
Sat, 12 Jun 2021 17:23:28 +0000 (19:23 +0200)
commit7d7df070c386538229daeff979775b8f321a4d3c
tree78b47b73e806614219358e53ce9c275a832ebb00
parent87bcf9e923cfc873ed4f6ecb61d034b639685a61
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 <[email protected]>
[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 <[email protected]>
(cherry picked from commit c7b7b42cd3840cfd67f412191578a8659eb63c87)
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