Stan Grishin
663eda55f5
luci-app-simple-adblock: delete extra file
...
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-08-26 23:18:46 -07:00
Dirk Brenken
f8e30d5695
Merge pull request #3012 from dibdot/adblock
...
luci-app-adblock: sync with adblock 3.8.3
2019-08-26 20:09:58 +02:00
Dirk Brenken
bd405bfed0
luci-app-adblock: sync with adblock 3.8.3
...
* fix a suspend/resume issue
* format overall domains with a thousands separator
Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-08-26 14:09:39 +02:00
Jo-Philipp Wich
fbdf86f7a1
Merge pull request #3011 from YuriPet/master
...
luci-base: fix some Ukrainian translations
2019-08-26 13:01:55 +02:00
Yurii
5f056678a2
luci-base: fix some Ukrainian translations
...
Signed-off-by: Yurii <yuripet@gmail.com>
2019-08-26 13:26:36 +03:00
Jo-Philipp Wich
595ed8ec1a
Merge pull request #3007 from TDT-AG/pr/20190826-base-german-translation
...
luci-base: fix some german translations
2019-08-26 09:12:56 +02:00
Martin Schiller
38d2b31b94
luci-base: fix some german translations
...
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-08-26 09:05:07 +02:00
Hannu Nyman
c891e79113
Merge pull request #3005 from musashino205/l10n/adblk-upd-ja
...
luci-app-adblock: update Japanese translation
2019-08-26 09:16:00 +03:00
INAGAKI Hiroshi
b2942a9bb0
luci-app-adblock: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-08-26 14:00:20 +09:00
Hannu Nyman
6f114fb892
Merge pull request #2996 from musashino205/l10n/base-upd-ja
...
luci-base: update Japanese translation
2019-08-25 19:14:30 +03:00
INAGAKI Hiroshi
a4c95f6647
luci-base: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-08-21 23:44:48 +09:00
INAGAKI Hiroshi
4b40b0d6fc
i18n: sync translations
...
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-08-21 23:07:14 +09:00
Jo-Philipp Wich
2aab85814d
luci-base: form.js: implement Textfield widget
...
Port the CBI Textfield (textarea) widget type to client side form.js
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-19 15:06:31 +02:00
Jo-Philipp Wich
afd361e368
luci-base: ui.js: implement Textarea widget
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-19 15:04:16 +02:00
Hannu Nyman
276aa89be3
Merge pull request #2990 from stangri/master-luci-app-simple-adblock
...
luci-app-simple-adblock: support for varios DNS resolvers/options
2019-08-18 20:14:06 +03:00
Hannu Nyman
07e2fc565c
Merge pull request #2989 from stangri/master-luci-app-advanced-reboot
...
luci-app-advanced-reboot: support for Linksys EA8300
2019-08-18 20:12:50 +03:00
Stan Grishin
80b95042e9
luci-app-simple-adblock: support for varios DNS resolvers/options
...
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-08-17 06:15:10 -07:00
Stan Grishin
0d0a8b882d
luci-app-advanced-reboot: support for Linksys EA8300
...
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-08-17 04:29:01 -07:00
Jo-Philipp Wich
f3bcb918bf
luci-base: network.js: fix inverted logic in registerErrorCode()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-16 12:01:09 +02:00
Jo-Philipp Wich
24aa675a46
luci-base: widgets.js: CBINetworkSelect: honour exclude option
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-16 09:49:11 +02:00
Dirk Brenken
c2d6770801
Merge pull request #2983 from dibdot/adblock
...
luci-app-adblock: sync with adblock 3.8.0
2019-08-16 06:15:32 +02:00
Jo-Philipp Wich
acc2c8d277
luci-base: use native ubus-rpc authorization protocol
...
Instead of granting complete ubus access under the active sysauth session,
implement the ubus-rpc authorization mechanism and make the ubus proxy
endpoint unauthenticated.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-15 16:10:42 +02:00
Jo-Philipp Wich
438d4b95c3
luci-base: add rpc feature tests for sysntpd and zram
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-15 16:10:42 +02:00
Jo-Philipp Wich
42bd5aa9c4
luci-app-firewall: fix zone overview page after rpc procedure renaming
...
The "conntrack_helpers" method has been renamed to "getConntrackHelpers".
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-15 15:40:46 +02:00
Dirk Brenken
9400fc7536
luci-app-adblock: sync with adblock 3.8.0
...
* add support for the 'null' blocking variant in dnsmasq
(via addn-hosts), see new select box 'DNS Variant'
* add support for 'DNS File Reset', where the final DNS blockfile
will be purged after DNS backend loading (save storage space)
* Provide additional Runtime information:
'DNS Variant' and 'Backup Directory'
* add E-Mail notification options to LuCI
Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-08-15 11:36:48 +02:00
Jo-Philipp Wich
d19e97bcb0
luci-base: widgets.js: support alias interfaces in CBIDeviceSelect
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 23:02:25 +02:00
Jo-Philipp Wich
7179d2e6dd
luci-base: ui.js: add createHandlerFn() helper
...
The createHandlerFn() helper function is useful to construct onclick
or similar event handling functions. It will add a "spinning" CSS
class on the event target element and disable the element, wrap the
given function with Promise.resolv() and re-enable the target element
once the promise is settled.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
0d0882aea0
luci-base: network.js: overhaul code
...
- Rework internal state management
- Implement new utility functions such as getL3Device() or getModemType()
- Fix bugs in various functions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
ed8f1c4c1c
luci-app-firewall: honour global default policies in per-zone settings
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
7610f1d9cf
luci-base: firewall.js: fix addZone()
...
When checking for an existing zone with the same name internally,
addZone() must use the nonblocking lookupZone() instead of the
promise returning public getZone() call.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
167ad7bb12
luci-base: rpc: drop offload_support call
...
It is superseded by the more generic getFeatures method.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
9f032e02e4
luci-app-firewall: drop usage of getOffloadSupport()
...
Rely on the more generic L.hasSystemFeature() from now on.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
a4621c9520
luci-base: luci.js: introduce hasSystemFeature() api
...
The new function allows querying the presence of certain system features
such as dnsmasq or firewall availability or the compile time features
of hostapd and wpa_supplicant.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
3b335f2764
luci-base: form.js: support passing a callback to Map.save()
...
The given callback function will be executed after the map is parsed,
but before the uci is saved. This is useful to add further uci changes
before the map is re-rendered.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
082fd9ff10
luci-base: form.js: implement support for tabbed maps
...
When .tabbed is set to true on a map, all enclosed sections will be
put into separate tabs.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
b391387ce7
luci-base: form.js: improve ui tab interaction
...
- Delay initialization of tab groups
- Tag section nodes with IDs to store per-section tab state
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
c2eba00a10
luci-base: ui.js: rework tab state handling
...
Properly preserve the selection state of nested tabs.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
fb18c278a4
luci-base: form.js: CBISectionValue: properly forward dependency checks
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
43a8c12f04
luci-base: ui.js: UISelect: fix check for empty choices
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
5628329434
luci-base: form.js: allow overriding empty section placeholder rendering
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
a90bf384b2
luci-base: form.js: harmonize title property handling
...
Some title properties were expected to be functions, some strings.
Refactor the code to support both string or function values for all
title properties.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
a36e1e976b
luci-base: form.js: inherit uci config overrides from parent sections
...
When the parent section of an option object specifes an alternative
uci configuration name, enclosed option elements should honour it.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
46861a527e
luci-base: form.js: fix rendering of button widgets
...
Also introduce an `onclick` property to allow registering custom button
action handler.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
3789148fc9
luci-base: form.js: add further caption properties
...
Introduce properties `addbtntitle`, `removebtntitle` and `modaltitle` to
allow overriding the captions of section add buttons, remove buttons and
modal dialog titles respectively.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
f7a3546989
luci-base: network.js: add getL2Device(), getMTU() helpers
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
d528a96947
luci-base: network.js: support dynamically loaded protocol classes
...
Port the existing server side protocol support framework to the client
side network.js.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
00ec399fa1
luci-base: network.js: expose prefixToMask() and maskToPrefix()
...
Expose the prefixToMask() and maskToPrefix() helper functions for use by
other modules, e.g. the datatype validator.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
e64b0c3c0d
luci-base: network.js: return mac addresses in upper case
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
227fae8a37
luci-base: network.js: extend ifnameOf() and expose as getIfnameOf()
...
Extend the ifnameOf() helper function to cover all object types used by
network.js and expose it as public getIfnameOf() api function for use by
other modules.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
3e5ef065df
luci-base: network.js: add ability to flush the internal cache
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00