project/luci.git
8 years agoluci-mod-admin-full: Enable reset in Luci also for ubi
Hannu Nyman [Wed, 23 Mar 2016 14:58:14 +0000 (16:58 +0200)]
luci-mod-admin-full: Enable reset in Luci also for ubi

Enable reset in LuCI also for ubi based firmwares.

This closes #672

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoi18n: sync translations
Hannu Nyman [Mon, 21 Mar 2016 10:46:46 +0000 (12:46 +0200)]
i18n: sync translations

Sync translations

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-base: fix bug in util.lua in 'shellsqescape'
Hannu Nyman [Sun, 20 Mar 2016 11:12:05 +0000 (13:12 +0200)]
luci-base: fix bug in util.lua in 'shellsqescape'

Fix a bug introduced by #561

Function 'shellsqescape' calls 'gsub' with the empty result string 'res'
instead of the actual parameter 'value'. This leads into error:
.../util.lua:160: bad argument #1 to 'gsub' (string expected, got nil)

Fix error by passing the correct parameter to the function.

After the fix, the unmount button introduced by #561 finally works.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-mod-admin-full: Fix dhcpv6 ra_management option stateless value
Hannu Nyman [Sat, 19 Mar 2016 13:38:41 +0000 (15:38 +0200)]
luci-mod-admin-full: Fix dhcpv6 ra_management option stateless value

Fix dhcpv6 ra_management option's handling of "stateless" value.
Default value for the option is 1, so trying to store ""
instead of "0" for stateless is not working.

This fixes #676

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-mod-admin-full: allow writing empty crontab config
Florian Eckert [Wed, 16 Mar 2016 10:08:16 +0000 (11:08 +0100)]
luci-mod-admin-full: allow writing empty crontab config

Write an empty crontab file to remove all content
from file /etc/crontabs/root

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
8 years agoluci-mod-admin-full: add sleep before sysupgrade
Jo-Philipp Wich [Thu, 17 Mar 2016 14:55:02 +0000 (15:55 +0100)]
luci-mod-admin-full: add sleep before sysupgrade

- Under some conditions the system will shutdown
  uhttpd before the page will be delivered to
  the client. Waiting one second should eleminate
  this behaviour.

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoMerge pull request #655 from hnyman/nat6
Jo-Philipp Wich [Thu, 17 Mar 2016 14:32:26 +0000 (15:32 +0100)]
Merge pull request #655 from hnyman/nat6

Add support for showing ipv6 NAT table in Luci

8 years agoAdd support for showing ipv6 NAT table in Luci 655/head
Hannu Nyman [Wed, 16 Mar 2016 13:50:00 +0000 (15:50 +0200)]
Add support for showing ipv6 NAT table in Luci

When kmod-nf-nat6 and kmod-ipt-nat6 are installed, the firewall has also
the 'nat' table for ipv6, and packages like 'adblock' utilize that table.

Currently that table is not shown on the Luci firewall status page,
although it is visible by 'ip6tables -L -v -t nat' from console.

Detect 'nat' table's presence from /proc/net/ip6_tables_names

Show 'nat' table in Status->Firewall->IPv6 if that table is present.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-app-radvd: mark BROKEN as radvd is still in oldpackages
Hannu Nyman [Sat, 12 Mar 2016 09:26:26 +0000 (11:26 +0200)]
luci-app-radvd: mark BROKEN as radvd is still in oldpackages

Mark luci-app-radvd BROKEN as it has dependency to radvd,
which is still in oldpackages repo.

This commit fixes #553

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-base: Include Openwrt build revision in displayed version string
Hannu Nyman [Fri, 11 Mar 2016 12:09:39 +0000 (14:09 +0200)]
luci-base: Include Openwrt build revision in displayed version string

The version string displayed in the footer and the overview page contains
both LuCI and Openwrt versions. But due to differences in the contents
of /etc/openwrt_release the exact Openwrt revision r..... may be missing:
* In trunk that revision is included in the DISTRIB_DESCRIPTION field that
  is displayed in Luci as the Openwrt version.
* In release branches, that field contains the release number like 15.05.

