New cmake versions require at least 3.5 as 'cmake_minimum_required'
in CMakeLists.txt. In future 3.10 will be required.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Because the setupDOM/initDOM methods do strange things related
to the old lua server rendered templates
(like remove all the elements currently hidden by dependencies...),
we want to be sure that these have finished before the view
itself renders.
This also ensures that any caching (e.g. from probeSystemFeatures)
is finished before the view render.
This feels like a hacky fix, but it's not clear to me what the best
one is.
Signed-off-by: James Haggerty <james.haggerty@morsemicro.com>
For option names use a longer description that is already used for tabs that shows the method-specific options:
'Webroot' to the 'Webroot Challenge Validation'
'DNS' to 'DNS Challenge Validation'
This allows avoiding duplicated strings.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Many users already have a DDNS configured e.g. DuckDNS.org or Cloudflare.
We can import the configurations to simplify configurations and avoid mistakes.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Check if the hostname is FQDN (e.g. has least one dot).
Check if the domain in the browser is not an IP and FQDN.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
We can't just use the datatype = "list(hostname)" because a domain may have a wildcard.
So check the domain by a simple regexp.
Check that DNS mode is used for wildcard.
Make the wildcard allowed only the beginning.
Add lowercase requirement.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
In the 585df1d137 I changed the validation_method to webroot by mistake because I thought this is a default in the acme.sh.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Currently menu entry is always shown even at the login screen.
Fix this by setting acl dependency.
Also fix the indent.
Signed-off-by: Zhi-Jun You <hujy652@protonmail.com>
Update sys.uc so that ubus luci->getConntrackList method is optionally
populated by /usr/sbin/conntrack application if /proc/net/nf_conntrack
is not available.
Signed-off-by: James <jpfox156@yahoo.com.au>
Fall through to /usr/sbin/conntrack tool if /proc/net/nf_conntrack is
not available.
/proc/net/nf_conntrack has been obsoleted in recent kernels
(https://cateee.net/lkddb/web-lkddb/NF_CONNTRACK_PROCFS.html). This
change enables sys.net.conntrack() to return conntrack information via
the /usr/sbin/conntrack tool (if installed) instead.
Enables population of the /luci/admin/status/realtime/connections list.
Signed-off-by: James Fox <jpfox156@yahoo.com.au>
[ format using tabs ]
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Fall through to /usr/sbin/conntrack tool if /proc/net/nf_conntrack or
ip_conntrack is not available.
/proc/net/nf_conntrack has been obsoleted in recent kernels
(https://cateee.net/lkddb/web-lkddb/NF_CONNTRACK_PROCFS.html). This
change enables luci-bwc to collect conntrack information via the
/usr/sbin/conntrack tool (if installed) instead.
Populates the /luci/admin/status/realtime/connections chart.
Signed-off-by: James Fox <jpfox156@yahoo.com.au>
[ format using tabs ]
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Add support to show/hide index cards. A card's state is saved using the
browser localstorage and its state is restored on page reload/relogin.
Rework the pool function to check and skip loading of hidden cards.
Rework themes to address new button position.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
[ changed tabs in CSS ]
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Reorganize poll function for index page. Drop the external function and
use the poll_status pattern used in other page that use poll.add API.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
openwrt/odhcpd@4308384748 added boot6 entries.
Each entry consists of:
url - string of the URL/URI to the image
arch - an integer
The last entry lacking 'arch' becomes the default entry.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
For standard devices, we can read from `/sys/class/power_supply`
Add board checks to implement different solutions for different boards
Signed-off-by: Coia Prant <coiaprant@gmail.com>
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Many LuCI icons doubled in size during migration to vector graphics
in commit ae5d91da90 (16px to 32px).
Sizing of their instances is mostly controlled by CSS, but there's
an exception - network interface boxes of "Interfaces" page in LuCI.
Current CSS doesn't specify any particular size requirements to follow,
so the icons just scale with the images served, thus effectively
doubling in width and height compared to state before the vectorization
commit. Such a big icons look odd and take up too much space, especially
for bridge interfaces with many ports.
Instead of reverting to the original 16×16px, this commit proposes
compromise of 24×24px as most of other icons within LuCI became a bit
bigger as well.
Signed-off-by: Dávid Benko <davidbenko@davidbenko.dev>
If no value is provided for "Days until renewal", the `acme.sh` default
is used. The placeholder should reflect this, and indicate what the
current default is.
Signed-off-by: Aditya Bhargava <rightaditya@gmail.com>
Currently translated at 100.0% (86 of 86 strings)
Translation: OpenWrt/LuCI/applications/package-manager
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspackage-manager/ru/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 84.3% (173 of 205 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/zh_Hant/
Translated using Weblate (Russian)
Currently translated at 100.0% (205 of 205 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/ru/
Translated using Weblate (Russian)
Currently translated at 100.0% (12 of 12 strings)
Translation: OpenWrt/LuCI/applications/bcp38
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbcp38/ru/
Translated using Weblate (Russian)
Currently translated at 100.0% (284 of 284 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (2592 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Translated using Weblate (Czech)
Currently translated at 100.0% (77 of 77 strings)
Translation: OpenWrt/LuCI/applications/xinetd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsxinetd/cs/
Translated using Weblate (Russian)
Currently translated at 100.0% (119 of 119 strings)
Translation: OpenWrt/LuCI/applications/snmpd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssnmpd/ru/
Translated using Weblate (Czech)
Currently translated at 99.1% (118 of 119 strings)
Translation: OpenWrt/LuCI/applications/snmpd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssnmpd/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (177 of 177 strings)
Translation: OpenWrt/LuCI/applications/adblock-fast
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock-fast/cs/
Translated using Weblate (Lithuanian)
Currently translated at 96.8% (2511 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/lt/
Translated using Weblate (Czech)
Currently translated at 100.0% (53 of 53 strings)
Translation: OpenWrt/LuCI/applications/acme
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacme/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (191 of 191 strings)
Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (59 of 59 strings)
Translation: OpenWrt/LuCI/applications/dump1090
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdump1090/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (93 of 93 strings)
Translation: OpenWrt/LuCI/applications/clamav
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsclamav/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (113 of 113 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (113 of 113 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (165 of 165 strings)
Translated using Weblate (Czech)
Currently translated at 97.7% (394 of 403 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (2592 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Translated using Weblate (Czech)
Currently translated at 99.7% (2585 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/cs/
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Translated using Weblate (Czech)
Currently translated at 100.0% (77 of 77 strings)
Translation: OpenWrt/LuCI/applications/xinetd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsxinetd/cs/
Translated using Weblate (Russian)
Currently translated at 100.0% (119 of 119 strings)
Translation: OpenWrt/LuCI/applications/snmpd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssnmpd/ru/
Translated using Weblate (Czech)
Currently translated at 99.1% (118 of 119 strings)
Translation: OpenWrt/LuCI/applications/snmpd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssnmpd/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (177 of 177 strings)
Translation: OpenWrt/LuCI/applications/adblock-fast
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock-fast/cs/
Translated using Weblate (Lithuanian)
Currently translated at 96.8% (2511 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/lt/
Translated using Weblate (Czech)
Currently translated at 100.0% (53 of 53 strings)
Translation: OpenWrt/LuCI/applications/acme
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacme/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (191 of 191 strings)
Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (59 of 59 strings)
Translation: OpenWrt/LuCI/applications/dump1090
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdump1090/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (93 of 93 strings)
Translation: OpenWrt/LuCI/applications/clamav
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsclamav/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (113 of 113 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (113 of 113 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (165 of 165 strings)
Translated using Weblate (Czech)
Currently translated at 97.7% (394 of 403 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (2592 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Translated using Weblate (Czech)
Currently translated at 99.7% (2585 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/cs/
Co-authored-by: Džiugas Januševičius <dziugas1959@hotmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Pavel Borecki <pavel.borecki@gmail.com>
Co-authored-by: Reigo <reiks@techie.com>
Co-authored-by: SnIPeRSnIPeR <snipersniper@users.noreply.hosted.weblate.org>
Co-authored-by: 林昶立 <changli.lin@gmail.com>
Signed-off-by: Džiugas Januševičius <dziugas1959@hotmail.com>
Signed-off-by: Pavel Borecki <pavel.borecki@gmail.com>
Signed-off-by: Reigo <reiks@techie.com>
Signed-off-by: SnIPeRSnIPeR <snipersniper@users.noreply.hosted.weblate.org>
Signed-off-by: 林昶立 <changli.lin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscoovachilli/cs/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/ru/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale2/cs/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale2/ru/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/cs/
Translation: OpenWrt/LuCI/applications/coovachilli
Translation: OpenWrt/LuCI/applications/firewall
Translation: OpenWrt/LuCI/applications/radicale2
Translation: OpenWrt/LuCI/applications/statistics
Merge remote-tracking branch 'weblate/master' manually and
fix the conflict regarding the removed luci-app-nft-qos
Signed-off-by: Hannu Nyman <hannnu.nyman@iki.fi>
In the overview page are all active dhcp leases displayed.
For easier recognition, the listed MAC addresses fo these leases are
resolved to their vendor names.
Signed-off-by: Christian Korber <ck@dev.tdt.de>
For easier definition of connected devices, this commit adds support
to identify them by vendor name.
Package `upf-neigh` is needed to lookup the vendor name in a hash table.
It implements a ubus-call `ubus call fingerprint fingerprint`:
```
root@<redacted> ~ # ubus call fingerprint fingerprint
{
"7c:c2:55:XX:XX:XX": {
"vendor": "Super Micro Computer, Inc."
}
}
```
Fixes: #2065
Depends on: openwrt/packages#27257
Signed-off-by: Christian Korber <ck@dev.tdt.de>