summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-11-03treewide: move templates and libraries not used by the core to luci-compatJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03luci-mod-network: remove unused `iface_down` endpointJo-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-mod-network: add admin/network/remote_addr endpointJo-Philipp Wich
The remote_addr endpoint allows clients to query their external IP address as seen by the device as well as the inbound network devices and logical interfaces on the router. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03rpcd-mod-luci: handle DHCPv6 leases in dnsmasq lease filee9hack
For DHCPv6, the second entry of a lease is the IAID. The parsing code expects a MAC instead of a IAID. Reported-by: Hartmut Birr <e9hack@gmail.com> 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-03Merge pull request #3256 from ysc3839/gridsectionJo-Philipp Wich
luci-base: form.js: fix GridSection not using user-input name when add
2019-11-04luci-base: form.js: fix GridSection not using user-input name when addRichard Yu
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
2019-11-03Merge pull request #2672 from ZachCook/feature_status_add_available_cachedFlorian Eckert
luci-mod-status: use available and cached memory for progress bars
2019-11-02luci-mod-status: use available and cached memory for progress barsZachary Cook
Fixes: #1148 Uses available and cached memory from /proc/meminfo via procd, and carefully handles the cases where they are nil or zero, so as to not require specific linux or procd versions to function MemAvailable is a better estimate than free + buffered/cached, see: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0 Also adds a new progressbar that shows cached memory if not nil Signed-off-by: Zachary Cook <zachcook1991@gmail.com>
2019-11-02rpcd-mod-luci: bump versionJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-02rpcd-mod-luci: fix crash on not existing uci optionsJo-Philipp Wich
Checking the return value of uci_lookup_ptr() is not enough to ensure that the requested optiomn has actually been found. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-02luci-base: sys.lua: lazy-load luci.model.networkJo-Philipp Wich
This allows using luci.sys without installed luci.model.network class. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-02rpcd-mod-luci: depend on libnl-tiny, do not runtime depend on libiwinfoJo-Philipp Wich
Also fix package description. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-system: flash.js: upon sysupgrade, select reconnect ip by keep stateJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-system: flash.js: fix flash erase modalJo-Philipp Wich
The firstboot rpc call might not return, therefor do not wait on promise fullfillment but display modal dialog right away. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-network: fix disabled state in wifi settings modalJo-Philipp Wich
Also auto-enable the radio upon network join. 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-base, luci-mod-system: move file upload handling to ui.jsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-system: use declarative dependencies in controllerJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-status: use declarative dependencies in controllerJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-mod-network: use declarative dependencies in controllerJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01luci-base: dispatcher.lua: support declarative node dependenciesJo-Philipp Wich
Introduce two new properties for page nodes to allow for declaratively specifiying system dependencies which is useful to e.g. make certain views depend on specific uci values or the presence of certain files. The recognized properties are: - `uci_depends` - a nested table in one of the following forms: 1) `{ config = { section = { option = "exact_value" } }` 2) `{ config = { section = { option = true } }` 3) `{ config = { section = "exact_type" } }` 4) `{ config = { section = true } }` 5) `{ config = true }` Depending on the declaration, the uci option or section type must either match the given "exact_value" or "exact_type" values or be a non-nil value in case boolean "true" is specified. - `file_depends` - a flat lists of file paths that must be accessible If a path listed in `file_depends` points to a directory, that directory must be not empty, otherwise it suffices if the path exists. Examples: - Only display the node if an /etc/config/wireless file exists with a "config wifi-device radio0" section. node = page(...) node.uci_depends = { wireless = { radio0 = "wifi-device" } } - Only display the node when swconfig is installed. node = page(...) node.file_depends = { "/sbin/swconfig" } 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-base: remove unused Lua codeJo-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-11-01luci-base: depend on rpcd-mod-luciJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01libs: add rpcd-mod-luciJo-Philipp Wich
Add rpcd-mod-luci, a fast rpcd C plugin for speeding up common backend ubus operations. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-30translation: Add Bulgarian to luci.mkPaul Spooren
Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-10-30translation: weblate updateHosted Weblate
Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-10-29translation: weblate updateAllan Nordhøy
Added translation using Weblate (Bulgarian) Translated using Weblate (Chinese (Traditional)) Translated using Weblate (German) Translated using Weblate (Italian) Translated using Weblate (Japanese) Translated using Weblate (Portuguese (Brazil)) Translated using Weblate (Russian) Translated using Weblate (Spanish) Translated using Weblate (Turkish) Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-10-28translation: squashed weblate updatePaul Spooren
these updates are getting slightly out of hand, I'd suggest to squash them now instead of having a single commit per language. Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-10-29Merge pull request #3245 from stangri/master-luci-app-vpnbypassFlorian Eckert
luci-app-vpnbypass: bugfix: call to action has no parent node
2019-10-28luci-app-vpnbypass: bugfix: call to action has no parent nodeStan Grishin
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-10-28Merge pull request #3223 from stangri/master-luci-app-vpnbypassJo-Philipp Wich
luci-app-vpnbypass: better service control buttons
2019-10-28Merge pull request #3239 from ysc3839/cifsdJo-Philipp Wich
luci-app-cifsd: fix read_only option incorrect default value
2019-10-28Merge pull request #3242 from ysc3839/ledJo-Philipp Wich
luci-mod-system: add missing speed_mask option in leds.js
2019-10-28luci-mod-system: add missing speed_mask option in leds.jsRichard Yu
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
2019-10-25Merge pull request #3238 from weblate/weblate-openwrt-luciFlorian Eckert
Update from Weblate
2019-10-25luci-app-cifsd: fix read_only option incorrect default valueRichard Yu
Signed-off-by: Richard Yu <yurichard3839@gmail.com>