summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
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>
2019-08-06luci-app-travelmate: sync with 1.4.10Dirk Brenken
* 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>
2019-08-06luci-app-banip: sync with 0.1.5Dirk Brenken
* add new extra options to control auto-addons to blacklist & whitelist ('ban_autoblacklist' & 'ban_autowhitelist') Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-08-06protocols: fix contains_interface() implementation in several backendsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-06luci-lib-ip: support specifying source address in route()Jo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-06Merge pull request #2966 from TsLenMo/masterFlorian Eckert
Fix a software page style issue for rosy, Fix #2965.
2019-08-06luci-theme-rosy: fix a software page style issueTsLenMo
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>
2019-08-05Merge pull request #2964 from musashino205/l10n/base-upd-jaHannu Nyman
luci-base: update Japanese translation
2019-08-06luci-base: update Japanese translationINAGAKI Hiroshi
Updated Japanese translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-08-05Merge pull request #2962 from TDT-AG/pr/20190802-luci-app-openvpnJo-Philipp Wich
luci-app-openvpn: replace tls_cipher and tls_ciphersuites with DynamicList
2019-08-02luci-app-openvpn: use DynamicList for tls_ciphersuitesFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-08-02luci-app-openvpn: use DynamicList for tls_cipherFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-08-02Merge pull request #2643 from kuoruan/aria2Florian Eckert
luci-app-aria2: Refactor, new views and more options
2019-08-02Merge pull request #2961 from castillofrancodamian/udpxyFlorian Eckert
luci-app-udpxy: add template
2019-08-02Merge pull request #2960 from castillofrancodamian/travelFlorian Eckert
luci-app-travelmate: update Spanish translation
2019-08-02Merge pull request #2959 from castillofrancodamian/statFlorian Eckert
luci-app-statistics: update Spanish translation
2019-08-02Merge pull request #2958 from castillofrancodamian/simpleFlorian Eckert
luci-app-simple-adblock: update Spanish translation
2019-08-02Merge pull request #2957 from castillofrancodamian/firewallFlorian Eckert
luci-app-firewall: update Spanish translation
2019-08-02Merge pull request #2955 from castillofrancodamian/dump1090Florian Eckert
luci-app-dump1090: add Spanish translation