oweals/luci.git
5 years agoluci-base: rpc: drop offload_support call
Jo-Philipp Wich [Wed, 14 Aug 2019 15:02:49 +0000 (17:02 +0200)]
luci-base: rpc: drop offload_support call

It is superseded by the more generic getFeatures method.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-firewall: drop usage of getOffloadSupport()
Jo-Philipp Wich [Wed, 14 Aug 2019 15:00:04 +0000 (17:00 +0200)]
luci-app-firewall: drop usage of getOffloadSupport()

Rely on the more generic L.hasSystemFeature() from now on.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: luci.js: introduce hasSystemFeature() api
Jo-Philipp Wich [Wed, 14 Aug 2019 14:42:55 +0000 (16:42 +0200)]
luci-base: luci.js: introduce hasSystemFeature() api

The new function allows querying the presence of certain system features
such as dnsmasq or firewall availability or the compile time features
of hostapd and wpa_supplicant.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: form.js: support passing a callback to Map.save()
Jo-Philipp Wich [Mon, 12 Aug 2019 17:45:18 +0000 (19:45 +0200)]
luci-base: form.js: support passing a callback to Map.save()

The given callback function will be executed after the map is parsed,
but before the uci is saved. This is useful to add further uci changes
before the map is re-rendered.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: form.js: implement support for tabbed maps
Jo-Philipp Wich [Mon, 12 Aug 2019 17:44:00 +0000 (19:44 +0200)]
luci-base: form.js: implement support for tabbed maps

When .tabbed is set to true on a map, all enclosed sections will be
put into separate tabs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: form.js: improve ui tab interaction
Jo-Philipp Wich [Sun, 11 Aug 2019 19:01:12 +0000 (21:01 +0200)]
luci-base: form.js: improve ui tab interaction

 - Delay initialization of tab groups
 - Tag section nodes with IDs to store per-section tab state

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: ui.js: rework tab state handling
Jo-Philipp Wich [Sun, 11 Aug 2019 18:59:45 +0000 (20:59 +0200)]
luci-base: ui.js: rework tab state handling

Properly preserve the selection state of nested tabs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: form.js: CBISectionValue: properly forward dependency checks
Jo-Philipp Wich [Sun, 11 Aug 2019 18:54:49 +0000 (20:54 +0200)]
luci-base: form.js: CBISectionValue: properly forward dependency checks

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: ui.js: UISelect: fix check for empty choices
Jo-Philipp Wich [Sun, 11 Aug 2019 18:52:51 +0000 (20:52 +0200)]
luci-base: ui.js: UISelect: fix check for empty choices

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: form.js: allow overriding empty section placeholder rendering
Jo-Philipp Wich [Thu, 8 Aug 2019 11:31:47 +0000 (13:31 +0200)]
luci-base: form.js: allow overriding empty section placeholder rendering

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: form.js: harmonize title property handling
Jo-Philipp Wich [Thu, 8 Aug 2019 07:39:58 +0000 (09:39 +0200)]
luci-base: form.js: harmonize title property handling

Some title properties were expected to be functions, some strings.

Refactor the code to support both string or function values for all
title properties.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: form.js: inherit uci config overrides from parent sections
Jo-Philipp Wich [Thu, 8 Aug 2019 06:36:04 +0000 (08:36 +0200)]
luci-base: form.js: inherit uci config overrides from parent sections

When the parent section of an option object specifes an alternative
uci configuration name, enclosed option elements should honour it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: form.js: fix rendering of button widgets
Jo-Philipp Wich [Thu, 8 Aug 2019 06:34:27 +0000 (08:34 +0200)]
luci-base: form.js: fix rendering of button widgets

Also introduce an `onclick` property to allow registering custom button
action handler.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: form.js: add further caption properties
Jo-Philipp Wich [Thu, 8 Aug 2019 06:24:02 +0000 (08:24 +0200)]
luci-base: form.js: add further caption properties

Introduce properties `addbtntitle`, `removebtntitle` and `modaltitle` to
allow overriding the captions of section add buttons, remove buttons and
modal dialog titles respectively.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: network.js: add getL2Device(), getMTU() helpers
Jo-Philipp Wich [Wed, 31 Jul 2019 18:01:11 +0000 (20:01 +0200)]
luci-base: network.js: add getL2Device(), getMTU() helpers

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: network.js: support dynamically loaded protocol classes
Jo-Philipp Wich [Wed, 31 Jul 2019 07:14:51 +0000 (09:14 +0200)]
luci-base: network.js: support dynamically loaded protocol classes

