Commit graph

10109 commits

Author SHA1 Message Date
Hannu Nyman
cb54693a77
Merge pull request #2991 from stangri/18.06-luci-app-simple-adblock
[18.06] luci-app-simple-adblock: support for varios DNS resolvers/options
2019-08-18 20:14:33 +03:00
Hannu Nyman
4608d789f2
Merge pull request #2988 from stangri/18.06-luci-app-advanced-reboot
[18.06] luci-app-advanced-reboot: support for Linksys EA8300
2019-08-18 20:13:25 +03:00
Stan Grishin
0545392d50 [18.06] luci-app-simple-adblock: support for varios DNS resolvers/options
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-08-17 06:15:19 -07:00
Stan Grishin
3c25ab8f7b [18.06] luci-app-advanced-reboot: luci-app-advanced-reboot: support for Linksys EA8300
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-08-17 04:29:16 -07:00
Jo-Philipp Wich
44683453b9 protocols: fix contains_interface() implementation in several backends
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1fc8d021ed)
2019-08-06 15:21:17 +02:00
Jo-Philipp Wich
0cbc51f297 luci-lib-ip: support specifying source address in route()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d73553e530)
2019-08-06 15:21:17 +02:00
Jo-Philipp Wich
89e029c59f luci-base: index.html: add extend cache-control directive
Fixes: #2942
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1fe45a9344)
2019-08-01 15:44:52 +02:00
xiongjie
44efaf5777 luci-base: redirect root path to /cgi-bin/luci/
Fix openwrt/luci#1062
Signed-off-by: MonwF <boluo2@gmail.com>
(cherry picked from commit fd3d2b468f)
2019-08-01 15:44:51 +02:00
Jo-Philipp Wich
28ab21dd8d luci-base: handle application/json replies with charset specification
On my router, the response header Content-Type is
`application/json; charset=UTF-8` instead of `application/json`, so
almost every feature is broken.

Fixes: #2851
Suggested-by: zhanhb <6323014+zhanhb@users.noreply.github.com>
[reword commit subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-26 12:46:39 +02:00
Jo-Philipp Wich
a388be0f28 luci-proto-ppp: align keepalive defaults with current OpenWrt
Disabling LCP echos by *not* setting "option keepalive" was broken in
OpenWrt since https://dev.archive.openwrt.org/ticket/2373.html so setting
"0" in LuCI had the effect of reverting back to "5, 1" while the help
suggested otherwise.

Support for "keepalive 0" was fixed with https://git.openwrt.org/555c59230
so align LuCI now to emit "option keepalive 0" instead of removing the
option when entering "0" in the gui.

Fixes #2112
Signed-off-by: Jo-Philipp Wich <jo@mein.io>

(cherry picked from commit 1b2065d0be)
2019-07-19 21:04:34 +02:00
Hannu Nyman
35357e4e41
Merge pull request #2841 from stangri/18.06-luci-app-advanced-reboot
[18.06] luci-app-advanced-reboot: fix README url in Makefile
2019-07-09 18:26:54 +03:00
Stan Grishin
0dab6af45a [18.06] luci-app-advanced-reboot: fix README url in Makefile
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-07-08 12:43:38 -07:00
Anton Kikin
9c5162d596 Fix a overview page style issue for various themes
Fixed a overview page style issue with interface boxes for
bootstrap, material and rosy themes.

The issue only appears in the Chrome browser and lies in the
fact that the block with the device name and MAC address gets
out of the  interface block.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
(backported from commit 5d26fec0bf)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-08 18:24:38 +02:00
Hannu Nyman
7d8df17dfa
Merge pull request #2831 from stangri/openwrt-18.06-luci-app-advanced-reboot
[18.06] luci-app-advanced-reboot: kernel version length bugfix + add routers
2019-07-07 08:53:14 +03:00
Stan Grishin
e277f936db [18.06] luci-app-advanced-reboot: kernel version length bugfix + add routers
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-07-06 14:51:42 -07:00
Yousong Zhou
dbaae4a815 luci-base: hide autocomplete-preventing password input with bigger offset
Fixes openwrt/luci#2624

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 3a24c2dbaa)
2019-07-06 15:10:25 +00:00
Yousong Zhou
4235fb0125 luci-base: nowrap for password input and reveal button
Fixes openwrt/luci#2624

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry-picked from commit 609f5290c8)
2019-07-06 15:10:25 +00:00
Jo-Philipp Wich
9e3f710cac luci-base: remove fake password field from tab order
Set a negative tabindex on the dummy password field to not break the form
tab order flow.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 8c77975d1b)
2019-07-06 15:10:03 +00:00
Hannu Nyman
b836c15a3d
Merge pull request #2827 from stangri/openwrt-18.06-luci-app-simple-adblock
luci-app-simple-adblock: sync with the latest version of simple-adblock
2019-07-06 09:26:55 +03:00
Stan Grishin
8d88f77dc6 luci-app-simple-adblock: sync with the latest version of simple-adblock
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-07-05 08:44:03 -07:00
Hannu Nyman
cbc000bc5c timezone data: update to 2019b
Update timezone data to 2019b

