Commit graph

1127 commits

Author SHA1 Message Date
Jo-Philipp Wich
db653649ff luci-mod-admin-full: fix build dep spec in previous commit (#281)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 22:24:25 +01:00
Jo-Philipp Wich
80c06a773d luci-mod-admin-full: add build dependency on libiwinfo
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 22:17:36 +01:00
Jo-Philipp Wich
4cb3aed0ca Remove obsolete .mk files
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:49:42 +01:00
Jo-Philipp Wich
fa84ca05d5 luci-base: luci.util: rewrite threadlocal code to not confuse minifier
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:26:20 +01:00
Jo-Philipp Wich
1bb4822dca Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
 * Make each LuCI module its own standalone package
 * Deploy a shared luci.mk which is used by each module Makefile

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:26:20 +01:00
Karl Palsson
65d42ae75a luci.http.protocol: Allow posts to contain more than a single chunk
The ltn12.pump.step() loop in parse_message_body was incorrectly testing
for EOF, and returning after the first chunk, even if further chunks
were available.  The loop in parse_message_header made the correct
check, and test code making raw ajax json posts now succeeds for posts
>= 2048 bytes.

Signed-off-by: Karl Palsson <karlp@remake.is>
2014-11-21 18:18:51 +00:00
Matthias Schiffer
7bd68db7d7 modules/base: ltn12: source.file() should terminate when an empty chunk is read
The read method of nixio's file and socket objects both return an empty string
when they reach EOF, not nil, causing the consumer to loop endlessly as
source.file() never terminates.

As there is no other situation in which an empty chunk is read, just change it
to nil to terminate the consumer's loop.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2014-11-17 14:35:24 +01:00
Hannu Nyman
36357529a0 Update timezone info to 2014i (from 2011n)
Timezone information embedded in Luci is updated to 2014i.
Afaik, the old data was from version 2011n.

I used build/zoneinfo2lua.pl to pull data from my Ubuntu 14.10 buildhost
that contains 2014i version of the timezone data.

2014j has been released this week, but is not yet embedded in Ubuntu and
Turks&Caicos is the only affected country/zone.
2014i: http://mm.icann.org/pipermail/tz-announce/2014-October/000026.html
2014j: http://mm.icann.org/pipermail/tz-announce/2014-November/000027.html

This update should fix Openwrt bugs #11445 and #18323.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2014-11-14 17:06:30 +02:00
Jo-Philipp Wich
ef444d511d modules/admin-full: make wifi enabling/disabling more reliable
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-11-11 22:33:43 +01:00
Steven Barth
a7b44a1b4b Add odhcpd to ucitrack of dhcp 2014-11-09 19:41:14 +01:00
Jo-Philipp Wich
5916f762f6 modules/admin-full: add CDATA comments to wireless_modefreq.htm script tag
This should fix non-wellformed page errors with XHTML themes.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-31 12:48:24 +01:00
Jo-Philipp Wich
2826426c6a base: trigger page reload with cbi reset button
Many complex widgets do not reset properly with traditional form reset,
therfore simply reload the page.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-26 18:20:22 +01:00
Jo-Philipp Wich
89f270466c modules/admin-full: rework hwmode/htmode/channel selection
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-26 17:46:05 +01:00
Jo-Philipp Wich
ecb0c2f11b modules/base: work around wireless status changes
The latest netifd updates changed the ubus wireless status reporting in a
way that breaks the current LuCI integration. Work around the changed
format by translating the extended UCI section syntax back to the plain one.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-21 23:39:08 +02:00
Jo-Philipp Wich
ff65318ba5 modules/base: attempt to work around Firefox autocomplete bugs
Ref: https://dev.openwrt.org/ticket/18176

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-20 19:45:28 +02:00
Jo-Philipp Wich
52326c28ef Merge pull request #220 from Wedmer/openvpnfix_dtfix_watchcatfix
applications/luci-openvpn: fixes for current openWRT openvpn packages.
2014-10-11 12:07:35 +02:00
Álvaro Fernández Rojas
0c3398c4b6 modules/admin-full: fix support for broadcom-wl modes
This adds N modes support for proprietary Broadcom WiFi driver and adds a/b/g modes detection.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2014-10-10 18:46:15 +02:00
Vladimir Ulrich
c33af582f0 Added device tree model support
Signed-off-by: Vladimir Ulrich <admin@evl.su>
2014-10-10 19:59:35 +04:00
Jo-Philipp Wich
bb388f0873 modules/admin-full: add support for configuring mirror port
This adds the LuCI support for setting a mirror port on AR8327 switches.
Patch provided by Colin Leitner <colin.leitner@gmail.com>

Ref: https://dev.openwrt.org/attachment/ticket/10202

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-10 15:56:42 +02:00
Hannu Nyman
2a0e842d00 wifi.lua: Add support for toggling WPS button.
The patch checks the existence of the needed files for the WPS support and if they are present, shows the option to toggle WPS pushbutton settings.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2014-10-10 15:48:54 +03:00
Stephan Günther
da022f9157 modules/admin-full: fix wifi channel selection on multiple STA networks
Besides several AP networks, I have configured two STA networks on my
openwrt box - both on the same radio and thus on the same channel.
This was done via LuCI.

However after both STA networks were set up, I am unable to edit the
channel on neither network. When editing the one STA network, LuCI
tells me that the channel is locked by the other STA network. Same for
the other STA network.

Looks like a bug to me, so I made a patch.

Signed-off-by: Stephan Günther <steph.guenther@googlemail.com>
2014-10-10 01:04:28 +02:00
Jo-Philipp Wich
d2c1882786 luci: initial 802.11ac support
While working with 802.11ac (ath10k) I've noticed the web interface
configuration missing basic support for 11ac devices - unable to set VHT
(htmode) and 11ac (hwmode).

This patch adds initial support for luci admin-full page and 802.11ac
MAC80211 devices.

v2:
* replace obsolete 11nac mode with 11a + vhtmode (jow in ticket: #17323)

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
[jow: fix typo in get_i18n()]
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-04 09:38:10 +00:00
Jo-Philipp Wich
371355c0f6 modules/admin-full: decouple enable/disable button state from assoc state
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-03 17:28:23 +00:00
Jo-Philipp Wich
4fcb6d56bc modules/base: provide disable state in luci.tools.status.wifi_network()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-03 17:28:21 +00:00
Jo-Philipp Wich
cee38c1177 modules/admin-full: fix assoc state check for sta mode in wifi overview
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-03 13:34:56 +00:00
Manuel Munz
3d3fdcbd59 modules/freifunk: fix map.html when using https, thanks cholin 2014-09-24 17:40:02 +00:00
Jo-Philipp Wich
a16c0c3200 http: ensure .content() works by default
filehandler was always set, so the default handler was never being
called.  This led to calls to http.content() always returning nil.

Signed-off-by: Karl Palsson <karlp@remake.is>
2014-09-18 09:29:30 +00:00
Jo-Philipp Wich
f16df257b8 modules/admin-full: dynamically order lines in connection live status
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-09-04 11:35:23 +00:00
Jo-Philipp Wich
8fab048554 libs/web: add support for string templates to luci.template module
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2014-09-04 11:35:15 +00:00
Jo-Philipp Wich
35eaa9f85f libs/web: add support for string templates to the template parser
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2014-09-04 11:35:09 +00:00
Jo-Philipp Wich
84de0fbe02 libs/web: remove strange 'static' on variable declaration
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2014-09-04 11:35:04 +00:00
Jo-Philipp Wich
f8f558291a libs/web: rename template_parser field "mmap" to the more generic "data"
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2014-09-04 11:34:27 +00:00
Jo-Philipp Wich
5aa46cbf58 add missing cbi-button class to nsection.htm
Hello,
I opened an issue in trac but it doesn't let me attach the patch (it
complains about cookies not enabled, which isn't true), and I cannot see
it to try again since it's awaiting moderation (moderated submission
#34250) so here's the patch (against 0.11, but I see that trunk has the
same problem).

Bye
--
Luca
2014-08-12 10:42:14 +00:00
Jo-Philipp Wich
649227308f added readonly property to TextValue (tvalue.htm) template
A textarea has a readonly property which is currently not supported by the TextValue template ( tvalue.htm )
Here the patch to add it to tvalue.htm

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-08-12 10:39:45 +00:00
Manuel Munz
5c311e3e78 modules/freifunk: fix wifi overview on public status page 2014-08-10 15:27:23 +00:00
Manuel Munz
6f8daab6eb luci/po: spelling and grammar fixes by Alex Henrie 2014-08-05 10:21:03 +00:00
Patrick Grimm
a31e805696 freifunk fix profile expert fs write function. 2014-08-03 19:39:24 +00:00
Jo-Philipp Wich
6324fc0caa modules/base: restore /lib/uci/upload directory
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-07-13 12:36:00 +00:00
Jo-Philipp Wich
89678917bd modules/admin-full: rework luci-bwc/libiwinfo integration
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-06-30 10:54:24 +00:00
Jo-Philipp Wich
8451dfdf2a modules/base: remove accidentally duplicated root directory
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-06-13 08:25:03 +00:00
Jo-Philipp Wich
055daf2d50 modules/base: readd missing /etc/config/luci 2014-06-12 13:48:57 +00:00
Jo-Philipp Wich
d4dc08dcb2 Fix wrong directory in luci-base 2014-06-11 14:00:09 +00:00
Jo-Philipp Wich
7043c30e0e build: introduce luci-base
Merges libs/core, libs/ipkg, libs/web, libs/sys, libs/sgi-cgi, libs/sgi-uhttpd,
modules/admin-core, themes/base and protcols/core into modules/base and renames
luci-lib-core to luci-base.
2014-06-11 13:29:05 +00:00
Jo-Philipp Wich
91b97bc9f6 Remove unmaintained components: lucid, fastindex, niu 2014-06-11 12:37:19 +00:00
Steven Barth
07109bb3f3 Allow toggling local IPv6 addressmanagement 2014-06-03 08:51:33 +00:00
Jo-Philipp Wich
c9f7282d98 modules/admin-full: further simplify wifi config
Drop 11b support since its not properly supported by mac80211 anyway.
Rename 'hwmode' option to 'Band' and remove dependencies from 'htmode' field.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-05-24 12:40:11 +00:00
Jo-Philipp Wich
4496419e1d modules/admin-full: fix wifi config compatibility with current trunk
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-05-19 18:54:06 +00:00
Jo-Philipp Wich
0b5861d6bf modules/freifunk: don't drop priveleges for OLSR status page, we need root to talk to ubus 2014-04-23 12:15:40 +00:00
Jo-Philipp Wich
2e9b25330c Revert "modules/freifunk: don't drop priveleges for OLSR status page, we need root to talk to ubus"
This reverts commit 57481b0e94b1d4be944c623ffa8334cbd4d53cbb, it contains some accidentally commited changes.
2014-04-23 12:15:02 +00:00
Jo-Philipp Wich
c5b324148d modules/freifunk: don't drop priveleges for OLSR status page, we need root to talk to ubus 2014-04-23 12:14:07 +00:00