summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/root
AgeCommit message (Collapse)Author
2020-10-31luci-base: fix syntax error in hostapd featuresMartin Böh
Signed-off-by: Martin Böh <mart.b@outlook.de>
2020-10-11luci-base: check support for hostapd wpsAnsuel Smith
Check if hostapd supports wps pushbutton features. (wps is now supported by ubus instead of using hostapd_cli) Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-08-02luci-base: Fixed delayed portstatus loading on R7800Nicolas Thumann
Signed-off-by: Nicolas Thumann <me@n-thumann.de>
2020-06-16Merge pull request #4127 from blocktrron/luci-wep-featuresJo-Philipp Wich
luci-mod-network: query WEP support
2020-06-16luci-base: move vpn sectionFlorian Eckert
Move the VPN configuration section behind the network configuration. The normal workflow is add/edit the network and then add/edit a vpn configuration. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-06-02luci-base: grant uci rename permissionsJo-Philipp Wich
When doing an initial wireless configuration migration, LuCI needs to perform a series of rename calls which weren't allowed so far. Ref: https://forum.openwrt.org/t/config-migration-endless-loop/64340 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-06-01luci-base: add queryable WEP WiFi featureDavid Bauer
This commit adds WEP as a queryable WiFi feature. Support for the deprecated WEP encryption is not compiled-in to hostapd or wpa_supplicant by default anymore. Allow LuCi to query the availability of WEP to remove it from the list of avialable encryption methods in case hostapd / wpa_supplicant are compiled without it. Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-25luci-base: make logout link depend on luci-base ACLJo-Philipp Wich
Fixes: #3966 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-17luci-base: fix trainling comma in ACL specificationJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: implement JSON endpoint to fetch menu informationJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-09treewide: reorganize base ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-08Merge pull request #3769 from dibdot/logread-fixJo-Philipp Wich
luci-base: accept alternative logread location
2020-04-08Merge pull request #3749 from Ansuel/fix_relaydJo-Philipp Wich
luci-base: fix error 404 on missing relay protocol
2020-03-23ucitrack: fix bug for exec with paramsjjm2473
In file `/etc/config/ucitrack` ``` config fstab option exec '/sbin/block mount' ``` `/sbin/block mount` never be called after fstab changed. Signed-off-by: jjm2473 <1129525450@qq.com>
2020-03-20luci-base: accept alternative logread locationDirk Brenken
* minimal change to accept the usual logread location plus the alternative location (/usr/sbin/logread) used by syslog-ng (see openwrt/packages/issues/11535 for reference) Signed-off-by: Dirk Brenken <dev@brenken.org>
2020-03-13luci-base: ensure that ubus path uses trailing slashJo-Philipp Wich
Without the trailing slash, probing endpoint availability will fail. Fixes: 529bde440 ("luci-base: make rpc webserver path configurable") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-12luci-base: add relayd to getFeature listAnsuel Smith
Add /sbin/block to the generic Feature list to make it easily accessible by getProtocolHandlers Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-02-13luci-base: extend rollback timeout to 90 secondsJo-Philipp Wich
Ref: #3628 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-28luci-base: make swconfig port state parsing more robustJo-Philipp Wich
Since swconfig output varies wildly among different switch drivers, rely on a simpler more robust parsing approach to find the required information. Ref: https://forum.openwrt.org/t/cannot-read-property-link/50766 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-25luci-base: allow loading translations when not authenticatedJo-Philipp Wich
Fixes: #3563 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-17Merge pull request #3522 from swg0101/systemcertJo-Philipp Wich
luci-base/mod-network: corrections to previous commit
2020-01-16luci-base: correct rpcd bad access modeDavid Lam
Corrects the bad access mode from a previous commit that did not allow rpcd luci to execute. Signed-off-by: David Lam <david@thedavid.net>
2020-01-16Merge pull request #3511 from Ansuel/no-hardJo-Philipp Wich
luci-base: remove hardcoded cgi-bin path
2020-01-16Merge pull request #3517 from Ansuel/ubus_shortJo-Philipp Wich
luci-base: make rpc webserver path configurable
2020-01-16luci-base: make rpc webserver path configurableAnsuel Smith
Currently the ubus path that provide the webserver is hardcoded to be /ubus. Change this to make it configurable from the luci config file. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-01-16luci-base: remove hardcoded cgi-bin pathAnsuel Smith
Currently LuCI can be loaded only when placed in the root of the server as the cgi-bin path are hardcoded. Change the index.html to load the cgi-bin path from the current level. Also add a new entry in the env Object to make the cgi_base path easily accessible. This variable will be based on the position of /cgi-bin/luci. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-01-16luci-base: add system cert bundle detectionDavid Lam
Add detection mechanism for system cert CA bundle installed by the ca-bundle package. Used by LuCI to detect whether the "Use system certificates" certificate validation option should be enabled. Signed-off-by: David Lam <david@thedavid.net>
2019-12-29luci-mod-status: reimplement route status page as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-22luci-mod-status: reimplement log pages as client side viewsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-22luci-mod-status: reimplement iptables status page as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-22luci-mod-status: replace iptables controller actions with cgi-io callsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-18luci-mod-network: replace controller address check action with cgi-io scriptJo-Philipp Wich
This change removes the last bit of Lua code from luci-mod-network. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16luci-mod-network: reimplement diagnostics page as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16luci-base: convert menu nodes to JSONJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-08luci-base, luci-mod-network: migrate getDUIDHints method to C pluginJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03luci-base, luci-app-firewall: port custom rules to client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03luci-base, luci-mod-status: convert process status to client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03luci-base: add luci/getProcessList RPC methodJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03luci-base, luci-mod-network: invoke ifdown directly in interface overviewJo-Philipp Wich
Replace the `iface_down` endpoint with a direct invocation of `/sbin/ifdown` and replace the interface connectivity check with a call to the new `remote_addr` endpoint. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03luci-base, luci-mod-status: convert realtime stats to client side viewsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03luci-base: add luci/getRealtimeStats and luci/getConntrackList rpc methodsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-app-opkg: add ipk upload featureRichard Yu
Signed-off-by: Richard Yu <yurichard3839@gmail.com> [fix duplicate upload errors, remove temporary file, tweak style] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-network: interfaces.js: issue iface restart via file/exec rpc callJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-network: wireless.js: issue wifi restart via file/exec rpc callJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-status: reimplement index status page as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-base, luci-mod-system: replace luci/setUmount with fs.exec callsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-base, luci-mod-system: replace luci/setReboot with fs.execJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-base: consolidate network.js data acquisitionJo-Philipp Wich
The new luci-rpc/getNetworkDevices procedure offers netdev enumeration with included IPv4 and IPv6 address information as well as 64bit traffic counters, so we can remove the calls to network.device/status and luci/getIfaddrs now as we're able to obtain all info from a single source. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-base: migrate luci/getNetworkDevices to C pluginJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-base: migrate luci/getWirelessDevices to C pluginJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>