project/luci.git
5 years agoluci-base: add sys.init.reload() and sys.init.restart() actions
Jo-Philipp Wich [Fri, 5 Jul 2019 10:38:01 +0000 (12:38 +0200)]
luci-base: add sys.init.reload() and sys.init.restart() actions

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: add rpcd backend plugin
Jo-Philipp Wich [Mon, 1 Apr 2019 15:02:38 +0000 (17:02 +0200)]
luci-base: add rpcd backend plugin

Add an rpcd executable plugin containing procedures required by client
side views.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: luci.js: catch base class loading errors
Jo-Philipp Wich [Mon, 1 Apr 2019 14:36:30 +0000 (16:36 +0200)]
luci-base: luci.js: catch base class loading errors

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: introduce form.js
Jo-Philipp Wich [Mon, 1 Apr 2019 14:22:13 +0000 (16:22 +0200)]
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>
5 years agoluci-base: switch from server side to client side widget markup
Jo-Philipp Wich [Mon, 1 Apr 2019 14:09:41 +0000 (16:09 +0200)]
luci-base: switch from server side to client side widget markup

Do not render standard widgets like checkboxes, select boxes,
text input fields etc. on the server side anymore but utilize
the ui.js primitives instead.

This avoids logic duplication between server side cbi templates
and JS widgets in the future.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: cbi.js, ui.js: add custom validation callbacks, new ui widgets
Jo-Philipp Wich [Mon, 1 Apr 2019 14:00:10 +0000 (16:00 +0200)]
luci-base: cbi.js, ui.js: add custom validation callbacks, new ui widgets

Implement further widget primitives like text inputs or checkboxes and
support custom validation callback functions when instantiating CBI
validators.

Also add support initializing ui.js widgets from the "data-ui-widget"
HTML attribute.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: add client based view actions
Jo-Philipp Wich [Mon, 1 Apr 2019 13:38:00 +0000 (15:38 +0200)]
luci-base: add client based view actions

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>
5 years agoluci-base: luci.js: tweak error handling
Jo-Philipp Wich [Mon, 1 Apr 2019 13:30:42 +0000 (15:30 +0200)]
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>
5 years agoluci-base: replace uci change pages with client side modal dialog
Jo-Philipp Wich [Thu, 7 Feb 2019 18:10:34 +0000 (19:10 +0100)]
luci-base: replace uci change pages with client side modal dialog

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: add uci.js and rpc.js classes
Jo-Philipp Wich [Thu, 7 Feb 2019 17:53:25 +0000 (18:53 +0100)]
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>
5 years agoluci-base: add ubus-http gateway
Jo-Philipp Wich [Thu, 7 Feb 2019 17:40:36 +0000 (18:40 +0100)]
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>
5 years agoluci-base: move dropdown, combox and dynlist widget code to L.ui
Jo-Philipp Wich [Thu, 7 Feb 2019 17:29:29 +0000 (18:29 +0100)]
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>
5 years agoluci-base: luci.js: add L.dom.data()
Jo-Philipp Wich [Thu, 7 Feb 2019 17:19:58 +0000 (18:19 +0100)]
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>
5 years agoluci-base: cbi.js: support field validation for formless inputs
Jo-Philipp Wich [Tue, 5 Feb 2019 12:21:33 +0000 (13:21 +0100)]
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>
5 years agoluci-base: cbi.js: untangle dropdown and dynlists from dependency update
Jo-Philipp Wich [Tue, 5 Feb 2019 09:39:17 +0000 (10:39 +0100)]
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>
5 years agoluci-base: luci.js: add L.bind() helper
Jo-Philipp Wich [Fri, 25 Jan 2019 07:19:36 +0000 (08:19 +0100)]
luci-base: luci.js: add L.bind() helper

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: luci.js: consolidate error handling
Jo-Philipp Wich [Tue, 8 Jan 2019 14:32:17 +0000 (15:32 +0100)]
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>
5 years agoluci-base: luci.js: convert LuCI.dom to Class instance
Jo-Philipp Wich [Mon, 7 Jan 2019 14:40:20 +0000 (15:40 +0100)]
luci-base: luci.js: convert LuCI.dom to Class instance

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: luci.js: split ui helper functions into external ui.js
Jo-Philipp Wich [Mon, 7 Jan 2019 14:26:08 +0000 (15:26 +0100)]
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>
5 years agoluci-base: luci.js: add dynamic class loader
Jo-Philipp Wich [Mon, 7 Jan 2019 13:48:19 +0000 (14:48 +0100)]
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>
5 years agoluci-base: luci.js: convert LuCI to Class instance
Jo-Philipp Wich [Mon, 7 Jan 2019 13:25:20 +0000 (14:25 +0100)]
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>
5 years agoluci-base: luci.js: add HTTP request functions
Jo-Philipp Wich [Sun, 6 Jan 2019 16:08:37 +0000 (17:08 +0100)]
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>
5 years agoluci-base: luci.js: add class construction helper
Jo-Philipp Wich [Sun, 6 Jan 2019 15:40:59 +0000 (16:40 +0100)]
luci-base: luci.js: add class construction helper

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: add ES6 Promise polyfill for IE < Edge
Jo-Philipp Wich [Sun, 6 Jan 2019 15:42:52 +0000 (16:42 +0100)]
luci-base: add ES6 Promise polyfill for IE < Edge

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: luci.js: add Object.assign polyfill
Jo-Philipp Wich [Sun, 6 Jan 2019 15:37:05 +0000 (16:37 +0100)]
luci-base: luci.js: add Object.assign polyfill

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: hide autocomplete-preventing password input with bigger offset
Yousong Zhou [Fri, 28 Jun 2019 16:03:37 +0000 (16:03 +0000)]
luci-base: hide autocomplete-preventing password input with bigger offset

