Commit graph

14997 commits

Author SHA1 Message Date
Nick Hainke
ae446ce190 luci-app-dawn: remove page for steering options
The luci-app-dawn is blocking the PR to be merged:
https://github.com/openwrt/packages/pull/16299

Remove the configuration page and set appropriate standard values.

Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 4a78122246)
2021-10-26 08:39:06 +02:00
Jo-Philipp Wich
a706a9c867 luci-theme-bootstrap: work around csstidy bug
Ref: 26047fb967 (commitcomment-58638390)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 37e40e04ef)
2021-10-25 23:59:42 +02:00
Paul Dee
d24760e60a luci-theme-bootstrap: fix overlay display failures
Fixed overlay display failures for users on mobile, or users who booted
up in safe mode XD. Noticeable when vertical or horizontal real-estate
is too small for the displayed overlay.

This failure is most evident when you "edit" an interface, or display
your unsaved changes.

When content is wider than the screen view, the table hugs the (widest)
content maximally, and the overlay window becomes scrollable.

Disabled -webkit-overflow-scrolling, left, and right, because both FF
and Safari disable them as invalid anyway.

Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
[Merge duplicate modal declarations, remove not applicable modal
 flexbox properties]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d1035c1f69)
2021-10-25 20:59:22 +02:00
Jo-Philipp Wich
26047fb967 luci-theme-bootstrap: fix header width
Fixes: 588e24f9ca ("luci-theme-bootstrap: various tweaks and cleanups")
Ref: 588e24f9ca (r58625289)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8fc78a26da)
2021-10-25 19:40:06 +02:00
Jo-Philipp Wich
92e21ba606 luci-app-statistics: fix process graph tab captions
Plugins that provide both detail and non-detail instances led to a mismatch
between the instance list to render and the plugin instance list, causing
tab captions to be wrongly assigned.

Fixes: #5387
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e9039ae8f5)
2021-10-23 00:34:15 +02:00
Jo-Philipp Wich
13df80d429 luci-base: remove further related section types on deleting network
When removing a `config interface` section in `/etc/config/network`, drop
related `rule` and `rule6` sections too, as well as related `dhcp` sections
in `/etc/config/dhcp`.

Ref: https://forum.openwrt.org/t/grooming-etc-config/109764/7
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 63034c3607)
2021-10-22 20:37:34 +02:00
Jo-Philipp Wich
4d3de0e1bb luci-mod-network: remove related bridge-vlan sections on deleting device
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 216767f420)
2021-10-22 20:37:28 +02:00
Jo-Philipp Wich
4a6927fa67 luci-theme-bootstrap: various tweaks and cleanups
- introduce new variable --text-color-highest which results in #000/#fff
   for bright and dark modes respectively
 - drop unused navigation style rules and selectors
 - use sticky positioning for header bar and drop top margin hacks
 - use flex box layout for header bar contents
 - use uniform line-height for button elements instead of pixel paddings
 - fix too bright .cbi-value bottom border in mobile dark mode
 - avoid rendering duplicate .cbi-value bottom borders for nested sections
 - simplify header markup, get rid of unused container elements
 - use non-wrapping flex box layout for page actions, prioritize primary
   action button in automatic width calculation
 - fix border radius of ifacebox headers
 - use brightest color for log output textareas
 - fix dark mode colors for mode menu
 - use flex layout for footer

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 588e24f9ca)
2021-10-22 20:37:12 +02:00
Paul Dee
4c87f02cc0 luci-mod-network: spelling / grammar
"Setup" is a noun, the thing. "Set up" is a verbal idiom, the action.

One cannot setup a DHCP server, just as one cannot fuckup a test, or
ripup some paper. One can, however, set a DHCP server up, and one can
fuck a test up, and rip some paper up.

Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
(cherry picked from commit c0299e2c3d)
2021-10-22 20:36:55 +02:00
Jo-Philipp Wich
32fc8941b8 luci-base: cbi.js: use IEC 80000-13 units to format base 2 byte values
Fixes: #5354
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0a31efc858)
2021-10-22 20:36:47 +02:00
Jo-Philipp Wich
850fcaf0b9 luci-app-smartdns: explicitly require view class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5d10e3de38)
2021-10-22 20:36:31 +02:00
Jo-Philipp Wich
92ae018d61 luci-theme-bootstrap: rework uci changelog styling
Fixes: #5405
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 72d13da94c)
2021-10-22 20:36:18 +02:00
Teoh Han Hui
83e19dcda6 luci-theme-bootstrap: add dark theme variant
Add a dark theme variant which is enabled by default when
prefers-color-scheme is set to dark.

