summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-07-28luci-base: fix footer templateJo-Philipp Wich
Move the apply widget markup before the final </html> tag to avoid XHTML errors with the OpenWrt theme. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-27treewide: rework rollback/apply workflowJo-Philipp Wich
Rework the apply confirmation mechanism to be session agnostic in order to circumvent cross domain restrictions which prevent the JS code from issuing apply confirm requests in some cases, e.g. when changing the LAN IP. Confirmation calls may now be done from unauthenticated pages, as long as a matching confirmation token is sent along with the request. The reasoning behind this is that there is little security impact in confirming pending apply sessions, especially since those sessions can only be initiated while being authenticated. After this change, LuCI will now launch a confirmation process on every rendered page when a rollback is pending. The confirmation will happen regardless of whether the user is logged in or not, or if the current page is a CBI form or static template. A confirmation request now also requires a random one-time token which is rendered along with the confirmation JavaScript code in order to succeed. This token is not meant to provide security but to ensure that the confirm was triggered from an interactive browser session and not some background HTTP requests that happened to end up in the admin ui. As a consequence, the different apply/confirm/rollback code paths in CBI maps and the UCI change/revert pages have been consolidated into one common implementation residing in the common global theme agnostic footer template. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-27luci-base: xhr.js: decode JSON for POST requests as wellJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-27luci-base: utils: support multiple return values in util.ubus()Jo-Philipp Wich
This is needed to deal with ubus methods that return multiple results, e.g. session/list Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-26Merge pull request #1993 from sotux/master_zh_CNJo-Philipp Wich
luci-base: zh_CN: Update Simplified Chinese translation
2018-07-26Merge pull request #1946 from korzhyk/web_homeJo-Philipp Wich
luci-app-transmission: Allow user to define custom web interface
2018-07-26Merge pull request #1985 from Andy2244/masterJo-Philipp Wich
luci-app-samba4: add new application
2018-07-26luci-mod-admin-full: abbreviate "MAC-Address" as "MAC" to align with restJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-26luci-mod-admin-full: fix wifi overview display when no networks are definedJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-26Merge pull request #1761 from pmelange/ff_olsr_watchdog_del_tnlJo-Philipp Wich
ff_olsr_watchdog: delete stale tunnels
2018-07-25ff_olsrd_watchdog: delete existing tunnelspmelange
When OLSRd crashes, the old tunnels still exist. This can lead to unexpected behaviour. The tunnels to be removed start with "tnl_" See freifunk-berlin/firmware#522 Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-07-25Merge pull request #1997 from dibdot/adblockDirk Brenken
luci-app-adblock: small visual fixes
2018-07-25luci-app-adblock: small visual fixesDirk Brenken
* made readonly textarea (logview) scrollable again (bootstrap theme) * align "Query" input button Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-07-25luci-base: zh_CN: Update Simplified Chinese translationZheng Qian
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-07-24luci-app-samba4: add new applicationAndy Walsh
* updated version for the samba4 package Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2018-07-23luci-base: strip superfluous space in additional field markupJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-23luci-theme-openwrt: fix button placement quirkJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-23luci-base: cbi.js: fade to-be-deleted section when hovering delete buttonJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-23luci-base: cbi.js: use adjacent button dynlist add/remove buttonsJo-Philipp Wich
Change the cbi.js code to create a div based button element instead of an image button. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-23luci-base: rework reveal/hide CBI password template buttonJo-Philipp Wich
Also add a hidden type password field to prevent browser autocompleters from entering the login passwords into fields liek the wireless WPA key field. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-23luci-theme-bootstrap: add styling for input-adjacent buttonsJo-Philipp Wich
Also add styling for CBI column title references. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-23luci-theme-openwrt: add styling for input-adjacent buttonsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-22Merge pull request #1986 from dibdot/adblockJo-Philipp Wich
luci-app-adblock: fix translations
2018-07-22luci-app-adblock: fix translationsDirk Brenken
* fix runtime & button translations Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-07-22luci-mod-admin-full: unify "Alias interface" and "Alias Interface" stringsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-22luci: do not depend on uhttpd-mod-ubusJo-Philipp Wich
We do not need this module at all, yet. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-22Merge pull request #1982 from Rixerx/masterJo-Philipp Wich
luci-base: update Polish translation
2018-07-22Merge pull request #1983 from dibdot/adblockJo-Philipp Wich
luci-app-adblock: sync with adblock 3.5.4
2018-07-22luci-theme-openwrt: support rendering tblsection cell descriptionsJo-Philipp Wich
Add support for rendering the "data-description" attribute when rendering decomposed tables for small screen resolutions. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-22luci-base: add description annotations to tblsection cellsJo-Philipp Wich
Add a "data-description" attribute to CBI fields which have a description set, this allows responsive design themes to render a field description when decomposing the table grid. Also reuse the precalculated "typename" property if it exists, instead of deriving it from the template name yet again. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-22luci-app-adblock: sync with adblock 3.5.4Dirk Brenken
backend: * add low priority mode (nice level 10), disabled by default * enhance 'Force DNS' to redirect ports 53, 853 and 5353 frontend: * switch to dynamic XHR polling for runtime information and logfile viewing * add new 'Refresh' button to reload blocklists * various cleanups & small fixes Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-07-21luci-base: update Polish translationKrystian Kozak
Updated Polish translations. Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2018-07-21Merge pull request #1981 from hanipouspilot/ncmJo-Philipp Wich
luci-proto-ncm: remove unrelated options
2018-07-21luci-proto-ncm: remove unrelated optionsDmitry Tunin
This removes all options 100% unrelated to NCM protocol. Some options like 'dns' are not currently used by connection scripts, but may be used in the future. Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
2018-07-21Merge pull request #1980 from hanipouspilot/ncm-addpdpJo-Philipp Wich
luci-proto-ncm: add pdptype option
2018-07-21luci-proto-ncm: add pdptype optionDmitry Tunin
Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
2018-07-21luci-mod-admin-full: fix check for traceroute6Jo-Philipp Wich
Since busybox has moved traceroute6 from /usr/bin/ to /bin/, we need to check both locations. Fixes #1973. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-21Merge pull request #1978 from tano-systems/luci-base-fix-russian-translationJo-Philipp Wich
luci-base: fix Russian translation
2018-07-21Merge pull request #1975 from Olim98/patch-2Jo-Philipp Wich
luci-app-upnp: update Russian translation
2018-07-21Merge pull request #1974 from Olim98/patch-1Jo-Philipp Wich
luci-app-adblock: fix and update Russian translation
2018-07-21Merge pull request #1976 from stangri/luci-app-simple-adblockJo-Philipp Wich
luci-app-simple-adblock: remove extra controller file
2018-07-21luci-base: fix Russian translationAnton Kikin
More correct translation of the 'instance'. Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-07-20luci-app-simple-adblock: remove extra controller fileStan Grishin
Signed-off-by: Stan Grishin <stangri@melmac.net>
2018-07-21luci-app-upnp: update Russian translationOlimjon
Signed-off-by: Kudratov O <olimko98@gmail.com>
2018-07-21Update Russian translationOlimjon
2018-07-20Merge pull request #1972 from YuriPet/masterJo-Philipp Wich
luci-base, luci-app-upnp, luci-app-wol: update Ukrainian translation
2018-07-20luci-base: update Ukrainian translationYurii
Updated with the latest resync translation, corrections and additions. Signed-off-by: Yurii yuripet@gmail.com
2018-07-20luci-app-upnp: update Ukrainian translationYurii
Signed-off-by: Yurii yuripet@gmail.com
2018-07-20luci-app-wol: update Ukrainian translationYurii
Corrections and additions. Signed-off-by: Yurii yuripet@gmail.com
2018-07-20luci-base: fix bad CSS class names in table section templateJo-Philipp Wich
The previous refactoring of the template caused the row stripying CSS classes to be interpolated in such a way, that a separating space to previous CSS classes was missing, leading to not rendered row names and other side effects. Signed-off-by: Jo-Philipp Wich <jo@mein.io>