Fixes openwrt/luci#2624

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
5 years agoluci-base: nowrap for password input and reveal button
Yousong Zhou [Fri, 28 Jun 2019 15:53:05 +0000 (15:53 +0000)]
luci-base: nowrap for password input and reveal button

Fixes openwrt/luci#2624

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
5 years agoMerge pull request #2823 from stangri/master-luci-app-simple-adblock
Hannu Nyman [Sat, 6 Jul 2019 06:26:44 +0000 (09:26 +0300)]
Merge pull request #2823 from stangri/master-luci-app-simple-adblock

luci-app-simple-adblock: sync with the latest version of simple-adblock

5 years agoluci-app-simple-adblock: sync with the latest version of simple-adblock 2823/head
Stan Grishin [Fri, 5 Jul 2019 15:30:48 +0000 (08:30 -0700)]
luci-app-simple-adblock: sync with the latest version of simple-adblock

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agotimezone data: update to 2019b
Hannu Nyman [Fri, 5 Jul 2019 14:56:04 +0000 (17:56 +0300)]
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>
5 years agoMerge pull request #2818 from mberndt123/mb/extensible-statistics
Florian Eckert [Fri, 5 Jul 2019 08:17:49 +0000 (10:17 +0200)]
Merge pull request #2818 from mberndt123/mb/extensible-statistics

luci-app-statistics: more extensibility

5 years agolucihttp: update to latest Git HEAD
Jo-Philipp Wich [Fri, 5 Jul 2019 06:26:26 +0000 (08:26 +0200)]
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>
5 years agoMerge pull request #2822 from musashino205/l10n/tmate-upd-ja
Dirk Brenken [Fri, 5 Jul 2019 06:13:57 +0000 (08:13 +0200)]
Merge pull request #2822 from musashino205/l10n/tmate-upd-ja

luci-app-travelmate: update Japanese translation

5 years agoluci-app-travelmate: update Japanese translation 2822/head
INAGAKI Hiroshi [Fri, 5 Jul 2019 05:47:11 +0000 (14:47 +0900)]
luci-app-travelmate: update Japanese translation

