Dirk Brenken [Mon, 26 Aug 2019 09:46:33 +0000 (11:46 +0200)]
luci-app-adblock: sync with adblock 3.8.3
* fix a suspend/resume issue
* format overall domains with a thousands separator
Signed-off-by: Dirk Brenken <dev@brenken.org>
Jo-Philipp Wich [Mon, 19 Aug 2019 13:06:31 +0000 (15:06 +0200)]
luci-base: form.js: implement Textfield widget
Port the CBI Textfield (textarea) widget type to client side form.js
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 19 Aug 2019 13:04:16 +0000 (15:04 +0200)]
luci-base: ui.js: implement Textarea widget
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Sun, 18 Aug 2019 17:14:06 +0000 (20:14 +0300)]
Merge pull request #2990 from stangri/master-luci-app-simple-adblock
luci-app-simple-adblock: support for varios DNS resolvers/options
Hannu Nyman [Sun, 18 Aug 2019 17:12:50 +0000 (20:12 +0300)]
Merge pull request #2989 from stangri/master-luci-app-advanced-reboot
luci-app-advanced-reboot: support for Linksys EA8300
Stan Grishin [Sat, 17 Aug 2019 13:15:10 +0000 (06:15 -0700)]
luci-app-simple-adblock: support for varios DNS resolvers/options
Signed-off-by: Stan Grishin <stangri@melmac.net>
Stan Grishin [Sat, 17 Aug 2019 11:29:01 +0000 (04:29 -0700)]
luci-app-advanced-reboot: support for Linksys EA8300
Signed-off-by: Stan Grishin <stangri@melmac.net>
Jo-Philipp Wich [Fri, 16 Aug 2019 10:00:50 +0000 (12:00 +0200)]
luci-base: network.js: fix inverted logic in registerErrorCode()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 16 Aug 2019 07:49:11 +0000 (09:49 +0200)]
luci-base: widgets.js: CBINetworkSelect: honour exclude option
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Dirk Brenken [Fri, 16 Aug 2019 04:15:32 +0000 (06:15 +0200)]
Merge pull request #2983 from dibdot/adblock
luci-app-adblock: sync with adblock 3.8.0
Jo-Philipp Wich [Thu, 15 Aug 2019 14:07:48 +0000 (16:07 +0200)]
luci-base: use native ubus-rpc authorization protocol
Instead of granting complete ubus access under the active sysauth session,
implement the ubus-rpc authorization mechanism and make the ubus proxy
endpoint unauthenticated.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 15 Aug 2019 14:06:46 +0000 (16:06 +0200)]
luci-base: add rpc feature tests for sysntpd and zram
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 15 Aug 2019 13:40:46 +0000 (15:40 +0200)]
luci-app-firewall: fix zone overview page after rpc procedure renaming
The "conntrack_helpers" method has been renamed to "getConntrackHelpers".
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Dirk Brenken [Thu, 15 Aug 2019 08:32:59 +0000 (10:32 +0200)]
luci-app-adblock: sync with adblock 3.8.0
* add support for the 'null' blocking variant in dnsmasq
(via addn-hosts), see new select box 'DNS Variant'
* add support for 'DNS File Reset', where the final DNS blockfile
will be purged after DNS backend loading (save storage space)
* Provide additional Runtime information:
'DNS Variant' and 'Backup Directory'
* add E-Mail notification options to LuCI
Signed-off-by: Dirk Brenken <dev@brenken.org>
Jo-Philipp Wich [Wed, 14 Aug 2019 21:02:06 +0000 (23:02 +0200)]
luci-base: widgets.js: support alias interfaces in CBIDeviceSelect
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 14 Aug 2019 20:54:59 +0000 (22:54 +0200)]
luci-base: ui.js: add createHandlerFn() helper
The createHandlerFn() helper function is useful to construct onclick
or similar event handling functions. It will add a "spinning" CSS
class on the event target element and disable the element, wrap the
given function with Promise.resolv() and re-enable the target element
once the promise is settled.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 14 Aug 2019 16:17:10 +0000 (18:17 +0200)]
luci-base: network.js: overhaul code
- Rework internal state management
- Implement new utility functions such as getL3Device() or getModemType()
- Fix bugs in various functions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 14 Aug 2019 15:07:55 +0000 (17:07 +0200)]
luci-app-firewall: honour global default policies in per-zone settings
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 14 Aug 2019 15:04:45 +0000 (17:04 +0200)]
luci-base: firewall.js: fix addZone()
When checking for an existing zone with the same name internally,
addZone() must use the nonblocking lookupZone() instead of the
promise returning public getZone() call.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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
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
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
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>
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>
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>
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>
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>
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>
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>
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.
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>
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
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>
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
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>
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>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>