Commit graph

8349 commits

Author SHA1 Message Date
Hannu Nyman
12f98db8ba luci-base: backport cbi datatype changes
Backport the new cbi datatypes and whitespace fixes from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-28 16:22:52 +02:00
Cody R. Brown
a100738163 mod-admin-full: Add IPv6 Prefix Delegation information to Status Pages
The Overview page and Network>Interfaces page currently do not give much
information about IPv6, particularly with Prefix Delegated setups. In these
setups, ISP will delegate a prefix to the router. Currently LuCI doesn't display
this Prefix Delegation from the ISP anywhere. A number of changes was added
to this commit:

1) self:_ubus("ipv6-prefix") was extracted and put into protocol.ip6prefix.
2) Network>Interfaces page, if a .ip6prefix is present, show it under Status.
   (IPv6-PD).
3) On the Overview page, "Type" and "Prefix Delegated" has been added to
  the IPv6 Network Overview Status:
  - Type will display the .proto, similar to the IPv4 case.
    If a .ip6prefix is present, it'll display a "-pd" at the end of
    the Type: i.e. dhcpv6-pd vs. dhcpv6.
  - If no .ip6prefix is present, it'll do what it does currently, and
    just show Address, or :: if no address is present.
  - If .ip6prefix is present, it'll show the "Prefix Delegated", it'll also
    hide "Address" if no address is present, else it'll show ifc6.ip6addr as well.

Signed-off-by: Cody R. Brown <dev@codybrown.ca>
(cherry picked from commit 5377d22b4a)
(commit message reformatted)
2017-02-20 16:48:19 +02:00
Eric Luehrsen
6c09d83406 luci: ignore '::1' in realtime connections
luci ignores only 127.0.0.1 in real time connections.
The dnsmasq.init script sets up resolv.conf(s) as such.
With alternate DNS servers configured 'localhost' will
resolve to '127.0.0.1' or '::1'. The connections graph
will spam itself. openwrt/luci#996

Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
(cherry picked from commit 52771816a0)
2017-02-20 16:47:56 +02:00
Jo-Philipp Wich
a57a17ad8a luci.mk: only use remote branch detection
LEDE's scripts/feeds script creates local branches named after the checked
out commit hash, confusing local branch detection.

Solely use remote branch detection to avoid misidentifying such cases.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-02-20 14:35:54 +01:00
Jo-Philipp Wich
79992f1a67 luci.mk: fix branch detection in detached HEAD state
When LuCI is checked out via pinned feeds configuration, its source tree will
end up in detached head state, requiring some more magic to figure out the
proper branch.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-02-20 14:16:26 +01:00
Hannu Nyman
f535090ffc i18n: sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-16 14:49:25 +02:00
Hannu Nyman
a76564d973 luci-mod-admin-full: change html for compatibility with openwrt theme
Openwrt theme apparently accepts slightly different html than
Bootstrap or Material. Change code to <br /> to make it compatible.

This fixes #1011

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 6a2a62fa4f)
2017-02-15 08:54:59 +02:00
Hannu Nyman
7e6b3d1eb9 luci-mod-admin-full: place 80211w options behind a check for wpad-full
The default hostapd/wpad mini version does not support ieee80211w
and the option's visibility in LuCI may lead it to be placed in user's
/etc/config/wireless preventing wifi from starting.

Check for hostapd/wpad full before exposing the option.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 07e01d094e)
2017-02-14 23:43:05 +02:00
Hannu Nyman
3613236505 Merge pull request #998 from hnyman/backport-80211r-80211w
Backport 802.11r and 802.11w LuCI support to lede-17.01
2017-02-14 14:23:40 +02:00
Hannu Nyman
d1d3b8612e Backport: support for 802.11w Management Frame Protection
Add support for IEEE802.11w Management Frame Protection options
into the wireless config.

Mention in the help text that the full version of wpad/hostapd is
needed.

Currently supported in LEDE by ath9k and ath10k, mwlwifi and mt76.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

(cherry picked from commit 4ddb6b2816)
(cherry picked from commit 4d31f7ca30)
2017-02-10 17:21:47 +02:00
Hannu Nyman
8dec864828 Backport: support for 802.11r fast transition in wireless config
Backports from master the commits that add support for
IEEE802.11r Fast Transition to luci.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

(cherry picked from commit f02794f28c)
(cherry picked from commit 171c06146a)
(cherry picked from commit 02bed26188)
(cherry picked from commit c491c181ea)
2017-02-10 17:14:48 +02:00
Hannu Nyman
5e7b188ecb luci-base: add hexstring datatype
Add datatype 'hexstring' for input validaiton datatypes.