Updated Japanese translations missing in 50748d9936c836cf179937111302a92d6895ca40

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
5 years agoluci-app-travelmate: sync translations
INAGAKI Hiroshi [Fri, 5 Jul 2019 05:41:26 +0000 (14:41 +0900)]
luci-app-travelmate: sync translations

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
5 years agoMerge pull request #2821 from musashino205/l10n/tmate-upd-ja
Jo-Philipp Wich [Fri, 5 Jul 2019 05:26:48 +0000 (07:26 +0200)]
Merge pull request #2821 from musashino205/l10n/tmate-upd-ja

luci-app-travelmate: update Japanese translation

5 years agoMerge pull request #2804 from tano-systems/pr/bootstrap-dashboard-fix
Jo-Philipp Wich [Fri, 5 Jul 2019 05:25:36 +0000 (07:25 +0200)]
Merge pull request #2804 from tano-systems/pr/bootstrap-dashboard-fix

Fix a overview page style issue for various themes

5 years agoluci-app-travelmate: update Japanese translation 2821/head
INAGAKI Hiroshi [Fri, 5 Jul 2019 05:23:54 +0000 (14:23 +0900)]
luci-app-travelmate: update Japanese translation

Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
5 years agomake luci-app-statistics more extensible 2818/head
Matthias Berndt [Wed, 3 Jul 2019 22:40:58 +0000 (00:40 +0200)]
make luci-app-statistics more extensible

5 years agoMerge pull request #2791 from TDT-AG/pr/20190626-luci-proto-3g
Florian Eckert [Wed, 3 Jul 2019 06:59:35 +0000 (08:59 +0200)]
Merge pull request #2791 from TDT-AG/pr/20190626-luci-proto-3g

luci-proto-3g: rename maxwait to delay option

5 years agoMerge pull request #2811 from TDT-AG/pr/20190701-luci-proto-qmi
Florian Eckert [Wed, 3 Jul 2019 06:57:08 +0000 (08:57 +0200)]
Merge pull request #2811 from TDT-AG/pr/20190701-luci-proto-qmi

luci-proto-qmi: add missing mtu option

5 years agoMerge pull request #2815 from TDT-AG/pr/20190701-luci-base-fix-german-translation...
Jo-Philipp Wich [Tue, 2 Jul 2019 07:41:46 +0000 (09:41 +0200)]
Merge pull request #2815 from TDT-AG/pr/20190701-luci-base-fix-german-translation-typo

luci-base: fix typo in german translation

5 years agoluci-base: fix typo in german translation 2815/head
Martin Schiller [Tue, 2 Jul 2019 07:13:15 +0000 (09:13 +0200)]
luci-base: fix typo in german translation

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
5 years agoluci-proto-qmi: add missing mtu option 2811/head
Florian Eckert [Thu, 27 Jun 2019 12:59:14 +0000 (14:59 +0200)]
luci-proto-qmi: add missing mtu option

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoMerge pull request #2809 from TDT-AG/pr/20190701-luci-app-mwan3-add-german-translations
Florian Eckert [Mon, 1 Jul 2019 08:14:42 +0000 (10:14 +0200)]
Merge pull request #2809 from TDT-AG/pr/20190701-luci-app-mwan3-add-german-translations

luci-app-mwan3: add some german translations

5 years agoMerge pull request #2810 from TDT-AG/pr/20190701-luci-base-german-led-trigger
Florian Eckert [Mon, 1 Jul 2019 07:20:07 +0000 (09:20 +0200)]
Merge pull request #2810 from TDT-AG/pr/20190701-luci-base-german-led-trigger

luci-base: add german translations for led trigger

5 years agoluci-base: add german translations for led trigger 2810/head
Martin Schiller [Mon, 1 Jul 2019 06:51:17 +0000 (08:51 +0200)]
luci-base: add german translations for led trigger

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
5 years agoluci-app-mwan3: add some german translations 2809/head
Martin Schiller [Mon, 1 Jul 2019 06:28:26 +0000 (08:28 +0200)]
luci-app-mwan3: add some german translations

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
5 years agoMerge pull request #2808 from TDT-AG/pr/20190701-luci-mod-system-fix-flash-activity...
Florian Eckert [Mon, 1 Jul 2019 05:56:46 +0000 (07:56 +0200)]
Merge pull request #2808 from TDT-AG/pr/20190701-luci-mod-system-fix-flash-activity-string

