luci-mod-status: routes; refactor and add routesj page for ip -j output
authorPaul Donald <[email protected]>
Sun, 12 Oct 2025 16:37:57 +0000 (18:37 +0200)
committerPaul Donald <[email protected]>
Sun, 12 Oct 2025 17:43:57 +0000 (19:43 +0200)
commit89ae891462ea9928fc2b01e25c1611b1b71352d5
treef95be025ff174557aca01094256e65badb42ff55
parentcbaeb5e300ef91a35aef5c9591908f08674af8c3
luci-mod-status: routes; refactor and add routesj page for ip -j output

Refactor functions and variables to ES6 standard.

Detect whether one of the JSON enabled ip variants is installed, and
prefer it to display route information over the text handling. This is
handled by the acls and menu depends.

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js
modules/luci-mod-status/htdocs/luci-static/resources/view/status/routesj.js [new file with mode: 0644]
modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json
modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json