Commit graph

7829 commits

Author SHA1 Message Date
Manuel Munz
8b08756d93 contrib/package/freifunk-policyrouting: remove rc.d symlink 2015-11-18 12:34:06 +01:00
Jo-Philipp Wich
20fdac1ac4 luci-mod-admin-full: allow empty mac in interface status
Also adjust for changed IP address format emitted by iface_status call.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-11-17 17:42:22 +01:00
Jo-Philipp Wich
152ba9ab22 luci-mod-admin-full: use :ipaddrs() and :ip6addrs() helper for iface_status
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-11-17 17:36:00 +01:00
Jo-Philipp Wich
e626599c26 luci-base: eliminate use of uci state vars in luci.model.network
Also implement :ipaddrs() and :ip6addrs() helper for network instances.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-11-17 17:35:02 +01:00
Jo-Philipp Wich
9b176c8d7b luci-mod-admin-full: prevent submit with interface delete button (#549)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-11-16 14:30:13 +01:00
Jo-Philipp Wich
092d2143bd luci-base: fix uci documentation issue (#538)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-11-16 12:37:23 +01:00
Christian Schoenebeck
1106b9346a Merge pull request #548 from chris5560/master
luci-app-ddns: rollup to 2.3.0 to reflect changes on ddns-scripts
2015-11-15 21:36:11 +01:00
Christian Schoenebeck
28d86aeec5 luci-app-ddns: rollup to 2.3.0 to reflect changes on ddns-scripts
- support for new options "lookup_host", "param_enc" and "param_opt"
- rewritten ddns provider handling to only show/check needed options "domain", "username", etc.
- modified version check/handling incl. using new ipkg.compare_versions function
- modified map.title and map.description generation
- changed XHR.poll interval to 15 seconds on system status page
- using new value_parse function for testing and later implementation into cbi.lua
- some optimizations

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-11-15 11:42:43 +01:00
Jo-Philipp Wich
1cb3adb619 Merge pull request #396 from fanthos/master
luci-app-qos: Add custom QOS classes to luci dropdown list
2015-11-11 10:15:33 +01:00
Jo-Philipp Wich
2258d3de25 Merge pull request #535 from saik0/redirect-root-if-empty-signed
Redirect to root on empty path (signed off)
2015-11-11 10:14:34 +01:00
Christian Schoenebeck
d05588e2d7 Merge pull request #545 from chris5560/master
luci-app-radicale: remove map.title hack
2015-11-09 21:48:07 +01:00
Christian Schoenebeck
8e3a24f7cd luci-app-radicale: remove map.title hack
remove map.title hack; no longer needed

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-11-09 21:46:01 +01:00
Christian Schoenebeck
1de2606e9f Merge pull request #544 from chris5560/master
luci-app-privoxy: remove map.title hack
2015-11-09 21:41:13 +01:00
Christian Schoenebeck
665a793b57 luci-app-privoxy: remove map.title hack
remove map.title hack; no longer needed

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-11-09 21:39:50 +01:00
Hannu Nyman
524c918c7d Merge pull request #542 from eamars/master
Fix a typo mistake in UI string (mount/fstab extroot advice)
2015-11-06 09:53:36 +02:00
Ran Bao
38b7c6cef4 fix a typo error in command script shown to users
Signed-off-by: Ran Bao <worksev@gmail.com>
2015-11-06 12:50:05 +13:00
Hannu Nyman
b1217c88c3 luci-mod-admin-full: limit interface name length to 15 chars
Limit the name of a new interface to 15 characters.
Add a note about the maximum length and the automatic protocol/bridge
prefixes (br-, 6in4-, pppoe- etc.).

Reference to:
https://dev.openwrt.org/ticket/20380
https://github.com/openwrt/luci/issues/507

There is a 15 character limit to the "real" interface name,
enforced both in the firewall and dnsmasq. The real interface name
includes the possible prefix "br-", "6in4-" etc. Example of an error:
  interface name `br-lan_protected' must be shorter than IFNAMSIZ (15)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-11-05 11:00:41 +02:00
Joel Pedraza
5541065793 Redirect to root on empty path
* Prevents an empty Location header
* Useful in environments where build_url() could return an empty string (such as http server rewrites requests to /cgi-bin/luci)

Signed-off-by: Joel Pedraza <github@saik0.net>
2015-11-03 09:53:39 -05:00
Yousong Zhou
cbf45fe563 luci-proto-ppp: add support for pppossh
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-11-03 17:07:45 +08:00
Yousong Zhou
a28da6a88a luci-base: add support for DynamicList with FileBrowser
Two new arguments url, defpath were added to cbi_dynlist_init() for
initializing the brower button.

An example of usage

    identity = section:taboption("general", DynamicList, "identity",
	    translate("List of SSH key files for auth"))
    identity.datatype = "file"

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-11-03 17:07:45 +08:00
Yousong Zhou
20ccc90350 luci-base: urlencode: encode all except unreserved characters.
As per http://tools.ietf.org/html/rfc3986#section-2.3

   Characters that are allowed in a URI but do not have a reserved
   purpose are called unreserved.  These include uppercase and lowercase
   letters, decimal digits, hyphen, period, underscore, and tilde.

      unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-11-03 17:07:45 +08:00
Christian Schoenebeck
20851933bf Merge pull request #532 from chris5560/master
documentation/CBI.md fixed markdown formating
2015-11-01 17:59:35 +01:00
Christian Schoenebeck
57a949e638 documentation/CBI.md fixed markdown formating
CBI.md: fixed markdown formating
ModulesHowTo.md: fixed to make link inside CBI.md work.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-11-01 17:57:19 +01:00
Christian Schoenebeck
fbc27d1b48 Merge pull request #528 from nmav/no-vpn
ocserv: removed unnecessary option and add proxy arp option
2015-11-01 17:19:26 +01:00
Christian Schoenebeck
0953190cf4 Merge pull request #531 from chris5560/master
template cbi/value.htm implement documented property maxlength
2015-11-01 16:38:05 +01:00
Christian Schoenebeck
3dbc93bf91 template cbi/value.htm implement documented property maxlength
template cbi/value.htm implement already documented property maxlength

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-11-01 16:36:29 +01:00
Christian Schoenebeck
c7a2fe3b01 Merge pull request #529 from chris5560/master
cbi: Implement "readonly" property for "Value"
2015-11-01 15:34:17 +01:00
Nikos Mavrogiannopoulos
14b510e4a1 ocserv: added proxy arp option
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-01 11:38:49 +01:00
Nikos Mavrogiannopoulos
64c026cb64 luci-app-ocserv: removed unecessary option
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-01 00:29:27 +01:00
Christian Schoenebeck
162548a879 cbi.lua: Implement "readonly" property for "Value"
cbi.lua: Implement "readonly" property for "Value"

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-10-31 23:09:40 +01:00
Christian Schoenebeck
c7d3619b0c template cbi/value.htm: add "readonly" property
template cbi/value.htm: add "readonly" property

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-10-31 22:54:25 +01:00
Christian Schoenebeck
16336ce0ca Merge pull request #526 from chris5560/master
cbi.lua: Implement Flag.validate function
2015-10-31 21:43:41 +01:00
Christian Schoenebeck
84a57ec36f cbi.lua: Implement Flag.validate function
cbi.lua
- Implement Flag.validate function to be overwritable
- rewritten if clause for easier reading ;-)

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-10-30 18:42:38 +01:00
Hannu Nyman
25a44579e5 luci-app-voice-core and -diag: mark broken
Mark luci-app-voice-core and luci-app-voice-diag @BROKEN as their only functionality
is to create menu structure to be filled by items from luci-app-diag-devinfo,
which is currently broken due to missing dependencies.

References:

Initial commit creating all three packages:
820f11932f

Explanation why luci-app-diag-devinfo is currently broken:
ec6ccf1cd3

If luci-app-diag-devinfo gets its dependencies fixed, these two voice packages
might be re-activated. Combining the three packages would increase clarity.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-29 11:59:30 +02:00
Hannu Nyman
87b6bb0daf luci-app-firewall: limit zone name length to 11 characters
Change the maximum length of a firewall zone name from 14 to 11 characters.

Longer names break iptables rule generation (max. 29 chars are allowed).

XT_EXTENSION_MAXNAMELEN = 29
29 - sizeof("postrouting_") - sizeof("_rule") - sizeof("\0") = 11

References to:
https://github.com/openwrt/luci/issues/507
https://dev.openwrt.org/ticket/20380

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-28 13:07:47 +02:00
Hannu Nyman
47f9c14003 Merge pull request #494 from ollie27/strings
fix string "UPNP" -> "UPnP"
2015-10-28 12:40:16 +02:00
Oliver Middleton
ba349ad693 fix string "UPNP" -> "UPnP"
Signed-off-by: Oliver Middleton <olliemail27@gmail.com>
2015-10-28 01:13:37 +00:00
Hannu Nyman
ff9e34e47c Merge pull request #509 from neheb/master
resources/icons: Use gifsicle to save a few bytes.
2015-10-27 17:30:24 +02:00
Jo-Philipp Wich
927dc1aff9 luci-base: eliminiate use of uci state vars in luci.sys
Rewrite `luci.sys.wifi.getiwinfo()` to use the ubus wireless state instead of
depreacated uci state vars in order to map abstract network notation to
wireless ifnames.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-27 14:13:05 +01:00
Jo-Philipp Wich
57ba1922b7 Add link to API reference 2015-10-27 13:24:09 +01:00
Jo-Philipp Wich
6d368a4033 Move libubus-lua dependency to luci-base
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-27 13:09:21 +01:00
Hannu Nyman
ec6ccf1cd3 luci-app-diag-devinfo: mark broken due to dependencies
Mark luci-app-diag-devinfo @BROKEN as it has several failing dependencies:

Four dependencies from "oldpackages":
 httping, mac-to-devinfo, smap-to-devinfo, netdiscover-to-devinfo

One dependency from "abandoned":
 smap

(netdiscover is currently ok in trunk, but not in 15.05.)

Reference to Luci issue #523.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-27 09:57:57 +02:00
Hannu Nyman
53d767de5e luci-app-statistics: Adjust ping graphs to show target hosts separately
Ping statistics plugin allows the user to define multiple ping targets.
The graphs have so far shown multiple hosts in a stacked way.
Adjust graphs to show the target hosts separately (overlay=true).

Clarify the plugin definition with some additional line spacing.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-25 10:19:26 +02:00
Hannu Nyman
dccf485922 luci-app-statistics: improve scaling of the associated stations graph
Improve scaling of the associated stations graph on the wireless page.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-25 10:11:35 +02:00
Hannu Nyman
2a9b2107ba Merge pull request #522 from LuttyYang/master
luci-theme-material: fix some style bugs
2015-10-24 09:33:42 +03:00
Lutty Yang
1328b89ef8 luci-theme-material: fix some style bugs
Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-24 10:14:11 +08:00
Hannu Nyman
a19f97f7ca Merge pull request #521 from LuttyYang/master
luci-theme-material: Synchronized to the LUCI version f9e590a
2015-10-23 20:21:01 +03:00
Hannu Nyman
8f97c6c15b Revert "luci-theme-material: do not infer login state from url (#520)"
This reverts commit f9e590aa47
in order to enable a clean merge of the PR #521 from the theme author.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-23 20:16:04 +03:00
Lutty Yang
8296a47c1a luci-theme-material: try find current position by using lua code
thanks for jow

Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-23 20:51:12 +08:00
Lutty Yang
9098b20650 luci-theme-material: Synchronized to the LUCI version f9e590a
Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-23 12:51:07 +08:00