Commit graph

9990 commits

Author SHA1 Message Date
Kristian Evensen
a13748d414 luci-base: Show multiple upstream interface
Several devices have multiple upstream interfaces, for example a fixed
and a mobile broadband connection. Currently, only one upstream
interface is shown per address family in Luci. So in my example, one of
the interfaces would not appear on the Status-page.

This PR introduces support for showing multiple upstream interfaces on
the Status-page. The code is not very complicated. get_status_by_route()
has been extended to return a list of all routes, and
get_wannet()/get_wan6net() now returns all upstream interfaces.

I could not find any other (active) users of these three functions than
calls triggered from the Status-page, so changing the default behavior
should be fine. get_wandev()/get_wan6dev() called get_status_by_route(),
but I could not find any place where those functions were called. I
removed the dev-functions instead of keeping the old
get_status_by_route().

On the status page, the wan/wan6-variables have been replaced with
arrays. When populating the html, we now iterate through these arrays
and create one element for each interface.

I have tested the code with different interface types, v4, v6, as well as
disconnecting and connecting interfaces. The status is updated and the
correct interfaces (or sometimes none at all) are shown.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
2018-09-19 11:01:38 +02:00
Dirk Brenken
fb27334aef
Merge pull request #2136 from aft90/luci-app-adblock-query-box-placeholder
luci-app-adblock: use placeholder in query tool
2018-09-08 20:23:15 +02:00
Dirk Brenken
47bffc14da
Merge pull request #2137 from musashino205/l10n/adblk-upd-ja
luci-app-adblock: update Japanese translation
2018-09-08 20:21:56 +02:00
INAGAKI Hiroshi
19fa506eff luci-app-adblock: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-09-09 02:40:08 +09:00
Andrei Troie
ddaac101a5 luci-app-adblock: use placeholder in query tool
Use the placeholder property on the textbox in the query tool so it's more convenient.

Signed-off-by: Andrei Troie <andreitroie90@gmail.com>
2018-09-07 23:59:20 +01:00
Hannu Nyman
18b4483fe7
Merge pull request #2131 from tano-systems/firewall-fix-russian-translation
luci-app-firewall: fix and update Russian translation
2018-09-07 16:35:34 +03:00
Anton Kikin
299988e9cd luci-app-firewall: fix and update Russian translation
Add missing translations and update existing not quite correct translations.
Removed redundant <br> tags from translations.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-09-06 19:49:28 +03:00
Anton Kikin
9b4bc1da41 luci-base: fix a typo in Russian translation
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-09-06 09:14:31 +08:00
Dirk Brenken
f6dd8761fc
Merge pull request #2110 from stangri/luci-app-https_dns_proxy
luci-app-https_dns_proxy: initial commit
2018-09-04 16:49:43 +02:00
Dirk Brenken
0208b957a7
Merge pull request #2120 from TDT-AG/pr/20180830-luci-app-mwan3-fixes
luci-app-mwan3:  fixes and improvements
2018-09-03 16:31:41 +02:00
Stan Grishin
89110b1757 luci-app-https_dns_proxy: initial commit
Signed-off-by: Stan Grishin <stangri@melmac.net>
2018-09-02 18:49:54 -07:00
Hannu Nyman
875d80a07e
Merge pull request #2129 from Rixerx/master
luci-base: update Polish translation
2018-09-02 20:29:25 +03:00
Krystian Kozak
b16a257bd6 luci-base: update Polish translation
Updated Polish translations.

Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2018-09-02 19:26:26 +02:00
Hannu Nyman
616d806f1c
Merge pull request #2127 from tano-systems/update-russian-translation
luci-base: update Russian translation
2018-09-02 10:54:06 +03:00
Dirk Brenken
e3b060b3a6
Merge pull request #2125 from dibdot/adblock
luci-app-adblock: sync with adblock 3.5.5
2018-09-01 17:10:37 +02:00
Anton Kikin
961d02103f luci-base: update Russian translation
Add missing translations.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-09-01 16:38:36 +03:00
Hannu Nyman
757a6c7fc0
Merge pull request #2124 from YuriPet/master
luci-base: update Ukrainian translation
2018-09-01 10:25:35 +03:00
Dirk Brenken
4e56083833 luci-app-adblock: sync with adblock 3.5.5
* fix cornercase issues in runtime information/json parsing

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-09-01 08:42:00 +02:00
Yurii
f10818b98a
luci-base: update Ukrainian translation
Updated with the latest sync translation.

Signed-off-by: Yurii yuripet@gmail.com
2018-09-01 00:16:40 +03:00
Hannu Nyman
eec5e98aee
Merge pull request #2123 from musashino205/l10n/base-upd-ja
luci-base: update Japanese translation
2018-08-31 22:25:03 +03:00
INAGAKI Hiroshi
6b4e30bd28 luci-base: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-09-01 03:30:34 +09:00
INAGAKI Hiroshi
7cafad8b31 i18n: sync translations
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-09-01 02:23:25 +09:00
Jo-Philipp Wich
1b2065d0be luci-proto-ppp: align keepalive defaults with current OpenWrt
Disabling LCP echos by *not* setting "option keepalive" was broken in
OpenWrt since https://dev.archive.openwrt.org/ticket/2373.html so setting
"0" in LuCI had the effect of reverting back to "5, 1" while the help
suggested otherwise.

Support for "keepalive 0" was fixed with https://git.openwrt.org/555c59230
so align LuCI now to emit "option keepalive 0" instead of removing the
option when entering "0" in the gui.