Port the existing server side protocol support framework to the client
side network.js.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: network.js: expose prefixToMask() and maskToPrefix()
Jo-Philipp Wich [Wed, 31 Jul 2019 06:41:53 +0000 (08:41 +0200)]
luci-base: network.js: expose prefixToMask() and maskToPrefix()

Expose the prefixToMask() and maskToPrefix() helper functions for use by
other modules, e.g. the datatype validator.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: network.js: return mac addresses in upper case
Jo-Philipp Wich [Wed, 31 Jul 2019 06:41:03 +0000 (08:41 +0200)]
luci-base: network.js: return mac addresses in upper case

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: network.js: extend ifnameOf() and expose as getIfnameOf()
Jo-Philipp Wich [Wed, 31 Jul 2019 06:39:10 +0000 (08:39 +0200)]
luci-base: network.js: extend ifnameOf() and expose as getIfnameOf()

Extend the ifnameOf() helper function to cover all object types used by
network.js and expose it as public getIfnameOf() api function for use by
other modules.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: network.js: add ability to flush the internal cache
Jo-Philipp Wich [Wed, 31 Jul 2019 06:33:52 +0000 (08:33 +0200)]
luci-base: network.js: add ability to flush the internal cache

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: ui.js: do not forcibly sort synamic list items
Jo-Philipp Wich [Wed, 14 Aug 2019 20:44:54 +0000 (22:44 +0200)]
luci-base: ui.js: do not forcibly sort synamic list items

Ref: https://forum.openwrt.org/t/cannot-save-certain-fields/42738/2
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-statistics: cpufreq: tweak graphs
Hannu Nyman [Wed, 14 Aug 2019 15:53:03 +0000 (18:53 +0300)]
luci-app-statistics: cpufreq: tweak graphs

* Frequency usage percentage stats are by kHz instead of Hz.
  Correct the labels. (Linux natively uses kHz for CPU frequency stats,
  but collectd scales the current frequency stats item to Hz.)

* Show frequency usage percentage graph before the transition counts,
  as it is more descriptive.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
5 years agoMerge pull request #2976 from aaronmdjones/master
Jo-Philipp Wich [Sun, 11 Aug 2019 09:21:25 +0000 (11:21 +0200)]
Merge pull request #2976 from aaronmdjones/master

luci-app-firewall: rules: allow ICMPv6 ND types and sort alphabetically

5 years agoluci-app-firewall: rules: sort ICMP types alphabetically 2976/head
Aaron Jones [Sun, 11 Aug 2019 06:13:15 +0000 (06:13 +0000)]
luci-app-firewall: rules: sort ICMP types alphabetically

This just makes it easier to find the type one would want.
No types were added or removed, only re-arranged.

Signed-off-by: Aaron Jones <aaronmdjones@gmail.com>
5 years agoluci-app-firewall: rules: allow ICMPv6 ND types
Aaron Jones [Sun, 11 Aug 2019 06:08:07 +0000 (06:08 +0000)]
luci-app-firewall: rules: allow ICMPv6 ND types

The "Match ICMP Type" dropdown had entries for router
solicitation & router advertisements, but not the more
generic neighbour solicitation & neighbour advertisements.

A LAN cannot function without Neighbour Discovery; this
means that setting a LAN interface default input policy to
REJECT breaks IPv6 WAN access for all hosts on that LAN;
as they can no longer discover their gateway's MAC address.
This can be fixed with appropriate rules allowing ND input,
which this patch allows one to do in LuCI.

The spelling is the same as in [1].

[1] <https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/network/config/firewall/files/firewall.config>

Signed-off-by: Aaron Jones <aaronmdjones@gmail.com>
5 years agoluci-app-statistics: scale up ping_droprate to range 0-100
Yousong Zhou [Fri, 9 Aug 2019 10:05:02 +0000 (10:05 +0000)]
luci-app-statistics: scale up ping_droprate to range 0-100

In original collectd, values of this metric are in range 0-1.  OpenWrt
previously have a custom patch scaling them up to range 0-100.  That
patch has been removed to align with possibly other deployments.