http://mm.icann.org/pipermail/tz-announce/2018-December/000055.html
http://mm.icann.org/pipermail/tz/2019-July/028249.html

2019a:
* Palestine "springs forward" on 2019-03-30 instead of 2019-03-23.
* Brazil no longer observes DST.

2019b:
* Palestine's 2019 spring-forward transition was on 03-29, not 03-30.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 2f769ee087)
2019-07-05 18:03:07 +03:00
Jo-Philipp Wich
0593f93526 lucihttp: update to latest Git HEAD
a34a17d src: allow overriding buffer size from cli in multipart tester
730a46f lib: fix potentially lost bytes in boundary parsing across buffer limits
8734af2 lib: add buffer tracing to multipart parser
913051b src: add file dump option to multipart test utility
c419539 src: allow specifying custom buffer sizes in multipart testcases
f6e0564 lib: fix handling of empty multipart fields

Fixes: #2816
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 66c8ebfeff)
2019-07-05 08:28:26 +02:00
Hannu Nyman
9bab4ba393 luci-base: show niced processes on Status/Processes page
Modify the process status filter to allow also the processes
with a nice value to be visible on the Status/Processes page.

Filter out the top process itself.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 1c80eb1962)
2019-06-30 19:57:31 +03:00
Jo-Philipp Wich
4d6d8bc5b0
Merge pull request #2776 from pmelange/18x-freifunk-profiles-dns-server-update
18.06.x freifunk community-profiles: update profiles to use the new digitalcourage nameservers
2019-06-19 10:54:54 +02:00
pmelange
e84dc64f9a community-profiles: update profiles to use the new digitalcourage nameservers
The old digitalcourage nameservers 85.214.20.141 and 2a01:238:42f6:ac00:2a29:4f7f:b6d:ef46
will be retired in 2020.  The new nameservers are 46.182.19.48 and 2a02:2970:1002::18.

The change is announced https://digitalcourage.de/support/zensurfreier-dns-server

This fixes https://github.com/freifunk/openwrt-packages/issues/11

This is cherry-picked from 2c4a93e646

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2019-06-18 12:49:37 +02:00
Hannu Nyman
1d599a7d88 treewide: fix datetype/datatype typo
Fix the "datetype" typo also in 18.06

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-06-16 18:05:09 +03:00
Jo-Philipp Wich
115c4e3751 lucihttp: fix library packaging after 0dd887883
Adjust ABI_VERSION and install recipes accordingly.

Fixes: 0dd887883 ("lucihttp: update to latest Git HEAD")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit c8e9578586)
2019-06-05 19:44:54 +02:00
Jo-Philipp Wich
9fc05682f6 luci-mod-system: fix SimpleForm usage on file editing pages
When a value identical to the stored one is submitted, the CBI framework
will not emit an option write event and therfore not store the value in
the form data dictionary passed to SimpleForm.handle().

This usage pattern usally works be accident for file editor views such
as admin_system/crontab because \r\n windows style line endings are
substituted with unix \n ones before writing the data, defeating the
equality check in CBI.

When a single line without trailing newline is submitted however, the
CBI will not see a difference to the data stored in the file and clear
out the value on subsequent saves.

This commit alignes the logic used by various SimpleForm views to
behave identically and predictable:

 - File data is handled in the SimpleForm.handle() callback
 - The forcewrite property is used to disable equality checks
 - Submission of an empty string empties the backing file

Fixes: #2737
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1c09ee5e42)
2019-06-05 16:16:48 +02:00
Jo-Philipp Wich
0dd8878837 lucihttp: update to latest Git HEAD
f6e0564 lib: fix handling of empty multipart fields
91c01c3 lib: fix multipart state transition in boundary parsing

Fixes: #2737
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 15608fd2e5)
2019-06-05 16:16:41 +02:00
Jo-Philipp Wich
7e9de0d25f themes: don't reset theme on package upgrades
Fixes: #2743
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 5fd071aadb)
2019-06-03 16:53:02 +02:00
Jo-Philipp Wich
84692e5bf6 luci-mod-admin-network: fix VLAN "add" button for empty switches
Fixes OpenWrt FS#2270.

Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2270
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 6b7afabcdd)
2019-05-07 08:56:03 +02:00
pmelange
b99e77d5c3 remove artifacts from de3be23883
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2019-03-20 17:02:50 +01:00
pmelange
5248d3719e freifunk profile_berlin: add default section for 802.11s
mesh_id is set to "Mesh-Freifunk-Berlin"

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2019-03-19 01:27:20 +01:00
pmelange
de3be23883 freifunk-common: add default configuration for 802.11s interfaces
The defaults are

config 'defaults' 'wifi_iface_80211s'
       option 'mode' 'mesh'
       option 'encryption' 'none'
       option 'mesh_id' 'Mesh-Freifunk'
       option 'mesh_fwding' '0'

