Commit graph

12296 commits

Author SHA1 Message Date
Jo-Philipp Wich
3c441efa02 build: reload rpcd in package postinstall
Send a SIGHUP to rpcd after installing LuCI packages to reload ACL rules.

Also remove redundant code while we're at it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit ca558f4f93)
2020-05-19 12:41:35 +02:00
Jo-Philipp Wich
ecd49247eb treewide: stage ACL rules for legacy applications
Fixes: #3866
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 43e872871a)
2020-05-19 12:38:17 +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
Hannu Nyman
fb2f363067
Merge pull request #4048 from hnyman/i18n-merge
build/i18n-merge-master: ignore apps deleted in master
2020-05-15 16:45:37 +03: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
e4baee8d25 build/i18n-merge-master: ignore apps deleted in master
Refine the code to ignore apps that have been deleted from master
but still exist in release branches. E.g. luci-app-samba

Previously the unhandled git error from non-existing master
mangled the .po files in the release branch: the 18n header was
removed and all non-ASCII chars were deleted from translation.

Fix this by processing only those files where 'git show' succeeds.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-05-13 18:06:31 +03: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
4decb6e3f2 luci-app-nlbwmon: use legacy L.dom attribute
Until it is converted to a proper view, we need to use the legacy alias.

Fixes: #3835
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit af6fd6dfab)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
6ca21c45f9 luci-app-nlbw: simplify table CSS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 6efaea2ffb)
2020-05-07 19:40:50 +02:00
Balázs Úr
8767267487 luci-app-nlbwmon: fix typos
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
(cherry picked from commit 44cef2ab44)
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
Florian Eckert
175644e6ac luci-theme-material: fix Makefile file mod
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 0024609a00)
2020-05-07 19:40:50 +02:00
Florian Eckert
ccdfbc2bb1 luci-theme-material: remove useless logging output
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 1b875a610f)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
eca8dee353 luci-theme-bootstrap: rework menu rendering
Utilize the LuCI.ui.menu class to load, traverse and cache the menu tree
in the local session store.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
[only render menu when logged in for 19.07]
(backported from commit 1ac8df2614)
2020-05-07 19:40:50 +02:00
Jo-Philipp Wich
94f504f178 luci-theme-openwrt: rework menu rendering
Utilize the LuCI.ui.menu class to load, traverse and cache the menu tree
in the local session store.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
[only render menu when logged in for 19.07]
(backported from commit 48269ade61)
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
Chen Minqiang
7a47df9f07 luci-theme-*: set mediaurlbase if it is the first time to be installed
If we build multi-themes into firmware, each of them set itself
to be the default theme, what theme should it be?

To make it clear, we only set mediaurlbase if the theme is the
first time to be installed/built-in.

This resolve the issue that theme always change to somewhat default
after upgrading the firmware even with a config-keep-upgrade

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
(backported from commit fc150636b9)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
9518d7f8c1 luci-theme-bootstrap: fix dynlist overflows
Fixes: #3795
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 015712bba0)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
7c29f560d5 luci-theme-openwrt: work around cssmin bug breaking the minified CSS.
The cssmin utility incorrectly breaks up calc() expressions when
minifying rules. Avoid the problem by trimming uneeded spaces.

Fixes: #3801
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 63057a08dc)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
d16600ff01 themes: generalize indicator markup and styling
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit ccb7e4a4a7)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
f4137a9225 luci-theme-bootstrap: dynamically adjust body margin
Fixes: #3722
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit c99684dff7)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
9988c97812 luci-theme-bootstrap: fixup assoclist styling
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3b40c582baefcb302fb23ed633ed85ab1ac72a9e)
(cherry picked from commit ca17ec9b4f)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
b26837e462 luci-theme-material: render menu on client side
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 92eecedc8a)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
bf48a64dfd luci-theme-openwrt: render menu on client side
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ebc99a6ab3)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
212026c76b luci-theme-bootstrap: render menu on client side
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5db4463ace)
2020-05-07 19:40:49 +02:00
Jo-Philipp Wich
24fcbb3ed4 luci-theme-bootstrap: minor page action alignment fix
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit df38e4505c)
2020-05-07 19:40:49 +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