It will accept any hexadecimal string.

(no length validation, as rangelength can be used for that.)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 11f23559e4)
2017-02-10 17:12:57 +02:00
Daniel Dickinson
1f014bd218 Merge pull request #957 from musashino205/17-dynpnt-add-ja
luci-app-dynapoint: Add Japanese translation
2017-02-07 16:04:20 -05:00
Dirk Brenken
d5734c5abd luci-app-adblock: put backup options to global section
this PR reflect the changes made in adblock 2.3.0

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit d3a74836b7)
2017-02-07 19:22:24 +02:00
Hannu Nyman
e306ee6c93 luci-ssl-openssl: use OpenSSL for key generation, drop px5g
Replace a dependency for px5g with openssl-util. Both LEDE and
Openwrt have now uhttpd versions that can generate keys with
OpenSSL cmd tools if px5g is not found. This change enables an
"OpenSSL-only" version of LuCI without mbedTLS/PolarSSL.

(Note: if px5g is found, uhttpd will prefer that.)

Relevant commits in uhttpd:

LEDE:
3c4858eeb2
82132540a3
9097dc5ad8

Openwrt:
6ec32832d2

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit b6341bd197)
2017-02-02 08:41:25 +02:00
Jo-Philipp Wich
5f80115b2c luci-mod-admin-full: fixes for usbport LED triggers
The previous commit erroneously used "ports" instead of "port" as name for the
option widget, causing wrong uci values to be written.

Also work around some cbi idiosyncrasies regarding MultiValue widgets which
prevented rendering the correct initial selection state.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-02-02 00:40:43 +01:00
Jo-Philipp Wich
46fd88ec6c luci-base: fix logic errors in ipmask4 and ipmask6 datatype validators
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-30 19:14:54 +01:00
Jo-Philipp Wich
472dc4b9e2 luci-mod-admin-full: admin: change password in Map.parse()
Move the password setting into the .parse() callback to ensure that it is
updated regardless of whether "Save" or "Save & Apply" has been pressed.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-26 00:39:38 +01:00
Jo-Philipp Wich
af2c7d9ebe luci-mod-admin-full: support configuring usbport LED triggers
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-26 00:39:38 +01:00
Jo-Philipp Wich
0a6507d760 luci-base: mvalue: fix column wrapping
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-26 00:39:38 +01:00
Jo-Philipp Wich
6e412cc78c luci-mod-admin-full: reload wifi settings page after changing countey code
Reloading the page ensures that the allowed tx power values and channel select
lists are properly populated with the new effective values.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-26 00:39:38 +01:00
Rafał Miłecki
1cd096d291 luci-mod-admin-full: allow unset txpower value
Sometimes txpower is not set so we should have an option with empty
value to let it stay unset.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2017-01-26 00:39:38 +01:00
Jo-Philipp Wich
7cd9ecff00 luci-base: datatypes.lua: add missing parentheses in conditional
The missing parens lead to a wrong expression precedence, causing a runtime
error when attempting to compare nil with a number.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-24 13:52:12 +01:00
Jo-Philipp Wich
33a917f9c4 luci-app-firewall: use new ipmask validation types when applicable
This allows for address specifications like "fdca🔢0123::abcd/::ffff:ffff:ffff:ffff"
which only match the last 64 bits of an address. This syntax is legal and already supported
by iptables and firewall3.