Ref: https://github.com/openwrt/packages/pull/9677
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
5 years agoMerge pull request #2969 from TDT-AG/pr/20190806-luci-base
Florian Eckert [Fri, 9 Aug 2019 12:46:29 +0000 (14:46 +0200)]
Merge pull request #2969 from TDT-AG/pr/20190806-luci-base

luci-base: add new VPN toplevel menu entry

5 years agoMerge pull request #2968 from dibdot/banIP
Dirk Brenken [Wed, 7 Aug 2019 03:45:28 +0000 (05:45 +0200)]
Merge pull request #2968 from dibdot/banIP

luci-app-banip: sync with 0.1.5

5 years agoMerge pull request #2967 from dibdot/travelmate
Dirk Brenken [Wed, 7 Aug 2019 03:45:06 +0000 (05:45 +0200)]
Merge pull request #2967 from dibdot/travelmate

luci-app-travelmate: sync with 1.4.10

5 years agoluci-app-ocserv: move to new vpn menu section 2969/head
Florian Eckert [Tue, 6 Aug 2019 14:03:05 +0000 (16:03 +0200)]
luci-app-ocserv: move to new vpn menu section

Move the app ocserv to the new vpn menu section.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-app-openvpn: move to new vpn menu section
Florian Eckert [Mon, 5 Aug 2019 14:28:27 +0000 (16:28 +0200)]
luci-app-openvpn: move to new vpn menu section

Move the app openvpn to the new vpn menu section.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-base: add vpn menu section
Florian Eckert [Tue, 6 Aug 2019 14:03:29 +0000 (16:03 +0200)]
luci-base: add vpn menu section

There is always more vpn services. To make the LuCI menu look cleaner, a
new top level menu "VPN" will be added with this commit. All luci-app-*
that have something to do with VPN should move to this new menu entry.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-app-travelmate: sync with 1.4.10 2967/head
Dirk Brenken [Tue, 6 Aug 2019 09:42:04 +0000 (11:42 +0200)]
luci-app-travelmate: sync with 1.4.10

* wifi add/edit: add a select box to reference an external script
  for automated captive portal logins
* fix a visual issue with material theme

Signed-off-by: Dirk Brenken <dev@brenken.org>
5 years agoluci-app-banip: sync with 0.1.5 2968/head
Dirk Brenken [Tue, 6 Aug 2019 13:51:23 +0000 (15:51 +0200)]
luci-app-banip: sync with 0.1.5

* add new extra options to control auto-addons to
  blacklist & whitelist ('ban_autoblacklist' & 'ban_autowhitelist')

Signed-off-by: Dirk Brenken <dev@brenken.org>
5 years agoprotocols: fix contains_interface() implementation in several backends
Jo-Philipp Wich [Tue, 6 Aug 2019 13:19:15 +0000 (15:19 +0200)]
protocols: fix contains_interface() implementation in several backends

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-lib-ip: support specifying source address in route()
Jo-Philipp Wich [Tue, 6 Aug 2019 11:37:51 +0000 (13:37 +0200)]
luci-lib-ip: support specifying source address in route()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoMerge pull request #2966 from TsLenMo/master
Florian Eckert [Tue, 6 Aug 2019 10:06:12 +0000 (12:06 +0200)]
Merge pull request #2966 from TsLenMo/master

Fix a software page style issue for rosy, Fix #2965.

5 years agoluci-theme-rosy: fix a software page style issue 2966/head
TsLenMo [Tue, 6 Aug 2019 04:35:53 +0000 (12:35 +0800)]
luci-theme-rosy: fix a software page style issue

The software page is out of the parent box, and the same is true in chrome and firefox.

Signed-off-by: TsLenMo <2013319822@qq.com>
5 years agoMerge pull request #2964 from musashino205/l10n/base-upd-ja
Hannu Nyman [Mon, 5 Aug 2019 17:55:22 +0000 (20:55 +0300)]
Merge pull request #2964 from musashino205/l10n/base-upd-ja

luci-base: update Japanese translation

