Commit graph

2943 commits

Author SHA1 Message Date
Jo-Philipp Wich
8750495992 luci-mod-system: ignore empty /proc/mtd on flash page
A present, but empty /proc/mtd causes validation on the flash page to fail,
preventing any other operation.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d2d3738d90)
2020-07-22 10:29:45 +02:00
Hannu Nyman
91ac7214be treewide: i18n - backport translations
Backport translations from master and sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-07-18 14:22:34 +03:00
Jo-Philipp Wich
0105851235 luci-base: ui.js: order menu entries with the same weight by name
The previous server side menu rendering ordered items first by their order
weight value, then by their internal name.

Do the same for client side menu rendering.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0c479891ae)
2020-07-05 00:53:09 +02:00
Karl Palsson
b573f106a1 luci-base: allow themes to provide sysauth.htm
Support for sysauth_template was (inadvertently) dropped in refactorings
to support the json menu construction.  This does not restore that
functionality, which allowed different templates for every node in the
dispatcher tree, but provides an alternative mechanism that allows a
theme to provide a sysauth.htm template file instead.

Tested-by: Karl Palsson <karlp@etactica.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8f9433127e)
2020-06-30 18:14:13 +02:00
Hannu Nyman
451313eab2 treewide: i18n - backport translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-06-24 23:26:31 +03:00
Hannu Nyman
87da00ae8a treewide: i18n - backport translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-06-15 20:12:48 +03:00
Jo-Philipp Wich
b894a3b9aa luci-base: form.js: fix handling of array sections in JSONMap forms
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 682f628ea6)
2020-06-14 16:42:17 +02:00
Hannu Nyman
f1eeb85be6 treewide: i18n - backport translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-06-03 17:21:23 +03:00
Jo-Philipp Wich
dd9624d35a luci-base: luci.js: properly skip comments when finding require tokens
Fixes: #4020, #4022, #4111
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 6be8f8dbae)
2020-05-29 10:42:24 +02:00
Hannu Nyman
39d5f2e5a6 treewide: i18n - backport translations from master
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-05-25 18:04:15 +03:00
Anton Kikin
515bd927da luci-base: ui.js: fix function declaration in nested statement
Fix "SyntaxError: Strict mode does not allow function declarations
in a lexically nested statement" error that may occur in some old
browsers (detected on QtWebKit 5.212).

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
(cherry picked from commit c00d0d9473)
2020-05-24 18:25:00 +02:00
Jo-Philipp Wich
7fca170275 luci-base: firewall.js: remove further zone network/name fallback logic
Fixes: #4093
Fixes: 4052436d8 ("luci-base: firewall.js: don't treat zone name as network fallback")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f6f4005d0b)
2020-05-24 17:33:53 +02:00
Jo-Philipp Wich
ccd9d67598 luci-mod-system: make dropbear pages depend on dropbear executable
Fixes: #4052
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit c7686d4b3c)
2020-05-17 19:33:54 +02:00
Jo-Philipp Wich
ba0fb08d6d luci-mod-network: fix reading static route table value
Ref: https://forum.openwrt.org/t/static-route-shows-incorrect-table/63514
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8747513951)
2020-05-13 17:21:31 +02:00
Hannu Nyman
bcdb9fdc7f treewide: i18n - backport translations from master
Backport translations from master

1) i18n-sync to sync 19.07 itself
2) i18n-merge-master to backport from master
3) i18n-sync to clean-up, as merge-master makes also errors
4) revert luci-app-samba that gets mishandled  (removal from master causes ???)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-05-10 16:19:47 +03:00
Hannu Nyman
07e6cfaa89 timezone data: update to 2020a
Update timezone data to 2020a

http://mm.icann.org/pipermail/tz-announce/2020-April/000058.html

2020a:
    Morocco springs forward on 2020-05-31, not 2020-05-24.
    Canada's Yukon advanced to -07 year-round on 2020-03-08.
    America/Nuuk renamed from America/Godthab.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit e5fe16c9ea)
