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)
Jo-Philipp Wich [Wed, 4 Mar 2020 08:56:45 +0000 (09:56 +0100)]
luci-base: require minimum versions of rpcd and cgi-io
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 4 Mar 2020 08:49:13 +0000 (09:49 +0100)]
luci-base: move unused tools.webadmin class to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 4 Mar 2020 08:29:07 +0000 (09:29 +0100)]
luci-theme-bootstrap: fix overview wireless display quirks
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
aa2445cdd85109987b893fb950adbe7d3ef2dddb)
Jo-Philipp Wich [Tue, 18 Feb 2020 12:58:52 +0000 (13:58 +0100)]
luci-mod-status: don't drop lines with negated addresses
Fixes: #3642
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
c3b07fb3586500afb6395bef6fe05ac8ae008df7)
Jo-Philipp Wich [Wed, 4 Mar 2020 07:25:15 +0000 (08:25 +0100)]
luci-mod-status: routes.js: remove debug code
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
acef56726c09e9eed15165be17aa955bf93d2e93)
Jo-Philipp Wich [Sun, 29 Dec 2019 22:03:58 +0000 (23:03 +0100)]
luci-mod-status: reimplement route status page as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit
16d049f7cd76f0e309814a2b09cde32ff680d962)
Jo-Philipp Wich [Sat, 21 Dec 2019 19:28:25 +0000 (20:28 +0100)]
luci-mod-status: reimplement log pages as client side views
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit
939b371bc72f4c020c499c815f636dafc296829a)
Jo-Philipp Wich [Sat, 21 Dec 2019 18:23:10 +0000 (19:23 +0100)]
luci-mod-status: reimplement iptables status page as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit
b9bb34612e28a239153dd2e041921a50e4d7578f)
Jo-Philipp Wich [Wed, 18 Dec 2019 20:57:01 +0000 (21:57 +0100)]
luci-mod-status: replace iptables controller actions with cgi-io calls
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit
43a4481e103d764d6f656f2ed1f5c57f8580858e)
Jo-Philipp Wich [Wed, 18 Dec 2019 20:32:48 +0000 (21:32 +0100)]
luci-mod-network: replace controller address check action with cgi-io script
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit
3a657b8ab585f6e0fef5c9128dc84c5a008a6969)
Jo-Philipp Wich [Sun, 15 Dec 2019 21:35:21 +0000 (22:35 +0100)]
luci-mod-network: reimplement diagnostics page as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit
ab07b8c4d960925fe3467ea666871965b5b34259)
Jo-Philipp Wich [Wed, 12 Feb 2020 10:38:53 +0000 (11:38 +0100)]
luci-base: fs.js: exec_direct(): add ability to encode command as latin1
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
dc60aaeb77575bc261331ba1ea288d18c330f160)
Jo-Philipp Wich [Thu, 30 Jan 2020 10:58:15 +0000 (11:58 +0100)]
luci-base: fs.js: support Blob/JSON in read_direct() and exec_direct()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
da4b0f0483024066a163080324638eb3761bd3aa)
Jo-Philipp Wich [Thu, 30 Jan 2020 10:45:46 +0000 (11:45 +0100)]
luci-base: luci.js: allow overriding response type for requests
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
478ed0d886af87415efb2ad81e59ae7027a80d6d)
Ansuel Smith [Wed, 15 Jan 2020 23:30:30 +0000 (00:30 +0100)]
luci-base: remove hardcoded cgi-bin path
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>
(cherry picked from commit
5e6ec8562fe828934ef835490cee405653b06d3a)
Jo-Philipp Wich [Tue, 3 Mar 2020 20:35:11 +0000 (21:35 +0100)]
treewide: resync and merge master translations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Balázs Úr [Tue, 17 Dec 2019 10:41:00 +0000 (11:41 +0100)]
luci-base: fix typos
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
(backported from commit
d0bc86bcc3fc0c6668e04601344daa956cea2b32)
Jo-Philipp Wich [Tue, 3 Mar 2020 20:14:04 +0000 (21:14 +0100)]
luci-proto-wireguard: remove peer sections when deleting interface
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
890dcac2de7b1d6bc6768c69ea7129d27a809ef9)
Jo-Philipp Wich [Tue, 3 Mar 2020 20:30:32 +0000 (21:30 +0100)]
luci-base: network.js: gracefully handle deleteConfiguration() rejects
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
d5f30d335ff0651a3291e350602cba7409cf1e4a)
Jo-Philipp Wich [Tue, 3 Mar 2020 20:12:44 +0000 (21:12 +0100)]
luci-base: network.js: add Protocol.deleteConfiguration() callback
Add a new Protocol.deleteConfiguration() callback function which can be
overridden by protocol handler to perform additional cleanup tasks, such
as unsetting related uci entries which are not part of the interface
configuration itself.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
a22aba2fed7b95f241b70c215e23e5699a3ff9d9)
Stefan Sundin [Thu, 27 Feb 2020 02:53:49 +0000 (18:53 -0800)]
luci-app-adblock: Fix enter key submitting form but not showing any results.
Signed-off-by: Stefan Sundin <git@stefansundin.com>
(cherry picked from commit
872693761117238aa5caff0408612a7467bb6a89)