Jo-Philipp Wich [Sun, 26 Apr 2020 16:44:48 +0000 (18:44 +0200)]
luci-base: luci.js: add LuCI.session.getToken()
Since we're already have LuCI.session.getID() we should mirror the same
interface for retrieving the session token.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
551d839f90853b58f81d124c77442009d4df0cb4)
Jo-Philipp Wich [Wed, 15 Apr 2020 20:14:44 +0000 (22:14 +0200)]
luci-base: luci.js: add hasViewPermission() helper
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
b739fc17eabe9905889017127ac1de8f4e194819)
Jo-Philipp Wich [Wed, 15 Apr 2020 20:03:20 +0000 (22:03 +0200)]
luci-base: luci.js: fix JSdoc markup issues
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
06af541c376ddab7303ea4294b17e8be91458d05)
Jo-Philipp Wich [Wed, 15 Apr 2020 20:01:55 +0000 (22:01 +0200)]
luci-base: luci.js: convert various probe* functions to session data api
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
b0c822192628f3346721810212b0770cc16ff6ea)
Jo-Philipp Wich [Wed, 15 Apr 2020 19:50:26 +0000 (21:50 +0200)]
luci-base: luci.js: add LuCI.session class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
ef718246b17d322ae001129c04e117d17e2373a0)
Jo-Philipp Wich [Sun, 12 Apr 2020 20:54:02 +0000 (22:54 +0200)]
luci-base: luci.js: add ability to add "preload" classes
Extend the LuCI bootstrap procedure to scan for class files in
/www/luci-static/preload/. Any JavaScript file found there will be
required automatically before setting up the view, allowing to stage
code that should run on every page load.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
0d0ad80fd1b96ff2c33392387320ad518640782b)
Jo-Philipp Wich [Sun, 12 Apr 2020 20:27:16 +0000 (22:27 +0200)]
luci-base: luci.js: add LuCI.fspath() helper
The LuCI.fspath() function allows constructing absolute filesystem paths
from path segments relative to the document root.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
fde144c9be61d7886e81240233328a61d7088d08)
Jo-Philipp Wich [Sun, 1 Dec 2019 19:21:04 +0000 (20:21 +0100)]
luci-base: expose effective dispatched path to client side environment
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit
97f27e0d54fd1a1534b99421aa0e930fbe274db8)
jjm2473 [Sun, 22 Mar 2020 16:58:46 +0000 (00:58 +0800)]
ucitrack: fix bug for exec with params
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>
(cherry picked from commit
97780a9ce158097e17ed7842ae01e765d5da4955)
David Lam [Thu, 16 Jan 2020 09:15:40 +0000 (01:15 -0800)]
luci-base: add system cert bundle detection
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>
(cherry picked from commit
27b21c2a6262a8c383c783e98320746f22fe8f6f)
Jo-Philipp Wich [Mon, 20 Apr 2020 07:33:30 +0000 (09:33 +0200)]
luci-base: dispatcher.lua: pass permission state to legacy CBI templates
Ref: https://github.com/openwrt/luci/issues/3937
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
c48a8d58132b4f175ec0a4b4ec4e15eb199edeb8)
Jo-Philipp Wich [Sun, 19 Apr 2020 15:13:49 +0000 (17:13 +0200)]
luci-base: dispatcher.lua: honour acl_depends annotations in Lua controllers
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
760763a7b5da42860c6c2d63478859bb02fa9104)
Jo-Philipp Wich [Wed, 15 Apr 2020 20:12:39 +0000 (22:12 +0200)]
luci-base: dispatcher.lua: add support for handling menu ACL annotations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
125916f2f4603acf980acd074aca55d0b528f34b)
Anton Kikin [Tue, 18 Feb 2020 11:00:01 +0000 (14:00 +0300)]
luci-base: Add missed config parameter for cbi when converting to JSON
The cbi() function has a second argument 'config' in which various
configuration parameters can be passed. When converting the lua menu
to JSON, we must also convert this parameter.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
(cherry picked from commit
2d8299338e6c77fb15c457f5cf7f34dc0278db60)
Jo-Philipp Wich [Wed, 5 Feb 2020 16:42:58 +0000 (17:42 +0100)]
luci-base: dispatcher.lua: remove redundant check_fs_depends() call
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
08eea3f93e9f2e9a2940df2e3a7afbe04c40f4b6)
Jo-Philipp Wich [Thu, 30 Jan 2020 11:19:27 +0000 (12:19 +0100)]
luci-base: dispatcher.lua: fix filesystem dependency checks
A variable clash led to declarative `fs` dependencies being ineffective.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
7cfce565530cbf6103275002ad20af57a509ad7b)
Jo-Philipp Wich [Fri, 10 Jan 2020 21:12:03 +0000 (22:12 +0100)]
luci-base: dispatcher: remove empty firstchild nodes from menu
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
fd7961337f44ebe8aa71e6ae0925cb70a8c53b21)
Jo-Philipp Wich [Tue, 7 Jan 2020 08:08:49 +0000 (09:08 +0100)]
luci-base: dispatcher: fix rpc controller regression
When testing the luci-rpc authnetication, avoid clobbering the HTTP
post request body.
Fixes: #3470
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
38c9c9e0a2564b9644a56f1143f6acf0c9e272c8)
Jo-Philipp Wich [Fri, 6 Dec 2019 20:19:02 +0000 (21:19 +0100)]
luci-base: dispatcher.lua: add support for loading JSON menu files
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
cf1219bd0790506279b14007595e8389e5eb99ff)
Jo-Philipp Wich [Wed, 4 Dec 2019 18:19:45 +0000 (19:19 +0100)]
luci-base: dispatcher.lua: refactor dispatch logic
Refactor the dispatch logic to operate on the internal JSON representation
of the menu tree.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
184ea6230076bf4dd3abf6669bde17f87a051146)
Jo-Philipp Wich [Wed, 4 Dec 2019 18:04:50 +0000 (19:04 +0100)]
luci-base: dispatcher.lua: factor out template class init into own function
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
1ec6e72106218e11871dd8ee563f7673c2d1f7dc)
Jo-Philipp Wich [Wed, 4 Dec 2019 18:00:27 +0000 (19:00 +0100)]
luci-base: dispatcher.lua: factor out language check into own function
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
a6b214f87332471b8210d05b02ae59ea6b0c16b7)
Jo-Philipp Wich [Sun, 1 Dec 2019 19:06:43 +0000 (20:06 +0100)]
luci-base: dispatcher.lua: introduce dispatch tree JSON conversion
Introduce a new method menu_json() which converts the current dispatch
tree into JSON structure.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
852d24061d236048a8c2c886787eede2586b10b4)
Jo-Philipp Wich [Fri, 3 Apr 2020 11:27:20 +0000 (13:27 +0200)]
luci-mod-status: use LuCI.ui.instantiateView() to load index view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
f9d61213fbfde66ffc6f8ca0e112d6445c6c4695)
Jo-Philipp Wich [Fri, 3 Apr 2020 11:21:09 +0000 (13:21 +0200)]
luci-base: ui.js: add instantiateView() helper
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
d9e9cf92d15c81284000c7c97c6f7bf2b5953c2d)
Jo-Philipp Wich [Fri, 3 Apr 2020 08:00:06 +0000 (10:00 +0200)]
treewide: import utility classes explicitly
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit
3c4bc228a1f7b5731cf464f3f407c9ed9ace3cd2)
Jo-Philipp Wich [Thu, 2 Apr 2020 19:40:50 +0000 (21:40 +0200)]
luci-base: harmonize JS class naming and requesting
- Make builtin classes available via `require` to allow view code to
request external and internal classes in a consistent manner without
having to know which classes are builtin and which not
- Make base classes request any used class explicitely instead of
relying on implicitly set up L.{dom,view,Poll,Request,Class} aliases
- Consistently convert class names to lower case in JSdoc to match
the names used in `require` statements
- Deprecate L.{dom,view,Poll,Request,Class} aliases
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit
711f75927849fade74f79e4b198b3a839d9d4fbc)
Kevin Darbyshire-Bryant [Thu, 14 Nov 2019 10:53:56 +0000 (10:53 +0000)]
luci-base: Improve change application message
As a native English speaker the luci message displayed when clicking
'Save & Apply' has a somewhat uncomfortable English phrasing of "Waiting
for configuration to get applied". It could be improved by replacing
'get' with 'be' but once you've got that far you might as well replace
this with the shorter & simpler "Applying configuration changes". This
is also technically more correct since luci/openwrt should only be
updating/restarting processes that are related to the changed areas, not
changing the entire configuration.
As a result of that, change both the 'success' and 'rolled back'
messages to "Configuration changes have been applied" & "Configuration
changes have been rolled back"
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
(cherry picked from commit
9b266d11c6b5082c733f101326160cef797f6edf)
Jo-Philipp Wich [Wed, 12 Feb 2020 07:14:22 +0000 (08:14 +0100)]
luci-base: ui.js: dispatch "cbi-tab-active" event when a tab is selected
This is useful to lazy-load tab contents.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
bf774e4c2a6a03aa01d4bcd9f5ce4f960cd91874)
Jo-Philipp Wich [Mon, 16 Dec 2019 16:44:27 +0000 (17:44 +0100)]
luci-base: ui.js: allow custom validation in Dropdown and DynamicList
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
90a161018c9c7650a27a66f8e0a4f060d1ccebd6)
Jo-Philipp Wich [Tue, 31 Mar 2020 19:27:42 +0000 (21:27 +0200)]
luci-base: ui.js: add documentation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
1bb27177296cbfc4ad4a07dc59edf31fb8f92c7a)
Hannu Nyman [Thu, 7 May 2020 16:17:42 +0000 (19:17 +0300)]
luci-app-statistics: remove quotemark from comment
Having quote " in a comment may cause error with non-minified code.
(explanation: caused by 'require' function's parsing behaviour)
Remove also ";" just in case.
Reference to issue 4020
(backported from
4f80f9542)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Stan [Mon, 4 May 2020 22:55:41 +0000 (15:55 -0700)]
Merge pull request #4009 from stangri/19.07-luci-app-vpn-policy-routing
[19.07] luci-app-vpn-policy-routing: support phys-dev policies
Stan Grishin [Mon, 4 May 2020 22:54:30 +0000 (22:54 +0000)]
luci-app-vpn-policy-routing: support phys-dev policies
Signed-off-by: Stan Grishin <stangri@melmac.net>
Hannu Nyman [Mon, 4 May 2020 20:03:11 +0000 (23:03 +0300)]
luci-base: i18n - cleanup after backport
The backport script apparently imported some stale strings.
Remove them.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Hannu Nyman [Mon, 4 May 2020 19:47:26 +0000 (22:47 +0300)]
treewide: i18n - backport translations from master
Backport updates to translations from master by using
build/i18n-merge-master.pl
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Hannu Nyman [Mon, 4 May 2020 19:32:44 +0000 (22:32 +0300)]
treewide: sync translations
Sync translations.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Stan [Sun, 3 May 2020 19:49:24 +0000 (12:49 -0700)]
Merge pull request #4002 from stangri/19.07-luci-app-vpnbypass
[19.07] luci-app-vpnbypass: better localizeable resources
Stan Grishin [Sat, 2 May 2020 22:17:49 +0000 (22:17 +0000)]
luci-app-vpnbypass: better localizeable resources
Signed-off-by: Stan Grishin <stangri@melmac.net>
Stan [Sat, 2 May 2020 16:20:56 +0000 (09:20 -0700)]
Merge pull request #3998 from stangri/19.07-luci-app-simple-adblock
[19.07] luci-app-simple-adblock: bugfix: remove escaped double-quotes from translateable resources
Stan [Sat, 2 May 2020 16:20:29 +0000 (09:20 -0700)]
Merge pull request #3996 from stangri/19.07-luci-app-vpn-policy-routing
[19.07] luci-app-vpn-policy-routing: bugfix: remove escaped double-quotes from translateable resources
Stan Grishin [Sat, 2 May 2020 16:00:54 +0000 (16:00 +0000)]
luci-app-simple-adblock: bugfix: remove escaped double-quotes from translateable resources
Signed-off-by: Stan Grishin <stangri@melmac.net>
Hannu Nyman [Sat, 2 May 2020 15:55:56 +0000 (18:55 +0300)]
Merge pull request #3992 from stangri/19.07-luci-app-https-dns-proxy
[19.07] luci-app-https-dns-proxy: bugfix: remove escaped double-quotes from translateable resources
Stan Grishin [Sat, 2 May 2020 15:46:47 +0000 (15:46 +0000)]
luci-app-vpn-policy-routing: bugfix: remove escaped double-quotes from translateable resources
Signed-off-by: Stan Grishin <stangri@melmac.net>
Stan Grishin [Sat, 2 May 2020 15:31:49 +0000 (15:31 +0000)]
luci-app-https-dns-proxy: bugfix: remove escaped double-quotes from translateable resources
Signed-off-by: Stan Grishin <stangri@melmac.net>
Hannu Nyman [Fri, 24 Apr 2020 14:32:11 +0000 (17:32 +0300)]
Merge pull request #3960 from stangri/19.07-luci-app-https-dns-proxy
[19.07] luci-app-https-dns-proxy: add CIRA Canadian Shiled
Stan Grishin [Fri, 24 Apr 2020 10:06:01 +0000 (10:06 +0000)]
luci-app-https-dns-proxy: add CIRA Canadian Shiled
Signed-off-by: Stan Grishin <stangri@melmac.net>
Dirk Brenken [Fri, 24 Apr 2020 07:42:02 +0000 (09:42 +0200)]
luci-app-travelmate: refine logical interface selection
Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit
c2d8275fdae8caf76cb54af553bcf880d2c6f157)
Dirk Brenken [Wed, 22 Apr 2020 19:40:04 +0000 (21:40 +0200)]
luci-app-travelmate: sync with travelmate 1.5.4
* change wifi scanning to logical interface name,
no longer use the radio device
Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit
9d02ef1bd936e79d30370a243b42428675dce247)
Friendly fellow [Thu, 26 Mar 2020 15:49:55 +0000 (18:49 +0300)]
luci-proto-openconnect: fix certificate file paths
This addresses the issue of openconnect.sh from openconnect package expecting
a vpn- suffix for the files, while the frontend didn't.
Signed-off-by: Friendly fellow <DasTestament@users.noreply.github.com>
[reword commit message]
Ref: https://github.com/openwrt/packages/issues/11584
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
adf0fb1879ffb6bd04984d257484fad0fba1d6a3)
Fixes: #3951
Hannu Nyman [Tue, 21 Apr 2020 16:48:23 +0000 (19:48 +0300)]
Merge pull request #3944 from stangri/19.07-luci-app-simple-adblock
[19.07] luci-app-simple-adblock: bugfix: get package version from opkg
Stan Grishin [Tue, 21 Apr 2020 00:51:30 +0000 (00:51 +0000)]
luci-app-simple-adblock: bugfix: get package version from opkg
Signed-off-by: Stan Grishin <stangri@melmac.net>
Dirk Brenken [Tue, 14 Apr 2020 17:44:58 +0000 (19:44 +0200)]
luci-app-adblock: accept capital letters in DNS filter
Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit
e7cb6efb5a2c147fb00b5dd97651099a60da9bd3)
Dirk Brenken [Sun, 12 Apr 2020 08:00:34 +0000 (10:00 +0200)]
luci-app-adblock: more DNS Report tweaks
* revert last page loading change,
this breaks the filter functionality on that page
* Add a short paragraph to explain the page functionality
* Fix search to accept ":" character as well
(e.g. for IPv6 address search)
Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit
94799995aa3fc7961c6d6aea6d3105a29d550b3f)
Hannu Nyman [Sun, 12 Apr 2020 05:57:38 +0000 (08:57 +0300)]
luci-app-advanced-reboot: fix syntax
Add the missing ")" to lines 45 and 54.
Fixes
75a4a80c1dd
Fixes #3903
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit
2c812fbd58fd7399969185cc501bdba561d98d95)
Dirk Brenken [Sat, 11 Apr 2020 18:35:06 +0000 (20:35 +0200)]
luci-app-adblock: refresh report data on page load
* refresh report data on page load (without hitting
the refresh button explicity)
Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit
bfcd962ffd211521e91a875e60ef897335de1fc0)
Hannu Nyman [Sat, 11 Apr 2020 12:40:26 +0000 (15:40 +0300)]
Merge pull request #3897 from stangri/19.07-luci-app-vpn-policy-routing
[19.07] luci-app-vpn-policy-routing: improve i18n
Hannu Nyman [Sat, 11 Apr 2020 12:39:37 +0000 (15:39 +0300)]
Merge pull request #3899 from stangri/19.07-luci-app-simple-adblock
[19.07] luci-app-simple-adblock: improve i18n
Stan Grishin [Sat, 11 Apr 2020 11:42:23 +0000 (11:42 +0000)]
luci-app-vpn-policy-routing: improve i18n
Signed-off-by: Stan Grishin <stangri@melmac.net>
Stan Grishin [Sat, 11 Apr 2020 11:39:26 +0000 (11:39 +0000)]
luci-app-simple-adblock: improve i18n
Signed-off-by: Stan Grishin <stangri@melmac.net>
Hannu Nyman [Sat, 11 Apr 2020 07:50:56 +0000 (10:50 +0300)]
Merge pull request #3878 from stangri/19.07-luci-app-advanced-reboot
[19.07] luci-app-advanced-reboot: improve localization by moving from translate to translatef
Hannu Nyman [Sat, 11 Apr 2020 07:49:47 +0000 (10:49 +0300)]
Merge pull request #3890 from stangri/19.07-luci-app-https-dns-proxy
[19.07] luci-app-https-dns-proxy: improve i18n
Stan Grishin [Sat, 11 Apr 2020 02:30:14 +0000 (02:30 +0000)]
luci-app-https-dns-proxy: improve i18n
Signed-off-by: Stan Grishin <stangri@melmac.net>
Stan Grishin [Sat, 11 Apr 2020 01:11:38 +0000 (01:11 +0000)]
luci-app-advanced-reboot: improve localization by moving from translate to translatef
Signed-off-by: Stan Grishin <stangri@melmac.net>
Jo-Philipp Wich [Wed, 8 Apr 2020 07:20:04 +0000 (09:20 +0200)]
Merge pull request #3856 from dibdot/adblock
[19.07] luci-app-adblock: release 4.0.3
Dirk Brenken [Tue, 7 Apr 2020 20:37:51 +0000 (22:37 +0200)]
[19.07] luci-app-adblock: release 4.0.3
* sync with adblock 4.0.3 in 19.07 package branch
Signed-off-by: Dirk Brenken <dev@brenken.org>
Hannu Nyman [Tue, 7 Apr 2020 07:18:09 +0000 (10:18 +0300)]
Merge pull request #3853 from stangri/19.07-luci-app-https-dns-proxy
[19.07] luci-app-https-dns-proxy: Move help links to providers files, Add LibreDNS
Stan Grishin [Mon, 6 Apr 2020 14:00:21 +0000 (14:00 +0000)]
luci-app-https-dns-proxy: Move help links to providers files, Add LibreDNS.
Signed-off-by: Stan Grishin <stangri@melmac.net>
Hannu Nyman [Sun, 5 Apr 2020 18:11:28 +0000 (21:11 +0300)]
Merge pull request #3846 from joweisberg/openwrt-19.07
luci-app-samba: Fix path url link to mounts
joweisberg [Sun, 5 Apr 2020 18:06:40 +0000 (20:06 +0200)]
luci-app-samba: Fix path url link to mounts
Signed-off-by: joweisberg <jo.weisberg@gmail.com>
Hannu Nyman [Fri, 3 Apr 2020 12:57:15 +0000 (15:57 +0300)]
Merge pull request #3829 from stangri/19.07-luci-app-https-dns-proxy
[19.07] luci-app-https-dns-proxy: better service control & buttons styling
Hannu Nyman [Fri, 3 Apr 2020 12:56:23 +0000 (15:56 +0300)]
Merge pull request #3826 from stangri/19.07-luci-app-vpnbypass
[19.07] luci-app-vpnbypass: better service control & buttons styling
Hannu Nyman [Fri, 3 Apr 2020 12:52:37 +0000 (15:52 +0300)]
Merge pull request #3824 from stangri/19.07-luci-app-vpn-policy-routing
[19.07] luci-app-vpn-policy-routing: better service control & buttons styling
Hannu Nyman [Fri, 3 Apr 2020 12:51:01 +0000 (15:51 +0300)]
Merge pull request #3821 from stangri/19.07-luci-app-simple-adblock
[19.07] luci-app-simple-adblock: better service control & buttons styling
Stan Grishin [Fri, 3 Apr 2020 12:50:22 +0000 (12:50 +0000)]
luci-app-https-dns-proxy: better service control & buttons styling
Signed-off-by: Stan Grishin <stangri@melmac.net>
Stan Grishin [Fri, 3 Apr 2020 12:32:36 +0000 (12:32 +0000)]
luci-app-vpnbypass: better service control & buttons styling
Signed-off-by: Stan Grishin <stangri@melmac.net>
Stan Grishin [Fri, 3 Apr 2020 12:30:05 +0000 (12:30 +0000)]
luci-app-vpn-policy-routing: better service control & buttons styling
Signed-off-by: Stan Grishin <stangri@melmac.net>
Stan Grishin [Fri, 3 Apr 2020 12:25:28 +0000 (12:25 +0000)]
luci-app-simple-adblock: better service control & buttons styling
Signed-off-by: Stan Grishin <stangri@melmac.net>
Jo-Philipp Wich [Thu, 2 Apr 2020 13:20:23 +0000 (15:20 +0200)]
luci-mod-network: rework signal badge disabled state
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
eb1422defe529f93b073abc72a3601b0b22b6c7e)
Jo-Philipp Wich [Wed, 1 Apr 2020 17:15:07 +0000 (19:15 +0200)]
luci-mod-wireless: avoid signal badge wrapping in scan list
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
515069f9ecf7eb3d5b83bb79ae1dfa799bf9630d)
Jo-Philipp Wich [Tue, 24 Mar 2020 21:13:01 +0000 (22:13 +0100)]
luci-mod-network, luci-mod-status: allow assoclist wrapping
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
a600ebb5fe14b13cb53669eb73b86f66cc699e94)
(cherry picked from commit
04c73f1613734b3f2a7204c24d7c9267d1b45955)
Jo-Philipp Wich [Mon, 23 Mar 2020 21:14:02 +0000 (22:14 +0100)]
luci-mod-network: adjust assoclist markup for easier styling
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
1b7e923cf6ca3da515104cd732de64c5312942dc)
Jo-Philipp Wich [Sun, 1 Mar 2020 19:58:51 +0000 (20:58 +0100)]
luci-mod-network: properly handle "no signal" and "disabled" in signal badges
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
cf09705ee394ea9cad90581df09a81ec48b48906)
Jo-Philipp Wich [Wed, 1 Apr 2020 16:41:53 +0000 (18:41 +0200)]
luci-base: ui.js: properly handle null choices in dropdown constructor
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
f1aa3f8f6e378a2fd212590cb3c7b426c014e8ba)
Jo-Philipp Wich [Wed, 1 Apr 2020 16:19:30 +0000 (18:19 +0200)]
luci-mod-status: luci-bwc: skip "." and ".." when finding netdevs
Skip the "." and ".." directory entries of "/sys/class/net/" instead of
passing them on to libiwinfo's probe function. This avoids a situation
where the kernel requests a modprobe of "netdev-." and "netdev-.." over
and over again, resulting in high load on lower end systems.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
16f0997bdbf85df0c7bae7f0773a118714d15cdf)
Hannu Nyman [Sun, 29 Mar 2020 07:01:58 +0000 (10:01 +0300)]
Merge pull request #3793 from stangri/19.07-luci-app-simple-adblock
[19.07] luci-app-simple-adblock: better status/error display, better service control
Stan Grishin [Sun, 29 Mar 2020 05:22:37 +0000 (05:22 +0000)]
luci-app-simple-adblock: better status/error display
Signed-off-by: Stan Grishin <stangri@melmac.net>
Dirk Brenken [Wed, 25 Mar 2020 07:38:07 +0000 (08:38 +0100)]
luci-app-openvpn: fix upload input validator
* accept/replace common '.' seperator in instance names as well,
see comment in #2235
Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit
51579cd49e67890a427bb56a76dc49719d39a9f6)
Jo-Philipp Wich [Thu, 26 Mar 2020 21:02:42 +0000 (22:02 +0100)]
luci-mod-network: add WPA3-EAP and mixed WPA2/WPA3-EAP settings
Fixes: #3363
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit
cae804536785cac5d5a2b3b8e3b9d38c1e623148)
Jo-Philipp Wich [Thu, 26 Mar 2020 18:14:47 +0000 (19:14 +0100)]
luci-app-firewall: use Firewall.removeZone() helper
Fixes: FS#2932
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2932
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
0ff4dc822b62bdc4abc925a2d1a6b8641defa98a)
Jo-Philipp Wich [Thu, 26 Mar 2020 18:12:38 +0000 (19:12 +0100)]
luci-base: firewall.js: fix Firewall.removeZone()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
4c55e8226d7d6808ad7aa7d9a420dfda628a89f0)
Hannu Nyman [Sat, 21 Mar 2020 19:57:43 +0000 (21:57 +0200)]
Merge pull request #3777 from aparcar/noci-19
[19.07]CI: remove circleci
Paul Spooren [Sat, 21 Mar 2020 19:54:03 +0000 (09:54 -1000)]
CI: remove circleci
LuCI packages are mostly architecture independent and therefore require
no compile checks.
Signed-off-by: Paul Spooren <mail@aparcar.org>
Jo-Philipp Wich [Sat, 21 Mar 2020 16:54:26 +0000 (17:54 +0100)]
Merge pull request #3763 from oofnikj/openwrt-19.07
add ipv6 firewall view
Jordan Sokolic [Mon, 16 Mar 2020 07:57:45 +0000 (09:57 +0200)]
luci-app-statistics: add ipv6 firewall view
Signed-off-by: Jordan Sokolic <oofnik@gmail.com>
Jo-Philipp Wich [Sun, 22 Dec 2019 17:46:16 +0000 (18:46 +0100)]
luci-theme-rosy: mark as broken
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
fff15e4e712a4ac5bda9cdb4280445eec502ddbb)
Jo-Philipp Wich [Sun, 15 Mar 2020 16:48:40 +0000 (17:48 +0100)]
themes: ensure that data-page attribute is escaped
Fixes: #3757
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
5d7dc391d4af4ad5dd6d7e1f6ef9891aa21fd220)
Jo-Philipp Wich [Sat, 7 Mar 2020 09:54:53 +0000 (10:54 +0100)]
Revert "luci-base: require minimum versions of rpcd and cgi-io"
This reverts commit
fb679333a5c0dbba66809559dac2badbc7dcba04.
Version constraints are not correctly handled by luci-app-opkg.
Ref: https://forum.openwrt.org/t/something-changed-luci-compat/56959/5
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 6 Mar 2020 16:35:03 +0000 (17:35 +0100)]
Revert "luci-base: move unused tools.webadmin class to luci-compat"
This reverts commit
a22e8bc2e5ce44e0bc20368c6b5cb303a95e8999.
Moving the class file causes too much churn in stable due to the
need to upgrade luci-base for legacy apps.
Ref: #3726
Ref: https://forum.openwrt.org/t/package-install-issues/57010
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 4 Mar 2020 19:21:23 +0000 (20:21 +0100)]
luci-app-firewall: tools.firewall: properly handle protocol 0
The existing code failed to anticipate that '' == 0 in JS.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
2c036b36ce76c3c7430bf936e131f0d9d4ab83c4)