luci-base: introduce form.js

Add a new client side form.js library which is a more or less direct
reimplementation of the Lua side cbi.lua in JavaScript.

Due to its client side nature, it supports a number of features which
would be hard to realize on the server side, such as drag&drop sorting,
modal sub-map dialogs, reload-free editing etc.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-04-01 16:22:13 +02:00
parent 9c7eb1decd
commit b839ee87f2
2 changed files with 1671 additions and 1 deletions

File diff suppressed because it is too large Load diff

View file

@ -451,7 +451,8 @@
Promise.all([
domReady,
this.require('ui')
this.require('ui'),
this.require('form')
]).then(this.setupDOM.bind(this)).catch(function(error) {
alert('LuCI class loading error:\n' + error);
});