luci-mod-system: fix flash activity trigger name

5 years agoluci-mod-system: fix flash activity trigger name 2808/head
Martin Schiller [Mon, 1 Jul 2019 04:53:20 +0000 (06:53 +0200)]
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>
5 years agoMerge pull request #2805 from dibdot/travelmate
Dirk Brenken [Sat, 29 Jun 2019 17:28:28 +0000 (19:28 +0200)]
Merge pull request #2805 from dibdot/travelmate

luci-app-travelmate: sync with update 1.4.8

5 years agoluci-app-travelmate: sync with update 1.4.8 2805/head
Dirk Brenken [Sat, 29 Jun 2019 12:46:28 +0000 (14:46 +0200)]
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>
5 years agoFix a overview page style issue for various themes 2804/head
Anton Kikin [Fri, 28 Jun 2019 15:37:30 +0000 (18:37 +0300)]
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>
5 years agoluci-base: show niced processes on Status/Processes page
Hannu Nyman [Fri, 28 Jun 2019 15:56:53 +0000 (18:56 +0300)]
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>
5 years agoMerge pull request #2802 from TDT-AG/pr/20190628-led-trigger-names
Florian Eckert [Fri, 28 Jun 2019 13:49:33 +0000 (15:49 +0200)]
Merge pull request #2802 from TDT-AG/pr/20190628-led-trigger-names

luci-mod-system: fix some led trigger name translations

5 years agoluci-mod-system: fix some led trigger name translations 2802/head
Martin Schiller [Fri, 28 Jun 2019 13:42:17 +0000 (15:42 +0200)]
luci-mod-system: fix some led trigger name translations

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
5 years agoMerge pull request #2794 from TDT-AG/pr/20190626-luci-app-firewall-german-translation
Jo-Philipp Wich [Fri, 28 Jun 2019 10:29:19 +0000 (12:29 +0200)]
Merge pull request #2794 from TDT-AG/pr/20190626-luci-app-firewall-german-translation

luci-app-firewall: add some german translations

5 years agoMerge pull request #2061 from Ansuel/improveconn
Florian Eckert [Fri, 28 Jun 2019 05:49:37 +0000 (07:49 +0200)]
Merge pull request #2061 from Ansuel/improveconn

luci-mod-admin-full: improve connection page lookup loop

5 years agoMerge pull request #2792 from TDT-AG/pr/20190626-luci-proto-qmi
Florian Eckert [Thu, 27 Jun 2019 13:20:31 +0000 (15:20 +0200)]
Merge pull request #2792 from TDT-AG/pr/20190626-luci-proto-qmi

luci-proto-qmi: improvements

5 years agoMerge pull request #2796 from TDT-AG/pr/20190627-luci-theme-material-change-loading...
Jo-Philipp Wich [Thu, 27 Jun 2019 04:51:29 +0000 (06:51 +0200)]
Merge pull request #2796 from TDT-AG/pr/20190627-luci-theme-material-change-loading-text

luci-theme-material: change string 'Loading...' to 'Collecting data...'

5 years agoluci-theme-material: change string 'Loading...' to 'Collecting data...' 2796/head
Martin Schiller [Thu, 27 Jun 2019 04:24:35 +0000 (06:24 +0200)]
luci-theme-material: change string 'Loading...' to 'Collecting data...'

It's better to reuse the already available and well translated string
'Collecting data...'.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
5 years agoMerge pull request #2795 from bmork/os-release-variable-renaming
Hannu Nyman [Wed, 26 Jun 2019 18:40:41 +0000 (21:40 +0300)]
Merge pull request #2795 from bmork/os-release-variable-renaming

luci-mod-network: os-release variables have been renamed to OPENWRT_

5 years agoMerge pull request #2770 from geekinaboxx/master
Florian Eckert [Wed, 26 Jun 2019 14:06:38 +0000 (16:06 +0200)]
Merge pull request #2770 from geekinaboxx/master

luci-proto-ncm: add dialnum option

