Jo-Philipp Wich
6f6a29bcb0
luci-theme-bootstrap: add required styles for file upload widget
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
3f93650901
luci-base: use cgi-io and rpcd-mod-file to handle file upload and browsing
...
Remove the old server side support for file browsing and file uploading
and switch to a client side widget instead which uses XMLHTTPRequests to
upload files via cgi-io and RPC calls for file listing and status queries.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
1fcf34510a
luci-base: cbi.js: handle ui elements which return a promise in render()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
6d9a23af60
luci-base: cbi.js: fix unintended number sign overflow in format
...
Fixes : #3003
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
642b8277df
luci-base: form.js: use createHandlerFn() for click actions
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
eac8316e0d
luci-base: luci.js: use createHandlerFn() for page actions
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
e14b884771
luci-base: form.js: do not consider inactive fields for dependency checks
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
aef4bc3a23
luci-base: rpc.js: add getStatusText() call
...
The new function allows translating an ubus return code into a human
readable error message.
Also report the called object and method on ubus rpc errors.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
93af8a3af8
luci-base: network.js: fix, rework and improve wireless state handling
...
- Use new getWirelessDevices rpc method to optimize data fetching
- Implement further getters to access iwinfo information
- Implement assoc- and scan list functions
- Simplify internal data model
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
8cd40eb1e6
luci-base: add getWirelessDevices() rpc method
...
The getWirelessDevices() method merges the results of the
network.wireless/status call with corresponding per-radio and
per-network iwinfo data.
This allows to simplify the client side network state model
implementation and saves extraneous rpc roundtrips to fetch
iwinfo data after discovering the wireless devices.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
8481330e42
luci-base: luci.js: support passing FormData as request payload
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
d5e6688072
luci-base: luci.js: support registering request progress handlers
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
88969529f1
luci-base: luci.js: fix L.Poll.remove()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
14b6ea6ea7
luci-mod-network: slightly improve static lease config
...
- Autoselect the matching IPv4 address when initially picking a MAC
- Add hostname hints in the MAC/IP dropdowns
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
ac56dc057d
luci-base: form.js: use createHandlerFn() for modal button actions
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
c352fbf5e9
luci-base: form.js: disable write/remove actions for DummyValue widgets
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
b9d378b17d
luci-app-fireall: remove unused templates
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
42bc712e2c
luci-app-firewall: filter alias interfaces in zone device selection
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
06f4feca1d
protocols: drop server side cbi implementations of protocol handlers
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
e4bc192012
luci-mod-network: switch to client side interface configuration pages
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
6a2a53a829
protocols: add client side protocol handler implementations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
0674fc2041
luci-base: rpcd: add getHostname and getTTYDevices calls
...
Also add IPv6 feature indication.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
55b1ae6c9b
luci-base: network.js: add hacks to enable relay protocol support
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
d905dacf97
luci-base: ui.js: update tabs after initial render
...
This ensures that the error badges are properly set.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
745878d6cd
luci-base: form.js: rework section add/remove event handling
...
- Redraw map even when it could not be saved due to validation errors
- Use createHandlerFn() for attaching event handlers
- Convert buttons to <button> element to allow use of spinning class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
b0dde567ca
luci-base: ui.js: also handle failed promises in createHandlerFn()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
3500562d5e
luci-base: ui.js: ignore description when checking for empty tab panes
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
6b1003cd50
luci-base: luci.js: support custom filter function in dom.isEmpty()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Dirk Brenken
7bab8762f2
Merge pull request #3052 from dibdot/banIP
...
luci-app-banip: sync with banIP 0.2.0
2019-09-09 21:26:03 +02:00
Dirk Brenken
f21f4bd7e5
luci-app-banip: sync with banIP 0.2.0
...
* see details in package PR
Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-09-09 16:51:42 +02:00
Florian Eckert
28545f89bc
Merge pull request #3044 from stangri/master-luci-app-vpnbypass
...
luci-app-vpnbypass: better start/stop controls, create entry in the VPN menu if it exists
2019-09-08 12:26:52 +02:00
Hannu Nyman
6482e48ac6
Merge pull request #3048 from musashino205/l10n/fw-fix-uk
...
luci-app-firewall: remove unnecessary quotation in Ukrainian translation
2019-09-08 10:38:15 +03:00
Hannu Nyman
e606a1ded7
Merge pull request #3047 from musashino205/l10n/adblk-upd-ja
...
luci-app-adblock: update Japanese translation
2019-09-08 10:37:38 +03:00
INAGAKI Hiroshi
14d423e6ad
luci-app-firewall: remove unnecessary quotation in Ukrainian translation
...
Removed unnecessary double quotation at the end of the line. It was
reported as an error by i18n-sync.sh script.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-09-08 16:19:57 +09:00
INAGAKI Hiroshi
54cc1e4106
luci-app-adblock: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-09-08 16:15:38 +09:00
INAGAKI Hiroshi
24fba49d93
luci-app-adblock: sync translations
...
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-09-08 16:02:58 +09:00
Stan Grishin
a34f260a2e
luci-app-vpnbypass: better start/stop controls, create entry in the VPN menu if it exists
...
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-09-07 10:36:32 -07:00
Dirk Brenken
204293a766
Merge pull request #3041 from dibdot/adblock
...
luci-app-adblock: sync with adblock 3.8.5
2019-09-06 20:54:29 +02:00
Dirk Brenken
62c6f21de3
luci-app-adblock: sync with adblock 3.8.5
...
* support the new extra options 'TLD Compression Threshold',
'Local FW/DNS Ports' and 'DNS Inotify', see packages PR for details.
Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-09-06 13:36:52 +02:00
Jo-Philipp Wich
f9074ad68b
Merge pull request #3010 from TDT-AG/pr/20190826-dsl-status-FECS
...
luci-mod-status: xDSL Status: use new var names dsl.errors_fecs_*
2019-09-03 19:28:53 +02:00
Hannu Nyman
2fab0ad515
Merge pull request #3029 from musashino205/l10n/tmate-upd-ja
...
luci-app-travelmate: update Japanese translation
2019-08-31 17:11:45 +03:00
INAGAKI Hiroshi
63524a35e5
luci-app-travelmate: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-08-31 20:00:05 +09:00
INAGAKI Hiroshi
70442212f3
luci-app-travelmate: sync translations
...
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-08-31 19:52:42 +09:00
Dirk Brenken
dffe9ca0a4
Merge pull request #3025 from dibdot/travelmate
...
luci-app-travelmate: sync with 1.4.12
2019-08-29 20:04:07 +02:00
Dirk Brenken
da25890fd5
Merge pull request #3026 from stangri/master-luci-app-simple-adblock
...
luci-app-simple-adblock: dns resolver value bugfix (#3000 )
2019-08-29 15:24:56 +02:00
Stan Grishin
0645ae0a4a
luci-app-simple-adblock: dns resolver value bugfix ( #3000 )
...
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-08-29 06:21:20 -07:00
Dirk Brenken
916939933e
luci-app-travelmate: sync with 1.4.12
...
* option to add open uplinks to your wireless config,
e.g. hotel captive portals (disabled by default)
Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-08-29 14:16:12 +02:00
Florian Eckert
3fffcdef61
Merge pull request #3008 from TDT-AG/pr/20190826-firewall-german-translation
...
luci-app-firewall: Use more appropriate terms in german translations
2019-08-28 13:01:11 +02:00
Hannu Nyman
04d454ced1
Merge pull request #3014 from stangri/master-luci-app-advanced-reboot
...
luci-app-advanced-reboot: bugfix for when network.lan.ipaddr is a table
2019-08-27 16:55:44 +03:00
Hannu Nyman
63b14abf6d
Merge pull request #3017 from stangri/master-luci-app-simple-adblock
...
luci-app-simple-adblock: delete extra file
2019-08-27 16:54:41 +03:00