Commit graph

10043 commits

Author SHA1 Message Date
Jo-Philipp Wich
136fba752c
Merge pull request #2177 from TDT-AG/pr/20180924-luci-mod-network
luci-mod-network: disable wifi config on new wifi-iface add
2018-09-25 07:32:50 +02:00
Jo-Philipp Wich
b6306b1f49
Merge pull request #2179 from remakeelectric/mos-path-vs-file
luci-app-mosquitto: validate paths as path, not file
2018-09-24 18:08:46 +02:00
Karl Palsson
8fdb5f64f2 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>
2018-09-24 16:02:24 +00:00
Jo-Philipp Wich
e722ac1807
Merge pull request #2178 from booo/fix/profile_berlin-mesh_network
community-profiles: change subnet of mesh_network option for Berlin
2018-09-24 14:12:23 +02:00
Philipp Borgers
eab986432d 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>
2018-09-24 13:57:31 +02:00
Florian Eckert
99ebb788cf 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>
2018-09-24 11:28:51 +02:00
Jo-Philipp Wich
89a4fdd1a8
Merge pull request #2169 from luizluca/pt-br-update
i18n: update pt-br translation
2018-09-21 08:40:00 +02:00
Luiz Angelo Daros de Luca
728501dd57 i18n: update pt-br translation
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2018-09-20 21:58:33 -03:00
Jo-Philipp Wich
f0512e5c38
Merge pull request #2168 from remakeelectric/app-snmpd
luci-app-snmpd: Basic net-snmpd config options
2018-09-20 12:41:13 +02:00
Karl Palsson
318e455755 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>
2018-09-20 10:36:34 +00:00
Jo-Philipp Wich
be24b7b480
Merge pull request #2167 from YuriPet/master
luci-base: update Ukrainian translation
2018-09-20 09:39:51 +02:00
Jo-Philipp Wich
99265f3f59 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>
2018-09-20 08:45:05 +02:00
Yurii
00c7cfe95b
luci-base: update Ukrainian translation
luci-base: corrected and update Ukrainian translation with the latest resync.

