Commit graph

11891 commits

Author SHA1 Message Date
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
3ef6299f39 luci-base: hide autocomplete-preventing password input with bigger offset
Fixes openwrt/luci#2624

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 3a24c2dbaa)
2019-07-06 14:59:44 +00:00
Yousong Zhou
28c71f7eda luci-base: nowrap for password input and reveal button
Fixes openwrt/luci#2624

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry-picked from commit 609f5290c8)
2019-07-06 14:58:51 +00: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
0e31c26baf
Merge pull request #2829 from stangri/openwrt-19.07-luci-app-simple-adblock
luci-app-simple-adblock: sync with the latest version of simple-adblock
2019-07-06 09:27:04 +03: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
4a87c761da luci-app-simple-adblock: sync with the latest version of simple-adblock
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-07-05 08:56:12 -07: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
4c1204a5e2 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>
(cherry picked from commit 2f769ee087)
2019-07-05 18:01:41 +03: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
f166eb6d8f 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>
(cherry picked from commit 66c8ebfeff)
2019-07-05 08:28:09 +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
Dirk Brenken
3aacc6669b
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>
(cherry picked from commit ee80de6a7b)
2019-07-01 10:01:24 +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
Xingwang Liao
f90de782a7
luci-app-aria2: Refactor, new views and more options
This commit contains:

* Refactor package code.
* Add options for RPC, HTTP/HTTPS and BT.
* Improve descriptions for some options.
* New views for config files and log files.
* Also updated translation for simplified Chinese.

Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
2019-07-01 14:28:54 +08: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
Hannu Nyman
952efd5c98 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>
(cherry picked from commit 1c80eb1962)
2019-06-30 19:54:11 +03: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
f73da9ca82
system-wide: fix escaping of magic chars
* fix escaping of magic lua chars (#2800)
* fix redundant second gsub line in shellstartsqescape function
* fix return value of shellstartsqescape function

Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-06-29 19:26:07 +02:00