5 years agoluci-base: update Japanese translation 2964/head
INAGAKI Hiroshi [Mon, 5 Aug 2019 17:52:54 +0000 (02:52 +0900)]
luci-base: update Japanese translation

Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
5 years agoMerge pull request #2962 from TDT-AG/pr/20190802-luci-app-openvpn
Jo-Philipp Wich [Mon, 5 Aug 2019 07:28:29 +0000 (09:28 +0200)]
Merge pull request #2962 from TDT-AG/pr/20190802-luci-app-openvpn

luci-app-openvpn: replace tls_cipher and tls_ciphersuites with DynamicList

5 years agoluci-app-openvpn: use DynamicList for tls_ciphersuites 2962/head
Florian Eckert [Fri, 2 Aug 2019 13:32:04 +0000 (15:32 +0200)]
luci-app-openvpn: use DynamicList for tls_ciphersuites

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-app-openvpn: use DynamicList for tls_cipher
Florian Eckert [Fri, 2 Aug 2019 13:28:30 +0000 (15:28 +0200)]
luci-app-openvpn: use DynamicList for tls_cipher

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoMerge pull request #2643 from kuoruan/aria2
Florian Eckert [Fri, 2 Aug 2019 09:22:55 +0000 (11:22 +0200)]
Merge pull request #2643 from kuoruan/aria2

luci-app-aria2: Refactor, new views and more options

5 years agoMerge pull request #2961 from castillofrancodamian/udpxy
Florian Eckert [Fri, 2 Aug 2019 08:24:35 +0000 (10:24 +0200)]
Merge pull request #2961 from castillofrancodamian/udpxy

luci-app-udpxy: add template

5 years agoMerge pull request #2960 from castillofrancodamian/travel
Florian Eckert [Fri, 2 Aug 2019 08:24:11 +0000 (10:24 +0200)]
Merge pull request #2960 from castillofrancodamian/travel

luci-app-travelmate: update Spanish translation

5 years agoMerge pull request #2959 from castillofrancodamian/stat
Florian Eckert [Fri, 2 Aug 2019 08:23:50 +0000 (10:23 +0200)]
Merge pull request #2959 from castillofrancodamian/stat

luci-app-statistics: update Spanish translation

5 years agoMerge pull request #2958 from castillofrancodamian/simple
Florian Eckert [Fri, 2 Aug 2019 08:23:29 +0000 (10:23 +0200)]
Merge pull request #2958 from castillofrancodamian/simple

luci-app-simple-adblock: update Spanish translation

5 years agoMerge pull request #2957 from castillofrancodamian/firewall
Florian Eckert [Fri, 2 Aug 2019 08:23:01 +0000 (10:23 +0200)]
Merge pull request #2957 from castillofrancodamian/firewall

luci-app-firewall: update Spanish translation

5 years agoMerge pull request #2955 from castillofrancodamian/dump1090
Florian Eckert [Fri, 2 Aug 2019 08:21:00 +0000 (10:21 +0200)]
Merge pull request #2955 from castillofrancodamian/dump1090

luci-app-dump1090: add Spanish translation

5 years agoMerge pull request #2953 from castillofrancodamian/cshark
Florian Eckert [Fri, 2 Aug 2019 08:20:29 +0000 (10:20 +0200)]
Merge pull request #2953 from castillofrancodamian/cshark

luci-app-cshark: add Spanish translation

5 years agoMerge pull request #2952 from castillofrancodamian/wireguard
Florian Eckert [Fri, 2 Aug 2019 08:20:06 +0000 (10:20 +0200)]
Merge pull request #2952 from castillofrancodamian/wireguard

luci-app-wireguard: update Spanish translation

5 years agoMerge pull request #2951 from castillofrancodamian/bmx7
Florian Eckert [Fri, 2 Aug 2019 08:19:37 +0000 (10:19 +0200)]
Merge pull request #2951 from castillofrancodamian/bmx7

luci-app-bmx7: add Spanish translation

5 years agoMerge pull request #2949 from castillofrancodamian/olsr-s
Florian Eckert [Fri, 2 Aug 2019 08:18:01 +0000 (10:18 +0200)]
Merge pull request #2949 from castillofrancodamian/olsr-s

luci-app-olsr-services: add Spanish translation

5 years agoMerge pull request #2947 from castillofrancodamian/ocserv
Florian Eckert [Fri, 2 Aug 2019 08:17:28 +0000 (10:17 +0200)]
Merge pull request #2947 from castillofrancodamian/ocserv

