summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-08-19luci-base: form.js: implement Textfield widgetJo-Philipp Wich
Port the CBI Textfield (textarea) widget type to client side form.js Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-19luci-base: ui.js: implement Textarea widgetJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-18Merge pull request #2990 from stangri/master-luci-app-simple-adblockHannu Nyman
luci-app-simple-adblock: support for varios DNS resolvers/options
2019-08-18Merge pull request #2989 from stangri/master-luci-app-advanced-rebootHannu Nyman
luci-app-advanced-reboot: support for Linksys EA8300
2019-08-17luci-app-simple-adblock: support for varios DNS resolvers/optionsStan Grishin
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-08-17luci-app-advanced-reboot: support for Linksys EA8300Stan Grishin
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-08-16luci-base: network.js: fix inverted logic in registerErrorCode()Jo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-16luci-base: widgets.js: CBINetworkSelect: honour exclude optionJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-16Merge pull request #2983 from dibdot/adblockDirk Brenken
luci-app-adblock: sync with adblock 3.8.0
2019-08-15luci-base: use native ubus-rpc authorization protocolJo-Philipp Wich
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>
2019-08-15luci-base: add rpc feature tests for sysntpd and zramJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-15luci-app-firewall: fix zone overview page after rpc procedure renamingJo-Philipp Wich
The "conntrack_helpers" method has been renamed to "getConntrackHelpers". Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-15luci-app-adblock: sync with adblock 3.8.0Dirk Brenken
* 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>
2019-08-14luci-base: widgets.js: support alias interfaces in CBIDeviceSelectJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: ui.js: add createHandlerFn() helperJo-Philipp Wich
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>
2019-08-14luci-base: network.js: overhaul codeJo-Philipp Wich
- 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>
2019-08-14luci-app-firewall: honour global default policies in per-zone settingsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: firewall.js: fix addZone()Jo-Philipp Wich
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>
2019-08-14luci-base: rpc: drop offload_support callJo-Philipp Wich
It is superseded by the more generic getFeatures method. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-app-firewall: drop usage of getOffloadSupport()Jo-Philipp Wich
Rely on the more generic L.hasSystemFeature() from now on. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: luci.js: introduce hasSystemFeature() apiJo-Philipp Wich
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>
2019-08-14luci-base: form.js: support passing a callback to Map.save()Jo-Philipp Wich
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>
2019-08-14luci-base: form.js: implement support for tabbed mapsJo-Philipp Wich
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>
2019-08-14luci-base: form.js: improve ui tab interactionJo-Philipp Wich
- 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>
2019-08-14luci-base: ui.js: rework tab state handlingJo-Philipp Wich
Properly preserve the selection state of nested tabs. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: form.js: CBISectionValue: properly forward dependency checksJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: ui.js: UISelect: fix check for empty choicesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: form.js: allow overriding empty section placeholder renderingJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: form.js: harmonize title property handlingJo-Philipp Wich
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>
2019-08-14luci-base: form.js: inherit uci config overrides from parent sectionsJo-Philipp Wich
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>
2019-08-14luci-base: form.js: fix rendering of button widgetsJo-Philipp Wich
Also introduce an `onclick` property to allow registering custom button action handler. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: form.js: add further caption propertiesJo-Philipp Wich
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>
2019-08-14luci-base: network.js: add getL2Device(), getMTU() helpersJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: network.js: support dynamically loaded protocol classesJo-Philipp Wich
Port the existing server side protocol support framework to the client side network.js. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: network.js: expose prefixToMask() and maskToPrefix()Jo-Philipp Wich
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>
2019-08-14luci-base: network.js: return mac addresses in upper caseJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: network.js: extend ifnameOf() and expose as getIfnameOf()Jo-Philipp Wich
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>
2019-08-14luci-base: network.js: add ability to flush the internal cacheJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-base: ui.js: do not forcibly sort synamic list itemsJo-Philipp Wich
Ref: https://forum.openwrt.org/t/cannot-save-certain-fields/42738/2 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14luci-app-statistics: cpufreq: tweak graphsHannu Nyman
* 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>
2019-08-11Merge pull request #2976 from aaronmdjones/masterJo-Philipp Wich
luci-app-firewall: rules: allow ICMPv6 ND types and sort alphabetically
2019-08-11luci-app-firewall: rules: sort ICMP types alphabeticallyAaron Jones
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>
2019-08-11luci-app-firewall: rules: allow ICMPv6 ND typesAaron Jones
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>
2019-08-10luci-app-statistics: scale up ping_droprate to range 0-100Yousong Zhou
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>
2019-08-09Merge pull request #2969 from TDT-AG/pr/20190806-luci-baseFlorian Eckert
luci-base: add new VPN toplevel menu entry
2019-08-07Merge pull request #2968 from dibdot/banIPDirk Brenken
luci-app-banip: sync with 0.1.5
2019-08-07Merge pull request #2967 from dibdot/travelmateDirk Brenken
luci-app-travelmate: sync with 1.4.10
2019-08-06luci-app-ocserv: move to new vpn menu sectionFlorian Eckert
Move the app ocserv to the new vpn menu section. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-08-06luci-app-openvpn: move to new vpn menu sectionFlorian Eckert
Move the app openvpn to the new vpn menu section. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-08-06luci-base: add vpn menu sectionFlorian Eckert
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>