oweals/luci.git
6 years agoluci-mod-status: fix CDATA marker on iptables status page
Jo-Philipp Wich [Wed, 10 Oct 2018 13:25:10 +0000 (15:25 +0200)]
luci-mod-status: fix CDATA marker on iptables status page

Fixes: f6bfac211 ("luci-mod-status: rework iptables status page")
Reported-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: move luci.sys.iptparser into separate package
Jo-Philipp Wich [Wed, 10 Oct 2018 11:17:20 +0000 (13:17 +0200)]
luci-base: move luci.sys.iptparser into separate package

Since commit f6bfac211 ("luci-mod-status: rework iptables status page"),
nothing in luci-base depends on the iptparser class anymore, so fold it
out into a separate package and let the few apps that require it depend
on the new library package.

Saves about 10K uncompressed in luci-base while the iptables status
rework enlarged the markup by roughly 5KB, saving roughly 5KB of size
overall.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-mod-status: rework iptables status page
Jo-Philipp Wich [Wed, 10 Oct 2018 11:11:01 +0000 (13:11 +0200)]
luci-mod-status: rework iptables status page

- Parse and format iptables listing in client side JS
- Dynamically update packet counters

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: show default forwarding policy in zone forwarding list
Jo-Philipp Wich [Wed, 10 Oct 2018 06:32:54 +0000 (08:32 +0200)]
luci-base: show default forwarding policy in zone forwarding list

The zone forwarding list widget misleadingly displays the intra-zone
forwarding policy as default policy action when no forwardings exist
instead of the appropriate global defaults forwarding policy which is
the one applied to inter-zone forwarded traffic.

Fix the issue by displaying the defaults policy and not the per-zone
policy to match what the firewall implementation is actually doing.

Fixes: #2213
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: validate name in firewall zone selector widget
Jo-Philipp Wich [Wed, 10 Oct 2018 06:30:13 +0000 (08:30 +0200)]
luci-base: validate name in firewall zone selector widget

When creating a new zone through the firewall zone selector widget,
validate the given name before creating new items.

