summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-11-16Merge pull request #2290 from dibdot/travelmateDirk Brenken
luci-app-travelmate: adapt latest css changes
2018-11-16luci-app-travelmate: adapt latest css changesDirk Brenken
Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-11-16luci-app-adblock: adapt latest css changesDirk Brenken
Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-11-16luci-app-banip: adapt latest css changesDirk Brenken
Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-11-15luci-theme-openwrt: modal display fixesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-15luci-base: rename "Design" to "Theme" in translation filesAngus Ding
Signed-off-by: Angus Ding <angus.ding@gmail.com> [squash commits, reword commit message, rebase, msgmerge] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-15luci-mod-system: rename "Design" to "Theme"Angus Ding
This provides a more accurate description for the theme selection. Signed-off-by: Angus Ding <angus.ding@gmail.com> [reword commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-15treewide: resync translation filesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-15luci-mod-network: function name mismatch fixedDarius
Signed-off-by: Darius <jok.darius@gmail.com>
2018-11-15luci-app-vpnbypass: add german translationMatthias84
Submitted-by: Matthias Meißer <Matthias84@users.noreply.github.com> [slightly reword subject] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-15luci-app-wireguard: add german translationMatthias84
Submitted-by: Matthias84 <Matthias84@users.noreply.github.com> [reword commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-15luci-base: support disconnecting (deauthenticating) wireless clientsWang805447391
Add a button to each row in the wireless assoclist table to allow disconnecting clients using the ubus del_client method if the underlying radio interface supports it. Ref: https://github.com/openwrt/luci/pull/2271 Submitted-by: Wang805447391 <805447391@qq.com> [move deauth function to luci-base next to the existing assoclist function, require post security, fix parameter check condition, hide button if not supported by the radio, disable button after call, squash commits, fix whitespace, reword subject, add commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-15luci-app-https_dns_proxy: fix datatype of subnet address optionalphakk
The datatype ip4prefix only accept numbers from 0 to 32, not subnet/mask (i.e. 192.168.1.0/24), this affects option "-e". https://github.com/openwrt/luci/wiki/Datatypes#ip4prefix the description is wrong, according to src http://luci.subsignal.org/trac/browser/luci/branches/luci-0.10/libs/web/luasrc/cbi/datatypes.lua#L76 Submitted-by: alphakk <kkspaces@mail.com> [slightly reword commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-15luci-proto-vpnc: expose defaultroute option in proto_vpnc.luaWhitronic
Sometimes people only want the VPN connection to be a route to a specific network, not the default gateway for all traffic. I've tested this on my router and works fine! Submitted-by: Whitronic <joao.f.vieira@gmail.com> [reword commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-15Merge pull request #2286 from kevinoid/fix_statistics_filename_quotingJo-Philipp Wich
luci-app-statistics: quote : in filenames for DEF
2018-11-14luci-app-statistics: quote : in filenames for DEFKevin Locke
: is used to delimit fields in DEF: rrd instructions, so when it appears in a filename it must be escaped using \.[1] This commit adds the escaping. I discovered the issue after configuring collectd-mod-ping to monitor an IPv6 host (2001:19f0:5:727:5b56:205d:ff55:2208). Accessing https://192.168.0.1/cgi-bin/luci/admin/statistics/graph/ping would cause the following messages to be logged: Wed Nov 14 23:04:33 2018 daemon.err uhttpd[30261]: ERROR: can't parse DEF '2ping_avg_raw=/tmp/rrd/openwrthost/ping/ping-2001:19f0:5:727:5b56:205d:ff55:2208.rrd:value:AVERAGE' -2 Wed Nov 14 23:04:33 2018 daemon.err uhttpd[30261]: ERROR: can't parse DEF '2ping_droprate_avg_raw=/tmp/rrd/openwrthost/ping/ping_droprate-2001:19f0:5:727:5b56:205d:ff55:2208.rrd:value:AVERAGE' -2 and the graphs would not display. After applying this commit, the graphs display correctly and no messages are logged. 1. https://oss.oetiker.ch/rrdtool/doc/rrdgraph_data.en.html#IDEF Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2018-11-14luci-base: fix some long standing german mistranslationsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-mod-network: require unique MACs for DHCP leasesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: datatypes: add "unique" dummy validatorJo-Philipp Wich
Add a dummy validator for the server side so that we can start using unique in client side JS code. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14Merge pull request #2259 from pmelange/luci-app-olsr-new-json-libJo-Philipp Wich
update luci-app-olsr to the new jsoninfo library
2018-11-14Merge pull request #2282 from TDT-AG/pr/20181114-luci-baseJo-Philipp Wich
luci-base: allow optional default value for file browser
2018-11-14luci-lib-ipkg: move out of luci-baseJo-Philipp Wich
Move the old luci.model.ipkg utility class into a separate package and let the components using it depend on the new library package. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-mod-system: replace builtin opkg support with luci-app-opkgJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-mod-system: use luci.sys.process.exec() in system controllerJo-Philipp Wich
Switch the system controller to the common luci.sys.process.exec() function and drop the local ltn12_popen() and fork_exec() helpers. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-mod-system: prevent comment injection in mtdbackup endpointJo-Philipp Wich
Rework the parameter handling to both prevent a crash when no parameter is given and to prevent root command injection through the mtd index part of the parameter value. Fixes: 9840d310e ("modules: add backup module for mtdblock devices") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14applications: add luci-app-opkgJo-Philipp Wich
Add a new luci-app-opkg which is a feature-complete replacement for the builtin opkg functionality of luci-mod-system using mostly client side JavaScript to reduce the amount of server side processing. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-app-firewall: remove references to cbi_bind()Jo-Philipp Wich
Use the standard addEventListener() instead. Also remove an old cbi_validate_field() call referencing a not existing field. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-mod-status: use progressbar widgets on main status pageJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: simplify apply widget codeJo-Philipp Wich
- Drop embedded CSS in favor to new global rules - Drop extraneous include of cbi.js - Use showModal() facilities - Fix a cosmetic bug in countdown timeout handling Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: cbi.js: add modal dialog functionsJo-Philipp Wich
Add two new functions showModal() and hideModal() which will fade in and close an open modal respectively. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-theme-bootstrap: add modal/progressbar rules, cleanupJo-Philipp Wich
- Add rules for modal dialogs and progress bar widgets - Drop redundant, unused or obsolete rules - Add spin utility class Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-theme-openwrt: modal/progressbar rules, mobile improvementsJo-Philipp Wich
- Add rules for modal dialogs and progress bar widgets - Increase button and input size on mobile devices - Convert pt to px units - Add label and h5 styles - Add common flash and spin utility classes Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: add luci.sys.process.exec()Jo-Philipp Wich
The new process.exec() function simplifies spawning external processes and capturing their stdio. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14applications: drop luci-app-asteriskJo-Philipp Wich
This application was never useful to begin with, drop it to avoid further confusion. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base, themes: dropdown behaviour improvementsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: cbi.js: remove dead code in cbi_validate_field()Jo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: cbi.js: enable validation for dropdown fieldsJo-Philipp Wich
Directly attach validation handlers to cbi dropdowns as well, this allows validating dropdown choices made by the user, similar to how plain select boxes are handled by the cbi JavaScript. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-theme-openwrt: dropdown style tweaksJo-Philipp Wich
- Remove 2em min height, this looks out of place with the OpenWrt theme - Only colorize invalid dropdown when not open - Drop use of image background for invalid fields while we're at it Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-theme-bootstrap: add invalid style for dropdownsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-theme-{freifunk-generic,material,openwrt}: z-index fixesJo-Philipp Wich
Ensure that open dropdowns cover active tooltips. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-theme-bootstrap: z-index fixesJo-Philipp Wich
Lower z-index of header bar to allow tooltips and dropdowns to overlap it, also increase the z-index of open dropdowns to ensure that they cover active tooltip bubbles. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: cbi.js: set .value property of cbi dropdown elementsJo-Philipp Wich
In order to make cbi dropdowns usable for validation and other code expecting native form elements, set the .value DOM property on the dropdown parent element whenever the selection is changed. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: cbi.js: properly handle cbi tooltips on nested elementsJo-Philipp Wich
Rework the tooltip event delegation logic to prevent hiding the tooltop when the cursor is moved to a children of the tooltip container element. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: cbi.js: avoid using .form property directlyJo-Philipp Wich
In order to prepare support for calling cbi validation on non-native form widgets, remove direct usages of the node.form property and lookup the containing form using findParent() instead. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: cbi.js: fix passing multiple dropdown values in change eventJo-Philipp Wich
Due to a misspelled property name, only the first value was passed in the event details. Fixes: c2b570998 ("luci-base: cbi.js: rework dropdown implementation") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: rework dynamic list templateJo-Philipp Wich
Commit 7c7821833 ("luci-base, themes: rework dynlist and dropdown widgets") changed the way we initialize dynamic lists on client side, avoiding the need for pre-rendering the items on the server side. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: add ARIA label to reveal/hide password buttonJo-Philipp Wich
Fixes #2070. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-base: update german translationJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-ssl-nginx: fix dependenciesDeng Qingfang
Remove libustream-openssl because Nginx doesn't depend on it. Signed-off-by: Deng Qingfang <dengqf6@mail2.sysu.edu.cn>
2018-11-14Merge pull request #2281 from TDT-AG/pr/20181114-luci-app-mwan3Hannu Nyman
luci-app-mwan3: add/remove options