Jo-Philipp Wich
5b7924c808
luci-base: luci.js: tweak error handling
...
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-07 15:25:49 +02:00
Jo-Philipp Wich
fda4ba598c
luci-base: replace uci change pages with client side modal dialog
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
1dd910148e
luci-base: add uci.js and rpc.js classes
...
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-07 15:25:49 +02:00
Jo-Philipp Wich
c89bbd50fd
luci-base: add ubus-http gateway
...
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-07 15:25:49 +02:00
Jo-Philipp Wich
558f8c3b2a
luci-base: move dropdown, combox and dynlist widget code to L.ui
...
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-07 15:25:49 +02:00
Jo-Philipp Wich
e4c29c6db4
luci-base: luci.js: add L.dom.data()
...
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-07 15:25:49 +02:00
Jo-Philipp Wich
4a9f784a2a
luci-base: cbi.js: support field validation for formless inputs
...
JS CBI fields have no parent form element anymore.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
6b8701c7bf
luci-base: cbi.js: untangle dropdown and dynlists from dependency update
...
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-07 15:25:49 +02:00
Jo-Philipp Wich
1b931e0262
luci-base: luci.js: add L.bind() helper
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
ef187d5238
luci-base: luci.js: consolidate error handling
...
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-07 15:25:49 +02:00
Jo-Philipp Wich
26e54bb01f
luci-base: luci.js: convert LuCI.dom to Class instance
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
344c4c5119
luci-base: luci.js: split ui helper functions into external ui.js
...
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-07 15:25:49 +02:00
Jo-Philipp Wich
ec6d4094b9
luci-base: luci.js: add dynamic class loader
...
Introduce L.require() to fetch additional JavaScript classes.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
992638947d
luci-base: luci.js: convert LuCI to Class instance
...
Also hijack cbi_init() and call it after the LuCI DOM setup.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
843031f819
luci-base: luci.js: add HTTP request functions
...
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-07 15:25:49 +02:00
Jo-Philipp Wich
fee8c1fc9c
luci-base: luci.js: add class construction helper
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
9be6bb0577
luci-base: add ES6 Promise polyfill for IE < Edge
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
53e20c4925
luci-base: luci.js: add Object.assign polyfill
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Yousong Zhou
3a24c2dbaa
luci-base: hide autocomplete-preventing password input with bigger offset
...
Fixes openwrt/luci#2624
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-07-06 22:48:10 +08:00
Yousong Zhou
609f5290c8
luci-base: nowrap for password input and reveal button
...
Fixes openwrt/luci#2624
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-07-06 22:48:10 +08:00
Hannu Nyman
da10ceeb37
Merge pull request #2823 from stangri/master-luci-app-simple-adblock
...
luci-app-simple-adblock: sync with the latest version of simple-adblock
2019-07-06 09:26:44 +03:00
Stan Grishin
4e7806ebf3
luci-app-simple-adblock: sync with the latest version of simple-adblock
...
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-07-05 08:30:48 -07:00
Hannu Nyman
2f769ee087
timezone data: update to 2019b
...
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-05 17:56:04 +03:00
Florian Eckert
6122deefbd
Merge pull request #2818 from mberndt123/mb/extensible-statistics
...
luci-app-statistics: more extensibility
2019-07-05 10:17:49 +02:00
Jo-Philipp Wich
66c8ebfeff
lucihttp: update to latest Git HEAD
...
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-05 08:27:47 +02:00
Dirk Brenken
12be2d86c1
Merge pull request #2822 from musashino205/l10n/tmate-upd-ja
...
luci-app-travelmate: update Japanese translation
2019-07-05 08:13:57 +02:00
INAGAKI Hiroshi
da1a3d8ae8
luci-app-travelmate: update Japanese translation
...
Updated Japanese translations missing in 50748d9936
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-05 14:47:11 +09:00
INAGAKI Hiroshi
39fd1111ee
luci-app-travelmate: sync translations
...
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-05 14:43:43 +09:00
Jo-Philipp Wich
663e6746da
Merge pull request #2821 from musashino205/l10n/tmate-upd-ja
...
luci-app-travelmate: update Japanese translation
2019-07-05 07:26:48 +02:00
Jo-Philipp Wich
6973347257
Merge pull request #2804 from tano-systems/pr/bootstrap-dashboard-fix
...
Fix a overview page style issue for various themes
2019-07-05 07:25:36 +02:00
INAGAKI Hiroshi
50748d9936
luci-app-travelmate: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-05 14:23:54 +09:00
Matthias Berndt
c1380ab367
make luci-app-statistics more extensible
2019-07-05 02:03:13 +02:00
Florian Eckert
f56a6df49c
Merge pull request #2791 from TDT-AG/pr/20190626-luci-proto-3g
...
luci-proto-3g: rename maxwait to delay option
2019-07-03 08:59:35 +02:00
Florian Eckert
61ca9e19c6
Merge pull request #2811 from TDT-AG/pr/20190701-luci-proto-qmi
...
luci-proto-qmi: add missing mtu option
2019-07-03 08:57:08 +02:00
Jo-Philipp Wich
2d1d855256
Merge pull request #2815 from TDT-AG/pr/20190701-luci-base-fix-german-translation-typo
...
luci-base: fix typo in german translation
2019-07-02 09:41:46 +02:00
Martin Schiller
cc360b94f8
luci-base: fix typo in german translation
...
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-07-02 09:13:15 +02:00
Florian Eckert
0dec930dd4
luci-proto-qmi: add missing mtu option
...
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-07-01 10:20:13 +02:00
Florian Eckert
1745f2cc1d
Merge pull request #2809 from TDT-AG/pr/20190701-luci-app-mwan3-add-german-translations
...
luci-app-mwan3: add some german translations
2019-07-01 10:14:42 +02:00
Florian Eckert
087556ec37
Merge pull request #2810 from TDT-AG/pr/20190701-luci-base-german-led-trigger
...
luci-base: add german translations for led trigger
2019-07-01 09:20:07 +02:00
Martin Schiller
001dc0664e
luci-base: add german translations for led trigger
...
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-07-01 08:51:17 +02:00
Martin Schiller
06b5cdb79a
luci-app-mwan3: add some german translations
...
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-07-01 08:28:26 +02:00
Florian Eckert
9a979e6db5
Merge pull request #2808 from TDT-AG/pr/20190701-luci-mod-system-fix-flash-activity-string
...
luci-mod-system: fix flash activity trigger name
2019-07-01 07:56:46 +02:00
Martin Schiller
19289107dd
luci-mod-system: fix flash activity trigger name
...
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-07-01 07:02:42 +02:00
Dirk Brenken
a04e22e846
Merge pull request #2805 from dibdot/travelmate
...
luci-app-travelmate: sync with update 1.4.8
2019-06-29 19:28:28 +02:00
Dirk Brenken
ee80de6a7b
luci-app-travelmate: sync with update 1.4.8
...
* 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-29 14:46:28 +02:00
Anton Kikin
5d26fec0bf
Fix a overview page style issue for various themes
...
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-28 19:04:22 +03:00
Hannu Nyman
1c80eb1962
luci-base: show niced processes on Status/Processes page
...
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-28 18:56:53 +03:00
Florian Eckert
a562735e51
Merge pull request #2802 from TDT-AG/pr/20190628-led-trigger-names
...
luci-mod-system: fix some led trigger name translations
2019-06-28 15:49:33 +02:00
Martin Schiller
a8f79f12d6
luci-mod-system: fix some led trigger name translations
...
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-06-28 15:44:26 +02:00
Jo-Philipp Wich
0017bc89f2
Merge pull request #2794 from TDT-AG/pr/20190626-luci-app-firewall-german-translation
...
luci-app-firewall: add some german translations
2019-06-28 12:29:19 +02:00