Fixes #2112
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-30 15:33:26 +02:00
Florian Eckert
1b3f9b1f7e luci-app-mwan3: translate missing text in diagnostic page
Translate missing text.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30 14:44:58 +02:00
Florian Eckert
21de87a1d6 luci-app-mwan3: diagnostic fix physical device lookup
Use diffrent function to get the physical interface name.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30 14:44:58 +02:00
Florian Eckert
665e062061 luci-app-mwan3: change interface enabled option to use flag cbi class
Make mwan3 interface enable config option use cbi flag.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30 14:44:34 +02:00
Florian Eckert
8d0cccdb43 luci-app-mwan3: add command to diag_command output view
Add executed command to diagnostic output.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-08-30 14:31:29 +02:00
Hannu Nyman
bac444dae6
Merge pull request #2117 from cshoredaniel/pr-app-nut
luci-app-nut: Add support for NUT configuration
2018-08-29 16:32:58 +03:00
Daniel Dickinson
fb262ad268 luci-app-nut: Add support for NUT configuration
Adds app to configure NUT (Network UPS Tools), including
nut-server, nut-monitor, and nut-cgi.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-08-29 01:03:17 -04:00
Hannu Nyman
b93d3f3a18
Merge pull request #2103 from dibdot/force_fix
luci-mod-admin-full: fix forced upgrade
2018-08-20 23:41:20 +03:00
Dirk Brenken
53b90e3c8c luci-mod-admin-full: fix forced upgrade
* fix logical glitch in forced upgrade logic

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-08-20 21:36:11 +02:00
Dirk Brenken
4dd932fdf9
Merge pull request #2095 from ameer1234567890/remove-colons-unbound
luci-app-unbound: Colons removed from input headers
2018-08-20 17:11:06 +02:00
Ameer Dawood
71581c80b1
luci-app-unbound: Colons removed from input headers
Most OpenWrt applications do not have a colon in input headers.
This has been explained in #1566 as well.
This commit removes the said colons.

Signed-off-by: Ameer Dawood <ameer1234567890@gmail.com>
2018-08-19 13:42:49 +05:00
Dirk Brenken
6fa1267553
Merge pull request #2075 from dibdot/force_update
luci-mod-admin-full: allow forced upgrade (revised)
2018-08-17 16:11:27 +02:00
Dirk Brenken
89486bd66f luci-mod-admin-full: allow forced upgrade (revised)
* allow 'forced' firmware upgrades, even if the image format check
fails. Useful where flashing back to the OEM versions or switching
between ar71xx and ath79 builds
* option is only visible after first/failed image check
* added warning info (see screenshots below)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-08-17 12:52:36 +02:00
Jo-Philipp Wich
8c77975d1b luci-base: remove fake password field from tab order
Set a negative tabindex on the dummy password field to not break the form
tab order flow.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-17 06:58:53 +02:00
Jo-Philipp Wich
98d4eb1695 luci-base: mark password template dummy field as hidden
Mark the dummy input field as aria-hidden, should fix #2063.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-16 09:36:37 +02:00
Dirk Brenken
18805b896a
Merge pull request #2068 from ameer1234567890/patch-1
luci-app-minidlna: Colons removed
2018-08-15 19:30:10 +02:00
Ameer Dawood
808153fd9d
luci-app-minidlna: Colons removed
Colons have been removed as asked in #1566
Signed-off-by: Ameer Dawood <ameer1234567890@gmail.com>
2018-08-15 22:13:59 +05:00
Hannu Nyman
e7797bca8b
Merge pull request #2066 from hcwhan/master
the 'infinite' error in zh-cn
2018-08-15 18:41:15 +03:00
hcwhan
93cf4e2a27
Update base.po 2018-08-15 13:43:49 +08:00
Jo-Philipp Wich
809d3b9371
Merge pull request #2040 from yangfl/master
luci-app: update Chinese translation
2018-08-13 15:23:27 +02:00
Jo-Philipp Wich
73f2c37a01
Merge pull request #1989 from hanipouspilot/ncm
luci-proto-ncm: suggest both tty and wdm devices
2018-08-13 15:23:02 +02:00
Jo-Philipp Wich
40b2d38ac4
Merge pull request #2060 from Ansuel/reboo
luci-mod-admin-full: applyreboot doesn't reload page
2018-08-13 15:21:40 +02:00
Jo-Philipp Wich
24f1364f5e
Merge pull request #2058 from EricLuehrsen/unbound_20180810
luci-app-unbound: add zone-details combined tab
2018-08-13 15:21:01 +02:00
Ansuel Smith
442ece768d
luci-mod-admin-full: applyreboot doesn't reload page
The applyreboot page doesn't reload the page onload of the loding gif. This adds the right function.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-08-13 10:57:21 +02:00
Jo-Philipp Wich
bf123fb7c4 luci-app-firewall: allow "open ports" when no wan zone exists
Arguably this makes little if no wan zone exists but prefer consistency
over heuristics and always render the "open port" shortcut.

Fixes #2056
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-13 09:23:26 +02:00
Jo-Philipp Wich
849d153851 treewide: rework uci change display
- Use native rpcd uci changes format instead of incompletely converting
   back and forth between the old and the new format
 - Rework uci changelog template to print the equivalent uci commands
   for the various changes
 - Rework theme headers to properly count the uncomitted changes
 - Rework theme CSS to properly style new changelog

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-13 09:23:22 +02:00
Eric Luehrsen
dec88df41c luci-app-unbound: add zone-details combined tab
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
2018-08-12 20:06:15 -04:00
yangfl
9711120e06 luci-app: update Chinese translation
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-08-11 15:46:07 +08:00