5 years agoadd dialnum option 2770/head
aleem-tectonic [Wed, 26 Jun 2019 14:02:22 +0000 (15:02 +0100)]
add dialnum option

Signed-off-by: geekinaboxx <aleem@tectonic.it>
5 years agoluci-app-firewall: add some german translations 2794/head
Martin Schiller [Wed, 26 Jun 2019 12:02:54 +0000 (14:02 +0200)]
luci-app-firewall: add some german translations

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
5 years agoluci-mod-network: os-release variables have been renamed to OPENWRT_ 2795/head
Bjørn Mork [Wed, 26 Jun 2019 09:24:19 +0000 (11:24 +0200)]
luci-mod-network: os-release variables have been renamed to OPENWRT_

commit 8a34a54b6aa6 ("base-files: use OPENWRT prefix for os-release
variables") changes the prefix of the os-release variables from LEDE_
to OPENWRT_.  Use the new name.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
5 years agoMerge pull request #2779 from hwti/statistics-ping-addressfamily
Florian Eckert [Wed, 26 Jun 2019 12:22:33 +0000 (14:22 +0200)]
Merge pull request #2779 from hwti/statistics-ping-addressfamily

luci-app-statistics: add address family configuration for ping

5 years agoMerge pull request #2793 from TDT-AG/pr/20190626-luci-theme-material-translation-fix
Jo-Philipp Wich [Wed, 26 Jun 2019 12:00:58 +0000 (14:00 +0200)]
Merge pull request #2793 from TDT-AG/pr/20190626-luci-theme-material-translation-fix

luci-theme-material: make 'Loading...' text translatable

5 years agoluci-theme-material: make 'Loading...' text translatable 2793/head
Martin Schiller [Wed, 26 Jun 2019 11:53:59 +0000 (13:53 +0200)]
luci-theme-material: make 'Loading...' text translatable

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
5 years agoluci-proto-qmi: only show password and username if auth is selected 2792/head
Florian Eckert [Wed, 26 Jun 2019 11:04:47 +0000 (13:04 +0200)]
luci-proto-qmi: only show password and username if auth is selected

Only show username and password if we use PAP/CHAP, PAP or CHAP
authentication.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-proto-qmi: add missing delay option
Florian Eckert [Wed, 26 Jun 2019 10:42:25 +0000 (12:42 +0200)]
luci-proto-qmi: add missing delay option

The proto handler qmi does support the delay option for modem
initialization. Add that missing option to the advanced tab to configure
that with LuCI.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-proto-3g: rename maxwait to delay option 2791/head
Florian Eckert [Wed, 26 Jun 2019 10:45:46 +0000 (12:45 +0200)]
luci-proto-3g: rename maxwait to delay option

The option maxwait is not support by the 3g netifd proto.
To standardize that rename the maxwait option to delay as in the other
proto handlers luci-proto-qmi and luci-proto-ncm.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoMerge pull request #2788 from dibdot/opkg
Jo-Philipp Wich [Tue, 25 Jun 2019 19:38:08 +0000 (21:38 +0200)]
Merge pull request #2788 from dibdot/opkg

luci-app-opkg: change remove button caption (first level)

5 years agoluci-app-opkg: change remove button caption (first level) 2788/head
Dirk Brenken [Tue, 25 Jun 2019 19:28:44 +0000 (21:28 +0200)]
luci-app-opkg: change remove button caption (first level)

* add three dots to the first level 'Remove' button caption
  (revert/fix da8668a)

Signed-off-by: Dirk Brenken <dev@brenken.org>
5 years agoMerge pull request #2783 from castillofrancodamian/base
Jo-Philipp Wich [Mon, 24 Jun 2019 04:52:48 +0000 (06:52 +0200)]
Merge pull request #2783 from castillofrancodamian/base

luci-base: Update Spanish translation

5 years agoluci-base: Update Spanish translation 2783/head
Franco Castillo [Sat, 22 Jun 2019 20:41:17 +0000 (17:41 -0300)]
luci-base: Update Spanish translation

Update Spanish translation

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-statistics: add address family configuration for ping 2779/head
Loïc Yhuel [Fri, 21 Jun 2019 00:03:12 +0000 (02:03 +0200)]
luci-app-statistics: add address family configuration for ping

It allows to force ipv4 or ipv6 when the DNS returns both addresses, but
only one works (for example if there is no ipv6 connectivity).

Signed-off-by: Loïc Yhuel <loic.yhuel@gmail.com>
5 years agoluci-app-opkg: make overwriting package files optional
Jo-Philipp Wich [Wed, 19 Jun 2019 11:29:19 +0000 (13:29 +0200)]
luci-app-opkg: make overwriting package files optional

Ref: #2775
Signed-off-by: Dirk Brenken <dev@brenken.org>
[split into multiple commits, sync translations]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-opkg: change remove button caption
Jo-Philipp Wich [Wed, 19 Jun 2019 10:39:03 +0000 (12:39 +0200)]
luci-app-opkg: change remove button caption

Add three dots to the first level 'Remove' button caption, because it
leads to a modal dialogue.

Ref: #2775
Signed-off-by: Dirk Brenken <dev@brenken.org>
[split into multiple commits, sync translations]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-opkg: honor installed flag to skip half-installed packages
Jo-Philipp Wich [Wed, 19 Jun 2019 09:21:18 +0000 (11:21 +0200)]
luci-app-opkg: honor installed flag to skip half-installed packages

Do not consider half-installed packages (which happens after an
installation failure) to be installed.

Ref: https://github.com/openwrt/luci/pull/2775
Signed-off-by: Dirk Brenken <dev@brenken.org>
[split into multiple commits, refactored code, use local variables]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agotreewide: fix datetype/datatype typo
Hannu Nyman [Sun, 16 Jun 2019 14:54:04 +0000 (17:54 +0300)]
treewide: fix datetype/datatype typo

Fix 'datetype' typo.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
5 years agoMerge pull request #2772 from jjm2473/patch-2
Hannu Nyman [Sun, 16 Jun 2019 14:47:04 +0000 (17:47 +0300)]
Merge pull request #2772 from jjm2473/patch-2

luci-app-aria2: fix: datatype

5 years agoluci-app-aria2: fix: datatype 2772/head
练亮斌 [Sun, 16 Jun 2019 14:26:11 +0000 (22:26 +0800)]
luci-app-aria2: fix: datatype

just a spelling mistake.

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
5 years agoluci-mod-system: prevent clearing rc.local on unrelated submit actions
Jo-Philipp Wich [Wed, 12 Jun 2019 15:47:30 +0000 (17:47 +0200)]
luci-mod-system: prevent clearing rc.local on unrelated submit actions

Fixes: #2760
Fixes: 1c09ee5e4 ("luci-mod-system: fix SimpleForm usage on file editing pages")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: update Traditional Chinese translation
Perry Thompson [Tue, 11 Jun 2019 22:43:21 +0000 (17:43 -0500)]
luci-base: update Traditional Chinese translation

Signed-off-by: Perry Thompson <contact@ryper.org>
5 years agoluci-base: update Traditional Chinese translation
a962702 [Tue, 11 Jun 2019 12:20:06 +0000 (20:20 +0800)]
luci-base: update Traditional Chinese translation

update Traditional Chinese translations.

Signed-off-by: Andy Yun <a962702@yahoo.com>
5 years agoluci-base: update Traditional Chinese translation
Andy [Mon, 10 Jun 2019 12:50:30 +0000 (20:50 +0800)]
luci-base: update Traditional Chinese translation
update Traditional Chinese translation.
Signed-off-by: Andy Yun <a962702@yahoo.com>
5 years agoMerge pull request #2762 from musashino205/l10n/mwan3-upd-ja
Florian Eckert [Mon, 10 Jun 2019 11:55:07 +0000 (13:55 +0200)]
Merge pull request #2762 from musashino205/l10n/mwan3-upd-ja

luci-app-mwan3: update Japanese translation

5 years agoluci-app-mwan3: update Japanese translation 2762/head
INAGAKI Hiroshi [Mon, 10 Jun 2019 07:02:36 +0000 (16:02 +0900)]
luci-app-mwan3: update Japanese translation

Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
5 years agoi18n: sync translations
Hannu Nyman [Sun, 9 Jun 2019 16:24:00 +0000 (19:24 +0300)]
i18n: sync translations

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
5 years agoMerge pull request #2755 from dibdot/lxc
Dirk Brenken [Fri, 7 Jun 2019 04:55:36 +0000 (06:55 +0200)]
Merge pull request #2755 from dibdot/lxc

luci-app-lxc: add conffiles define

5 years agoluci-app-lxc: add conffiles define 2755/head
Dirk Brenken [Thu, 6 Jun 2019 11:03:40 +0000 (13:03 +0200)]
luci-app-lxc: add conffiles define

- fix #2754

Signed-off-by: Dirk Brenken <dev@brenken.org>
5 years agoMerge pull request #2753 from tano-systems/pr-luci-base-update-ru-translation
Hannu Nyman [Wed, 5 Jun 2019 18:50:34 +0000 (21:50 +0300)]
Merge pull request #2753 from tano-systems/pr-luci-base-update-ru-translation

luci-base: update Russian translation

5 years agoluci-base: update Russian translation 2753/head
Anton Kikin [Wed, 5 Jun 2019 18:39:48 +0000 (21:39 +0300)]
luci-base: update Russian translation

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
5 years agoluci-mod-system: fix SimpleForm usage on file editing pages
Jo-Philipp Wich [Wed, 5 Jun 2019 14:01:16 +0000 (16:01 +0200)]
luci-mod-system: fix SimpleForm usage on file editing pages

When a value identical to the stored one is submitted, the CBI framework
will not emit an option write event and therfore not store the value in
the form data dictionary passed to SimpleForm.handle().

This usage pattern usally works be accident for file editor views such
as admin_system/crontab because \r\n windows style line endings are
substituted with unix \n ones before writing the data, defeating the
equality check in CBI.

When a single line without trailing newline is submitted however, the
CBI will not see a difference to the data stored in the file and clear
out the value on subsequent saves.

This commit alignes the logic used by various SimpleForm views to
behave identically and predictable:

 - File data is handled in the SimpleForm.handle() callback
 - The forcewrite property is used to disable equality checks
 - Submission of an empty string empties the backing file

Fixes: #2737
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agolucihttp: update to latest Git HEAD
Jo-Philipp Wich [Wed, 5 Jun 2019 11:22:15 +0000 (13:22 +0200)]
lucihttp: update to latest Git HEAD

f6e0564 lib: fix handling of empty multipart fields
91c01c3 lib: fix multipart state transition in boundary parsing

Fixes: #2737
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoMerge pull request #2744 from TDT-AG/pr/20190603-luci-app-mwan3
Florian Eckert [Tue, 4 Jun 2019 20:07:24 +0000 (22:07 +0200)]
Merge pull request #2744 from TDT-AG/pr/20190603-luci-app-mwan3

luci-app-mwan3: change flush_conntrack option to list option

5 years agoMerge pull request #2748 from dibdot/duid-fix
Jo-Philipp Wich [Tue, 4 Jun 2019 15:14:37 +0000 (17:14 +0200)]
Merge pull request #2748 from dibdot/duid-fix

luci-base: fix duid_to_mac reference in status.lua

5 years agoluci-base: fix duid_to_mac reference in status.lua 2748/head
Dirk Brenken [Tue, 4 Jun 2019 14:54:24 +0000 (16:54 +0200)]
luci-base: fix duid_to_mac reference in status.lua

* fix for openwrt/packages#9148

Signed-off-by: Dirk Brenken <dev@brenken.org>
5 years agoMerge pull request #2746 from TDT-AG/pr/20190603-luci-theme-material
Florian Eckert [Tue, 4 Jun 2019 13:17:50 +0000 (15:17 +0200)]
Merge pull request #2746 from TDT-AG/pr/20190603-luci-theme-material

luci-theme-material: fix checkbox css StaticList view