- Jun 08, 2018
-
-
Jo-Philipp Wich authored
Also switch the weekday and monthday lists in the firewall rule details to cbi dropdowns, vastly uncluttering the form. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
This commit introduces the required code for a new, markup based dropdown widget which can be used as a styleable alternative to select boxes or radio/checkbox button groups. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
AbstractValue descendants may now specify a new optional property `alias` which refers to a uci option to read/write/remove that differs from the option name itself. This is mainly useful for widgets that are toggled based on dependencies, e.g. for alternating between SingleValue and MultiValue, but which are intented to write into the same uci option. Such a setup was previously possible already by overriding the .cfgvalue(), .write() and .remove() callbacks with custom implementations, but that required a lot of boiler plate code and was rather fragile. With the `alias` property, CBI now takes care of the details and tracks aliased fields within a section accordingly. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- Jun 06, 2018
-
-
Jo-Philipp Wich authored
- Properly serialize option delete changelogs - Do not perform a section create if a nil value is passed to set() Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- Jun 03, 2018
-
-
Jo-Philipp Wich authored
Since the switch to ubus uci operations we do not have a local application- side cursor cache anymore, instead uci operations happen synchronously in the rpcd backend server. This may cause cbi section reorder operations involving multiple elements to fail, because anonymous section hashes may change due to rehashing between consecutive ubus uci reorder calls. In order to avoid that problem, use the ubus uci batch reorder extension, which allows to pass a complete (or partial) list of section ids in the desired order in one call, bypassing the volatile section id problem. Fixes #1844. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 31, 2018
-
-
INAGAKI Hiroshi authored
Updated Japanese translations. Signed-off-by:
INAGAKI Hiroshi <musashino.open@gmail.com>
-
INAGAKI Hiroshi authored
Synchronized translations with sources. Signed-off-by:
INAGAKI Hiroshi <musashino.open@gmail.com>
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
Sync our coxpcall() implementation to the newest upstream version in order to get access to the inner backtrace information and propagate these traces to the browser in luci.dispatcher.dispatch(). This should make tracking down runtime errors much easier. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
After applying uci configuration, a full map reload is required in many cases as the anonymous section identifiers might have been rehashed, causing the rendered map to go out of sync. To avoid that, add both a full page overlay preventing further page interaction and let the apply widget forcibly reload the current view once the operation is complete. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 30, 2018
-
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 28, 2018
-
-
Jo-Philipp Wich authored
Mostly convert HTML tables to div based markup to allow for easier styling in the future. Also change JS accessor code accordingly. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
Add a new helper function `E()` to cbi.js which can be used to conveniently build HTML markup. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 27, 2018
-
-
Ansuel Smith authored
Currently this translation refer to an old string, sync to the new one. Signed-off-by:
Ansuel Smith <ansuelsmth@gmail.com>
-
Yusuf Soyipek authored
Some of the shortcomings in Turkish were added.
-
- May 25, 2018
-
-
Hannu Nyman authored
Signed-off-by:
Hannu Nyman <hannu.nyman@iki.fi>
-
Hannu Nyman authored
* sync translations (aiccu removal) * remove some other old strings * fix Polish translation Signed-off-by:
Hannu Nyman <hannu.nyman@iki.fi>
-
- May 23, 2018
-
-
Ansuel Smith authored
http.getenv("SCRIPT_NAME") fail if it's not provided. This can happen in the login screen when we don't have any script to load. Signed-off-by:
Ansuel Smith <ansuelsmth@gmail.com>
-
- May 20, 2018
-
-
INAGAKI Hiroshi authored
Updated Japanese translations. Signed-off-by:
INAGAKI Hiroshi <musashino.open@gmail.com>
-
INAGAKI Hiroshi authored
Synchronized translations with sources. Signed-off-by:
INAGAKI Hiroshi <musashino.open@gmail.com>
-
- May 19, 2018
-
-
Jo-Philipp Wich authored
Should prevent the crash mentioned in #1779. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
On certain environments, mainly with the embedded uhttpd interpreter, the luci.config class cannot be loaded due to a circular dependency with the luci.model.uci class. Break up the dependency by deferring the loading of luci.config in luci.model.uci until it is actually needed. Fixes #1803, FS#1553. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 18, 2018
-
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 15, 2018
-
-
Rixerx authored
Signed-off-by:
Rixerx <krystian.kozak20@gmail.com>
-
- May 13, 2018
-
-
Yousong Zhou authored
A simple scan of the code indicates that currently no code in the repo is accessing the sysauth= cookie Closes openwrt/luci#1555 Signed-off-by:
Florian Eckert <fe@dev.tdt.de> Signed-off-by:
Yousong Zhou <yszhou4tech@gmail.com>
-
- May 07, 2018
-
-
Florian Eckert authored
If log configuration get changed in uci system no new values are applied until reboot. Add /etc/init.d/log reload to exec option will solve this issue. Signed-off-by:
Florian Eckert <fe@dev.tdt.de>
-
Florian Eckert authored
Signed-off-by:
Florian Eckert <fe@dev.tdt.de>
-
- May 05, 2018
-
-
Jo-Philipp Wich authored
Ship an /etc/init.d/ucitrack for spawning a virtual service with the sole purpose to track the configurations and dependencies formerly handled by luci-reload. Once all LuCI supported services ship with procd compatible init scripts, the uci track support can be dropped. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
Switch to rpcd based uci apply/rollback workflow which helps to avoid soft- bricking devices by requiring an explicit confirmation call after config apply. When a user now clicks "Save & Apply", LuCI first issues a call to uci apply which commits and reloads configuration, then goes into a polling countdown mode where it repeatedly attempts to call uci confirm. If the committed configuration is sane, the confirm call will go through and cancel rpcd's pending rollback timer. If the configuration change leads to a loss of connectivity (e.g. due to bad firewall rules or similar), the rollback mechanism will kick in after the timeout and revert configuration files and pending changes to the pre-apply state. In order to cover such rare cases where a lost of connectivity is expected and desired, the user is offered an "unchecked" apply option after timing out, which allows committing and applying the changes anyway, without the extra safety checks. As a consequence of this change, the luci-reload mechanism is now completely unsused since rpcd uses ubus config reload signals to reload affected services, which means that only procd-enabled services will receive proper reload treatment with the new workflow. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
Switch to per-session save directories to decouple LuCI configuration changes from system wide ones. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
Internet Explorer 11 requires the timeout to be applied after the open() call, otherwise an invlaid state exception will be raised Fixes aa6c9715 ("luci-base: extend xhr.js") Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Hannu Nyman authored
Show the correct wifi chip identification in case iwinfo recognises the chip. So far the wifidev.get_i18n function has practically always returned just "Generic", but use iwinfo.hardware_name to fetch the name. In case iwinfo returns the default "Generic MAC80211", there is a double 80211 in the final string, which is a cosmetic bug. Signed-off-by:
Hannu Nyman <hannu.nyman@iki.fi>
-
- May 03, 2018
-
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
This reverts commit 52cf265c . I accidentally committed unrelated changes. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 02, 2018
-
-
Ricardo Lamego authored
indentifies > identifies
-
INAGAKI Hiroshi authored
Updated Japanese translations. Signed-off-by:
INAGAKI Hiroshi <musashino.open@gmail.com>
-
INAGAKI Hiroshi authored
Synchronized translations with sources. Signed-off-by:
INAGAKI Hiroshi <musashino.open@gmail.com>
-
- Apr 26, 2018
-
-
Jo-Philipp Wich authored
Add timeout options to get() and post() and introduce XHR.stop() to support stopping a poll operation. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-