Commit graph

12015 commits

Author SHA1 Message Date
Jo-Philipp Wich
4a2281814d luci-app-firewall: support 'helper' and 'set_helper' parameters for rules
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d601e79da5)
2020-01-28 18:30:39 +01:00
Jo-Philipp Wich
c722cf3c46 luci-app-firewall: support 'direction' and 'device' parameters for rules
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 267085cf2d)
2020-01-28 18:30:39 +01:00
Jo-Philipp Wich
f8265cefc7 luci-app-firewall: fix family display for port forwards
The underlying fw3 program currently only does IPv4 port forwards while
LuCI incorrectly reports IPv4 + IPv6 for each forward. Adjust the text
accordingly to fix this.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a178cdb5cf)
2020-01-28 18:30:39 +01:00
Jo-Philipp Wich
1787cd4a4c luci-app-firewall: introduce support for "config nat" sections
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit c8b8ae6b8e)
2020-01-28 18:29:51 +01:00
Jo-Philipp Wich
37b0a263bf luci-base: add L.media() URL construction helper
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b60b4790d1)
2020-01-28 11:15:21 +01:00
Hannu Nyman
038050a912
Merge pull request #3578 from Andy2244/luci-app-smbd-rename_luci-app-ksmbd-(19.07)
[19.07] luci-app-smbd: rename to luci-app-ksmbd
2020-01-28 06:55:37 +02:00
Andy Walsh
c73f1ef5d4 luci-app-smbd: rename to luci-app-ksmbd
* follow upstream name change to ksmbd
* remove old artifacs from "applications\luci-app-cifsd\po\"

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2020-01-27 22:09:08 +01:00
Hannu Nyman
f519510f84 i18n: fix locale codes (nextdns, vpn-policy-routing)
Fix Chinese locale codes for luci-app-nextdns and luci-app-vpn-policy-routing

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-01-26 23:04:56 +02:00
Hannu Nyman
2db59e4f23 treewide: i18n - sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-01-26 22:52:53 +02:00
Hannu Nyman
0bef1804ed luci-mod-system: remove abbreviation from LED config menu item
Remove the abbreviation coding from the menu item, as it does nor work
in menu and seems to prevent translation of the menu item.

(This was the only menu item in LuCI that had abbr logic.)

Reference to #3553

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 2a1a9874f5)
2020-01-24 20:54:51 +02:00
Jo-Philipp Wich
b349428e16 luci-lib-ip: explicitly initialize address scope value
Explicitly initialize the address scope value to zero in parse_cidr() and
L_setaddr() to avoid stray scope identifiers getting added when formatting
the address object as string.