luci-app-ocserv: add Spanish translation

5 years agoMerge pull request #2946 from castillofrancodamian/squid
Florian Eckert [Fri, 2 Aug 2019 08:16:51 +0000 (10:16 +0200)]
Merge pull request #2946 from castillofrancodamian/squid

luci-app-squid: add Spanish translation

5 years agoMerge pull request #2945 from castillofrancodamian/att
Florian Eckert [Fri, 2 Aug 2019 08:16:32 +0000 (10:16 +0200)]
Merge pull request #2945 from castillofrancodamian/att

luci-app-attendedsysupgrade: add Spanish translation

5 years agoluci-app-udpxy: add template 2961/head
Franco Castillo [Fri, 2 Aug 2019 02:18:33 +0000 (23:18 -0300)]
luci-app-udpxy: add template

Add template.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-travelmate: update Spanish translation 2960/head
Franco Castillo [Fri, 2 Aug 2019 02:12:26 +0000 (23:12 -0300)]
luci-app-travelmate: update Spanish translation

Update Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-statistics: update Spanish translation 2959/head
Franco Castillo [Fri, 2 Aug 2019 02:07:19 +0000 (23:07 -0300)]
luci-app-statistics: update Spanish translation

Update Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-simple-adblock: update Spanish translation 2958/head
Franco Castillo [Fri, 2 Aug 2019 01:59:55 +0000 (22:59 -0300)]
luci-app-simple-adblock: update Spanish translation

Update Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-firewall: update Spanish translation 2957/head
Franco Castillo [Fri, 2 Aug 2019 01:48:19 +0000 (22:48 -0300)]
luci-app-firewall: update Spanish translation

Update Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-dump1090: add Spanish translation 2955/head
Franco Castillo [Fri, 2 Aug 2019 01:27:18 +0000 (22:27 -0300)]
luci-app-dump1090: add Spanish translation

Add Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-cshark: add Spanish translation 2953/head
Franco Castillo [Fri, 2 Aug 2019 01:02:27 +0000 (22:02 -0300)]
luci-app-cshark: add Spanish translation

Add Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-wireguard: update Spanish translation 2952/head
Franco Castillo [Fri, 2 Aug 2019 00:53:17 +0000 (21:53 -0300)]
luci-app-wireguard: update Spanish translation

Update Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-bmx7: add Spanish translation 2951/head
Franco Castillo [Fri, 2 Aug 2019 00:40:02 +0000 (21:40 -0300)]
luci-app-bmx7: add Spanish translation

Add Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-olsr-services: add Spanish translation 2949/head
Franco Castillo [Thu, 1 Aug 2019 23:56:27 +0000 (20:56 -0300)]
luci-app-olsr-services: add Spanish translation

Add Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-ocserv: add Spanish translation 2947/head
Franco Castillo [Thu, 1 Aug 2019 23:48:26 +0000 (20:48 -0300)]
luci-app-ocserv: add Spanish translation

Add Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-squid: add Spanish translation 2946/head
Franco Castillo [Thu, 1 Aug 2019 23:17:05 +0000 (20:17 -0300)]
luci-app-squid: add Spanish translation

Add Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-app-attendedsysupgrade: add Spanish translation 2945/head
Franco Castillo [Thu, 1 Aug 2019 23:02:14 +0000 (20:02 -0300)]
luci-app-attendedsysupgrade: add Spanish translation

Add Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-base: form.js: add modal dialog hook
Jo-Philipp Wich [Wed, 31 Jul 2019 06:00:29 +0000 (08:00 +0200)]
luci-base: form.js: add modal dialog hook

Add a new `addModalOptions()` hook which allows to supply additional
cbi options the modal map before the dialog is rendered.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: form.js: update tab state on dependency checks
Jo-Philipp Wich [Wed, 31 Jul 2019 05:59:49 +0000 (07:59 +0200)]
luci-base: form.js: update tab state on dependency checks

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: ui.js: tabs: fix empty pane checking, allow alternative query root
Jo-Philipp Wich [Wed, 31 Jul 2019 05:57:15 +0000 (07:57 +0200)]
luci-base: ui.js: tabs: fix empty pane checking, allow alternative query root

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: luci.js: add L.dom.isEmpty() helper
Jo-Philipp Wich [Wed, 31 Jul 2019 05:55:15 +0000 (07:55 +0200)]
luci-base: luci.js: add L.dom.isEmpty() helper

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: ui.js: mark widget optional if empty choice is present
Jo-Philipp Wich [Sun, 28 Jul 2019 15:24:12 +0000 (17:24 +0200)]
luci-base: ui.js: mark widget optional if empty choice is present

