summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-07-07luci-base: add client based view actionsJo-Philipp Wich
Introduce a new view() target for CBI dispatch nodes, as long with the required template and plumbing work in luci.js to allow requiring view classes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: luci.js: tweak error handlingJo-Philipp Wich
If the ui class is loaded, use its modalDialog facility to display runtime errors, alternatively render them into the maincontent area. Also prevent duplication of stack trace information and throw a low level error on session expiration to allow higher layers to properly handle it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: replace uci change pages with client side modal dialogJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: add uci.js and rpc.js classesJo-Philipp Wich
Add a new rpc.js class which provides low level facilities to exchanges messages with the ubus rpc endpoint. Also introduce a new uci.js class which provides client side uci manipulation routines. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: add ubus-http gatewayJo-Philipp Wich
Add an admin/ubus route mimicking the native uhttpd-mod-ubus protocol. The main difference to the native protocol is that this gateway requires no additional per-object/procedure ACL setup on the router side and that it is located under the same prefix as LuCI itself, allowing the reuse of the session login cookie. This route is meant to be a transitional mechanism until client side RPC calls are eventually migrated to uhttpd-mod-ubus completely. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: move dropdown, combox and dynlist widget code to L.uiJo-Philipp Wich
Move the widget code to the ui class and replace it with compatibility shims in cbi.js Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: luci.js: add L.dom.data()Jo-Philipp Wich
Add a new data() function which allows to attach arbitrary JS data to DOM elements. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: cbi.js: support field validation for formless inputsJo-Philipp Wich
JS CBI fields have no parent form element anymore. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: cbi.js: untangle dropdown and dynlists from dependency updateJo-Philipp Wich
In order to prepare the move of the dynlist and dropdown widgets into the LuCI ui class, remove the direct calls to cbi_d_update() and replace them with custom events instead. Extend cbi_init() to handle these custom events and to invoke cbi_d_update() when receiving them. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: luci.js: add L.bind() helperJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: luci.js: consolidate error handlingJo-Philipp Wich
Add a new function L.error() which creates and throws a custom error object with stack information and given type. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: luci.js: convert LuCI.dom to Class instanceJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: luci.js: split ui helper functions into external ui.jsJo-Philipp Wich
Use the new class loader infrastructure to move gui specific functionality out of the luci.js core and dispatch a new event 'luci-loaded' which is fired once all external classes have been fetched. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: luci.js: add dynamic class loaderJo-Philipp Wich
Introduce L.require() to fetch additional JavaScript classes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: luci.js: convert LuCI to Class instanceJo-Philipp Wich
Also hijack cbi_init() and call it after the LuCI DOM setup. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: luci.js: add HTTP request functionsJo-Philipp Wich
Add a fetch() inspired HTTP request utility class to luci.js and replace the old xhr.js class with a stub using the new request api. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: luci.js: add class construction helperJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: add ES6 Promise polyfill for IE < EdgeJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-base: luci.js: add Object.assign polyfillJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-06luci-base: hide autocomplete-preventing password input with bigger offsetYousong Zhou
Fixes openwrt/luci#2624 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-07-06luci-base: nowrap for password input and reveal buttonYousong Zhou
Fixes openwrt/luci#2624 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-07-06Merge pull request #2823 from stangri/master-luci-app-simple-adblockHannu Nyman
luci-app-simple-adblock: sync with the latest version of simple-adblock
2019-07-05luci-app-simple-adblock: sync with the latest version of simple-adblockStan Grishin
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-07-05timezone data: update to 2019bHannu Nyman
Update timezone data to 2019b http://mm.icann.org/pipermail/tz-announce/2018-December/000055.html http://mm.icann.org/pipermail/tz/2019-July/028249.html 2019a: * Palestine "springs forward" on 2019-03-30 instead of 2019-03-23. * Brazil no longer observes DST. 2019b: * Palestine's 2019 spring-forward transition was on 03-29, not 03-30. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-07-05Merge pull request #2818 from mberndt123/mb/extensible-statisticsFlorian Eckert
luci-app-statistics: more extensibility
2019-07-05lucihttp: update to latest Git HEADJo-Philipp Wich
a34a17d src: allow overriding buffer size from cli in multipart tester 730a46f lib: fix potentially lost bytes in boundary parsing across buffer limits 8734af2 lib: add buffer tracing to multipart parser 913051b src: add file dump option to multipart test utility c419539 src: allow specifying custom buffer sizes in multipart testcases f6e0564 lib: fix handling of empty multipart fields Fixes: #2816 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-05Merge pull request #2822 from musashino205/l10n/tmate-upd-jaDirk Brenken
luci-app-travelmate: update Japanese translation
2019-07-05luci-app-travelmate: update Japanese translationINAGAKI Hiroshi
Updated Japanese translations missing in 50748d9936c836cf179937111302a92d6895ca40 Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-05luci-app-travelmate: sync translationsINAGAKI Hiroshi
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-05Merge pull request #2821 from musashino205/l10n/tmate-upd-jaJo-Philipp Wich
luci-app-travelmate: update Japanese translation
2019-07-05Merge pull request #2804 from tano-systems/pr/bootstrap-dashboard-fixJo-Philipp Wich
Fix a overview page style issue for various themes
2019-07-05luci-app-travelmate: update Japanese translationINAGAKI Hiroshi
Updated Japanese translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-05make luci-app-statistics more extensibleMatthias Berndt
2019-07-03Merge pull request #2791 from TDT-AG/pr/20190626-luci-proto-3gFlorian Eckert
luci-proto-3g: rename maxwait to delay option
2019-07-03Merge pull request #2811 from TDT-AG/pr/20190701-luci-proto-qmiFlorian Eckert
luci-proto-qmi: add missing mtu option
2019-07-02Merge pull request #2815 from ↵Jo-Philipp Wich
TDT-AG/pr/20190701-luci-base-fix-german-translation-typo luci-base: fix typo in german translation
2019-07-02luci-base: fix typo in german translationMartin Schiller
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-07-01luci-proto-qmi: add missing mtu optionFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-07-01Merge pull request #2809 from ↵Florian Eckert
TDT-AG/pr/20190701-luci-app-mwan3-add-german-translations luci-app-mwan3: add some german translations
2019-07-01Merge pull request #2810 from TDT-AG/pr/20190701-luci-base-german-led-triggerFlorian Eckert
luci-base: add german translations for led trigger
2019-07-01luci-base: add german translations for led triggerMartin Schiller
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-07-01luci-app-mwan3: add some german translationsMartin Schiller
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-07-01Merge pull request #2808 from ↵Florian Eckert
TDT-AG/pr/20190701-luci-mod-system-fix-flash-activity-string luci-mod-system: fix flash activity trigger name
2019-07-01luci-mod-system: fix flash activity trigger nameMartin Schiller
The former name "Flashmemory write access" is wrong. The triggers also indicate read/erase access to the flash memories. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-06-29Merge pull request #2805 from dibdot/travelmateDirk Brenken
luci-app-travelmate: sync with update 1.4.8
2019-06-29luci-app-travelmate: sync with update 1.4.8Dirk Brenken
* add optional 'trm_scanbuffer' parm * fix wrong lua escape character in wifi edit * sync translations Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-06-28Fix a overview page style issue for various themesAnton Kikin
Fixed a overview page style issue with interface boxes for bootstrap, material and rosy themes. The issue only appears in the Chrome browser and lies in the fact that the block with the device name and MAC address gets out of the interface block. Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-06-28luci-base: show niced processes on Status/Processes pageHannu Nyman
Modify the process status filter to allow also the processes with a nice value to be visible on the Status/Processes page. Filter out the top process itself. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-06-28Merge pull request #2802 from TDT-AG/pr/20190628-led-trigger-namesFlorian Eckert
luci-mod-system: fix some led trigger name translations
2019-06-28luci-mod-system: fix some led trigger name translationsMartin Schiller
Signed-off-by: Martin Schiller <ms@dev.tdt.de>