2020-05-09 09:48:06 +03:00
Hannu Nyman
5366acbb6d treewide: i18n - backport translations from master
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-05-07 22:57:19 +03:00
Hannu Nyman
c835abaa40 treewide: sync translations
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-05-07 22:52:56 +03:00
Jo-Philipp Wich
74b3715651 luci-base: optimize some PNG files
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f8cf115d9b)
2020-05-07 20:06:32 +02:00
Jo-Philipp Wich
618a1df922 luci-base: move old cbi icons to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 102124115d)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
20acf73b79 luci-base: replace filebrowser icons with SVG variants
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b34b7fc504)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
f3b7f4101f luci-mod-status: convert menu nodes to JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit c698cd5ab9)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
cde76b0295 luci-base: implement JSON endpoint to fetch menu information
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
[require authentication for 19.07]
(backported from commit e56e442d6a)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
9b71880629 luci-base: expose currently dispatched node info to client side JS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 94a0c57181)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
afad3ccf8f luci-base: convert menu nodes to JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 16853bcd2e)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
ec50f8a784 luci-base: ui.js: hide unsatisfied firstchild menu nodes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 7882f3ebdd)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
84e7e46353 luci-base: ui.js: add LuCI.ui.menu.flushCache() function
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 90a51ab3b9)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
5ce7daacda luci-base: ui.js: add LuCI.ui.menu helper class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 930f28b606)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
8daa236263 luci-base: ui.js: use standard indicator framework to display uci changes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b6e93d54a0)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
7159857639 luci-base: luci.js: use standard indicator framework for poll status
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 68b2ce84ec)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
e4a8f07501 luci-mod-network: dhcp.js: allow lease hostname to be empty
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 57f27cf7f8)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
4083b78fc6 luci-mod-network: dhcp.js: fix validation logic
The `server` option allows plain IPs besides the `/domain/addr` format.

Fixes: #3870
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 137db1c4d1)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
57d3b3b74a luci-base, luci-mod-network: adjust ZoneSelect / NetworkSelect descriptions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 45a30c925b)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
29ed1f9121 luci-mod-network: dhcp.js: properly validate hostname values
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 98a9d07d89)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
89ca03f3b1 luci-mod-network: diagnostics.css: use .btn CSS class for buttons
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 41b2fe9f6b)
2020-05-07 19:40:49 +02:00
Kevin Darbyshire-Bryant
c52361b226 luci-mod-network: dnsmasq: correct sense & usage of dnsseccheckunsigned
dnsmasq v2.80 made 'dnssec-check-unsigned' the default, reflect this in
the gui.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
(cherry picked from commit c58ae7d3f4)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
200e2e2e7b luci-mod-system: don't make SSH tabs depend on dropbear uci
This prevents a situation where the tabs will be disabled by the dispatcher
once the last config section has been removed. This would allow a user to
disable SSH via the UI but not to reenable it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit baa3bd4aac)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
0c556476f0 luci-mod-system: password.js: make event handler attachment more robust
Do not expect a specific markup structure but use querySelector() to locate
the input element.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 34c06b4704)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
9964141082 luci-mod-system: convert menu controller to declarative JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ca295b04e7)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
05ff8e0ec5 luci-mod-system: system.js: rework local time widget markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3afe606743)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
9f4b6f7b92 luci-mod-system: use proper CSS class for map description
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 90990df3b6)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
0bcb9109f2 luci-mod-system: use generic .cbi-section-actions style for row actions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9706388c42)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
4ee21feef2 luci-mod-status: index.js: skip includes which failed loading
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a0db2abea3)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
b26dde0a5c luci-mod-status: tag DHCP lease tables with dedicated CSS classes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit be62595c5b)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
807fa3b487 luci-mod-status: adjust assoclist markup for easier styling
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e26b6c8c14)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
4eb411757e luci-mod-status: use generic .cbi-section-actions style for row actions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4fa409c7c4)
2020-05-07 19:40:49 +02:00
Howard Su
40a4677a25 luci-base: Show used memory instead of Free
This makes sure solid/blue bar shows the used memory.

Signed-off-by: Howard Su <howard0su@gmail.com>
(cherry picked from commit d09f3b64b2)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
561de16a5d luci-base: form.js: allow secondary configs to fail loading
Ref: https://forum.openwrt.org/t/luci-rpc-error/61760
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 17ffc84a29)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
6d072352b3 luci-base: uhttpd.lua: expose all CGI variables
Fixes: #3873
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 465891ff02)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
de5578cb5c luci-base: add missing .btn CSS classes to sysauth template
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9edb9336d3)
2020-05-07 19:40:49 +02:00