Signed-off-by: Teoh Han Hui <teohhanhui@gmail.com>
(cherry picked from commit 6dd71eaebe)
2021-10-22 20:36:12 +02:00
Petr Štetiar
f9e9fcff9c luci-theme-openwrt-2020: add styling of hyperlinks
Currently it's not possible to distinguish between normal text and
hyperlink.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 60fbadfa36)
2021-10-22 20:36:01 +02:00
Petr Štetiar
0ef4b2f1b3 luci-theme-openwrt-2020: add styling of abbreviations and acronyms
Style abbreviations and acronyms with dotted underline text-decoration
as without the style it's quite hard to find out which text is
abbreviation or acronym.

References: https://developer.mozilla.org/en-US/docs/Archive/Web_Standards/Styling_Abbreviations_and_Acronyms
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit b5faba1244)
2021-10-22 20:35:48 +02:00
Rosen Penev
8acd0d76c4 fix wrong ed25519 information
ECDH is not used for the ed25519. The scheme is called EdDSA.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 738f36a1c3)
2021-10-22 20:35:03 +02:00
Ansuel Smith
fc702bcbf5 luci-theme-material: fix cut syslog
Remove line-height css for syslog textarea as it cause some
problem with displaying all the rows of the syslog.
(Row line are calculated with a line-height of 1)

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit a9ff8d3468)
2021-10-22 20:34:48 +02:00
Ansuel Smith
1300f4df4a luci-theme-material: improve support for dashboard module
Fix sidebar styling to improve support for dashboard module.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 78de736a95)
2021-10-22 20:34:42 +02:00
Ansuel Smith
9d2c8cb429 luci-theme-material: add support for modmenu
Improve support for modmenu.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 05d100442b)
2021-10-22 20:34:03 +02:00
Fritz D. Ansel
c592d0a614 ksmbd: fix the layout of textbox
without this, only 50% of screen where used
also show version only 1 time if Ksmbd/Kmod
versions match

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit a624647c2a)
2021-10-22 20:33:47 +02:00
Fritz D. Ansel
2e989d87dd samba4: fix the layout of textbox
without this, only 50% of screen where used

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit f533f9d225)
2021-10-22 20:33:42 +02:00
Ansuel Smith
bec2c7e2b5 luci-theme-material: standardize menu and drop jquery
- Drop jquery lib
- Move to the new menu.js implementation
- Rework css to mimic old js transition
- Rework footer and header to new implementation

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 031424c0d3)
2021-10-22 20:33:34 +02:00
Fritz D. Ansel
55a9f9516f theme openwrt-2020: set maximum menu width
more space for it does not have an advance

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit b2bea34586)
2021-10-22 20:33:29 +02:00
Fritz D. Ansel
7ef76bcf6f theme openwrt-2020: larger bridge-boxes
they are to small for devices like e8450
as it has 4x LAN + 2x WLAN + 1x Bridge

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit c592ef4f84)
2021-10-22 20:33:24 +02:00
Fritz D. Ansel
5155364eab network: hide dnamsq (dhcp+dns) item
.. when no dnsmasq is installed, as it
tells only that there are no settings available

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit 2393289367)
2021-10-22 20:33:12 +02:00
Fritz D. Ansel
853a128c31 status: make buffered conditional
when buffered could not be read, there is
just a questionmark (on e8450 non-ubi)

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit 61425793a7)
2021-10-22 20:32:59 +02:00
Fritz D. Ansel
71181af8ed system: more text lines for crontab
10 lines are very few and there is much unused space

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit 8fb2d82f70)
2021-10-22 20:32:52 +02:00
Fritz D. Ansel
8eceb63e11 firewall: more text lines for custom script
10 lines are very few and there is much unused space

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit 406e6c8177)
2021-10-22 20:32:47 +02:00
Jo-Philipp Wich
d744c54220 luci-mod-network: allow sorting static leases
Fixes: #5453
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f4f64b91ca)
2021-10-19 23:14:22 +02:00
Jo-Philipp Wich
68815c88b0 luci-mod-system: fix time display logic
Use the system/info ubus call to obtain a TZ adjusted epoch value and
format the date time string manually instead of relying on the browsers
local representation.