Fixes: 1d2b4c777 ("luci-lib-ip: support scoped IPv6 addresses")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5cbbfaba3e)
2020-01-23 12:37:40 +01:00
Florian Eckert
421791dcad luci-theme-material: fix button position on modal save
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 71743a7ef6)
2020-01-21 09:27:24 +01:00
Jo-Philipp Wich
8e8ead8db3 luci-app-openvpn: allow and restrict file uploads to /etc/openvpn/
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit cc01770fa1)
2020-01-20 19:41:49 +01:00
Jo-Philipp Wich
17501c6e5e luci-compat: upload.htm: expose root_directory and initial_directory
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 878d662282)
2020-01-20 19:41:49 +01:00
Jo-Philipp Wich
2d286c76b7 luci-base: ui.js: UIFileUpload fixes
- Introduce a new option `initial_directory` which describes the initial
   directory to display when nothing is selected, default to the root
   directory

 - Prevent stray legacy cbi reloads when deselecting files

 - Fix within-root-directory-check for initial rendering

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 136b965b25)
2020-01-20 19:41:49 +01:00
Jo-Philipp Wich
3aeda2a2ea luci-mod-status: refactor luci-bwc
- Read interface statistics from /sys/class/net/
 - Discover all wireless interfaces, not just specifically named ones

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8b1d831935)
2020-01-20 18:58:40 +01:00
Florian Eckert
c395d43807 luci-theme-material: fix apply dropdown color
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 1c49bda198)
2020-01-20 14:15:20 +01:00
MartB
dc79166bd3 luci-theme-*: remove modal max-height #3383 v2
Signed-off-by: MartB <mart.b@outlook.de>
(cherry picked from commit c6122af7ea)
2020-01-19 20:19:02 +01:00
Jo-Philipp Wich
66e1415122 luci-theme-bootstrap: add CSS fixes for tooltip elements
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0d97ea26f8)
2020-01-19 20:17:03 +01:00
Jo-Philipp Wich
2f219f85fc luci-base: form.js: add a new "contains" dependency mode
By tagging option dependencies with `!contains`, dependencies are
considered satisfied when the value is contained in the value of
a related field, instead of being equal to it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 601c4ee01e)
2020-01-19 20:15:52 +01:00
Jo-Philipp Wich
80dcda8a29 luci-base: form.js: don't stringify node arguments in CBIValue.value()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4670099a20)
2020-01-19 20:15:52 +01:00
Jo-Philipp Wich
ae2243cb60 luci-base: ui.js: support clearChoices()/addChoices() for DynLists
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit cc123a03ce)
2020-01-19 20:15:52 +01:00
Jo-Philipp Wich
f1d10ca9ab luci-base: ui.js: use placeholder as select placeholder in DynLists
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9733a182e8)
2020-01-19 20:15:52 +01:00
Jo-Philipp Wich
b3815b00e2 luci-base: ui.js: properly handle rich choices in Dropdowns, DynLists
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4c52718dea)
2020-01-19 20:15:52 +01:00
Jo-Philipp Wich
f400982da4 luci-base: fs.js: properly escape arguments in exec_direct()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e884b63916)
2020-01-19 20:13:39 +01:00
Jo-Philipp Wich
b26f16f241 luci-base: fs.js: add read_direct() and exec_direct() functions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f3724e46a5)
2020-01-19 20:13:06 +01:00
Jo-Philipp Wich
f463570590 luci-base: cbi.js: collapse whitespace before language string hashing
To mirror the behavior of the Lua runtime, we need to collapse whitepace
in translation source strings before doing the string table lookup.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit aca2c4ba4e)
2020-01-19 20:12:02 +01:00
David Lam
e994b09333 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 27b21c2a62)
2020-01-19 20:10:49 +01:00
Dirk Brenken
8f57e814d9
luci-app-travelmate: bugfix add/editing WPA3 uplinks
* see forum post
https://forum.openwrt.org/t/travelmate-support-thread/5155/318

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 9ca877e08e)
2020-01-18 07:42:16 +01:00
Stan Grishin
5baeb64b49 luci-app-vpn-policy-routing: styling bugfix
Signed-off-by: Stan Grishin <stangri@melmac.net>
(cherry picked from commit 87b9fabc89)
2020-01-16 09:54:01 +01:00
Jo-Philipp Wich
a13689c800 luci-proto-modemmanager: drop package
The corresponding modemmanager package is not available in 19.07.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-16 09:07:19 +01:00
Jo-Philipp Wich
48107c0679 luci-theme-bootstrap: fix invalid dropdown state styling
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3c5feae57c)
2020-01-16 09:06:54 +01:00
Jo-Philipp Wich
e01ef08442 luci-base: form.js: fix immediate validation of activated options
When form options are activated because their dependencies are satisified,
ensure that an immediate validation is triggered to highlight potential
errors without having the user to activate another form control first.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 77c2998f32)
2020-01-16 09:06:53 +01:00
Hannu Nyman
335692a738 treewide: i18n - sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-01-10 18:41:34 +02:00
Hannu Nyman
d0bee8fba9
Merge pull request #3493 from stangri/19.07-luci-app-advanced-reboot
[19.07] luci-app-advanced-reboot: pluggable device files, highlight current partition
2020-01-10 17:20:11 +02:00
Stan Grishin
3110451303 luci-app-advanced-reboot: pluggable device files, highlight current partition
Signed-off-by: Stan Grishin <stangri@melmac.net>
2020-01-10 07:54:31 -07:00
Hannu Nyman
de34495d28 build: sort location annotation table in i18n sync process
The scanning routine has caused unnecessary changes to the .po files
if a string has been found in multiple files and those files have been
found in different order than the previous time.

