luci-base: luci.js: introduce generic LuCI.Poll
authorJo-Philipp Wich <jo@mein.io>
Fri, 5 Apr 2019 05:55:54 +0000 (07:55 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:24 +0000 (15:36 +0200)
commiteee323cb6683e6f1f1da7059e49eb8f4498bedf6
tree3f319f5f18f62dcbdc65e15888dcf166cc666f54
parent8a8e8e0aac356d03273caf20df80736a2daa339e
luci-base: luci.js: introduce generic LuCI.Poll

Introduce a new LuCI.Poll class which is able to repeat any
promise based function and not strictly tied to HTTP request
semantics.

Also rework LuCI.Request.Poll and XHR.Poll as well as
LuCI.start(), LuCI.stop(), LuCI.halt() etc. to redirect to
the new api.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/luci.js