summaryrefslogtreecommitdiffhomepage
path: root/modules
AgeCommit message (Collapse)Author
2019-01-05luci-base: Fix addr:port validate always failsDaniel F. Dickinson
In cbi.js there is an error which causes ipaddrport validation to always fail. JS match() return the entire match as ret[0] and individual matches (for multiple ()) as the subsequent list members. So we fix it by just fixing the index in the calls that want the individual parts. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2019-01-04Merge pull request #2409 from yousong/install-packagesJo-Philipp Wich
treewide: fix redirecting to System->Software
2019-01-02timezone data: update to 2018iHannu Nyman
Update timezone data to 2018i http://mm.icann.org/pipermail/tz-announce/2018-December/000053.html http://mm.icann.org/pipermail/tz-announce/2018-December/000054.html 2018h: * Qyzylorda, Kazakhstan moved from +06 to +05 on 2018-12-21. * New zone Asia/Qostanay because Qostanay, Kazakhstan didn't move. * Metlakatla, Alaska observes PST this winter only. * Guess Morocco will continue to adjust clocks around Ramadan. * Add predictions for Iran from 2038 through 2090. 2018i: * São Tomé and Príncipe switches from +01 to +00 on 2019-01-01. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-01-01treewide: fix query arguments to admin/system/opkgYousong Zhou
Right now the handler only recognizes "query=xx" argument, others will be ignored. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-01-01treewide: fix redirecting to System->SoftwareYousong Zhou
By replacing url "admin/system/packages" with "admin/system/opkg" Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-12-29luci-base: update Ukrainian translationYurii
Signed-off-by: Yurii yuripet@gmail.com
2018-12-29luci-base: rework filebrowser initializationJo-Philipp Wich
Do not call cbi_init() from the browser field template but lazily initialize the field, like it is being done for all other widgets as well. Fixes: #2398 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-26luci-base: fix Japanese translationINAGAKI Hiroshi
Fixed Japanese translation. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-12-26luci-base: fix zh-tw translationGyrotron
Fixes #1092 Signed-off-by: Simmar Kalsi simmarkalsi@gmail.com [reword commit message subject] Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-12-20luci-base: use default poll intervalFlorian Eckert
Replace all XHR poll time number with -1 so they will use the default poll interval time value from "/etc/config/luci". If this is not set then 5 seconds as default is used. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-20modules: use configurable poll intervalFlorian Eckert
Make poll interval configurable. Use option from ---- config core 'main' option pollinterval '5' --- This will only be used if the interval option is less or equal zero. If the poll interval is not configured then a default value of 5 seconds is used. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-20luci-base: update Japanese translationINAGAKI Hiroshi
Updated Japanese translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-12-20i18n: sync translationsINAGAKI Hiroshi
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-12-19Merge pull request #2350 from TDT-AG/pr/20181204-luci-mod-systemJo-Philipp Wich
luci-mod-system: add translation for led trigger names
2018-12-14luci-base: update Simplified Chinese translationZheng Qian
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-12-13luci-base: fix table compare upon writing ipaddr changesJo-Philipp Wich
Fixes: b33192a03 ("luci-base: support cidr list notation for option ipaddr and ip6addr") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-13luci-base: properly option ipaddr in single cidr string notation as wellJo-Philipp Wich
When an interface configuration specifies both "option ipaddr 1.2.3.4/24" and "option netmask", then netifd will ignore the netmask in favor to the prefix encoded in the cidr string. Support this variant as well by treating a sole cidr string value as singöe-item cidr list. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-13luci-base: fix typo in german translationJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-13luci-base: update german translationJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-13luci-base: resync translation templatesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-13luci-base: support cidr list notation for option ipaddr and ip6addrJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-13luci-base: cbi.js: update deps on dynlist changes, honor placeholderJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-12luci-base: fix UCI changelog markup mistakeAnton Kikin
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-12-11luci-base: fix syntax error in map.htmJo-Philipp Wich
Fixes #2366. Fixes: 76e9c0305 ("luci-base: rework ui tabbing code") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-10luci-mod-status: split status page into a series of partialsAnton Kikin
Split status page into a series of partials as discussed in PR #2359. Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-12-10luci-base: rework ui tabbing codeJo-Philipp Wich
- Instantiate tab menus on the client side - Simplify server side markup generation - Show error indicators in cbi tabs Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-10luci-base: luci.js: emit custom events for tooltip open/close actionsJo-Philipp Wich
The new `tooltip-open` and `tooltip-close` events allow other code to hook into the tooltip div rendering, e.g. to populate it with custom markup. Also ignore tooltip events originating from descendant elements while we're at it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-10luci-mod-status: switch iptables_dump action to luci.sys.process.execJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-04luci-mod-system: add translation for trigger namesFlorian Eckert
Not every user knows which trigger does what. To make this clear, the triggers are now translated with a short help text. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-02luci-mod-system: fix IE10/Edge rendering quirk on SSH keys pageJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-02luci-base: fix ReferenceErrorJo-Philipp Wich
The showTooltip() and hideTooltip() functions have been moved to luci.js Reported-by: brv phoenix <feixuekaka1@gmail.com> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-02luci-mod-status: use -w flag when dumping iptablesJo-Philipp Wich
Multiple iptables listing commands might be triggered in parallel due to the XHR polling, so use the -w flag to wait for the lock to become free. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-27Merge pull request #2309 from rbalik/patch-1Jo-Philipp Wich
luci-mod-network: Add DAE settings to security tab
2018-11-27luci-base: dispatcher: use consistent orderingJo-Philipp Wich
Use the same ordering logic for building the dispatch tree and for querying the children of a given node. Fixes #2338. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-27luci-base: dispatcher: remove tree modifier supportJo-Philipp Wich
This feature was never used, is hardly documented and appears to be designed to fiddle with the internal dispatch tree state. Given that, simply drop the related code to simplify the dispatcher class somewhat. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-25luci-mod-network: adapt to current 802.11r defaultsHannu Nyman
The default for 802.11r option ft_psk_generate_local was changed a few months ago by openwrt/openwrt@3cc56a5 That change was a bit awkward, as it made hostapd to overlook the possibly existing r0kh values by default unless the user explicitly disables the new default. Adapt LuCI by changing the default for ft_psk_generate_local into 'enabled'. But ensure that LuCI does not delete the existing key values by not making the r0kh and r1kh fields to depend on this. Note that this is just a quick fix for the wrong default value causing problems, but not yet a complete fix for all the options. In the long run it might be better to make the detail options to depend on local generation. Reference also to LuCI PR #2102 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-11-24luci-mod-network: remove debug code from iface_status.jsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-23luci-mod-network: move wifi and iface status JS into external filesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-23luci-mod-network: move wifi scan JS into external fileJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-23luci-base: modal accessibility fix, wrap XHR.stop()Jo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-23luci-mod-network: wifi scan CSS tweaksJo-Philipp Wich
Hide less important fields for mobile views. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-23luci-mod-system: sshkeys CSS tweakJo-Philipp Wich
Overflow pubkey preview to the left, not to the right. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-23luci-mod-network: fix invalid translate() argument passAnton Kikin
We must pass to the translate() a string without substituted zone name. Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-11-22Merge pull request #2325 from YuriPet/masterJo-Philipp Wich
luci-base & luci-app-opkg: update Ukrainian translation
2018-11-22luci-base: do not trigger form action when revealing passwordJo-Philipp Wich
Ref: https://github.com/openwrt/luci/issues/2327 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22luci-base: update Ukrainian translationYurii
Signed-off-by: Yurii yuripet@gmail.com
2018-11-22luci-mod-status: move index and iptables page JS code into external filesJo-Philipp Wich
Also adjust the Bootstrap and OpenWrt themes accordingly Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22luci-mod-network: move wifi overview markup and JS code into external filesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22luci-mod-network: move interface overview JS into external fileJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22luci-base: move DOM manipulation functions to luci.jsJo-Philipp Wich
Introduce a new luci.dom class which groups the DOM manipulation helpers such as E(), findParent(), matchesElem() etc. Provide wrappers for the old functions to ease the transition to the new functions. Also add a new widget helper function L.itemlist() which consolidates the item enumeration formatting code found on various pages. Signed-off-by: Jo-Philipp Wich <jo@mein.io>