Fixes: #5454
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 07569c5af2)
2021-10-19 23:11:16 +02:00
Hannu Nyman
790bb936f2 treewide: Backport and sync i18n translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-10-19 22:22:39 +03:00
Jo-Philipp Wich
137ede6354 luci-theme-openwrt: add success style for alert messages
Fixes: #5427
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1c3b32dc1b)
2021-10-12 23:05:29 +02:00
Jo-Philipp Wich
4fd8c836b3 luci-base: sysauth.htm: switch https detection URL
The `up.gif` icon is not present by default anymore, it has been moved to
luci-compat. Probe loading.gif instead which is guaranteed to be available
by default.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ea9b5e87e6)
2021-10-12 23:05:22 +02:00
Jo-Philipp Wich
62d45da4a5 luci-base: dispatcher: fix null access on dispatching unknown urls
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4d28c390ab)
2021-10-12 23:05:16 +02:00
Jo-Philipp Wich
cfd0bdd206 luci-base: form.js: add drag-drop sorting support for mobile
Fixes: #5416
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit df75163e68)
2021-10-12 23:04:25 +02:00
Jo-Philipp Wich
48b829616e luci-mod-network: fix disabling 11w MFP for WPA3
Fixes: #5394
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0b49ed45c6)
2021-10-12 23:04:02 +02:00
Dennis Dast
3a8af31ffa luci-app-radicale2: Fix library loading
This fixes the "Authentication / Users" and "Storage" tab of
luci-app-radicale2.

Signed-off-by: Dennis Dast <mail@ddast.de>
(cherry picked from commit 29f78ce73f)
2021-10-12 23:03:57 +02:00
Jo-Philipp Wich
f20b82f57f rpcd-mod-luci: fix syntax error
Fixes: 45a398e1ed ("rpcd-mod-luci: avoid PTR requests for IPv6 link-local and ULA addrs")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit af4352c07e)
2021-10-12 23:03:49 +02:00
Jo-Philipp Wich
ba3f8f84ad rpcd-mod-luci: avoid PTR requests for IPv6 link-local and ULA addrs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 45a398e1ed)
2021-10-12 23:03:45 +02:00
Jo-Philipp Wich
a9b4f93612 rpcd-mod-luci: let IPv4 hostnames take precedence over IPv6 ones
Do not overwrite IPv4-resolved hostnames with IPv6 ones in case both are
available or resolvable.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 93bd93e220)
2021-10-12 23:03:41 +02:00
Ansuel Smith
06419e9a9c luci-mod-status: fix wrong logic for maclist adding feature
Currently any new entry added to the black/whitelist deletes the
others. Fix this and improve the rule apply by firstly disconnect
the wifi client.

Fixes: #5343

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 085c4a08f5)
2021-10-12 23:03:33 +02:00
Ansuel Smith
2fe3d0ab4a luci-mod-status: cosmetic fix for isWPSEnabled in wifi status
Drop isWPSEnabled table as it's really not needed and can directly
included in the network table.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 2a97d5533c)
2021-10-12 23:03:29 +02:00
Vladislav Grigoryev
9da9d65c35 luci-mod-network: fix option ip6table in network/interfaces
Fix the incorrectly displayed value for the option "ip6table".

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
(cherry picked from commit 3ebdf51f9b)
2021-10-12 23:02:45 +02:00
Jo-Philipp Wich
5806ff0531 luci-base: fix off-by-one in cbi_update_table()
Fixes: #5189
Fixes: f919635310 ("luci-base: batch DOM updates to prevent slowdown")
Ref: f919635310 (commitcomment-53495580)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 7d9ab8d4a7)
2021-10-12 23:01:45 +02:00
Olli Asikainen
d7be4983cf luci-base: batch DOM updates to prevent slowdown
Signed-off-by: Olli Asikainen <olli.asikainen@gmail.com>
(cherry picked from commit f919635310)
2021-10-12 23:01:35 +02:00
Jo-Philipp Wich
0ac19f6a85 luci-mod-network: fix 60GHz radio frequency configuration
Fix incorrect minimum 60GHz frequency value and ensure that a 60GHz band
choice option is available once corresponding channels are found on the
system.

Ref: http://lists.openwrt.org/pipermail/openwrt-devel/2021-July/035810.html
Suggested-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e5626ece12)
2021-10-12 23:01:29 +02:00
Jo-Philipp Wich
16e807edc9 luci-mod-network: dhcp.js: don't fail on not existing interface
Fixes: #5177
Fixes: 7e56289538 ("luci-mod-network: improve static DHCP lease validation")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f57d20bfff)
2021-10-12 23:01:23 +02:00
Jo-Philipp Wich
8b02f53a37 luci-mod-network: fixes to DHCP lease validation
- validate current form value IP instead of stored uci one
 - ensure to not pass non-string values to the validator
 - remove leftover debug code
 - simplify obtaining formvalues

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9d15a4e70c)
2021-10-12 23:01:00 +02:00
Jo-Philipp Wich
e8b8a9be64 luci-mod-network: improve static DHCP lease validation
- Ensure that MAC addresses are unique within the same pool
 - Ensure that IP addresses are globally unique
 - Ensure that IP addresses are within any DHCP pool range

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 7e56289538)
2021-10-12 23:00:52 +02:00
Dirk Brenken
e3ef035260 luci-app-fwknopd: trivial typo fix
* fix for #5073

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 07d6ac5995)
2021-10-12 23:00:36 +02:00