Sort the location annotations to avoid unnecessary changes to the .po files.
(sort is alphabetic, so the line numbers are also sorted alphabetically)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
[apply a Schwartzian transform to sort locations by path, then line number]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 460bdfe814)
2020-01-08 20:23:24 +01:00
Jo-Philipp Wich
35aa527059
Merge pull request #3468 from urbalazs/translation-backport-19.07-20200105
i18n: backport translations from master branch
2020-01-06 08:25:38 +01:00
Balázs Úr
18b967cba0 i18n: backport translations from master branch
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
2020-01-06 00:26:47 +01:00
Hannu Nyman
1c313bda3a
Merge pull request #3459 from Andy2244/luci-app-smbd-rename-(19.07)
[19.07] luci-app-smbd: rename change cifsd->smbd
2020-01-05 11:44:11 +02:00
Jo-Philipp Wich
71c80a03ce luci-app-firewall: fix zone network default
When a `config zone` section lacks an `option network` or `list network`
setting, its contained interface list defaults to the name of the zone,
e.g. a zone named `foo` will implicitely contain the network `foo` unless
a deviating or empty `option network` is specified.

Adjust the zones.js model accordingly to reflect that implicit default.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d60a1a13b0)
2020-01-04 18:49:10 +01:00
Andy Walsh
902ffe7b92 luci-app-smbd: rename change cifsd->smbd
* update for name change cifsd->smbd
* add version code for: kmod, usmbd
* regen translations
* update acl's

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2020-01-04 05:30:14 +01:00
Hannu Nyman
fe96439b4c
Merge pull request #3456 from stangri/19.07-luci-app-vpn-policy-routing
luci-app-vpn-policy-routing: add note about default routing
2020-01-03 08:51:46 +02:00
Stan Grishin
42e4a23deb luci-app-vpn-policy-routing: add note about default routing
Signed-off-by: Stan Grishin <stangri@melmac.net>
2020-01-02 21:14:34 -07:00
Hannu Nyman
a44e6b3572
Merge pull request #3447 from stangri/19.07-luci-app-vpn-policy-routing
[19.07] luci-app-vpn-policy-routing: initial release
2019-12-31 17:23:35 +02:00
Stan Grishin
6accb3f418 luci-app-vpn-policy-routing: initial release
Signed-off-by: Stan Grishin <stangri@melmac.net>
2019-12-30 07:51:55 -07:00
Jo-Philipp Wich
00397cd8a4 luci-app-firewall: update rule ip hints based on address family
Fixes: #3119
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d07cfba160)
2019-12-30 14:52:27 +01:00
Jo-Philipp Wich
344609e9ee luci-base: form.js: implement AbstractValue.getUIElement()
Introduce a new method `getUIElement()` which simplifies obtaining the
underlying per-section UI widget class instance for a from option object.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9e25917432)
2019-12-30 14:52:27 +01:00
Jo-Philipp Wich
b440eafb69 luci-base: ui.js: implement UIDropdown.{add,clear}Choices()
The new `addChoices()` and `clearChoices()` functions allow clearing and
adding new options to existing dropdown instances respectively.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b0836b037e)
2019-12-30 14:52:27 +01:00
Jo-Philipp Wich
bb07c50f5e luci-base: ui.js: expose UIElement class as AbstractElement
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0d0a3f4d0d)
2019-12-30 14:52:27 +01:00