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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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
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>
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
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>
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>
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
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
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>
Matthias Berndt [Wed, 3 Jul 2019 22:40:58 +0000 (00:40 +0200)]
make luci-app-statistics more extensible
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
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
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
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>
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>
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
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
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>
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>
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
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>
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
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>
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>
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>
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
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>
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
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
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
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...'
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>
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_
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
aleem-tectonic [Wed, 26 Jun 2019 14:02:22 +0000 (15:02 +0100)]
add dialnum option
Signed-off-by: geekinaboxx <aleem@tectonic.it>
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>
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>
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
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
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>
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>
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>
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>
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)
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>
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
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>
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>
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>
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>
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>
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>
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
练亮斌 [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>
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>
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>
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>
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>
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
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>
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>
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
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>
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
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>
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>
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>
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
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
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>
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
Florian Eckert [Thu, 23 May 2019 07:45:00 +0000 (09:45 +0200)]
luci-theme-material: fix checkbox css StaticList view
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Jo-Philipp Wich [Mon, 3 Jun 2019 14:49:10 +0000 (16:49 +0200)]
themes: don't reset theme on package upgrades
Fixes: #2743
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 3 Jun 2019 14:34:06 +0000 (16:34 +0200)]
Merge pull request #2742 from Ansuel/odhcp-lease
luci-base: handle dhcp lease from odhcpd
Florian Eckert [Wed, 22 May 2019 08:56:31 +0000 (10:56 +0200)]
luci-app-mwan3: change flush_conntrack option to list option
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Ansuel Smith [Sun, 2 Jun 2019 20:37:31 +0000 (22:37 +0200)]
luci-base: handle dhcp lease from odhcpd
Currently only the dnsmasq lease file is read for hostname hint. If someone use only odhcpd as dhcp daemon the hostname resolution on wifi_assoc list is broken.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Ansuel Smith [Sun, 2 Jun 2019 20:33:02 +0000 (22:33 +0200)]
luci-base: adds duid_to_mac to sys.lua
Move duid_to_mac function from status.lua to sys.lua.
Implement translation from DUID-LL without header to MAC
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Jo-Philipp Wich [Fri, 31 May 2019 18:09:41 +0000 (20:09 +0200)]
build: i18n-scan.pl: properly handle bracket-quoted strings
Fixes: #2738
Signed-off-by: Jo-Philipp Wich <jo@mein.io>