Revision number is always present in DISTRIB_REVISION field, so add the
revision from that field in case the revision is not already present
in the string.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoMerge pull request #669 from hnyman/git-branch
Jo-Philipp Wich [Fri, 11 Mar 2016 11:23:37 +0000 (12:23 +0100)]
Merge pull request #669 from hnyman/git-branch

LuCI: Display the proper LuCI git branch in GUI

8 years agoLuCI: Display the proper LuCI git branch in GUI 669/head
Hannu Nyman [Thu, 10 Mar 2016 17:50:58 +0000 (19:50 +0200)]
LuCI: Display the proper LuCI git branch in GUI

Adjust luci.mk and luci-base to find out correctly if Luci is built
from master or from a branch. Display that value in the footer and
the overview page.

* Evaluate the git branch in luci.mk and pass that to LuCI submodules
  as a make variable. Use branch name, ignore tags.
* Deprecate svn detection in luci-base's mkversion.sh that generates
  version.lua. Simply use the value passed by make.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoMerge pull request #665 from hauke/lantiq-dsl
Jo-Philipp Wich [Tue, 8 Mar 2016 10:02:02 +0000 (11:02 +0100)]
Merge pull request #665 from hauke/lantiq-dsl

add configuration for the DSL line

8 years agoMerge pull request #666 from chris5560/master
Christian Schoenebeck [Mon, 7 Mar 2016 20:08:42 +0000 (21:08 +0100)]
Merge pull request #666 from chris5560/master

luci-app-polipo: fix Parent proxy address field check

8 years agoluci-app-polipo: fix Parent proxy address field check 666/head
Christian Schoenebeck [Mon, 7 Mar 2016 20:06:55 +0000 (21:06 +0100)]
luci-app-polipo: fix Parent proxy address field check

fix Parent proxy address field check https://dev.openwrt.org/ticket/15680

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
8 years agoluci-mod-admin-full: add dsl configuration 665/head
Hauke Mehrtens [Sun, 28 Feb 2016 14:20:37 +0000 (15:20 +0100)]
luci-mod-admin-full: add dsl configuration

This makes it possible to configure the DSL line from luci.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agoluci-mod-admin-full: extend dsl stats
Hauke Mehrtens [Sat, 27 Feb 2016 19:50:51 +0000 (20:50 +0100)]
luci-mod-admin-full: extend dsl stats

This adds a lot of new status information about the dsl line.
It now looks like this on a Telekom line:

Status: UP
Line State: showtime_tc_sync [0x801]
Line Mode: G.993.2 (VDSL2)
Annex: B
Profile: 17a
Data Rate: 51.391 Mb/s / 10.046 Mb/s
Max. Attainable Data Rate (ATTNDR): 63.817 Mb/s / 23.908 Mb/s
Latency: 4.0 ms / 8.0 ms
Line Attenuation (LATN): 10.5 dB / 9.9 dB
Signal Attenuation (SATN): 8.2 dB / 14.4 dB
Noise Margin (SNR): 10.5 dB / 9.7 dB
Aggregate Transmit Power(ACTATP): -14 dB / 12.4 dB
Forward Error Correction Seconds (FECS): 1 / 1723485
Errored seconds (ES): 0 / 2477
Severely Errored Seconds (SES): 0 / 50
Loss of Signal Seconds (LOSS): 0 / 0
Unavailable Seconds (UAS): 31 / 31
Header Error Code Errors (HEC): 0 / 0
Non Pre-emtive CRC errors (CRC_P): 0 / 0
Pre-emtive CRC errors (CRCP_P): 0 / 0
Line Uptime: 2m 3s
ATU-C System Vendor ID: Broadcom 176.15
Power Management Mode: L0 - Synchronized

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agoluci-mod-admin-full: rename ADSL to DSL
Hauke Mehrtens [Sat, 27 Feb 2016 19:47:15 +0000 (20:47 +0100)]
luci-mod-admin-full: rename ADSL to DSL

This could also be a VDSL link

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agoMerge pull request #664 from chris5560/master
Christian Schoenebeck [Mon, 7 Mar 2016 09:57:44 +0000 (10:57 +0100)]
Merge pull request #664 from chris5560/master