Fixes: #2943
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoMerge pull request #2939 from TDT-AG/pr/20190731-luci-app-watchat
Florian Eckert [Thu, 1 Aug 2019 13:47:39 +0000 (15:47 +0200)]
Merge pull request #2939 from TDT-AG/pr/20190731-luci-app-watchat

luci-app-watchat: fix ucitrack file

5 years agoluci-base: index.html: add extend cache-control directive
Jo-Philipp Wich [Thu, 1 Aug 2019 13:43:08 +0000 (15:43 +0200)]
luci-base: index.html: add extend cache-control directive

Fixes: #2942
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-statistics: cpufreq: enhance additional data
Hannu Nyman [Wed, 31 Jul 2019 21:49:05 +0000 (00:49 +0300)]
luci-app-statistics: cpufreq: enhance additional data

* Use the new data series sorting and coloring options to
  display the frequencies in order and with matching coloring in
  different cores.

* Fix the y-axis text and legend in the frequency usage graph

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
5 years agoluci-app-statistics: add options for graph series sorting and color
Hannu Nyman [Wed, 31 Jul 2019 21:41:14 +0000 (00:41 +0300)]
luci-app-statistics: add options for graph series sorting and color

Add two data series-level options "negweight" and "posweight" that
will use the numerical value of the data instance name
as the sorting factor. This enables e.g. sorting by CPU frequency
in the cpufreq module.

Add new graph-level option "ordercolor" to use colorsfrom a
pre-defined color table for the data series. This enables keeping
similar colors for similar data series in different plugin instances.
E.g. CPU frequencies in several cores that are handled and displayed
separately.
 (note: the table has 8 items and if there are more series, it uses
  the same colors again. The table can be easily extended/modified)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
5 years agoluci-app-watchat: fix ucitrack file 2939/head
Florian Eckert [Wed, 31 Jul 2019 11:51:56 +0000 (13:51 +0200)]
luci-app-watchat: fix ucitrack file

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-app-statistics: cpufreq: changes in data structure
Hannu Nyman [Tue, 30 Jul 2019 17:47:02 +0000 (20:47 +0300)]
luci-app-statistics: cpufreq: changes in data structure

Collectd 5.9.0 changed the data structure of the cpufreq plugin:
CPU cores are now handled as separate plugin instances.

There are also new data items per core:
 * time spent at each frequency
 * amount of frequency transitions

Enable these new data items, but initially hide them behind
a new config option "ExtraItems" (default: disabled), as
the amount of graphs in multi-core systems could be rather large.

Note that the frequencies are not (yet) sorted, so the
information value of the time-spent graph is semi-random.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
5 years agoMerge pull request #2935 from YuriPet/patch-1
Hannu Nyman [Tue, 30 Jul 2019 15:51:13 +0000 (18:51 +0300)]
Merge pull request #2935 from YuriPet/patch-1

luci-base: update Ukrainian translation

5 years agoMerge pull request #2936 from YuriPet/master
Hannu Nyman [Tue, 30 Jul 2019 15:50:58 +0000 (18:50 +0300)]
Merge pull request #2936 from YuriPet/master

luci-app-firewall: update Ukrainian translation

5 years agoMerge pull request #2934 from antoinedeschenes/patch-1
Hannu Nyman [Tue, 30 Jul 2019 15:50:08 +0000 (18:50 +0300)]
Merge pull request #2934 from antoinedeschenes/patch-1

luci-mod-network: 802.11w config in station mode

5 years agoluci-mod-network: 802.11w config in station mode 2934/head
Antoine DeschĂȘnes [Mon, 29 Jul 2019 18:47:26 +0000 (14:47 -0400)]
luci-mod-network: 802.11w config in station mode

802.11w has to be enabled in station mode to be effective. If the AP is using WPA3-SAE or requires 11w, station will not connect unless 11w is enabled via this option.

