Jo-Philipp Wich
a22e8bc2e5
luci-base: move unused tools.webadmin class to luci-compat
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-04 09:50:32 +01:00
Jo-Philipp Wich
6e72bec1c2
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 c3b07fb358
)
2020-03-04 08:50:21 +01:00
Jo-Philipp Wich
2af17f2096
luci-mod-status: routes.js: remove debug code
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit acef56726c
)
2020-03-04 08:50:21 +01:00
Jo-Philipp Wich
01d8af7eb6
luci-mod-status: reimplement route status page as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 16d049f7cd
)
2020-03-04 08:50:21 +01:00
Jo-Philipp Wich
4306c1859a
luci-mod-status: reimplement log pages as client side views
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 939b371bc7
)
2020-03-04 08:50:21 +01:00
Jo-Philipp Wich
b2129101db
luci-mod-status: reimplement iptables status page as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit b9bb34612e
)
2020-03-04 08:50:21 +01:00
Jo-Philipp Wich
72205026ed
luci-mod-status: replace iptables controller actions with cgi-io calls
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 43a4481e10
)
2020-03-04 08:50:21 +01:00
Jo-Philipp Wich
50722058cf
luci-mod-network: replace controller address check action with cgi-io script
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 3a657b8ab5
)
2020-03-04 08:50:21 +01:00
Jo-Philipp Wich
c6a6d25cd5
luci-mod-network: reimplement diagnostics page as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit ab07b8c4d9
)
2020-03-04 08:50:21 +01:00
Jo-Philipp Wich
598e368518
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 dc60aaeb77
)
2020-03-04 08:50:21 +01:00
Jo-Philipp Wich
9b90ff9d55
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 da4b0f0483
)
2020-03-04 08:50:21 +01:00
Jo-Philipp Wich
ad4c2f5ae9
luci-base: luci.js: allow overriding response type for requests
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 478ed0d886
)
2020-03-04 08:50:21 +01:00
Ansuel Smith
c1fd6f5222
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 5e6ec8562f
)
2020-03-04 08:50:21 +01:00
Jo-Philipp Wich
7295b326de
treewide: resync and merge master translations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-03 21:41:07 +01:00
Balázs Úr
9e5e16cf65
luci-base: fix typos
...
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
(backported from commit d0bc86bcc3
)
2020-03-03 21:33:33 +01:00
Jo-Philipp Wich
30972e159d
luci-base: network.js: gracefully handle deleteConfiguration() rejects
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d5f30d335f
)
2020-03-03 21:31:50 +01:00
Jo-Philipp Wich
a6f445bf4a
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 a22aba2fed
)
2020-03-03 21:31:50 +01:00
Jo-Philipp Wich
b01cf69536
luci-base: firewall.js: don't treat zone name as network fallback
...
Drop obsolete extra logic which treats the zone name as covered network
name in case the network list is unset. This behaviour applied to the
pre-fw3 uci firewall, but is not supported since fw3 anymore.
Ref: https://forum.openwrt.org/t/luci-zone-creation-bug/55921
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4052436d82
)
2020-03-02 10:12:42 +01:00
Jo-Philipp Wich
70b5982b4c
luci-mod-network: switch.js: fix internal port ordering
...
Fixes : #3709
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1c547d36b5
)
2020-03-02 09:35:04 +01:00
Jo-Philipp Wich
13dd17fca1
treewide: merge master translations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-26 16:20:19 +01:00
Jo-Philipp Wich
02c68f2838
luci-mod-status: hide DHCP status if dnsmasq/odhcpd aren't present
...
Fixes : #3674
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4efc7cbbda
)
2020-02-23 21:14:10 +01:00
Jo-Philipp Wich
657407f927
treewide: resync and backport translations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-21 22:22:17 +01:00
Jo-Philipp Wich
62be6eff08
luci-mod-network: wifi join: allow reclaiming empty wwan networks
...
Fixes : #3660
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 48e18fb8ac
)
2020-02-21 22:20:07 +01:00
Jo-Philipp Wich
4c8f0cdcc8
luci-mod-network: wifi join: add option to lock bssid
...
Fixes : #3661
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 7ec007f926
)
2020-02-21 22:20:07 +01:00
Jo-Philipp Wich
29c29a6b44
luci-mod-network: wifi scan: add button to start/stop refreshes
...
Fixes : #3662
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a2fe3d9fc4
)
2020-02-21 22:20:07 +01:00
Jo-Philipp Wich
da80dcc407
luci-mod-network: explicitely configure "none" encryption in wifi join
...
Fixes : #3663
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9b024767d7
)
2020-02-21 22:20:07 +01:00
Jo-Philipp Wich
85a6f07455
luci-mod-network, luci-mod-status: harmonize wifi signal indicators
...
Fixes : #3636
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2cad20e7ea
)
2020-02-17 09:54:45 +01:00
Jo-Philipp Wich
49999e9879
luci-base: cbi.js: avoid double-initialization of dropdowns
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9ae1f47896
)
2020-02-14 08:46:38 +01:00
Jo-Philipp Wich
69445fa25f
luci-base: luci.js: L.dom.data(): gracefully handle non-node argument
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 308215ca15
)
2020-02-14 08:46:17 +01:00
Jo-Philipp Wich
2665c5fef8
treewide: merge master translation updates
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-14 08:27:50 +01:00
Jo-Philipp Wich
1fdef8cb68
luci-base: form.js: pass section_id to Button onclick handler
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit c1aeb300f6
)
2020-02-13 19:31:34 +01:00
Jo-Philipp Wich
405f5e837f
luci-base: form.js: ButtonValue: pass sid as first onclick argument
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 311bcd4b5c
)
2020-02-13 19:31:34 +01:00
Jo-Philipp Wich
2910f6e6b8
luci-base: extend rollback timeout to 90 seconds
...
Ref: #3628
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 81cf99a507
)
2020-02-13 19:28:38 +01:00
Jo-Philipp Wich
1592197874
luci-base: validation.js: fix integer and float type validation
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 187bef9f6c
)
2020-01-31 17:28:05 +01:00
Jo-Philipp Wich
4f50a4fa83
luci-mod-network: dhcp.js: fix resolvefile option depends
...
Ref: https://forum.openwrt.org/t/resolvfile-option-not-showing/54229
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5d15363408
)
2020-01-31 11:20:41 +01:00
Jo-Philipp Wich
adbbd5cf69
treewide: switch to bcp47 language codes
...
Fixes : #3477
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 48749ca873
)
2020-01-29 13:42:14 +01:00
Jo-Philipp Wich
5879390cd1
luci-base: add another magic security attribute to the sysauth cookie
...
Fixes : #3585
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 885c97da53
)
2020-01-29 09:19:28 +01:00
Jo-Philipp Wich
3f5a67b62e
luci-mod-system: fix zram compression placeholder
...
Fixes : #3583
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b8f65c340c
)
2020-01-29 09:19:28 +01:00
Jo-Philipp Wich
8e2088f8d4
luci-base: make swconfig port state parsing more robust
...
Since swconfig output varies wildly among different switch drivers, rely
on a simpler more robust parsing approach to find the required information.
Ref: https://forum.openwrt.org/t/cannot-read-property-link/50766
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 6d59a6400e
)
2020-01-29 09:19:28 +01:00
Jo-Philipp Wich
84e23d96b4
luci-mod-network: handle missing switch port state information
...
Ref: https://github.com/openwrt/luci/issues/3565
Ref: https://forum.openwrt.org/t/cannot-read-property-link/50766
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 616d44c155
)
2020-01-29 09:19:28 +01:00
Jo-Philipp Wich
42004be7dd
treewide: sync and merge master translations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-29 08:47:34 +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
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
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
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
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
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
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
Balázs Úr
ed6820abc6
i18n: backport translations from master branch
...
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
2019-12-27 17:49:40 +01:00
Hannu Nyman
9cbc4fb7fa
i18n: sync translations
...
Sync translations.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-12-20 08:49:14 +02:00
Jo-Philipp Wich
6aeda9c4c8
luci-mod-network: dhcp.js: fix default state of nonwildcard
...
Fixes : #3415
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ffe81aead3
)
2019-12-16 18:06:03 +01:00
Jo-Philipp Wich
9c88db57fe
luci-mod-network: fix rebind list validation
...
Fixes: 62e28f4b0
("luci-mod-network: dhcp.js: fix address and rebind list validation")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3cdd496946
)
2019-12-16 18:02:11 +01:00
Jo-Philipp Wich
17a7fb7775
luci-mod-network: dhcp.js: fix address and rebind list validation
...
Fixes : #3130
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 62e28f4b0a
)
2019-12-16 17:52:13 +01:00
Jo-Philipp Wich
ddc89b418b
luci-mod-network: re-add DHCPv6 lease status to dnsmasq page
...
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2674
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f6410361c8
)
2019-12-16 17:40:32 +01:00
Jo-Philipp Wich
9ca48ecc93
luci-base: ui.js: ensure that select choice labels are properly escaped
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 71d370a964
)
2019-12-04 18:07:26 +01:00
Jo-Philipp Wich
4193a20d5e
luci-base: ui.js: properly escape dynlist items for rendering
...
Ref: https://forum.openwrt.org/t/luci-theme-openwrt-reports-error/49736
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ee36066947
)
2019-12-04 16:09:52 +01:00
Hannu Nyman
5a425b4550
i18n: sync translations
...
Sync translations.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-11-30 11:25:11 +02:00
Jo-Philipp Wich
a68c89cfcf
luci-base: luci.js: further nested Class.super() call fixes
...
Use stacks keyed by class id + symbol internally to not clobber the
prototype scope pointer when repeatedly calling super() in invoked
methods.
Ref: https://github.com/openwrt/luci/issues/3316#issuecomment-558531111
Fixes: 374c23cda
("luci-base: luci.js: properly handle nested Class.super() calls")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4a08fdd2d3
)
2019-11-26 11:39:50 +01:00
Jo-Philipp Wich
3ad8ef4eda
luci-base: luci.js: properly handle nested Class.super() calls
...
Introduce a unique __id__ attribute per class and use that, together with
the symbol name being looked up to, to form a unique key which is used to
store the prototype scope pointer.
This fixes cases where a call to super() invokes a procedure which is
calling super() as well on a different class or symbol.
Fixes : #3316
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 374c23cdab
)
2019-11-26 09:42:28 +01:00
Jo-Philipp Wich
4e6c3a0b96
luci-base: luci.js: add optional apply unchecked action
...
Turn the "Save & Apply" button into a combo button which allows to
toggle between apply with rollback and unchecked apply modes.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3b3a1d9cc9
)
2019-11-22 09:20:37 +01:00
Jo-Philipp Wich
4b72056f9b
luci-base: ui.js: add ComboButton widget
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 97a3bef84b
)
2019-11-22 09:20:29 +01:00
Jo-Philipp Wich
0a58281a33
luci-base: validation.js: fix "unique" validator
...
Previous refactoring renamed the "data-type" attribute of widget markup
containers to "data-widget", breaking the "unique" validator as it relies
on it to lookup options.
Fixes : #3341
Fixes: 13e9e3e9e
("treewide: fix "Unhandled token" errors with Lua CBI maps")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4f0d67a289
)
2019-11-22 08:44:41 +01:00
Jo-Philipp Wich
2390e72976
treewide: fix "Unhandled token" errors with Lua CBI maps
...
The `data-type` attribute is used to bind datatype validators to a widget
while some templates used the same attribute to denote the name of the
underlying widget.
Change the `data-type` attributes referring to the widget name to
`data-widget` in order to stop the JS token error spam.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 13e9e3e9e8
)
2019-11-16 18:26:27 +01:00
Jo-Philipp Wich
7fd017d83d
luci-mod-status: ensure comment escaping in iptables status output
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b3ef7a17ea
)
2019-11-15 18:52:47 +01:00
Jo-Philipp Wich
00ba89bb9f
luci-mod-status: display secondary lease IPv6 addresses if available
...
Ref: https://forum.openwrt.org/t/luci-not-showing-2nd-ipv6-address/48271
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b03ee4a097
)
2019-11-14 13:50:16 +01:00
Jo-Philipp Wich
5cb5ed3834
luci-compat: network.lua: recognize wifi interfaces with nonstandard names
...
Ref: https://github.com/openwrt/luci/issues/3306
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 857cd8c7fa
)
2019-11-14 11:16:00 +01:00
Jo-Philipp Wich
e82e3d8f2c
luci-mod-status: fix free swap calculation
...
Fixes : #3295
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 80c9b6fee0
)
2019-11-14 09:31:10 +01:00
Jo-Philipp Wich
ebd354d420
luci-base: network.js: fix getDevices()
...
- Don't filter virtual interfaces
- Skip duplicate wireless devices
Fixes : #3304
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 304dd37e3f
)
2019-11-13 18:37:11 +01:00
Jo-Philipp Wich
640f26238c
luci-mod-system: sshkeys.js: do not incorrectly filter ecdsa keys on load
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a3ea891b7e
)
2019-11-13 16:56:48 +01:00
Jo-Philipp Wich
eb918b3313
luci-mod-status: fix graph rendering with XHTML themes
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 95bfb3f363
)
2019-11-12 11:53:08 +01:00
Jo-Philipp Wich
ae61ecb6be
luci-mod-system: leds.js: display default state as On/Off
...
Fixes : #3289
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0731f7e5e4
)
2019-11-11 10:15:49 +01:00
Jo-Philipp Wich
f78cc97925
luci-base: ui.js: show filename after selecting upload file
...
Fixes : #3286
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4cc7772ed5
)
2019-11-11 10:15:48 +01:00
Jo-Philipp Wich
132d633fd4
luci-mod-status: remove inline CSS hacks from wifi status
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 6ee6123061
)
2019-11-08 16:04:18 +01:00
Jo-Philipp Wich
837429b16b
luci-mod-network: dhcp.js: fix DNSSEC feature probing
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0513edade8
)
2019-11-08 16:04:18 +01:00
Jo-Philipp Wich
b25924c3f5
luci-base, luci-mod-network: migrate getDUIDHints method to C plugin
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 392ba53eff
)
2019-11-08 16:04:18 +01:00
Jo-Philipp Wich
dcc904d598
luci-mod-network: wireless.js: restore client disconnect functionality
...
Ref: https://forum.openwrt.org/t/19-07-luci-disconnect-missing/47897
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit c00d860981
)
2019-11-07 18:39:42 +01:00
Jo-Philipp Wich
1bcf09280f
luci-mod-status: 60_wifi.js: use new network.js functions for wifi status
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9fac447bc8
)
2019-11-07 18:39:42 +01:00
Jo-Philipp Wich
bba3fdcccf
luci-base: network.js: introduce further API functions
...
- Add Network.getWifiNetworks() to simplify fetching *all* networks
instead of building a list by iterating each radio first
- Add Network.WifiNetwork.isClientDisconnectSupported() to check whether
a wireless network supports client disconnections
- Add Network.WifiNetwork.disconnectClient() to trigger client
disconnections via hostapd
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a2dc6c8216
)
2019-11-07 18:39:42 +01:00
Jo-Philipp Wich
73b4d438e8
luci-mod-status: fix stray "null" in wifi assoclist status view
...
Fixes : #3272
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 861ec9e821
)
2019-11-07 08:30:01 +01:00
Jo-Philipp Wich
c2be304f50
luci-base: network.js: prevent duplicate wan interface reporting
...
Fixes : #3269
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a8a7697829
)
2019-11-06 13:25:20 +01:00
Jo-Philipp Wich
c0e73d3f95
luci-mod-status: 10_system.js: fix local time display
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b27b5cfb51
)
2019-11-05 22:15:40 +01:00
Hosted Weblate
dd0c93224a
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 91.7% (44 of 48 strings)
Translation: OpenWrt/LuCI/applications/ttyd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsttyd/zh_Hans/
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Translated using Weblate (Portuguese)
Currently translated at 12.1% (4 of 33 strings)
Translation: OpenWrt/LuCI/applications/wifischedule
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswifischedule/pt/
Signed-off-by: ssantos <ssantos@web.de>
Translated using Weblate (Ukrainian)
Currently translated at 27.3% (9 of 33 strings)
Translation: OpenWrt/LuCI/applications/wifischedule
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswifischedule/uk/
Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
Translated using Weblate (Ukrainian)
Currently translated at 7.2% (10 of 139 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/uk/
Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
Translated using Weblate (German)
Currently translated at 75.5% (105 of 139 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/de/
Signed-off-by: Paul Spooren <mail@aparcar.org>
Translated using Weblate (Chinese (Simplified))
Currently translated at 7.8% (4 of 51 strings)
Translation: OpenWrt/LuCI/applications/bmx7
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbmx7/zh_Hans/
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Translated using Weblate (Ukrainian)
Currently translated at 14.7% (11 of 75 strings)
Translation: OpenWrt/LuCI/applications/shadowsocks-libev
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshadowsocks-libev/uk/
Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
Translated using Weblate (German)
Currently translated at 18.7% (14 of 75 strings)
Translation: OpenWrt/LuCI/applications/shadowsocks-libev
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshadowsocks-libev/de/
Signed-off-by: Paul Spooren <mail@aparcar.org>
Translated using Weblate (German)
Currently translated at 100.0% (20 of 20 strings)
Translation: OpenWrt/LuCI/applications/vpnbypass
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/de/
Signed-off-by: Paul Spooren <mail@aparcar.org>
Translated using Weblate (Ukrainian)
Currently translated at 15.8% (6 of 38 strings)
Translation: OpenWrt/LuCI/applications/advanced-reboot
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadvanced-reboot/uk/
Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
Translated using Weblate (German)
Currently translated at 39.5% (15 of 38 strings)
Translation: OpenWrt/LuCI/applications/advanced-reboot
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadvanced-reboot/de/
Signed-off-by: Paul Spooren <mail@aparcar.org>
Translated using Weblate (Portuguese)
Currently translated at 14.1% (9 of 64 strings)
Translation: OpenWrt/LuCI/applications/dnscrypt-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdnscrypt-proxy/pt/
Signed-off-by: ssantos <ssantos@web.de>
Translated using Weblate (Chinese (Simplified))
Currently translated at 50.0% (3 of 6 strings)
Translation: OpenWrt/LuCI/applications/squid
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssquid/zh_Hans/
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Translated using Weblate (Ukrainian)
Currently translated at 32.0% (8 of 25 strings)
Translation: OpenWrt/LuCI/applications/dcwapd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdcwapd/uk/
Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
Translated using Weblate (Portuguese)
Currently translated at 100.0% (104 of 104 strings)
Translation: OpenWrt/LuCI/applications/banip
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbanip/pt/
Signed-off-by: ssantos <ssantos@web.de>
Translated using Weblate (Ukrainian)
Currently translated at 17.3% (27 of 156 strings)
Translation: OpenWrt/LuCI/applications/mwan3
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/uk/
Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
Translated using Weblate (Chinese (Simplified))
Currently translated at 31.2% (5 of 16 strings)
Translation: OpenWrt/LuCI/applications/udpxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsudpxy/zh_Hans/
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Translated using Weblate (Ukrainian)
Currently translated at 31.6% (6 of 19 strings)
Translation: OpenWrt/LuCI/applications/ltqtapi
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsltqtapi/uk/
Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
Translated using Weblate (Ukrainian)
Currently translated at 4.0% (7 of 177 strings)
Translation: OpenWrt/LuCI/applications/unbound
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsunbound/uk/
Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
Translated using Weblate (German)
Currently translated at 5.6% (10 of 177 strings)
Translation: OpenWrt/LuCI/applications/unbound
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsunbound/de/
Signed-off-by: Paul Spooren <mail@aparcar.org>
Translated using Weblate (Chinese (Simplified))
Currently translated at 21.7% (5 of 23 strings)
Translation: OpenWrt/LuCI/applications/lxc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationslxc/zh_Hans/
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Translated using Weblate (Portuguese)
Currently translated at 28.8% (34 of 118 strings)
Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/pt/
Signed-off-by: ssantos <ssantos@web.de>
Translated using Weblate (Ukrainian)
Currently translated at 22.0% (26 of 118 strings)
Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/uk/
Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
Translated using Weblate (Chinese (Simplified))
Currently translated at 12.7% (8 of 63 strings)
Translation: OpenWrt/LuCI/applications/ocserv
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsocserv/zh_Hans/
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Translated using Weblate (Ukrainian)
Currently translated at 17.5% (11 of 63 strings)
Translation: OpenWrt/LuCI/applications/ocserv
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsocserv/uk/
Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
Translated using Weblate (Chinese (Simplified))
Currently translated at 12.5% (3 of 24 strings)
Translation: OpenWrt/LuCI/applications/cshark
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscshark/zh_Hans/
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Translated using Weblate (German)
Currently translated at 13.9% (10 of 72 strings)
Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/de/
Signed-off-by: Paul Spooren <mail@aparcar.org>
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (46 of 46 strings)
Translation: OpenWrt/LuCI/applications/minidlna
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsminidlna/zh_Hans/
Translated using Weblate (Ukrainian)
Currently translated at 21.7% (10 of 46 strings)
Translation: OpenWrt/LuCI/applications/minidlna
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsminidlna/uk/
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (46 of 46 strings)
Translation: OpenWrt/LuCI/applications/upnp
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsupnp/uk/
Translated using Weblate (Chinese (Simplified))
Currently translated at 4.5% (1 of 22 strings)
Translation: OpenWrt/LuCI/applications/rp-pppoe-server
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsrp-pppoe-server/zh_Hans/
Translated using Weblate (Ukrainian)
Currently translated at 12.9% (25 of 194 strings)
Translation: OpenWrt/LuCI/applications/olsr
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/uk/
Translated using Weblate (Ukrainian)
Currently translated at 93.8% (30 of 32 strings)
Translation: OpenWrt/LuCI/applications/ahcp
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsahcp/uk/
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (12 of 12 strings)
Translation: OpenWrt/LuCI/applications/wol
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswol/uk/
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (169 of 169 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/uk/
Translated using Weblate (Chinese (Simplified))
Currently translated at 4.5% (5 of 112 strings)
Translation: OpenWrt/LuCI/applications/radicale2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale2/zh_Hans/
Translated using Weblate (Ukrainian)
Currently translated at 99.1% (1298 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/uk/
Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (68 of 68 strings)
Translation: OpenWrt/LuCI/applications/opkg
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopkg/uk/
(cherry picked from commit 52d9ed3939
)
2019-11-05 08:44:29 +01:00
Hosted Weblate
83a7292a77
i18n: update from Weblate
...
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Signed-off-by: ssantos <ssantos@web.de>
Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com>
(cherry picked from commit 405080916c
)
2019-11-05 08:44:03 +01:00
Yousong Zhou
a1e70b9534
luci-mod-system: validate log_ip as "host" instead of just ipaddr
...
Fixes FS#2444
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 90051b6858
)
2019-11-04 02:58:58 +00:00
Jo-Philipp Wich
fafda7c34f
treewide: resync translations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 23:01:41 +01:00
Jo-Philipp Wich
2f61ab6bd5
openwrt-19.07: merge current master branch
...
Fixes : #3092
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 22:21:57 +01:00
Jo-Philipp Wich
86f492173d
treewide: require ui.js explicitly
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 21:55:50 +01:00