luci2: major changes to RPC implementation
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 17 Sep 2013 12:49:53 +0000 (14:49 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 17 Sep 2013 12:49:53 +0000 (14:49 +0200)
commit19990b36ae3f7ca9135934e7ecc92b6aa172480f
tree40a6a77a14d65590dd1892d7486a932ce4493d7c
parent259860a1fd126cd8b2f0a6968e77783647fcd4d3
luci2: major changes to RPC implementation

- rework LuCI2.rpc namespace to support batching arbritary requests
- use new LuCI.rpc.declare() generator function to declare RPC proxy functions
- thoroughly use jQuery promises for chaining RPC responses, drop callback model
- drop internal rcall() and retcb() helpers in favor to the new RPC implementation
- adjust existing views for new RPC model
- implement session alive check to automatically prompt for a login if the server session is expired
13 files changed:
luci2/htdocs/luci2/luci2.js
luci2/htdocs/luci2/view/status.dmesg.js
luci2/htdocs/luci2/view/status.overview.js
luci2/htdocs/luci2/view/status.processes.js
luci2/htdocs/luci2/view/status.routes.js
luci2/htdocs/luci2/view/status.syslog.js
luci2/htdocs/luci2/view/system.admin.js
luci2/htdocs/luci2/view/system.cron.js
luci2/htdocs/luci2/view/system.leds.js
luci2/htdocs/luci2/view/system.routes.js
luci2/htdocs/luci2/view/system.software.js
luci2/htdocs/luci2/view/system.startup.js
luci2/htdocs/luci2/view/system.system.js