Commit graph

9993 commits

Author SHA1 Message Date
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
Jo-Philipp Wich
8fe6f04d61
Merge pull request #2449 from pmelange/backport/PR2448-luci_mod-freifunk_get_all
Backport 18.06: luci-mod-freifunk: replace calls to get_all() with separate get() calls
2019-01-11 16:14:37 +01:00
pmelange
14456d30fb luci-mod-freifunk: fix the list of community profiles
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2019-01-11 14:00:15 +01:00
pmelange
fb9721244c luci-mod-freifunk: replace calls to get_all() with separate get() calls
The get_all() function has changed and how it was used before no
longer works properly.  These changes not only change to individual
get() calls, but actually adds to the readability of the code and reduces
file size.

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2019-01-11 13:01:42 +01:00
Hannu Nyman
04d60f2144 timezone data: update to 2018i
Update timezone data to 2018i

http://mm.icann.org/pipermail/tz-announce/2018-December/000053.html
http://mm.icann.org/pipermail/tz-announce/2018-December/000054.html

2018h:
* Qyzylorda, Kazakhstan moved from +06 to +05 on 2018-12-21.
* New zone Asia/Qostanay because Qostanay, Kazakhstan didn't move.
* Metlakatla, Alaska observes PST this winter only.
* Guess Morocco will continue to adjust clocks around Ramadan.
* Add predictions for Iran from 2038 through 2090.

2018i:
* São Tomé and Príncipe switches from +01 to +00 on 2019-01-01.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit c7776c8959)
2019-01-02 21:35:08 +02:00
Jo-Philipp Wich
3dea6b5bc7
Merge pull request #2355 from pmelange/freifunk_backport_18.06
Freifunk-berlin backport 18.06 - OLSR changes and community profiles
2018-12-07 00:09:43 +01:00
pmelange
12534ad03f luci-app-olsr: reenable the "auto refresh" feature
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-12-06 21:31:56 +01:00
pmelange
a3bfc596bf luci-app-olsr change ccs style to use class "left" instead of "style=text-align: left"
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-12-06 21:31:44 +01:00
pmelange
94a1673fc5 luci-app-olsr: make cosmetic changes.
modify the status tables so that then headers and columns align, values
left justified.

Additionally, add the openwrt style interface name to the interfaces table,
change huge  ETX numbers to 'infinate', and add the german translation for
'Selected'.

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-12-06 21:31:27 +01:00
Philipp Borgers
68fb3b279a community-profiles: change subnet of mesh_network option for Berlin
The mesh_network option is used to check the user input. The wizard
checks if the input ip address is part of the mesh_network. We use
multiple /16 networks. There is no support for multiple ranges so we the
10.0.0.0/8.

For reference the ip list:

https://wiki.freifunk.net/IP-Netze

Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
2018-12-06 19:14:50 +01:00
Philipp Borgers
02bd34be15 get rid of library version numbers in luci olsrd code
Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
2018-12-06 19:14:23 +01:00
Martin Hübner
e98580b058 community-profiles: create profile for Fürstenwalde
New profile for Fürstenwalde. At the moment we use parts of the Berlin-
infrastructure. Thus I have not changed the ip-address-related things.

Signed-off-by: Martin Hübner <martin.hubner@web.de>
[reword and rewrap commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-06 19:13:59 +01:00
pmelange
f7e420150f luci-app-olsr: convert olsr.lua and smartgw.htm to new json plugin
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-12-06 19:06:48 +01:00
pmelange
bfad302463 luci-app-olsr: convert mid.htm to new json plugin
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-12-06 19:06:40 +01:00
pmelange
34d13c0c67 luci-app-olsr: convert interfaces.htm to new json plugin
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-12-06 19:06:23 +01:00
pmelange
2dd31c4ff2 luci-app-olsr: convert olsr.lua and overview.htm to new json plugin
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-12-06 19:06:11 +01:00
pmelange
12b0b31bb3 luci-base: network.lua add ipv6-prefix-assignment support to get_status_by_address
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-12-06 19:06:04 +01:00