luci-app-ddns: fixes because uclient-fetch support "force ip version"

8 years agoluci-app-ddns: fixes because uclient-fetch support "force ip version" 664/head
Christian Schoenebeck [Mon, 7 Mar 2016 09:56:07 +0000 (10:56 +0100)]
luci-app-ddns: fixes because uclient-fetch support "force ip version"

- corrections because uclient-fetch now support "force ip version"
- remove translations already part of base.po/base.pot

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
8 years agoMerge pull request #659 from NeoRaider/default-language
Jo-Philipp Wich [Tue, 1 Mar 2016 16:54:49 +0000 (17:54 +0100)]
Merge pull request #659 from NeoRaider/default-language

modules/base: dispatcher: use default language if automatic choice fails

8 years agomodules/base: dispatcher: use default language if automatic choice fails 659/head
Matthias Schiffer [Tue, 1 Mar 2016 16:25:55 +0000 (17:25 +0100)]
modules/base: dispatcher: use default language if automatic choice fails

Fall back to default language if "auto" is configured, but none provided by
the browser matches.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agoremove bensheim and heppenheim as requested here: https://github.com/freifunk/meshkit...
Manuel Munz [Mon, 29 Feb 2016 18:17:20 +0000 (19:17 +0100)]
remove bensheim and heppenheim as requested here: https://github.com/freifunk/meshkit/issues/20

8 years agoMerge pull request #653 from tsl0922/tsl0922-patch-1
Hannu Nyman [Mon, 29 Feb 2016 08:49:22 +0000 (10:49 +0200)]
Merge pull request #653 from tsl0922/tsl0922-patch-1

