summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/root
AgeCommit message (Collapse)Author
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>
2019-11-01luci-base, luci-mod-network, luci-app-firewall: migrate luci/getHostHintsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-base, luci-mod-network: migrate luci/getDHCPLeases to C pluginJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-base: migrate luci/getBoardJSON to C pluginJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-16Merge pull request #3145 from ptpt52/refine-flash-resetJo-Philipp Wich
luci-mod-system: refine flash reset
2019-10-11luci-base: widgets.js: add user and group selectRichard Yu
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
2019-10-07luci-mod-system: refine flash resetChen Minqiang
We determine flash reset capability by checking overlayfs in /proc/mounts Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2019-10-07luci-base: add reboot rpc callJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-02luci-mod-system: flash.js: fix "rootfs_data" partition detectionJo-Philipp Wich
The `/sys/devices/virtual/mtd/` information is not available on all devices so rely on the contents of `/proc/mtd` instead to check for the existence of the `rootfs_data` partition. Fixes: #3136 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-02luci-mod-system: use "system" new "validate_firmware_image" ubus methodRafał Miłecki
This new ubus method provides more properly-formatted details about firmware file. Use it to check if uploaded image is valid. The old "sysupgrade --test" method is left for now to provide stderr output. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> [Added missing ACL, add default value for the ubus failure case] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24luci-mod-system: reimplement flashops as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21luci-mod-system: remplement fstab settings as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21luci-base: add rpc methods for mount managementJo-Philipp Wich
This commit introduces the new methods luci/getBlockDevices, luci/setBlockDetect, luci/getMountPoints, luci/setUmount in preparation for the reworked mount point management. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-16luci-mod-system: remplement password change as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-15luci-mod-system: reimplement SSH key mgmt as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-16luci-base: add luci/setPassword rpc method, dropbear feature flagJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12luci-mod-system: reimplent system/crontab as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12luci-base: whitelist file/write actions on /etc/rc.localJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>