Fixes https://bugs.lede-project.org/index.php?do=details&task_id=417

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-23 16:19:26 +01:00
Jo-Philipp Wich
8297be5485 luci-base: add ipmask, ipmask4 and ipmask6 validators
These validators accept IP address specifications in the form

 - address
 - address/bits
 - address/netmask

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-23 16:19:23 +01:00
Jo-Philipp Wich
07ceede1be luci-base: datatypes.lua: cleanup white space
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-23 16:18:56 +01:00
INAGAKI Hiroshi
7d1f875c25 luci-app-dynapoint: Add Japanese translation
Added Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-01-18 00:54:19 +09:00
Daniel Dickinson
f00a1ac2d9 Merge pull request #953 from musashino205/mount-fix-disp
luci-mod-admin-full: Fix display problems of mount
2017-01-16 10:45:20 -05:00
Daniel Dickinson
be28190838 Merge pull request #947 from danrl/proto-wireguard
luci-proto-wireguard: enable addressing for tunnel interfaces
2017-01-16 09:39:55 -05:00
Daniel Dickinson
348a6fde90 Merge pull request #817 from ascob/luci-app-dynapoint
luci-app-dynapoint: new package
2017-01-16 09:28:26 -05:00
Daniel Dickinson
859bac61fc Merge pull request #917 from aa65535/master
luci-base:adjust the code order
2017-01-16 09:26:42 -05:00
Daniel Dickinson
a85807d375 Merge pull request #946 from chloe-jeong/trunk-ko
Updates korean languages.
2017-01-16 02:07:36 -05:00
Daniel Dickinson
2cb780c8cc Merge pull request #861 from ynezz/master
luci-mod-admin-full: Store system time into RTC also
2017-01-16 01:49:21 -05:00
Daniel Dickinson
98d1a09b57 Merge pull request #859 from feckert/realtime_wlan
luci-mod-admin-full: show realtime wlan graph only if iw command is installed
2017-01-16 01:42:00 -05:00
INAGAKI Hiroshi
bc8f58a2ef luci-base: sync translations
Recently a string to be translated were added to Lua source, so
I synchronized po templates and po file of each language with Lua
source.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-01-16 13:01:17 +09:00
INAGAKI Hiroshi
9b56b0709f luci-mod-admin-full: Fix display problems of mount
Fixed some display problems where the UUID label of the drop down
list does not exist and the positions of other labels are misplaced
in mount settings page.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-01-16 12:52:06 +09:00
ascob
cd8096b0ce luci-app-dynapoint: new package
Add luci-app-dynapoint to repo
LuCI Support for DynaPoint
Dynapoint allows dynamic access point creation
and deletion depending on changes of certain network conditions.
More information: https://github.com/thuehn/dynapoint

Signed-off-by: Tobias Ilte <tobias.ilte@campus.tu-berlin.de>
2017-01-15 14:18:08 +01:00
Daniel Dickinson
d732836063 Merge pull request #948 from musashino205/wifi-fix-disp
luci-mod-admin-full: Fix display problem of wifi_add
2017-01-14 16:06:36 -05:00
INAGAKI Hiroshi
35f68fb7ea luci-mod-admin-full: Fix display problem of wifi_add
Fixed an issue where the network name is displayed as "%q" on wlan
connection destination network settings page.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-01-15 02:16:33 +09:00
danrl
77ea7c8c7e luci-proto-wireguard: enable addressing for tunnel interfaces
Enable static addresses on WireGuard tunnel interfaces without requiring
an static address interface.

This removes the requirement to use a static address interface on top of a
WireGuard tunnel interface in the majority of cases. In the past, users have
been confused by the current approach and asked for a simpler way to configure
WireGuard interfaces.

Signed-off-by: Dan Luedtke <mail@danrl.com>
2017-01-14 17:12:36 +01:00
Weongyo Jeong
752a6df19f luci-app-firewall: Updates korean language.
Initial korean language support for luci-app-firewall.

Signed-off-by: Weongyo Jeong <weongyo@gmail.com>
2017-01-14 21:13:48 +09:00
Weongyo Jeong
fe7fd0e230 luci-base: Updates korean language.
Signed-off-by: Weongyo Jeong <weongyo@gmail.com>
2017-01-14 21:12:53 +09:00
Daniel Dickinson
75c9670bf8 Merge pull request #942 from musashino205/tmate-upd-ja
luci-app-travelmate: Update Japanese translation
2017-01-14 01:57:34 -05:00
Daniel Dickinson
ef38306a47 Merge pull request #943 from SvenRoederer/patch-1
freifunk-common: bump version as of recent changes
2017-01-14 01:56:08 -05:00
Sven Roederer
12e82a3425 freifunk-common: bump version as of recent changes
the updates for olsr-0.9.5 compatibility should have changed the release-number

Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
2017-01-13 23:28:42 +01:00
INAGAKI Hiroshi
f005a173ae luci-app-travelmate: Update Japanese translation
Added some translations of recently added strings.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-01-14 03:36:55 +09:00
INAGAKI Hiroshi
5116754a6c luci-app-travelmate: sync translations
Recently several strings to be translated ware added to Lua source, so I updated po templates and japanese po file.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-01-14 03:06:08 +09:00
Hannu Nyman
de4bda67e0 Merge pull request #939 from dibdot/master
luci-app-travelmate: update gui elements
2017-01-12 22:36:10 +02:00
Daniel Dickinson
6a7eaeb486 Merge pull request #938 from cshore-firmware/pull-request-statistics-df
app-statistics: df: Don't separate disk usage types
2017-01-12 10:19:37 -05:00
Dirk Brenken
34810889a6 luci-app-travelmate: update gui elements
* update gui elements to reflect changes in travelmate 0.3.x

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-01-12 15:55:55 +01:00