validation:
use correct argument position for apply
network:
spec.need_tag -> port.need_tag agrees with old lua compat
widgets:
rv.length is undefined, use firstChild
form:
Follow-up to 315dbfc749
checkDepends recursion fix and implement cache lookup
uci:
improve timeout and Promise handling
ui:
follow-up to 92381c3ca2
renderListing sort: put directories first
getActiveTabId: check isNaN for tab state
getScrollParent: fix evaluation logic
fadeOutNotification: implement immediate timeout
openDropdown: accelerate draw via getBoundingClientRect
form:
ensure FlagValue parse always resolves
fs:
parse all 'expect' keys in RpcReply
luci:
Use the same source of truth in both the check and the dispatch
for flushRequestQueue
string check for dom string additions
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This hasn't knowingly caused problems before now, an indicator
that it goes lesser or unused hitherto.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This reverts commit 6bcdc18d65.
Since the bug where a write operation is executed when the input
matches the default has been fixed in form.js, this workaround
is no longer needed and is being reverted.
Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
Avoid executing unnecessary write operations to flash/UCI when the
user's form selection or input exactly matches the component's
`default` configuration.
Previously, if a field had a valid value identical to its default,
it would bypass the empty check and trigger a `write()` call, leading
to configuration bloating. This change ensures that such values are
correctly intercepted and handled via `this.remove()` to keep the
underlying configuration file clean and precise.
Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
Add dark mode following the luci-theme-bootstrap pattern: auto-detect
via prefers-color-scheme, with forced MaterialDark/MaterialLight
variants. Replace ~60 hardcoded colors in cascade.css with CSS
variables and override them in a :root[data-darkmode="true"] block.
Signed-off-by: Shannon Barber <sgbarber@gmail.com>
* ucode fixes:
- tighten `is_valid_lxc_name` regex to `^[A-Za-z0-9_][A-Za-z0-9_-]{0,63}$`
- apply the validator in `lxc_configuration_get` and `lxc_configuration_set` before any filesystem access
- reject the `'lxc error: …'` sentinel string returned by `lxc_get_config_path()` on failure,
rather than concatenating it into a path.
- shellquote `LXC_URL` in `lxc_get_downloadable` and `lxc_create`
* ACL fix: add `depends.acl = ["luci-app-lxc"]` to each of the five backend entries,
so the routes share the same authorization gate as the view
Signed-off-by: Dirk Brenken <dev@brenken.org>
add cleanup functionality; remove orphaned config for absent plugins
render placeholder title when plugin is absent
follow-up to 617f364333
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Add a 'realm' field in the advanced tab so users can easily pass this
parameter to the underlying netifd handler.
Signed-off-by: Xing-Kai Wang <my@xkwang.org>