summaryrefslogtreecommitdiffhomepage
path: root/modules
AgeCommit message (Collapse)Author
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-09Merge pull request #2969 from TDT-AG/pr/20190806-luci-baseFlorian Eckert
luci-base: add new VPN toplevel menu entry
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-base: update Japanese translationINAGAKI Hiroshi
Updated Japanese translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-08-01luci-base: form.js: add modal dialog hookJo-Philipp Wich
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>
2019-08-01luci-base: form.js: update tab state on dependency checksJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-01luci-base: ui.js: tabs: fix empty pane checking, allow alternative query rootJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-01luci-base: luci.js: add L.dom.isEmpty() helperJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-01luci-base: ui.js: mark widget optional if empty choice is presentJo-Philipp Wich
Fixes: #2943 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-01luci-base: index.html: add extend cache-control directiveJo-Philipp Wich
Fixes: #2942 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-30Merge pull request #2935 from YuriPet/patch-1Hannu Nyman
luci-base: update Ukrainian translation
2019-07-30Merge pull request #2934 from antoinedeschenes/patch-1Hannu Nyman
luci-mod-network: 802.11w config in station mode
2019-07-30luci-mod-network: 802.11w config in station modeAntoine DeschĂȘnes
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>
2019-07-30luci-base: ui.js: do not save invalid dynlist valuesJo-Philipp Wich
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>
2019-07-30luci-base: ui.js: save filled out but not added dynlist items on submitJo-Philipp Wich
Fixes: #2938 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-30luci-base: update Ukrainian translationYurii
Signed-off-by: Yurii <yuripet@gmail.com>
2019-07-29Merge pull request #2929 from tano-systems/pr/luci-base-i18n-ruFlorian Eckert
luci-base: update Russian translation
2019-07-27luci-base: update Spanish translationFranco Castillo
Update Spanish translation. Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-07-27luci-base: don't treat .rmempty flag as optional for ListValue widgetsJo-Philipp Wich
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>
2019-07-27luci-base: update Russian translationAnton Kikin
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-07-27Merge pull request #2923 from tano-systems/pr/multi-fixJo-Philipp Wich
luci-base: fix multiple parameter in cbi templates
2019-07-27i18n: sync translationsINAGAKI Hiroshi
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-26luci-base: fix multiple parameter in cbi templatesAnton Kikin
In the dc0211803e commit, the parameter "multi" in ui.js is replaced with "multiple" everywhere. Thus, it must also be changed in the cbi templates. Fixes: dc0211803e Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-07-26luci-base: keep polling confirmation endpoint on XHR failuresJo-Philipp Wich
Fixes: #2912 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-26luci-base: form.js: pass-through placeholder option of CBIListValueJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-26luci-base: ui.js: HTML escape uci changelog valuesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-26luci-base: ui.js: HTML escape custom dropdown valuesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-26luci-base: ui.js: fix event binding for UISelectJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-25luci-mod-system: leds.js: fix crash when no usb devices or ports are presentJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22luci-base: remove accidentally committed codeJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22luci-base: add conntrack_helpers ubus procedureJo-Philipp Wich
Also move firewall specific ACLs into separate group. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22luci-base: widgets.js: implement CBIDeviceSelect netdev pickerJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>