Commit graph

9201 commits

Author SHA1 Message Date
Dirk Brenken
dce8ae85ff luci-app-adblock: fix minor visual issue
* fix visual issue in runtime section (originally provided by @ansuel)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-12-04 22:26:18 +01:00
Jo-Philipp Wich
d2bbfa5077
Merge pull request #1459 from brianjmurrell/patch-1
Fix bad argument #1 to 'tonumber'
2017-12-04 15:03:42 +01:00
Brian J. Murrell
2c2e7f5cbb
Fix bad argument #1 to 'tonumber'
Fixes [FS#1118](https://bugs.lede-project.org/index.php?do=details&task_id=1118)

Luci chokes on devices that do not have _iptables_ installed with:

/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute function dispatcher target for entry '/'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute firstchild dispatcher target for entry '/admin'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute function dispatcher target for entry '/admin/status'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute template dispatcher target for entry '/admin/status/overview'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'admin_status/index'.
A runtime error occured: [string "/usr/lib/lua/luci/view/admin_status/index.h..."]:34: bad argument #1 to 'tonumber' (string expected, got nil)
stack traceback:
	[C]: in function 'assert'
	/usr/lib/lua/luci/dispatcher.lua:460: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:141: in function </usr/lib/lua/luci/dispatcher.lua:140>

The code should be more defensive.
2017-12-04 08:44:00 -05:00
Jakub Janco
890a2fc828 luci-app-mwan3: fix member metric allowed values
mwan3 accepts only 1-256 metric of member, if it is more, member is ignored.
This patch fix translations and allowed values of member metric input.

Signed-off-by: Jakub Janco <kubco2@gmail.com>
2017-11-29 00:30:53 +01:00
Paul Spooren
802d5b6bec luci-app-attendedsysupgrade: use rpc-sys pkglist
The bash package rpcd-mod-packagelist is no longer required as it has
been ported to rpc-sys by @dangowrt. The luci app now uses that feature.

The packagelist.acls is no longer required and has been removed.

luci-app-attendedsysupgrade: follow new server api

a new api uses more status codes and headers instead of genric 400 code
with json payload.

show error message when ubus call fail

fix typo

more info here
https://github.com/aparcar/attendedsysupgrade-server#response-status-codes

luci-app-attendedsysupgrade: refactoring

luci-app-attendedsysupgrade: use checksum

now compares cgi-io md5 checksum with md5 of server
as well checks if enough free memory is available to store image

Added needed ACL to let Luci request "system info"

rename "image" to "firmware" in output strings. This was requested as
"unification"

rpcd-mod-packelist used to return a variable called "packagelist", the
new "rpc-sys packagelist" returns a variable called "packages". This has
been adapted.

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-11-24 02:10:31 +01:00
Hannu Nyman
c647121e0a
Merge pull request #1445 from dibdot/travelmate
luci-app-travelmate: Chaos Calmer bugfixes
2017-11-21 05:51:17 +02:00
Dirk Brenken
49cfa04e6c luci-app-travelmate: Chaos Calmer bugfixes
* fixes for Chaos Calmer compatibility

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-11-19 20:04:46 +01:00
Mathias Kresin
0a2c7b9e5c luci-mod-admin-full: indicate DHCPv6 hostname mismatch
In case the DUID can be mapped to the MAC-Address of an already known
host, show the already know hostname next to the DHCPv6 supplied one in
case they differ.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-11-17 01:37:21 +01:00
Mathias Kresin
9f5a1de8b1 luci-mod-admin-full: always indicate missing DHCPv6 hostname
Don't show a DHCPv6 supplied hostname if none was send. It happens in
case the DUID can be mapped to the MAC-Address of an existing host and
the existing host has a name set.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-11-17 01:37:19 +01:00
Mathias Kresin
a1ee8e16b6 luci-mod-admin-full: don't replace DHCPv6 hostname
Don't replace the DHCPv6 supplied hostname if the DUID can be mapped to
the MAC-Address of an already known host.

It hides the issue of a missing DHCPv6 hostname and could lead to the
conclution that the already known host has an IPv6 address.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-11-17 01:27:18 +01:00
Paul Spooren
4891deaf94 luci-app-attendedsysupgrade: use common
use attendedsysupgrade-common package and rpc-sys instead of
rpcd-mod-attendedsysupgrade

luci-app-attendedsysupgrade: editable server url

the server url can now be changed. The solution is kept as simple as
possible to not introduce any lua code.

Small cleanup, but needs a refactoring.

Add acl rights to edit the attendedsysupgrade file

Add cgi-io as a dependencie to upload image to router

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-11-12 03:09:33 +01:00
Hannu Nyman
ede51e4641 timezone data: update to 2017c
Update timezone data to 2017c

http://mm.icann.org/pipermail/tz-announce/2017-October/000047.html

   Briefly:
   Northern Cyprus switches from +03 to +02/+03 on 2017-10-29.
   Fiji ends DST 2018-01-14, not 2018-01-21.
   Namibia switches from +01/+02 to +02 on 2018-04-01.
   Sudan switches from +03 to +02 on 2017-11-01.
   Tonga likely switches from +13/+14 to +13 on 2017-11-05.
   Turks & Caicos switches from -04 to -05/-04 on 2018-11-04.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-11-11 18:59:14 +02:00
Hannu Nyman
96553cf6bf
Merge pull request #1436 from artioni81/patch-5
Update openvpn.po
2017-11-11 16:10:42 +02:00
artioni81
ef3cfb770b
luci-app-openvpn: update Italian translation
Signed-off-by: Artion Karreci <artionkarreci@gmail.com>
2017-11-11 12:42:55 +01:00
Hannu Nyman
ba3752ff71
Merge pull request #1438 from musashino205/l10n/upnp-upd-ja
luci-app-upnp: Update Japanese translation
2017-11-11 11:10:19 +02:00
INAGAKI Hiroshi
8e64e9bceb luci-app-upnp: Update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-11-11 12:18:59 +09:00
INAGAKI Hiroshi
7f48b25038 i18n: Sync translations
Synchronized translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-11-11 12:14:52 +09:00
Andrea Merello
f0716ecd6e luci-mod-admin-full: add SNR tweak option to DSL
Reported-by: Andrea Merello <andrea.merello@gmail.com>
[rebase onto master, fix indentation, commit subject, depend on adsl mode]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 15:08:38 +01:00
Jo-Philipp Wich
084d8b120a luci-mod-admin-full: restrict DSL xfer_mode and line_mode options to VDSL modems
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 14:36:38 +01:00
artioni81
db4be00095
Update openvpn.po 2017-11-10 14:23:49 +01:00
Jo-Philipp Wich
932bae9873 protocols: fix various interface patterns
The virtual interface match patterns of various protocols were improperly
quoted, causing them to over- or undermatch.

Follow up of #1435.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 14:20:53 +01:00
Jo-Philipp Wich
e0a7227a0c
Merge pull request #1435 from TDT-GmbH/proto_4x6_pattern_fix
luci-proto-ipv6: fix patterns in proto_4x6.lua
2017-11-10 14:06:54 +01:00
Martin Schiller
f8b1b8a47a luci-proto-ipv6: fix patterns in proto_4x6.lua
The dash '-' needs to be escaped by a '%', otherwise it will
be interpreted as minus, which means '0 or more repetitions'.

This fixes LEDE FS#1157.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2017-11-10 13:49:45 +01:00
Jo-Philipp Wich
b2274e5d6d
Merge pull request #980 from NvrBst/pull-request-upnp_description
luci-app-upnp: Adding and displaying "Description" to upnp data
2017-11-10 13:06:10 +01:00
Jan Pavlinec
37f4a3b90c luci-mod-admin-full: add DUID option to static leases section
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
[add field validation]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 13:00:26 +01:00
Jo-Philipp Wich
6b2ad7958e
Merge pull request #1428 from BigNerd95/wifi-80211r
luci-mod-admin-full: wifi.lua: ft_psk_generate_local and ft_over_ds
2017-11-10 12:53:05 +01:00
Jo-Philipp Wich
cbaf881f05
Merge pull request #1409 from FreifunkUFO/patch-1
meshwizard: upgrade version for some olsr-plugins
2017-11-10 12:46:12 +01:00
Lorenzo Santina
40c744d96a luci-mod-admin-full: wifi.lua: 80211r ft_over_ds
Allow user to chose if use FT over DS protocol or
FT over the Air protocol for Fast BSS Transition

Signed-off-by: Lorenzo Santina <lorenzo.santina@edu.unito.it>
2017-11-06 14:15:43 +01:00
Lorenzo Santina
0ded26eba9 luci-mod-admin-full: wifi.lua: 80211r ft_psk_generate_local
Add local generation of PMK when using a PSK.
So 802.11r is easier to configure and no inter AP
communication is needed any more.

Signed-off-by: Lorenzo Santina <lorenzo.santina@edu.unito.it>
2017-11-06 14:10:18 +01:00
Hannu Nyman
676ce1142c
Merge pull request #1427 from musashino205/l10n/adblk-upd-ja
luci-app-adblock: Update Japanese translation
2017-11-05 10:40:41 +02:00
INAGAKI Hiroshi
61cd750363 luci-app-adblock: Update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-11-05 13:33:52 +09:00
INAGAKI Hiroshi
47f4469b29 luci-app-adblock: Sync translations
Synchronized translations with sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-11-05 11:49:53 +09:00
Paul Spooren
26c93debe9 luci-app-attendedsysupgrade: upgrade to version 2
Add required ubus acls from package rpcd-mod-attendedsysupgrade.

luci-app-attendedsysupgrade: add postinst script

removes caches and restarts uhttpd as mentioned here:
https://github.com/aparcar/gsoc17-attended-sysupgrade/issues/58#issuecomment-339370803

luci-app-attendedsysupgrade: redesign

simplified the interface and made it more "luci" like

simplify ubus interaction, use uci_call und ubus_call functions

add optional settings:

auto_search:
search on opening the view without clicking

advanced_mode:
if set, allow package edits, show build log

rename updateserver to upgradeserver
rename url to server_url

luci-app-attendedsysupgrade: rename uci options

remove leading "upgrade" from uci options
also rename server_url to url

cleaning

use new api/ urls

wait for successfull reboot

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-11-04 19:25:10 +01:00
Hannu Nyman
9e325a5162
Merge pull request #1426 from dibdot/app-adblock
luci-app-adblock: sync with adblock 3.1.0
2017-11-04 15:51:41 +02:00
Dirk Brenken
b02a13ea77 luci-app-adblock: sync with adblock 3.1.0
* add support for new 'whitelist mode'
* fix a small css issue in advanced edit tabs

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-11-04 14:13:22 +01:00
Hannu Nyman
de911fdd96
Merge pull request #1425 from TDT-GmbH/pr/20171103-luci-app-mwan3-fix-spelling
luci-app-mwan3: fix i18n spelling
2017-11-03 14:56:47 +02:00
Florian Eckert
afd84b3cab luci-app-mwan3: fix i18n spelling
Fix i18n en spelling

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-11-03 10:13:09 +01:00
Hannu Nyman
87ec343637
Merge pull request #1418 from yangfl/master
i18n: Update Chinese translation
2017-10-29 10:04:54 +02:00
Hannu Nyman
0a44cf09be
Merge pull request #1417 from felixonmars/patch-1
Fix typos in luci-base/luasrc/http/protocol.lua
2017-10-29 10:02:02 +02:00
yangfl
4dc055be85 i18n: Update Chinese translation
Signed-off-by: David Yang <mmyangfl@gmail.com>
2017-10-29 16:00:27 +08:00
Felix Yan
0167394a10
Fix typos in luci-base/luasrc/http/protocol.lua 2017-10-29 15:39:21 +08:00
Hannu Nyman
f907696972
Merge pull request #1416 from yangfl/master
i18n: Update Chinese translation
2017-10-28 15:48:05 +03:00
yangfl
7dd75df093 i18n: Update Chinese translation
Signed-off-by: David Yang <mmyangfl@gmail.com>
2017-10-28 18:57:21 +08:00
Hannu Nyman
d4e3d5686a i18n: sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-10-28 10:21:41 +03:00
Hannu Nyman
f24ae58277 Merge pull request #1414 from musashino205/l10n/minidlna-upd-ja
luci-app-minidlna: Update Japanese translation
2017-10-25 21:19:31 +03:00
INAGAKI Hiroshi
397ee0f9c7 luci-app-minidlna: Update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-10-25 22:34:06 +09:00
INAGAKI Hiroshi
a7b85958cc luci-app-minidlna: Sync translations
Synchronized translations with sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-10-25 22:24:48 +09:00
INAGAKI Hiroshi
721ef27cdc luci-app-minidlna: Fix UI text
Add missing colon ":" to the UI text for widelink option.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-10-25 22:16:14 +09:00
INAGAKI Hiroshi
b9be6b4163 luci-app-minidlna: Fix errors in po files
Modified incorrect "msgid" to "msgstr".

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-10-25 22:06:16 +09:00
Jo-Philipp Wich
fbe7f90eed luci-base: fix client side "host" datatype validator
Fixes #1413.

Reported-by: Wojciech Jowsa <wojciech.jowsa@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-10-25 14:23:47 +02:00