Depends on commit 0b6ae96f2 ("luci-base: cbi.js: recognize invalid
input in dropdown create field").

Fixes: #2211
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: cbi.js: recognize invalid input in dropdown create field
Jo-Philipp Wich [Wed, 10 Oct 2018 06:28:15 +0000 (08:28 +0200)]
luci-base: cbi.js: recognize invalid input in dropdown create field

This is required to allow for validating the create field values in
later commits.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoMerge pull request #2216 from yangfl/ifacelist
Jo-Philipp Wich [Wed, 10 Oct 2018 05:49:23 +0000 (07:49 +0200)]
Merge pull request #2216 from yangfl/ifacelist

luci-mod-network: show bridges in ifacelist when the interface itself is not a bridge

6 years agoluci-mod-network: show bridges in ifacelist when the interface itself is not a bridge 2216/head
yangfl [Wed, 10 Oct 2018 05:12:34 +0000 (13:12 +0800)]
luci-mod-network: show bridges in ifacelist when the interface itself is not a bridge

It's completely OK to select a bridge as the underlying interface of
other interfaces, say a tunnel or PPPoE. The only case which should be
forbidden is bridge over bridge.

Signed-off-by: David Yang <mmyangfl@gmail.com>
6 years agotimezone data: update to 2018e
Hannu Nyman [Tue, 9 Oct 2018 15:19:52 +0000 (18:19 +0300)]
timezone data: update to 2018e

Update timezone data to 2018e

http://mm.icann.org/pipermail/tz-announce/2018-May/000050.html

  North Korea switches back to +09 on 2018-05-05.
  The main format uses negative DST again, for Ireland

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoMerge pull request #2200 from pmelange/freifunk_profiles_nameserver
Jo-Philipp Wich [Tue, 9 Oct 2018 06:35:34 +0000 (08:35 +0200)]
Merge pull request #2200 from pmelange/freifunk_profiles_nameserver

freifunk profiles: add nameserver 80.67.169.40

6 years agoMerge pull request #2208 from remakeelectric/snmp-agentx
Jo-Philipp Wich [Mon, 8 Oct 2018 11:34:07 +0000 (13:34 +0200)]
Merge pull request #2208 from remakeelectric/snmp-agentx

luci-app-snmpd: Allow turning off agentx

6 years agoluci-app-snmpd: Allow turning off agentx 2208/head
Karl Palsson [Mon, 8 Oct 2018 11:27:53 +0000 (11:27 +0000)]
luci-app-snmpd: Allow turning off agentx

AgentX support doesn't actually require TCP, it also works over unix
domain sockets, and UDS is the only method that's compiled in by
default.  Remove that misleading text, and make the section
add/removable so that you can remove it to disable agentx support.
Behaviour with multiple sections is undefined. (don't do that!)

This matches the current behaviour of the snmpd init script, which will
enable agentx with the compile time default settings if the agentx
socket config is blank/missing.

Signed-off-by: Karl Palsson <karlp@etactica.com>
6 years agoMerge pull request #2202 from dibdot/travelmate 2201/head
Dirk Brenken [Fri, 5 Oct 2018 10:30:23 +0000 (12:30 +0200)]
Merge pull request #2202 from dibdot/travelmate

luci-app-travelmate: sync with update 1.2.4

6 years agoMerge pull request #2195 from dibdot/wg-qrcode
Dirk Brenken [Fri, 5 Oct 2018 10:30:02 +0000 (12:30 +0200)]
Merge pull request #2195 from dibdot/wg-qrcode

luci-app-wireguard: add QR Code support plus fixes

6 years agoluci-app-travelmate: sync with update 1.2.4 2202/head
Dirk Brenken [Fri, 5 Oct 2018 08:21:34 +0000 (10:21 +0200)]
luci-app-travelmate: sync with update 1.2.4

* with the config option 'trm_radio' you can now restrict travelmate
  to a single radio (e.g. 'radio1') or change the overall
  scanning order (e.g. 'radio1 radio2 radio0')
* LuCI: show QR codes now inline on the overview page
  (collapsed by default)

Signed-off-by: Dirk Brenken <dev@brenken.org>
6 years agofreifunk profiles: add nameserver 80.67.169.40 from www.fdn.fr/actions/dns 2200/head
pmelange [Thu, 4 Oct 2018 10:10:58 +0000 (12:10 +0200)]
freifunk profiles: add nameserver 80.67.169.40 from fdn.fr/actions/dns

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-base: reword rollback notification dialog
Jo-Philipp Wich [Wed, 3 Oct 2018 11:25:46 +0000 (13:25 +0200)]
luci-base: reword rollback notification dialog

Rename "Apply unchecked" to "Apply anyway" for better clarity and update
the base translation files accordingly.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-app-nlbwmon: fix nil value concat
Jo-Philipp Wich [Tue, 2 Oct 2018 17:20:53 +0000 (19:20 +0200)]
luci-app-nlbwmon: fix nil value concat

Do not concatenate the yet undefined mtime variable to avoid a controller
error with backtrace.

Fixes: b3642f476 ("luci-app-nlbwmon: add proper file names for json and csv exports.")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoMerge pull request #2198 from TDT-AG/pr/20181002-luci-app-mwan3
Hannu Nyman [Tue, 2 Oct 2018 15:00:26 +0000 (18:00 +0300)]
Merge pull request #2198 from TDT-AG/pr/20181002-luci-app-mwan3

luci-app-mwan3: fix i18n traceback

6 years agoluci-app-mwan3: fix i18n traceback 2198/head
Florian Eckert [Tue, 2 Oct 2018 09:42:51 +0000 (11:42 +0200)]
luci-app-mwan3: fix i18n traceback

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
6 years agoMerge pull request #2191 from Ansuel/zram
Jo-Philipp Wich [Mon, 1 Oct 2018 12:27:15 +0000 (14:27 +0200)]
Merge pull request #2191 from Ansuel/zram

luci-mod-system: add zram options

6 years agoluci-mod-system: add zram options 2191/head
Ansuel Smith [Sat, 29 Sep 2018 17:40:39 +0000 (19:40 +0200)]
luci-mod-system: add zram options

This adds option to configure zram size and compression algo

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
6 years agoluci-app-wireguard: add QR Code support plus fixes 2195/head
Dirk Brenken [Mon, 1 Oct 2018 06:09:12 +0000 (08:09 +0200)]
luci-app-wireguard: add QR Code support plus fixes

* add optional QR Code support to status page (per wg Interface),
  submitted information via QR code are:
  - [Interface] (list of) Address / PrivateKey
  - [Peer] Endpoint / PublicKey / (list of) AllowedIPs
  - support multiple interfaces and peers
* fix XHTML rendering errors with OpenWrt standard theme
* fix logical glitch with empty descriptions, remove needless variables
* left align the output for better viewing esp. with material theme
* freshen up design a little bit
* switch space indentation to tabs

Signed-off-by: Dirk Brenken <dev@brenken.org>
6 years agoMerge pull request #2194 from yangfl/master
Jo-Philipp Wich [Mon, 1 Oct 2018 08:53:35 +0000 (10:53 +0200)]
Merge pull request #2194 from yangfl/master

i18n: update Chinese translation

6 years agoMerge pull request #2192 from Ansuel/wifi
Jo-Philipp Wich [Mon, 1 Oct 2018 08:52:32 +0000 (10:52 +0200)]
Merge pull request #2192 from Ansuel/wifi

luci-app-network: add rekey option

6 years agoi18n: update Chinese translation 2194/head
yangfl [Mon, 1 Oct 2018 03:39:57 +0000 (11:39 +0800)]
i18n: update Chinese translation

Signed-off-by: David Yang <mmyangfl@gmail.com>
6 years agoluci-proto-pppossh: move pppossh to own package
Florian Eckert [Thu, 15 Mar 2018 14:28:18 +0000 (15:28 +0100)]
luci-proto-pppossh: move pppossh to own package

This is a special proto which should go into a separate package.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
6 years agoluci-proto-hnet: move hnet to own package
Florian Eckert [Thu, 15 Mar 2018 07:54:10 +0000 (08:54 +0100)]
luci-proto-hnet: move hnet to own package

This is a special proto which should go into a separate package.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
6 years agoluci-app-network: add rekey option and inactivity tweak 2192/head
Ansuel Smith [Sat, 29 Sep 2018 19:50:33 +0000 (21:50 +0200)]
luci-app-network: add rekey option and inactivity tweak

This option is usefull to solve some problems with ath10k-ct and random client disconnect. This also adds some extra option to tune inactivity settings

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
6 years agoluci-app-nlbwmon: the default CSV delimiter should be a comma
Ameer Dawood [Tue, 24 Jul 2018 14:06:38 +0000 (19:06 +0500)]
luci-app-nlbwmon: the default CSV delimiter should be a comma

Suggested-by: Ameer Dawood <ameer1234567890@gmail.com>
[slightly reword commit subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-app-nlbwmon: add proper file names for json and csv exports.
Ameer Dawood [Mon, 23 Jul 2018 19:41:33 +0000 (00:41 +0500)]
luci-app-nlbwmon: add proper file names for json and csv exports.

Currently, the json and csv exports are just named `data` which is not
intuitive. This adds proper file name extensions using the
Content-disposition HTTP header.

Suggested-by: Ameer Dawood <ameer1234567890@gmail.com>
[slightly reword commit message, squash commits]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: fix misleading warning message when adding SSH keys
Dirk Brenken [Wed, 8 Aug 2018 18:46:02 +0000 (20:46 +0200)]
luci-base: fix misleading warning message when adding SSH keys

Prevent an incorrect / misleading "There are no changes to apply" message
from popping up when adding a new SSH key to the text box.

Fixes #2048.
Signed-off-by: Dirk Brenken <dev@brenken.org>
[reword commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: corrections to Russian translation
Jo-Philipp Wich [Sun, 26 Aug 2018 21:35:10 +0000 (00:35 +0300)]
luci-base: corrections to Russian translation

Add grammar corrections suggested in PRs #2114 and #2190.

Suggested-by: Roman <x.wserfer@gmail.com>
[squash #2114 and #2190, reword commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoapplications: add Chinese translations
David Yang [Fri, 17 Aug 2018 09:22:22 +0000 (17:22 +0800)]
applications: add Chinese translations

Signed-off-by: David Yang <mmyangfl@gmail.com>
[slightly reword commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-app-wireguard: add descriptions
rwalli [Sat, 25 Aug 2018 17:04:36 +0000 (19:04 +0200)]
luci-app-wireguard: add descriptions

Add description fields to luci-app-wireguard similar to those in
luci-proto-wireguard.

Ref: https://github.com/openwrt/luci/commit/140f41b4
Suggested-by: "rwalli" <rwalli@gmx.net>
[squash commits, reword commit message, remove semicolons,
 remove trailing white space]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-theme-bootstrap: enforce minimum width for IPv4 DHCP lease column
Jo-Philipp Wich [Sat, 29 Sep 2018 12:23:43 +0000 (14:23 +0200)]
luci-theme-bootstrap: enforce minimum width for IPv4 DHCP lease column

Fixes #2132.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agothemes: add data-page attribute to body elements
Jo-Philipp Wich [Sat, 29 Sep 2018 12:16:46 +0000 (14:16 +0200)]
themes: add data-page attribute to body elements

This is useful to write page specific CSS rules.

Also fix a missing space in the body CSS class name in the bootstrap theme
while we're at it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-mod-system: correct table cell rendering without umount button
Jo-Philipp Wich [Sat, 29 Sep 2018 12:09:43 +0000 (14:09 +0200)]
luci-mod-system: correct table cell rendering without umount button

Fixes #2173.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: cbi.lua: fix TypedSection.parse()
Darius [Wed, 26 Sep 2018 07:59:08 +0000 (10:59 +0300)]
luci-base: cbi.lua: fix TypedSection.parse()

It's not necessary to execute all code if section already exists.

Signed-off-by: Darius Joksas <jok.darius@gmail.com>
[reword commit message, squash commits, remove stray semicolon]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-app-firewall: remove unused code
Darius [Thu, 27 Sep 2018 08:08:14 +0000 (11:08 +0300)]
luci-app-firewall: remove unused code

 - unused requirements removed
 - unused variable and foreach loop removed

Signed-off-by: Darius <darius.joksas@teltonika.lt>
[slightly reword commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoMerge pull request #2184 from kyle30312/logout-cookie-fix
Jo-Philipp Wich [Thu, 27 Sep 2018 19:22:32 +0000 (21:22 +0200)]
Merge pull request #2184 from kyle30312/logout-cookie-fix

luci-base: fix sysauth cookie not removed on logout

6 years agoluci-theme-bootstrap: fix typo in admin node lookup
Jo-Philipp Wich [Thu, 27 Sep 2018 19:19:03 +0000 (21:19 +0200)]
luci-theme-bootstrap: fix typo in admin node lookup

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-theme-material: do not double escape menu titles
Jo-Philipp Wich [Thu, 27 Sep 2018 19:16:41 +0000 (21:16 +0200)]
luci-theme-material: do not double escape menu titles

Fixes #1410.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-theme-bootstrap: do not double escape menu titles
Jo-Philipp Wich [Thu, 27 Sep 2018 19:15:33 +0000 (21:15 +0200)]
luci-theme-bootstrap: do not double escape menu titles

Fixes #1410.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agorestored nixio tls providers
Sophana KOK [Tue, 7 Jun 2016 07:25:15 +0000 (09:25 +0200)]
restored nixio tls providers

Signed-off-by: Sophana KOK <ml-github@worldspot.net>
6 years agoluci-base: fix sysauth cookie not removed on logout 2184/head
Kyle Rogers [Wed, 26 Sep 2018 22:33:58 +0000 (18:33 -0400)]
luci-base: fix sysauth cookie not removed on logout

Signed-off-by: Kyle Rogers <7157021+kyle30312@users.noreply.github.com>
6 years agoMerge pull request #2185 from TDT-AG/pr/20180927-luci-app-mwan3
Jo-Philipp Wich [Thu, 27 Sep 2018 08:52:01 +0000 (10:52 +0200)]
Merge pull request #2185 from TDT-AG/pr/20180927-luci-app-mwan3

luci-app-mwan3: start adding german translation a new max_ttl option

6 years agoMerge pull request #2186 from TDT-AG/pr/20180927-base-fix-german-translation
Jo-Philipp Wich [Thu, 27 Sep 2018 08:50:15 +0000 (10:50 +0200)]
Merge pull request #2186 from TDT-AG/pr/20180927-base-fix-german-translation

luci-base: fix german translations

6 years agoluci-base: fix german translations 2186/head
Martin Schiller [Thu, 27 Sep 2018 07:24:45 +0000 (09:24 +0200)]
luci-base: fix german translations

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
6 years agoluci-app-mwan3: add new max_ttl option 2185/head
Florian Eckert [Mon, 7 May 2018 12:51:36 +0000 (14:51 +0200)]
luci-app-mwan3: add new max_ttl option

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
6 years agoluci-app-mwan3: add german translation
Florian Eckert [Thu, 27 Sep 2018 06:47:25 +0000 (08:47 +0200)]
luci-app-mwan3: add german translation

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
6 years agoMerge pull request #2181 from TDT-AG/pr/20180925-luci-theme-material
Jo-Philipp Wich [Wed, 26 Sep 2018 15:44:04 +0000 (17:44 +0200)]
Merge pull request #2181 from TDT-AG/pr/20180925-luci-theme-material

luci-theme-material: fixes and add openwrt logo brand

6 years agoluci-theme-material: fix partly hidden logout navbar item 2181/head
Florian Eckert [Wed, 26 Sep 2018 08:44:25 +0000 (10:44 +0200)]
luci-theme-material: fix partly hidden logout navbar item

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Konrad Kreitmair <kreitmair.konrad@web.de>
6 years agoluci-theme-material: add logo brand
Florian Eckert [Wed, 26 Sep 2018 08:42:09 +0000 (10:42 +0200)]
luci-theme-material: add logo brand

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Konrad Kreitmair <kreitmair.konrad@web.de>
6 years agoluci-theme-material: fix whitspaces and change mode
Florian Eckert [Tue, 25 Sep 2018 09:37:39 +0000 (11:37 +0200)]
luci-theme-material: fix whitspaces and change mode

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
6 years agoMerge pull request #2177 from TDT-AG/pr/20180924-luci-mod-network
Jo-Philipp Wich [Tue, 25 Sep 2018 05:32:50 +0000 (07:32 +0200)]
Merge pull request #2177 from TDT-AG/pr/20180924-luci-mod-network

luci-mod-network: disable wifi config on new wifi-iface add

6 years agoMerge pull request #2179 from remakeelectric/mos-path-vs-file
Jo-Philipp Wich [Mon, 24 Sep 2018 16:08:46 +0000 (18:08 +0200)]
Merge pull request #2179 from remakeelectric/mos-path-vs-file

luci-app-mosquitto: validate paths as path, not file

6 years agoluci-app-mosquitto: validate paths as path, not file 2179/head
Karl Palsson [Mon, 24 Sep 2018 16:00:52 +0000 (16:00 +0000)]
luci-app-mosquitto: validate paths as path, not file

luci has separate validation for directories and files, make sure to
use the right one.

Signed-off-by: Karl Palsson <karlp@etactica.com>
6 years agoMerge pull request #2178 from booo/fix/profile_berlin-mesh_network
Jo-Philipp Wich [Mon, 24 Sep 2018 12:12:23 +0000 (14:12 +0200)]
Merge pull request #2178 from booo/fix/profile_berlin-mesh_network

community-profiles: change subnet of mesh_network option for Berlin

6 years agocommunity-profiles: change subnet of mesh_network option for Berlin 2178/head
Philipp Borgers [Mon, 24 Sep 2018 11:43:51 +0000 (13:43 +0200)]
community-profiles: change subnet of mesh_network option for Berlin

The mesh_network option is used to check the user input. The wizard
checks if the input ip address is part of the mesh_network. We use
multiple /16 networks. There is no support for multiple ranges so we the
10.0.0.0/8.

For reference the ip list:

https://wiki.freifunk.net/IP-Netze

Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
6 years agoluci-mod-network: disable setup on new wifi-iface add 2177/head
Florian Eckert [Mon, 16 Jul 2018 12:39:55 +0000 (14:39 +0200)]
luci-mod-network: disable setup on new wifi-iface add

If we add a new wifi-iface to the config then the iface will start at once.
But normaly we would configure the wireless security in the next step.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
6 years agoMerge pull request #2169 from luizluca/pt-br-update
Jo-Philipp Wich [Fri, 21 Sep 2018 06:40:00 +0000 (08:40 +0200)]
Merge pull request #2169 from luizluca/pt-br-update

i18n: update pt-br translation

6 years agoi18n: update pt-br translation 2169/head
Luiz Angelo Daros de Luca [Fri, 21 Sep 2018 00:58:33 +0000 (21:58 -0300)]
i18n: update pt-br translation

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
6 years agoMerge pull request #2168 from remakeelectric/app-snmpd
Jo-Philipp Wich [Thu, 20 Sep 2018 10:41:13 +0000 (12:41 +0200)]
Merge pull request #2168 from remakeelectric/app-snmpd

luci-app-snmpd: Basic net-snmpd config options

6 years agoluci-app-snmpd: Basic net-snmpd config options 2168/head
Karl Palsson [Thu, 20 Sep 2018 10:36:34 +0000 (10:36 +0000)]
luci-app-snmpd: Basic net-snmpd config options

Imported from https://github.com/remakeelectric/owrt_pub_feeds/tree/master/luci-app-snmpd

Only provides configuration of basic authentication and system level
options, not even close to the entire slew of options that net-snmp
supports, but the basics are still helpful, and a base for future work.

Signed-off-by: Karl Palsson <karlp@etactica.com>
6 years agoMerge pull request #2167 from YuriPet/master
Jo-Philipp Wich [Thu, 20 Sep 2018 07:39:51 +0000 (09:39 +0200)]
Merge pull request #2167 from YuriPet/master

luci-base: update Ukrainian translation

6 years agoluci-mod-status: fix querying IPv6 address
Jo-Philipp Wich [Thu, 20 Sep 2018 00:41:15 +0000 (03:41 +0300)]
luci-mod-status: fix querying IPv6 address

Correct a typo that prevents displaying the interface IPv6 address in
some cases.

Fixes: #2166
Reported-by: Vladislav Grigoryev <20725816+vgaetera@users.noreply.github.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: update Ukrainian translation 2167/head
Yurii [Thu, 20 Sep 2018 00:45:22 +0000 (03:45 +0300)]
luci-base: update Ukrainian translation

luci-base: corrected and update Ukrainian translation with the latest resync.

Signed-off-by: Yurii yuripet@gmail.com
6 years agoMerge pull request #2165 from musashino205/l10n/base-upd-ja
Hannu Nyman [Wed, 19 Sep 2018 20:20:33 +0000 (23:20 +0300)]
Merge pull request #2165 from musashino205/l10n/base-upd-ja

luci-base: update Japanese translation

6 years agoluci-base: update Japanese translation 2165/head
INAGAKI Hiroshi [Wed, 19 Sep 2018 20:12:50 +0000 (05:12 +0900)]
luci-base: update Japanese translation

Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
6 years agoMerge pull request #2164 from Ansuel/ddns_fix
Hannu Nyman [Wed, 19 Sep 2018 19:24:34 +0000 (22:24 +0300)]
Merge pull request #2164 from Ansuel/ddns_fix

luci-app-ddns: fix overview page

6 years agoi18n: sync translations
Hannu Nyman [Wed, 19 Sep 2018 18:55:12 +0000 (21:55 +0300)]
i18n: sync translations

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agobuild/mkbasepot.sh: Fix i18n after luci-mod-admin-full split
Hannu Nyman [Wed, 19 Sep 2018 18:43:44 +0000 (21:43 +0300)]
build/mkbasepot.sh: Fix i18n after luci-mod-admin-full split

Fix i18n sync scripts by including also the three new modules
luci-mod-{network,status,system} in base.pot.

Note: I did not remove luci.mod-admin-full in case it will ever
get some new contents.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoluci-base: switch admin category node to firstnode() action
Jo-Philipp Wich [Wed, 19 Sep 2018 18:05:16 +0000 (20:05 +0200)]
luci-base: switch admin category node to firstnode() action

After this change, luci-base will render the first module or application
page installed on the system, instead of rendering a "Component not found"
message when the status category is unavailable.

This allows for single-purpose LuCI installations like e.g. luci-base with
luci-app-travelmate which only presents application specific views without
any of the standard system pages.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-base: dispatcher: introduce firstnode() dispatching target
Jo-Philipp Wich [Wed, 19 Sep 2018 17:58:45 +0000 (19:58 +0200)]
luci-base: dispatcher: introduce firstnode() dispatching target

The firstnode target will dispatch the request to the first eligible menu
subtree node that is not a redirect to another node, a special action or
post security enabled page.

That action is specifically useful for global category toplevel nodes like
"admin" which are supposed to simply direct access to the first installed
page node without having to hardcode specific choices.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agomodules: Split luci-mod-full
Daniel F. Dickinson [Fri, 3 Aug 2018 16:36:51 +0000 (12:36 -0400)]
modules: Split luci-mod-full

Move some common elements to luci-base, and otherwise make three
packages out of status, system, and network.  They were mostly
separated already, but there were some shared elements between
status and network that are now in luci-base.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agomodules: Make luci-base sufficient to use luci apps
Daniel F. Dickinson [Thu, 2 Aug 2018 13:39:48 +0000 (09:39 -0400)]
modules: Make luci-base sufficient to use luci apps

Per the discussion in https://github.com/openwrt/luci/issues/869, make
luci-base sufficient to login, logout, and review and apply or revert
uci changes.  This allows most luci-app-xxx to work without having
luci-mod-admin-full installed.

It has been tested with some apps and not luci-mod-admin-full, as well
as with luci-mod-admin-full (to make sure the usual case doesn't break).

Instead of creating a new module namespace (e.g. 'Base') we reduce the
opportunities for breakage by having luci-base take over the 'shell' of
the 'Administration' (admin/....) namespace.

Since admin is assumed by all current building LuCI components (including
Freifunk), this doesn't introduce the 'Administration' tab into any
situation where it would not already be present (but includes it where it
was before).

We also add a "Component not installed" page to avoid fatal errors and
backtrace when e.g. luci-mod-admin-full is not installed.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
6 years agoluci-app-ddns: fix overview page 2164/head
Ansuel Smith [Wed, 19 Sep 2018 12:00:43 +0000 (14:00 +0200)]
luci-app-ddns: fix overview page

Small fix for wrong display of next update data

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
6 years agoMerge pull request #2140 from kristrev/multiple-upstream-interfaces-status
Jo-Philipp Wich [Wed, 19 Sep 2018 09:36:30 +0000 (11:36 +0200)]
Merge pull request #2140 from kristrev/multiple-upstream-interfaces-status

luci-base: Show multiple upstream interface

6 years agoluci-base: Show multiple upstream interface 2140/head
Kristian Evensen [Sun, 9 Sep 2018 15:27:28 +0000 (17:27 +0200)]
luci-base: Show multiple upstream interface

Several devices have multiple upstream interfaces, for example a fixed
and a mobile broadband connection. Currently, only one upstream
interface is shown per address family in Luci. So in my example, one of
the interfaces would not appear on the Status-page.

This PR introduces support for showing multiple upstream interfaces on
the Status-page. The code is not very complicated. get_status_by_route()
has been extended to return a list of all routes, and
get_wannet()/get_wan6net() now returns all upstream interfaces.

I could not find any other (active) users of these three functions than
calls triggered from the Status-page, so changing the default behavior
should be fine. get_wandev()/get_wan6dev() called get_status_by_route(),
but I could not find any place where those functions were called. I
removed the dev-functions instead of keeping the old
get_status_by_route().

On the status page, the wan/wan6-variables have been replaced with
arrays. When populating the html, we now iterate through these arrays
and create one element for each interface.

I have tested the code with different interface types, v4, v6, as well as
disconnecting and connecting interfaces. The status is updated and the
correct interfaces (or sometimes none at all) are shown.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
6 years agoluci-mod-admin-full: fix diagnostic page glitch
Jo-Philipp Wich [Tue, 18 Sep 2018 16:45:19 +0000 (18:45 +0200)]
luci-mod-admin-full: fix diagnostic page glitch

Slightly restructure markup to avoid inconsistent button rendering.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoMerge pull request #1865 from Ansuel/ddns_fixget
Jo-Philipp Wich [Tue, 18 Sep 2018 16:30:22 +0000 (18:30 +0200)]
Merge pull request #1865 from Ansuel/ddns_fixget

luci-app-ddns: various fix

6 years agoMerge pull request #2160 from remakeelectric/app-mosq
Jo-Philipp Wich [Tue, 18 Sep 2018 16:07:27 +0000 (18:07 +0200)]
Merge pull request #2160 from remakeelectric/app-mosq

luci-app-mosquitto: import new application

6 years agoluci-app-mosquitto: import new application 2160/head
Karl Palsson [Tue, 18 Sep 2018 12:47:40 +0000 (12:47 +0000)]
luci-app-mosquitto: import new application

Originally developed and maintained at https://github.com/remakeelectric/owrt_pub_feeds/tree/master/luci-app-mosquitto

Vs the original, this version has been converted to use the luci.mk
style, and has dropped the now obsolete ucitrack entries.

Signed-off-by: Karl Palsson <karlp@etactica.com>
6 years agoMerge pull request #2157 from Ansuel/unbound
Jo-Philipp Wich [Tue, 18 Sep 2018 15:38:41 +0000 (17:38 +0200)]
Merge pull request #2157 from Ansuel/unbound

luci-app-unbound: add cache_dump tab

6 years agoluci-app-unbound: add cache_dump tab 2157/head
Ansuel Smith [Tue, 18 Sep 2018 10:17:19 +0000 (12:17 +0200)]
luci-app-unbound: add cache_dump tab

This adds in the State tab a new option to dump cache from unbound-control application

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
6 years agoMerge pull request #2121 from jokdarius/feature/0001-performace-fix
Jo-Philipp Wich [Tue, 18 Sep 2018 15:18:23 +0000 (17:18 +0200)]
Merge pull request #2121 from jokdarius/feature/0001-performace-fix

luci-mod-admin-full: performance fix

6 years agoMerge pull request #2159 from TDT-AG/pr/20180918-luci-theme-material-css-customize
Jo-Philipp Wich [Tue, 18 Sep 2018 15:15:38 +0000 (17:15 +0200)]
Merge pull request #2159 from TDT-AG/pr/20180918-luci-theme-material-css-customize

luci-theme-material: make colors configurable

6 years agoMerge pull request #2126 from rosysong/ipv6
Jo-Philipp Wich [Tue, 18 Sep 2018 15:02:26 +0000 (17:02 +0200)]
Merge pull request #2126 from rosysong/ipv6

luci-proto-ipv6: fix dependency for IPv6

6 years agoMerge pull request #2150 from ameer1234567890/material-theme-monospace-font
Jo-Philipp Wich [Tue, 18 Sep 2018 15:01:46 +0000 (17:01 +0200)]
Merge pull request #2150 from ameer1234567890/material-theme-monospace-font

luci-theme-material: Monospace font for textarea elements

6 years agoluci-theme-material: make colors configurable 2159/head
Florian Eckert [Mon, 3 Sep 2018 08:46:47 +0000 (10:46 +0200)]
luci-theme-material: make colors configurable

The var() css function can be used to insert the value of a custom property.
A custom.css file is added to change the colors. This file will get included
in the cascade.css file.

The following colors could be costomized in the file costom.css.

--header-bg
--header-color
--menu-bg-color
--menu-color
--submenu-bg-hover
--submenu-bg-hover-active

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
6 years agoMerge pull request #2154 from dibdot/openvpn-fix
Dirk Brenken [Mon, 17 Sep 2018 18:36:48 +0000 (20:36 +0200)]
Merge pull request #2154 from dibdot/openvpn-fix

luci-app-openvpn: remove obsolete config options

6 years agoluci-app-openvpn: remove obsolete config options 2154/head
Dirk Brenken [Sun, 16 Sep 2018 16:58:26 +0000 (18:58 +0200)]
luci-app-openvpn: remove obsolete config options

* remove obsolete config options according to
  openwrt/openwrt@89b8ba9, fix for #2135
* whitespace/intendation fixes
* replace fieldset leftover with div
* fix finally recipe options transfer to regular config with "Add"

Signed-off-by: Dirk Brenken <dev@brenken.org>
6 years agoMerge pull request #2149 from dibdot/openvpn-fix
Dirk Brenken [Sun, 16 Sep 2018 06:42:21 +0000 (08:42 +0200)]
Merge pull request #2149 from dibdot/openvpn-fix

luci-app-openvpn: fix template based config creation

6 years agoMerge pull request #2152 from EricLuehrsen/unbound-1.8.0
Dirk Brenken [Sun, 16 Sep 2018 06:41:25 +0000 (08:41 +0200)]
Merge pull request #2152 from EricLuehrsen/unbound-1.8.0

luci-app-unbound: add protocol=ip4_local option support

6 years agoluci-app-unbound: add protocol=ip4_local option support 2152/head
Eric Luehrsen [Sun, 16 Sep 2018 00:35:26 +0000 (20:35 -0400)]
luci-app-unbound: add protocol=ip4_local option support

Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
6 years agoMerge pull request #2122 from rosysong/backup
Hannu Nyman [Fri, 14 Sep 2018 17:05:36 +0000 (20:05 +0300)]
Merge pull request #2122 from rosysong/backup

Backup: add firmware backup for mtdblock devices

6 years agoluci-theme-material: Monospace font for textarea elements 2150/head
Ameer Dawood [Fri, 14 Sep 2018 07:50:20 +0000 (12:50 +0500)]
luci-theme-material: Monospace font for textarea elements

Signed-off-by: Ameer Dawood <ameer1234567890@gmail.com>
6 years agoluci-app-openvpn: fix template based config creation 2149/head
Dirk Brenken [Fri, 14 Sep 2018 06:57:06 +0000 (08:57 +0200)]
luci-app-openvpn: fix template based config creation

* minimal fix to bring back openvpn config creation based on
openvpn_recipes template, fix for #2146

Signed-off-by: Dirk Brenken <dev@brenken.org>
6 years agoMerge pull request #2148 from ysoyipek/patch-5
Hannu Nyman [Fri, 14 Sep 2018 06:32:50 +0000 (09:32 +0300)]
Merge pull request #2148 from ysoyipek/patch-5

luci-base: update Turkish translation