Jo-Philipp Wich [Thu, 11 Oct 2018 06:02:38 +0000 (08:02 +0200)]
luci-base: cbi.js: remove dead code
Remove some superfluous code which was added with a previous commit.
Fixes: 8270f10f1 ("luci-base: cbi.js: code cleanups")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 11 Oct 2018 06:00:01 +0000 (08:00 +0200)]
luci-lib-iptparser: fix packaging
The previous commit omitted a subdirectory.
Fixes: 94323a61e ("luci-base: move luci.sys.iptparser into separate package")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 11 Oct 2018 05:56:36 +0000 (07:56 +0200)]
luci-base: cbi.js: code cleanups
- unify code style
- add matchesElem() helper
- replace nodeName checks with selector tests
- replace className manipulations with classList operations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 11 Oct 2018 05:00:13 +0000 (07:00 +0200)]
Merge pull request #2220 from yangfl/packages
luci-mod-system: block install and search if no package lists
yangfl [Wed, 10 Oct 2018 14:00:46 +0000 (22:00 +0800)]
luci-mod-system: block install and search if no package lists
Signed-off-by: David Yang <mmyangfl@gmail.com>
Hannu Nyman [Wed, 10 Oct 2018 17:25:11 +0000 (20:25 +0300)]
Merge pull request #2197 from yangfl/master
treewide: Fix typos in comments
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>
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>
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>
yangfl [Sat, 18 Aug 2018 04:21:21 +0000 (12:21 +0800)]
treewide: Fix typos in comments
Signed-off-by: David Yang <mmyangfl@gmail.com>
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>
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>
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>
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
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>
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>
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
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
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>
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
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
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>
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>
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>
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>
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
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>
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
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>
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>
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
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
yangfl [Mon, 1 Oct 2018 03:39:57 +0000 (11:39 +0800)]
i18n: update Chinese translation
Signed-off-by: David Yang <mmyangfl@gmail.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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
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
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>
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>
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>
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
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>
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>
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>
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
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
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>
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
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>
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>
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
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>
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
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>
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
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>
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
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
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>
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
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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
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
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>
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
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>
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
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
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
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
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>
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
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>