luci-theme-material: remove the double slash (//) from menu url

8 years agoluci-app-adblock: conform to adblock 0.90
Hannu Nyman [Sun, 28 Feb 2016 21:03:14 +0000 (23:03 +0200)]
luci-app-adblock: conform to adblock 0.90

* Add support for disabling "force DNS queries to local resolver" option
* Remove deprecated logging options

Additionally remove unnecessary rmempty definitions.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoi18n: sync translations
Hannu Nyman [Fri, 26 Feb 2016 13:17:01 +0000 (15:17 +0200)]
i18n: sync translations

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-mod-admin-full: host-specific dhcp lease time option for static hosts
Hannu Nyman [Fri, 26 Feb 2016 11:48:36 +0000 (13:48 +0200)]
luci-mod-admin-full: host-specific dhcp lease time option for static hosts

Enable setting a host-specific lease time for static hosts.
Format is similar as for the default lease time: e.g. 2m, 12h, 3d, infinite

Default lease time is used for all hosts without host-specific definition.

Support for the option was added to Openwrt trunk by r48801:
https://dev.openwrt.org/changeset/48801

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-theme-material: remove the double slash (//) from menu url 653/head
Shuanglei Tao [Thu, 25 Feb 2016 16:38:22 +0000 (00:38 +0800)]
luci-theme-material: remove the double slash (//) from menu url

Signed-off-by: Shuanglei Tao <tsl0922@gmail.com>
8 years agoluci-base: cbi: fix misplaced ID in nullsection template
Jo-Philipp Wich [Wed, 24 Feb 2016 16:40:53 +0000 (17:40 +0100)]
luci-base: cbi: fix misplaced ID in nullsection template

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: also initialize JS if pageactions are disabled
Jo-Philipp Wich [Wed, 24 Feb 2016 16:39:54 +0000 (17:39 +0100)]
luci-base: cbi: also initialize JS if pageactions are disabled

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: fix dependency handling of list and multivalues with radio/checkbox...
Jo-Philipp Wich [Tue, 23 Feb 2016 08:27:12 +0000 (09:27 +0100)]
luci-base: cbi: fix dependency handling of list and multivalues with radio/checkbox widgets

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-app-adblock: remove deprecated options
Hannu Nyman [Mon, 22 Feb 2016 20:23:05 +0000 (22:23 +0200)]
luci-app-adblock: remove deprecated options

Remove support for options deprecated in adblock 0.80.1

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-app-adblock: conform to adblock 0.80
Hannu Nyman [Sun, 21 Feb 2016 15:39:19 +0000 (17:39 +0200)]
luci-app-adblock: conform to adblock 0.80

* Change "debug log" to "log"
* Add support for source descriptions
* Support new options for ping targets
* Simplify link to readme

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-base: luci.sys: canonicalize src and dest addrs in luci.sys.net.conntrack()
Jo-Philipp Wich [Sat, 20 Feb 2016 21:14:37 +0000 (22:14 +0100)]
luci-base: luci.sys: canonicalize src and dest addrs in luci.sys.net.conntrack()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-app-adblock: Add support for optional config values
Hannu Nyman [Sat, 20 Feb 2016 10:34:16 +0000 (12:34 +0200)]
luci-app-adblock: Add support for optional config values

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-base: cbi: fix button handling for dynamic lists
Jo-Philipp Wich [Fri, 19 Feb 2016 16:20:50 +0000 (17:20 +0100)]
luci-base: cbi: fix button handling for dynamic lists

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-app-adblock: Beautify blocklist selection table and reorganise
Hannu Nyman [Fri, 19 Feb 2016 10:13:44 +0000 (12:13 +0200)]
luci-app-adblock: Beautify blocklist selection table and reorganise

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoMerge pull request #644 from chris5560/master
Christian Schoenebeck [Thu, 18 Feb 2016 18:25:41 +0000 (19:25 +0100)]
Merge pull request #644 from chris5560/master

luci-base: fixed tabbed map when using NamedSection of same type

8 years agoMerge pull request #647 from LuttyYang/master
Hannu Nyman [Thu, 18 Feb 2016 13:06:43 +0000 (15:06 +0200)]
Merge pull request #647 from LuttyYang/master

luci-theme-material: Decrease font and spacing

8 years agoluci-theme-material: Rasterization Code 647/head
Lutty Yang [Thu, 18 Feb 2016 12:34:30 +0000 (20:34 +0800)]
luci-theme-material: Rasterization Code

Signed-off-by: Lutty Yang <lutty@wcan.in>
8 years agoluci-theme-material: Decrease font and spacing
Lutty Yang [Thu, 18 Feb 2016 12:29:19 +0000 (20:29 +0800)]
luci-theme-material: Decrease font and spacing

1) Decrease font and spacing
2) Synchronized to the LUCI version 99f5d4e

Signed-off-by: Lutty Yang <lutty@wcan.in>
8 years agoluci-base: cbi.js: properly round down numbers for %u and %d patterns
Jo-Philipp Wich [Wed, 17 Feb 2016 15:33:34 +0000 (16:33 +0100)]
luci-base: cbi.js: properly round down numbers for %u and %d patterns

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-app-adblock: User interface for the 'adblock' package
Hannu Nyman [Tue, 16 Feb 2016 20:28:46 +0000 (22:28 +0200)]
luci-app-adblock: User interface for the 'adblock' package

Simple user interface for the 'adblock' package from packages feed.
Adds 'Adblock' item to the Services menu in LuCI.
Allows enabling/disabling the service and selecting blocklists.

Configuration of the blocklist URLs and selection of Shalla categories
needs to be done manually to the config file, if needed.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-base: cbi.js: string formatting fixes
Jo-Philipp Wich [Mon, 15 Feb 2016 11:45:39 +0000 (12:45 +0100)]
luci-base: cbi.js: string formatting fixes

* Fix left and right justify/padding in formats
* Do not emit decimal numbers for small values in %m format

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-app-firewall: rely on auto-serialization for combobox choices
Jo-Philipp Wich [Wed, 10 Feb 2016 18:38:33 +0000 (19:38 +0100)]
luci-app-firewall: rely on auto-serialization for combobox choices

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: rely on auto-serialization for combobox choices
Jo-Philipp Wich [Wed, 10 Feb 2016 18:36:37 +0000 (19:36 +0100)]
luci-base: cbi: rely on auto-serialization for combobox choices

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: rework ListValue and MultiValue templates
Jo-Philipp Wich [Wed, 10 Feb 2016 18:33:01 +0000 (19:33 +0100)]
luci-base: cbi: rework ListValue and MultiValue templates

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: dispatcher: let attr() automatically serialize JSON
Jo-Philipp Wich [Wed, 10 Feb 2016 18:30:43 +0000 (19:30 +0100)]
luci-base: dispatcher: let attr() automatically serialize JSON

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: properly handle dependant elements without parent
Jo-Philipp Wich [Wed, 10 Feb 2016 18:29:29 +0000 (19:29 +0100)]
luci-base: cbi: properly handle dependant elements without parent

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: only spawn dynlist sub-comboboxes if choices are available
Jo-Philipp Wich [Wed, 10 Feb 2016 17:23:39 +0000 (18:23 +0100)]
luci-base: cbi: only spawn dynlist sub-comboboxes if choices are available

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-app-firewall: align custom cbi teplates with new code
Jo-Philipp Wich [Wed, 10 Feb 2016 17:13:53 +0000 (18:13 +0100)]
luci-app-firewall: align custom cbi teplates with new code

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: further refactoring
Jo-Philipp Wich [Wed, 10 Feb 2016 17:11:49 +0000 (18:11 +0100)]
luci-base: cbi: further refactoring

Eliminate more inline scripts in favor to global initialization, use a global
object for sharing fixed strings instead of passing them to each invocation.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-mod-admin-full: fix direct package install
Jo-Philipp Wich [Wed, 10 Feb 2016 12:42:56 +0000 (13:42 +0100)]
luci-mod-admin-full: fix direct package install

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-theme-openwrt: untangle & refactor header.htm code
Jo-Philipp Wich [Wed, 10 Feb 2016 12:41:06 +0000 (13:41 +0100)]
luci-theme-openwrt: untangle & refactor header.htm code

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-theme-openwrt: add some style fixes for interface badges
Jo-Philipp Wich [Tue, 9 Feb 2016 23:47:37 +0000 (00:47 +0100)]
luci-theme-openwrt: add some style fixes for interface badges

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: fix dependency handling of optionals (#645)
Jo-Philipp Wich [Tue, 9 Feb 2016 15:10:55 +0000 (16:10 +0100)]
luci-base: fix dependency handling of optionals (#645)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: remove duplicate id from template
Jo-Philipp Wich [Tue, 9 Feb 2016 15:10:04 +0000 (16:10 +0100)]
luci-base: cbi: remove duplicate id from template

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: fixed tabbed map when using NamedSection of same type 644/head
Christian Schoenebeck [Mon, 8 Feb 2016 20:04:23 +0000 (21:04 +0100)]
luci-base: fixed tabbed map when using NamedSection of same type

* fixed tabbed map when using NamedSection of same sectiontype
* add error message on which tab(s) the invalid/required fields are located

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
8 years agoMerge pull request #643 from chris5560/master
Christian Schoenebeck [Sun, 7 Feb 2016 21:10:21 +0000 (22:10 +0100)]
Merge pull request #643 from chris5560/master

luci-app-radicale: bump to version 1.1.0

8 years agotimezone data: update to 2016a
Hannu Nyman [Sun, 7 Feb 2016 10:28:16 +0000 (12:28 +0200)]
timezone data: update to 2016a

Update timezone data to 2016a.

http://mm.icann.org/pipermail/tz-announce/2016-January/000035.html

   Changes affecting future time stamps

     America/Cayman will not observe daylight saving this year after all.
     Revert our guess that it would.  (Thanks to Matt Johnson.)

     Asia/Chita switches from +0800 to +0900 on 2016-03-27 at 02:00.
     (Thanks to Alexander Krivenyshev.)

     Asia/Tehran now has DST predictions for the year 2038 and later,
     to be March 21 00:00 to September 21 00:00.  This is likely better
     than predicting no DST, albeit off by a day every now and then.

   Changes affecting past and future time stamps

     America/Metlakatla switched from PST all year to AKST/AKDT on
     2015-11-01 at 02:00.  (Thanks to Steffen Thorsen.)

     America/Santa_Isabel has been removed, and replaced with a
     backward compatibility link to America/Tijuana.  Its contents were
     apparently based on a misreading of Mexican legislation.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-app-radicale: bump to version 1.1.0 643/head
Christian Schoenebeck [Sun, 7 Feb 2016 08:30:29 +0000 (09:30 +0100)]
luci-app-radicale: bump to version 1.1.0

- support Radicale > v1.1
- modified version detection
- adaption to new function version_compare() in ipkg.lua
- adaption to fixed Flag.parse() in cbi.lua
- adaption to new property map.tabbed in cbi.lua using map template with extensions
- change optional values to non optional
- add support new option "system.boot_delay"

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
8 years agoMerge pull request #641 from chris5560/master_ddns
Christian Schoenebeck [Sun, 7 Feb 2016 07:26:57 +0000 (08:26 +0100)]
Merge pull request #641 from chris5560/master_ddns

luci-app-ddns: some fixes

8 years agoluci-app-ddns: some fixes 641/head
Christian Schoenebeck [Sat, 6 Feb 2016 15:33:59 +0000 (16:33 +0100)]
luci-app-ddns: some fixes

- fixes for https://dev.openwrt.org/ticket/21787
- changed detection of BusyBox nslookup compiled with musl, thanks to Arjen de Korte

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
8 years agoi18n: Sync translations
Hannu Nyman [Wed, 3 Feb 2016 09:43:10 +0000 (11:43 +0200)]
i18n: Sync translations

Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoMerge pull request #638 from hnyman/statping
Hannu Nyman [Tue, 2 Feb 2016 13:05:43 +0000 (15:05 +0200)]
Merge pull request #638 from hnyman/statping

luci-app-statistics: Remove usually empty std.dev. graph from ping page

8 years agoluci-app-statistics: Remove usually empty std.dev. graph from ping page 638/head
Hannu Nyman [Tue, 2 Feb 2016 12:22:16 +0000 (14:22 +0200)]
luci-app-statistics: Remove usually empty std.dev. graph from ping page

Remove the usually empty standard deviation graph from the ping page.

The graph is empty for most users as collectd measures standard deviation
of individual pings inside the general interval of statistics collection.
Default setting for both ping interval and general collection interval
is 30s in Luci statistics, meaning just 1 ping per interval, which
leads to empty graph.

(To provide relveant data, the ping interval should be 1/4-1/5 of the
general collection interval. Even then the graph does not look very
informative due to different scaling than the latency graph.)

Note that this commit does not change collectd itself, which continues
to collect and calculate also the std.dev. data, which can be fetched
with 'rrdtool' if needed.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoluci-base: fix parsing of non-TCP streams in conntrack table
Jo-Philipp Wich [Tue, 2 Feb 2016 10:52:33 +0000 (11:52 +0100)]
luci-base: fix parsing of non-TCP streams in conntrack table

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoFix embedded links: github instead of luci.subsignal.org
Hannu Nyman [Tue, 2 Feb 2016 10:07:16 +0000 (12:07 +0200)]
Fix embedded links: github instead of luci.subsignal.org

Fix links to point into Github repo instead of luci.subsignal.org
 - the hint to file a bug in dispatcher
 - footers of Bootstrap and Firefunk themes

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoMerge pull request #637 from matthewreeve/patch-1
Jo-Philipp Wich [Tue, 2 Feb 2016 08:39:35 +0000 (09:39 +0100)]
Merge pull request #637 from matthewreeve/patch-1

luci-mod-admin-full: Identity field is required for EAP-TLS, too.

8 years agoIdentity field is required for EAP-TLS, too. 637/head
matthewreeve [Tue, 2 Feb 2016 00:40:32 +0000 (17:40 -0700)]
Identity field is required for EAP-TLS, too.

This patch enables editing the Identity field in EAP-TLS so that EAP-TLS configuration via LuCI works.

8 years agoMerge pull request #634 from chris5560/master
Christian Schoenebeck [Sun, 31 Jan 2016 19:25:16 +0000 (20:25 +0100)]
Merge pull request #634 from chris5560/master

luci-app-ddns: bump to version 2.4.0-1

8 years agoluci-app-ddns: bump to version 2.4.0-1 634/head
Christian Schöenebeck [Sat, 30 Jan 2016 18:32:55 +0000 (19:32 +0100)]
luci-app-ddns: bump to version 2.4.0-1

- fixes for #611 and #620
- adaptions for ddns-scripts 2.6.0
-- add hint for problems with BusyBox nslookup compiled with musl and offer installing hostip package
-- add hint for not installed certificates inside /etc/ssl/certs and offer installing ca-certificates package https://github.com/openwrt/packages/pull/2243
-- check if malfunctional BusyBox nslookup installed, so disable using option dns_server if not Bind host or hostip installed
- optimizations
- cleanup: remove .po files without any translations

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
8 years agoluci-app-firewall: drop_invalid is default on in OpenWrt now
Jo-Philipp Wich [Fri, 29 Jan 2016 17:50:12 +0000 (18:50 +0100)]
luci-app-firewall: drop_invalid is default on in OpenWrt now

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoUse numeric prefixes for uci-defaults scripts
Jo-Philipp Wich [Wed, 27 Jan 2016 15:47:23 +0000 (16:47 +0100)]
Use numeric prefixes for uci-defaults scripts

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-mod-admin-full: only offer VHT rates which are actually supported by the driver
Jo-Philipp Wich [Mon, 25 Jan 2016 17:16:37 +0000 (18:16 +0100)]
luci-mod-admin-full: only offer VHT rates which are actually supported by the driver

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-mod-admin-full: map DHCPv6 DUIDs to MACs
Jo-Philipp Wich [Mon, 25 Jan 2016 16:54:38 +0000 (17:54 +0100)]
luci-mod-admin-full: map DHCPv6 DUIDs to MACs

Map DUIDs to their corresponding MAC addresses in order to correlate them with
IPv4 information. This is useful to e.g. identify IPv6 hosts which do not send
a name.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-mod-admin-full: fix displaying of VHT rates (#533)
Jo-Philipp Wich [Mon, 25 Jan 2016 16:07:40 +0000 (17:07 +0100)]
luci-mod-admin-full: fix displaying of VHT rates (#533)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: fix initialization of MultiValue options
Jo-Philipp Wich [Sat, 23 Jan 2016 16:34:37 +0000 (17:34 +0100)]
luci-base: fix initialization of MultiValue options

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoMerge pull request #629 from chris5560/master
Jo-Philipp Wich [Sat, 23 Jan 2016 16:09:27 +0000 (17:09 +0100)]
Merge pull request #629 from chris5560/master

sys.lua _nethints(): read location of dhcp.lease file from uci

8 years agosys.lua _nethints(): read location of dhcp.lease file from uci 629/head
Christian Schoenebeck [Thu, 21 Jan 2016 21:17:05 +0000 (22:17 +0100)]
sys.lua _nethints(): read location of dhcp.lease file from uci

status.lua - change default directory of dhcp.leases file
sys.lua - read location of dhcp.leases file from uci

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
8 years agoluci-mod-admin-full: align assoclist in wifi overview with status index page
Jo-Philipp Wich [Wed, 20 Jan 2016 16:29:40 +0000 (17:29 +0100)]
luci-mod-admin-full: align assoclist in wifi overview with status index page

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: luci.sys.net: use luci.ip.neighbors() instead of /proc/net/arp
Jo-Philipp Wich [Wed, 20 Jan 2016 16:27:51 +0000 (17:27 +0100)]
luci-base: luci.sys.net: use luci.ip.neighbors() instead of /proc/net/arp

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-mod-admin-full: show more information in assoc list (#540)
Jo-Philipp Wich [Wed, 20 Jan 2016 15:59:31 +0000 (16:59 +0100)]
luci-mod-admin-full: show more information in assoc list (#540)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-theme-bootstrap: add new utility class for table valign, minor tweaks
Jo-Philipp Wich [Wed, 20 Jan 2016 15:59:00 +0000 (16:59 +0100)]
luci-theme-bootstrap: add new utility class for table valign, minor tweaks

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: add luci.sys.net.host_hints() and regenerate documentation
Jo-Philipp Wich [Wed, 20 Jan 2016 15:55:15 +0000 (16:55 +0100)]
luci-base: add luci.sys.net.host_hints() and regenerate documentation

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-mod-admin-full: fix device selection in wireless and bandwidth realtime stats
Jo-Philipp Wich [Wed, 20 Jan 2016 12:45:27 +0000 (13:45 +0100)]
luci-mod-admin-full: fix device selection in wireless and bandwidth realtime stats

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-mod-admin-full: fx crash in interface model
Jo-Philipp Wich [Wed, 20 Jan 2016 09:52:30 +0000 (10:52 +0100)]
luci-mod-admin-full: fx crash in interface model

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoMerge pull request #626 from dangowrt/improve-wpa-eap
Jo-Philipp Wich [Tue, 19 Jan 2016 10:08:46 +0000 (11:08 +0100)]
Merge pull request #626 from dangowrt/improve-wpa-eap

luci-admin-full: improve WPA(2)-Enterprise client support

8 years agoluci-theme-bootstrap: css fix for map level tabs
Jo-Philipp Wich [Tue, 19 Jan 2016 10:00:15 +0000 (11:00 +0100)]
luci-theme-bootstrap: css fix for map level tabs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-admin-full: improve WPA(2)-Enterprise client support 626/head
Daniel Golle [Sun, 17 Jan 2016 23:25:05 +0000 (00:25 +0100)]
luci-admin-full: improve WPA(2)-Enterprise client support

* add more WPA-EAP phase2 authentication methods.
* client cert, client key and key password are only relevant for
  WPA EAP-TLS, change dependency accordingly.
* add support for certificates and key for EAP-TLS phase2 auth.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years agoluci-base: cbi: optimize tab hide logic
Jo-Philipp Wich [Tue, 19 Jan 2016 09:36:42 +0000 (10:36 +0100)]
luci-base: cbi: optimize tab hide logic

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: fix event binding js
Jo-Philipp Wich [Tue, 19 Jan 2016 09:36:04 +0000 (10:36 +0100)]
luci-base: cbi: fix event binding js

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: add missing Lua side changes for new dependency code
Jo-Philipp Wich [Tue, 19 Jan 2016 07:07:28 +0000 (08:07 +0100)]
luci-base: add missing Lua side changes for new dependency code

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: prevent unintended focus on combobox init
Jo-Philipp Wich [Mon, 18 Jan 2016 19:14:47 +0000 (20:14 +0100)]
luci-base: cbi: prevent unintended focus on combobox init

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: refactor event handling js
Jo-Philipp Wich [Mon, 18 Jan 2016 18:34:02 +0000 (19:34 +0100)]
luci-base: cbi: refactor event handling js

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: cbi: fix reverse field order after dependency change
Jo-Philipp Wich [Mon, 18 Jan 2016 17:59:14 +0000 (18:59 +0100)]
luci-base: cbi: fix reverse field order after dependency change

When fields got removed and readded due to unsatisfied dependencies, they
got inserted in reverse order into the dom.

Fix this issue by properly passing the element index.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: refactor cbi dependency handling code
Jo-Philipp Wich [Mon, 18 Jan 2016 16:05:36 +0000 (17:05 +0100)]
luci-base: refactor cbi dependency handling code

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: improve tab hide logic
Jo-Philipp Wich [Mon, 18 Jan 2016 10:23:07 +0000 (11:23 +0100)]
luci-base: improve tab hide logic

Do not rely on explicit child counts but inspect the code instead to decide
when to hide tabs or not.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-theme-bootstrap: style fixes for map level tabs and disabled buttons
Jo-Philipp Wich [Mon, 18 Jan 2016 10:06:35 +0000 (11:06 +0100)]
luci-theme-bootstrap: style fixes for map level tabs and disabled buttons

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoluci-base: add extra css class for map level tabs, don't track tab child count
Jo-Philipp Wich [Mon, 18 Jan 2016 10:04:15 +0000 (11:04 +0100)]
luci-base: add extra css class for map level tabs, don't track tab child count

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>