summaryrefslogtreecommitdiffhomepage
path: root/modules
AgeCommit message (Collapse)Author
2018-09-24luci-mod-network: disable setup on new wifi-iface addFlorian Eckert
If we add a new wifi-iface to the config then the iface will start at once. But normaly we would configure the wireless security in the next step. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-20i18n: update pt-br translationLuiz Angelo Daros de Luca
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2018-09-20Merge pull request #2167 from YuriPet/masterJo-Philipp Wich
luci-base: update Ukrainian translation
2018-09-20luci-mod-status: fix querying IPv6 addressJo-Philipp Wich
Correct a typo that prevents displaying the interface IPv6 address in some cases. Fixes: #2166 Reported-by: Vladislav Grigoryev <20725816+vgaetera@users.noreply.github.com> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-20luci-base: update Ukrainian translationYurii
luci-base: corrected and update Ukrainian translation with the latest resync. Signed-off-by: Yurii yuripet@gmail.com
2018-09-20luci-base: update Japanese translationINAGAKI Hiroshi
Updated Japanese translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-09-19i18n: sync translationsHannu Nyman
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-09-19luci-base: switch admin category node to firstnode() actionJo-Philipp Wich
After this change, luci-base will render the first module or application page installed on the system, instead of rendering a "Component not found" message when the status category is unavailable. This allows for single-purpose LuCI installations like e.g. luci-base with luci-app-travelmate which only presents application specific views without any of the standard system pages. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-19luci-base: dispatcher: introduce firstnode() dispatching targetJo-Philipp Wich
The firstnode target will dispatch the request to the first eligible menu subtree node that is not a redirect to another node, a special action or post security enabled page. That action is specifically useful for global category toplevel nodes like "admin" which are supposed to simply direct access to the first installed page node without having to hardcode specific choices. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-19modules: Split luci-mod-fullDaniel F. Dickinson
Move some common elements to luci-base, and otherwise make three packages out of status, system, and network. They were mostly separated already, but there were some shared elements between status and network that are now in luci-base. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-09-19modules: Make luci-base sufficient to use luci appsDaniel F. Dickinson
Per the discussion in https://github.com/openwrt/luci/issues/869, make luci-base sufficient to login, logout, and review and apply or revert uci changes. This allows most luci-app-xxx to work without having luci-mod-admin-full installed. It has been tested with some apps and not luci-mod-admin-full, as well as with luci-mod-admin-full (to make sure the usual case doesn't break). Instead of creating a new module namespace (e.g. 'Base') we reduce the opportunities for breakage by having luci-base take over the 'shell' of the 'Administration' (admin/....) namespace. Since admin is assumed by all current building LuCI components (including Freifunk), this doesn't introduce the 'Administration' tab into any situation where it would not already be present (but includes it where it was before). We also add a "Component not installed" page to avoid fatal errors and backtrace when e.g. luci-mod-admin-full is not installed. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-09-19Merge pull request #2140 from kristrev/multiple-upstream-interfaces-statusJo-Philipp Wich
luci-base: Show multiple upstream interface
2018-09-19luci-base: Show multiple upstream interfaceKristian Evensen
Several devices have multiple upstream interfaces, for example a fixed and a mobile broadband connection. Currently, only one upstream interface is shown per address family in Luci. So in my example, one of the interfaces would not appear on the Status-page. This PR introduces support for showing multiple upstream interfaces on the Status-page. The code is not very complicated. get_status_by_route() has been extended to return a list of all routes, and get_wannet()/get_wan6net() now returns all upstream interfaces. I could not find any other (active) users of these three functions than calls triggered from the Status-page, so changing the default behavior should be fine. get_wandev()/get_wan6dev() called get_status_by_route(), but I could not find any place where those functions were called. I removed the dev-functions instead of keeping the old get_status_by_route(). On the status page, the wan/wan6-variables have been replaced with arrays. When populating the html, we now iterate through these arrays and create one element for each interface. I have tested the code with different interface types, v4, v6, as well as disconnecting and connecting interfaces. The status is updated and the correct interfaces (or sometimes none at all) are shown. Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
2018-09-18luci-mod-admin-full: fix diagnostic page glitchJo-Philipp Wich
Slightly restructure markup to avoid inconsistent button rendering. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-18Merge pull request #2121 from jokdarius/feature/0001-performace-fixJo-Philipp Wich
luci-mod-admin-full: performance fix
2018-09-14Merge pull request #2122 from rosysong/backupHannu Nyman
Backup: add firmware backup for mtdblock devices
2018-09-13luci-base: update Turkish translationYusuf Soyipek
Add missing translations. Signed-off-by: Yusuf Soyipek <yusuf@soyipek.com>
2018-09-12i18n: sync translationsMartin Schiller
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2018-09-08modules: add backup module for mtdblock devicesRosy Song
Signed-off-by: Rosy Song <rosysong@rosinson.com>
2018-09-06luci-base: fix a typo in Russian translationAnton Kikin
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-09-02luci-base: update Polish translationKrystian Kozak
Updated Polish translations. Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2018-09-01luci-base: update Russian translationAnton Kikin
Add missing translations. Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-09-01luci-base: update Ukrainian translationYurii
Updated with the latest sync translation. Signed-off-by: Yurii yuripet@gmail.com
2018-09-01luci-base: update Japanese translationINAGAKI Hiroshi
Updated Japanese translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-09-01i18n: sync translationsINAGAKI Hiroshi
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-08-31luci-mod-admin-full: performance fixDarius
* uci:get replaced with direct access of value (functions has 3x better performance in that way) Signed-off-by: Darius Joksas <jok.darius@gmail.com>
2018-08-20luci-mod-admin-full: fix forced upgradeDirk Brenken
* fix logical glitch in forced upgrade logic Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-08-17luci-mod-admin-full: allow forced upgrade (revised)Dirk Brenken
* allow 'forced' firmware upgrades, even if the image format check fails. Useful where flashing back to the OEM versions or switching between ar71xx and ath79 builds * option is only visible after first/failed image check * added warning info (see screenshots below) Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-08-17luci-base: remove fake password field from tab orderJo-Philipp Wich
Set a negative tabindex on the dummy password field to not break the form tab order flow. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-16luci-base: mark password template dummy field as hiddenJo-Philipp Wich
Mark the dummy input field as aria-hidden, should fix #2063. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-15Update base.pohcwhan
2018-08-13luci-mod-admin-full: applyreboot doesn't reload pageAnsuel Smith
The applyreboot page doesn't reload the page onload of the loding gif. This adds the right function. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-08-13treewide: rework uci change displayJo-Philipp Wich
- Use native rpcd uci changes format instead of incompletely converting back and forth between the old and the new format - Rework uci changelog template to print the equivalent uci commands for the various changes - Rework theme headers to properly count the uncomitted changes - Rework theme CSS to properly style new changelog Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-10Update base.po: corrected translation errorsYurii
Signed-off-by: Yurii yuripet@gmail.com
2018-08-08luci-mod-admin-full: fix broken applyreboot pageAnsuel Smith
This improve applyreboot page and fix problem with luci-nginx that doesn't refresh the page when the router reboot. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-08-07Correct grammar in apply_widget.htmGregory L. Dietsche
This patch corrects "to get" to "to be" in apply_widget.htm This shell command was used to find and make the change in all impacted files: find . -type f -exec sed -i 's/Waiting for configuration to get applied/Waiting for configuration to be applied/g' {} + Signed-off-by: Gregory L. Dietsche <gregory.dietsche@cuw.edu>
2018-08-07luci-base: update Chinese translationyangfl
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-08-05luci-base: update Polish translationKrystian Kozak
Updated Polish translations. Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2018-08-04luci-mod-admin-full: Fix DSL Stats display of dB statisticsAlan Swanson
Line attenuation, signal attenuation, noise margin and aggregate transmit power really need to show decimal digits. Fixes commit 88713f6 from issue #2003 due to excess changes from %s to %d.
2018-07-30Merge pull request #2001 from Rixerx/masterHannu Nyman
luci-base: update Polish translation
2018-07-30Merge pull request #2012 from jempatel/masterJo-Philipp Wich
fix compilation failure when luasrcdiet is being copied to non existing directory
2018-07-30fix compilation failure when luasrcdiet is being copied to non existing ↵Jaymin Patel
directory Signed-off-by: Jaymin Patel <jem.patel@gmail.com>
2018-07-29luci-mod-admin-full: rework DSL Status displayJo-Philipp Wich
Fixes #2003. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-28luci-mod-admin-full: fix style glitch on packages pageJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-28luci-base: fix luasrcdietJo-Philipp Wich
- Stage required libraries as well - Remove not existing make target - Override library search path Fixes: b5d5e5bf1 ("luci-base: update luasrcdiet") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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-27luci-base: update Polish translationKrystian Kozak
Updated Polish translations. Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
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>