Signed-off-by: Yurii yuripet@gmail.com
2018-09-20 03:45:22 +03:00
Hannu Nyman
dedb72dbb9
Merge pull request #2165 from musashino205/l10n/base-upd-ja
luci-base: update Japanese translation
2018-09-19 23:20:33 +03:00
INAGAKI Hiroshi
f5c60bd716 luci-base: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-09-20 05:15:09 +09:00
Hannu Nyman
1aac63dbf9
Merge pull request #2164 from Ansuel/ddns_fix
luci-app-ddns: fix overview page
2018-09-19 22:24:34 +03:00
Hannu Nyman
c5ce34193e i18n: sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-09-19 21:55:12 +03:00
Hannu Nyman
90e749c63d 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>
2018-09-19 21:50:59 +03:00
Jo-Philipp Wich
0f91ef83af 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>
2018-09-19 20:08:19 +02:00
Jo-Philipp Wich
11f7817d33 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>
2018-09-19 20:08:19 +02:00
Daniel F. Dickinson
58d97b5e27 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>
2018-09-19 20:08:19 +02:00
Daniel F. Dickinson
6ec0353201 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>
2018-09-19 20:08:19 +02:00
Ansuel Smith
8e13fcfbac
luci-app-ddns: fix overview page
Small fix for wrong display of next update data

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-09-19 14:00:43 +02:00
Jo-Philipp Wich
1a0316bbba
Merge pull request #2140 from kristrev/multiple-upstream-interfaces-status
luci-base: Show multiple upstream interface
2018-09-19 11:36:30 +02:00
Kristian Evensen
a13748d414 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>
2018-09-19 11:01:38 +02:00
Jo-Philipp Wich
9142a71469 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>
2018-09-18 18:45:19 +02:00
Jo-Philipp Wich
6cfbb8ad4e
Merge pull request #1865 from Ansuel/ddns_fixget
luci-app-ddns: various fix
2018-09-18 18:30:22 +02:00
Jo-Philipp Wich
1b6e3bc5ae
Merge pull request #2160 from remakeelectric/app-mosq
luci-app-mosquitto: import new application
2018-09-18 18:07:27 +02:00
Karl Palsson
7552fce8cc 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>
2018-09-18 15:44:52 +00:00
Jo-Philipp Wich
cfb726ae5d
Merge pull request #2157 from Ansuel/unbound
luci-app-unbound: add cache_dump tab
2018-09-18 17:38:41 +02:00
Ansuel Smith
013a8187ed
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>
2018-09-18 17:31:25 +02:00
Jo-Philipp Wich
e11980b150
Merge pull request #2121 from jokdarius/feature/0001-performace-fix
luci-mod-admin-full: performance fix
2018-09-18 17:18:23 +02:00
Jo-Philipp Wich
ef1ca5f26d
Merge pull request #2159 from TDT-AG/pr/20180918-luci-theme-material-css-customize
luci-theme-material: make colors configurable
2018-09-18 17:15:38 +02:00
Jo-Philipp Wich
1536be6774
Merge pull request #2126 from rosysong/ipv6
luci-proto-ipv6: fix dependency for IPv6
2018-09-18 17:02:26 +02:00
Jo-Philipp Wich
a531d7bc06
Merge pull request #2150 from ameer1234567890/material-theme-monospace-font
luci-theme-material: Monospace font for textarea elements
2018-09-18 17:01:46 +02:00
Florian Eckert
19a0522a12 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>
2018-09-18 14:38:29 +02:00
Dirk Brenken
2cbc3932e9
Merge pull request #2154 from dibdot/openvpn-fix
luci-app-openvpn: remove obsolete config options
2018-09-17 20:36:48 +02:00
Dirk Brenken
c2656a7220 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>
2018-09-17 14:22:14 +02:00
Dirk Brenken
5cb6c1c698
Merge pull request #2149 from dibdot/openvpn-fix
luci-app-openvpn: fix template based config creation
2018-09-16 08:42:21 +02:00
Dirk Brenken
3c4d2ebb87
Merge pull request #2152 from EricLuehrsen/unbound-1.8.0
luci-app-unbound: add protocol=ip4_local option support
2018-09-16 08:41:25 +02:00
Eric Luehrsen
f4818d414a luci-app-unbound: add protocol=ip4_local option support
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
2018-09-16 00:00:41 -04:00
Hannu Nyman
6bea6eebf0
Merge pull request #2122 from rosysong/backup
Backup: add firmware backup for mtdblock devices
2018-09-14 20:05:36 +03:00
Ameer Dawood
818ce143f2
luci-theme-material: Monospace font for textarea elements
Signed-off-by: Ameer Dawood <ameer1234567890@gmail.com>
2018-09-14 12:52:33 +05:00
Dirk Brenken
1eb3f734c7 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>
2018-09-14 08:57:06 +02:00
Hannu Nyman
9e5baf9b3a
Merge pull request #2148 from ysoyipek/patch-5
luci-base: update Turkish translation
2018-09-14 09:32:50 +03:00
Yusuf Soyipek
96c2b30960
luci-base: update Turkish translation
Add missing translations.

Signed-off-by: Yusuf Soyipek <yusuf@soyipek.com>
2018-09-13 23:17:57 +03:00
Hannu Nyman
072d356816
Merge pull request #2144 from TDT-AG/pr/20180912-i18n-sync-translations
i18n: sync translations
2018-09-12 18:47:48 +03:00
Martin Schiller
5f7c695848 i18n: sync translations
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2018-09-12 11:17:30 +02:00
Dirk Brenken
9727f552fe
Merge pull request #2071 from Andy2244/luci-app-samba4-timemachine
luci-app-samba4: add macOS and Apple Timemachine support
2018-09-11 10:26:48 +02:00
Andy Walsh
2593bc61a7 luci-app-samba4: add macOS compatibility option and Apple Timemachine support
Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2018-09-11 09:57:57 +02:00