Signed-off-by: Antoine DeschĂȘnes <adeschenes@kronostechnologies.com>
5 years agoluci-base: ui.js: do not save invalid dynlist values
Jo-Philipp Wich [Tue, 30 Jul 2019 11:33:13 +0000 (13:33 +0200)]
luci-base: ui.js: do not save invalid dynlist values

Fixes: 3880c3f22 ("luci-base: ui.js: save filled out but not added dynlist items on submit")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: ui.js: save filled out but not added dynlist items on submit
Jo-Philipp Wich [Tue, 30 Jul 2019 11:29:11 +0000 (13:29 +0200)]
luci-base: ui.js: save filled out but not added dynlist items on submit

Fixes: #2938
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-firewall: update Ukrainian translation 2936/head
Yurii [Mon, 29 Jul 2019 23:31:26 +0000 (02:31 +0300)]
luci-app-firewall: update Ukrainian translation

Signed-off-by: Yurii <yuripet@gmail.com>
5 years agoluci-base: update Ukrainian translation 2935/head
Yurii [Mon, 29 Jul 2019 23:26:21 +0000 (02:26 +0300)]
luci-base: update Ukrainian translation

Signed-off-by: Yurii <yuripet@gmail.com>
5 years agoMerge pull request #2933 from TDT-AG/pr/20190729-openvpn-german-translation
Florian Eckert [Mon, 29 Jul 2019 09:25:08 +0000 (11:25 +0200)]
Merge pull request #2933 from TDT-AG/pr/20190729-openvpn-german-translation

luci-app-openvpn: add some german translations

5 years agoMerge pull request #2928 from tano-systems/pr/luci-app-firewall-i18n-ru
Florian Eckert [Mon, 29 Jul 2019 07:53:55 +0000 (09:53 +0200)]
Merge pull request #2928 from tano-systems/pr/luci-app-firewall-i18n-ru

luci-app-firewall: update Russian translation

5 years agoMerge pull request #2929 from tano-systems/pr/luci-base-i18n-ru
Florian Eckert [Mon, 29 Jul 2019 07:53:16 +0000 (09:53 +0200)]
Merge pull request #2929 from tano-systems/pr/luci-base-i18n-ru

luci-base: update Russian translation

5 years agoMerge pull request #2932 from castillofrancodamian/base
Florian Eckert [Mon, 29 Jul 2019 07:52:50 +0000 (09:52 +0200)]
Merge pull request #2932 from castillofrancodamian/base

luci-base: update Spanish translation

5 years agoluci-app-openvpn: add some german translations 2933/head
Martin Schiller [Mon, 29 Jul 2019 06:23:40 +0000 (08:23 +0200)]
luci-app-openvpn: add some german translations

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
5 years agoluci-base: update Spanish translation 2932/head
Franco Castillo [Sat, 27 Jul 2019 23:50:18 +0000 (20:50 -0300)]
luci-base: update Spanish translation

Update Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
5 years agoluci-base: don't treat .rmempty flag as optional for ListValue widgets
Jo-Philipp Wich [Sat, 27 Jul 2019 20:17:33 +0000 (22:17 +0200)]
luci-base: don't treat .rmempty flag as optional for ListValue widgets

Restore the old CBI behaviour of not automatically rendering empty
selection choices in ListValue select dropdowns when .rmempty is
specified.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: update Russian translation 2929/head
Anton Kikin [Sat, 27 Jul 2019 20:19:45 +0000 (23:19 +0300)]
luci-base: update Russian translation

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
5 years agoluci-app-firewall: update Russian translation 2928/head
Anton Kikin [Sat, 27 Jul 2019 19:59:19 +0000 (22:59 +0300)]
luci-app-firewall: update Russian translation

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
5 years agoMerge pull request #2923 from tano-systems/pr/multi-fix
Jo-Philipp Wich [Sat, 27 Jul 2019 18:21:08 +0000 (20:21 +0200)]
Merge pull request #2923 from tano-systems/pr/multi-fix

luci-base: fix multiple parameter in cbi templates

5 years agoMerge pull request #2925 from musashino205/l10n/fw-upd-ja
Hannu Nyman [Sat, 27 Jul 2019 17:37:28 +0000 (20:37 +0300)]
Merge pull request #2925 from musashino205/l10n/fw-upd-ja

luci-app-firewall: update Japanese translation