The decision for the name of the section can be found here:
https://github.com/freifunk/openwrt-packages/pull/3

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2019-03-19 01:27:20 +01:00
Paul Spooren
071e540e37 luci-app-attendedsysupgrade: refactor and format
* Reuse `request_dict` between requests.
* used vim Autoformat plugin to make the javascript code nice.
* add board_name as it eventually replaces board/model in requests

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-03-18 12:25:24 +01:00
Paul Spooren
76cf6533d0 luci-app-attendedsysupgrade: update to new api
there was a major rewrite of the database structure

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-02-20 16:28:18 +01:00
Jo-Philipp Wich
30d9bc02b2 luci-app-nlbwmon: Fixed incorrect period parameter/display
Switch from using the unreliable string data constructor syntax to
a more explicit year / month / day variant and pass through the
period value as-is in order to ensure that the proper start date
is requested from the backend.

This should fix issues with prevent the display of older data
periods in the nlbwmon gui.

Ref: https://github.com/jow-/nlbwmon/issues/25
Ref: https://github.com/openwrt/luci/pull/2496
Suggested-by: Aktanusa <chanam.geo@yahoo.com>
[squashed commits, add a more thorough commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>

(backported from commit bd56c1aac6)
2019-02-15 12:21:09 +01:00
Jo-Philipp Wich
23029f5163 treewide: avoid double-escaping CBI section labels
Since the section labels are already HTML-escaped implicitely by the
striptags() function, we must not escape them again in attr() or
ifattr().

Fixes: #2524
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit eda8f02dac)
2019-02-12 08:35:02 +01:00
Jo-Philipp Wich
28e852f4e0 luci-base: dispatcher: support raw values in attr() and ifattr()
Extend the attr() and ifattr() template functions to take an optional
further parameter indicating that the passed value should not be escaped.

This is needed for cases where the input already is escaped through
other means, e.g. when the value was previously filtered through the
striptags() template helper.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4141243762)
2019-02-12 08:34:01 +01:00
Hannu Nyman
a0ae6c97f3
Merge pull request #2504 from aparcar/openwrt-18.06
luci-app-attendedsysupgrade: fixup error_box
2019-02-03 11:46:02 +02:00
Paul Spooren
ac90b1bc37 luci-app-attendedsysupgrade: fixup error_box
Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-02-03 01:20:13 +01:00
Hannu Nyman
449d5ad6d5
Merge pull request #2494 from aparcar/18.06-unify
18.06: luci-app-attendedsysupgrade: new api, unify status
2019-02-02 16:09:05 +02:00
Paul Spooren
98ae788eb3 luci-app-attendedsysupgrade: new api, unify status
to distinguish between installed packages and requested packages, the
API call is now "installed" instead of "packages".

The clients now decide on their own if they want http or https,
therefore the server doesn't reply with full links, only the path.

Add missing variable declarations in JavaScript code

Fix typos in UI strings

Also unify "info_box" and "error_box" to "status_box"

Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-02-02 14:39:31 +01:00
Jo-Philipp Wich
4c45a52592 luci-mod-rpc: drop "secret" value from rpc session objects
Drop the "secret" value from RPC session objects in order to make them
compatible with ordinary web sessions used by the LuCI web interface.

That secret value was never used for anything and is the only difference
compared to normal LuCI login sessions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 766643fcf1)
2019-01-30 16:52:18 +01:00
Josef Schlehofer
43959e3abd
luci-app-lxc: add aarch64 to target map
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit f335624407)
2019-01-30 15:41:48 +01:00
James Buren
3ff3b9e860
luci-app-lxc: add i686 to target map
Add i686 to target map so i386 container templates are usable.

Signed-off-by: James Buren <ryuo@ryuo.xyz>
(cherry picked from commit 9630e7e994)
2019-01-30 15:41:21 +01:00
Anton Kikin
6f6641d97d luci-base: fix UCI changelog markup mistake
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
(cherry picked from commit 43c7cb344c)
2019-01-20 12:34:55 +01:00
Jo-Philipp Wich
a11f4ac2eb treewide: rework uci change display
- Use native rpcd uci changes format instead of incompletely converting
   back and forth between the old and the new format
 - Rework uci changelog template to print the equivalent uci commands
   for the various changes
 - Rework theme headers to properly count the uncomitted changes
 - Rework theme CSS to properly style new changelog

Fixes: #2170

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 849d153851)
2019-01-20 12:28:39 +01:00
Jo-Philipp Wich
f1a5b179dd luci-base: fix cbi dropdown quirks with MS Edge
On MS Edge, the behaviour of "value" attributes on "li" elements is
unreliable, so use the "data-" prefix to circumvent the problem.

Ref: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/19320991/
Fixes: #2224
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9e6949849d)
2019-01-20 12:00:37 +01:00
Jo-Philipp Wich
1f423b1141
Merge pull request #2451 from pmelange/backport/PR2450-luci_mod-freifunk_basics
Backport 18.06: luci-mod-freifunk: fix the list of community profiles
2019-01-11 16:14:56 +01:00