summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
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>
2018-11-22luci-app-opkg: allow presetting filter via query attributeJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22luci-mod-system: move password and sshkey JS code into external filesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22luci-app-opkg: move JS code into external fileJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22luci-base: cbi.js: remove functions moved to luci.jsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22luci-base: introduce common JavaScript apiJo-Philipp Wich
Introduce a new script file luci.js which is included by default and intended to be the common location of functions currently scattered in cbi.js and xhr.js. The luci.js file provides a LuCI() class which - among other things - implements helpers to construct URL paths and making HTTP requests. A singleton instance of the class is instantiated as window.L upon load and preset with the necessary environment information. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22build: add build option to minify *.js filesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22Merge pull request #2323 from musashino205/l10n/base-upd-jaDirk Brenken
luci-base: update Japanese translation
2018-11-22Merge pull request #2317 from TDT-AG/pr/20181121-luci-app-openvpnDirk Brenken
luci-app-openvpn: redirect to overview page on save/apply, hide boolean by default and cleanup code
2018-11-22luci-app-openvpn: do not show all boolean option by defaultFlorian Eckert
If a new instance is edit then all boolean option are shown on the LuCI. This is confusing. To fix this hide all boolean ellements on the config page which are not enabled by default. They must be add first. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-22luci-base: update Japanese translationINAGAKI Hiroshi
Updated Japanese translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-11-22luci-app-openvpn: On apply/save redirect to OpenVPN overview pageFlorian Eckert
This change will redirect on apply/save to the OpenVPN overview page. This is the default behaviour on LuCI. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-22luci-app-openvpn: sync code style with openvpn-advancedFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-22luci-app-openvpn: fix whitespaces in openvpn-basicFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-21luci-app-statistics: update and fix Russian translationAnton Kikin
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com> [ Fixed too wide line lengths with i18n-sync.pl ] Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-11-21Merge pull request #2319 from tano-systems/luci-base-upd-rus-i18nHannu Nyman
luci-base: update Russian translation
2018-11-21Merge pull request #2307 from dibdot/ovpnDirk Brenken
luci-app-openvpn: more changes & fixes
2018-11-21luci-app-openvpn: more changes & fixesDirk Brenken
* fix possible exception in template based ovpn creation * remove needless shellquote function in controller, the filename will be checked on client side with JS * enhance FileUpload behaviour in basic/advanced mode: - change "auth_user_pass" to FileUpload - cfg entries (even with default values) will be shown - existing entries are now removable (incl. file unlink), simply clear the appropriate textbox * change "key_direction" option to boolean ListValue * add "config" option to basic/advanced edit, to make it possible to change the upload path in LuCI Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-11-21luci-base: update Russian translationAnton Kikin
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-11-21Merge pull request #2316 from sotux/master-aria2Jo-Philipp Wich
luci-app-aria2: add button for to AriaNg
2018-11-21luci-app-aria2: add a button to open ariangZheng Qian
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-11-21Merge pull request #2313 from sotux/masterHannu Nyman
i18n: luci-base: update Simplified Chinese translation
2018-11-21Merge pull request #2315 from musashino205/l10n/opkg-upd-jaHannu Nyman
luci-app-opkg: fix and update Japanese translation
2018-11-21luci-app-opkg: fix and update Japanese translationINAGAKI Hiroshi
Fixed and updated Japanese translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-11-21i18n: luci-base: update Simplified Chinese translationZheng Qian
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-11-20luci-theme-bootstrap, luci-theme-openwrt: allow dynlist .add-item to expandJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20luci-app-opkg: use a more appropriate german translation for "clear"Jo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20luci-mod-system: submit password change on enterJo-Philipp Wich
Allow to submit the password change form by pressing enter in the second input field. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20luci-base: resync translationsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20luci-app-opkg: resync translationsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20luci-base: fix apply/rollback stringsJo-Philipp Wich
Commit 94d8c9a7a accidentally overwrite the rewording of strings made in an earlier commit. Fixes: 94d8c9a7a ("luci-base: simplify apply widget code") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20luci-mod-system: restructure administration pagesJo-Philipp Wich
Split password, dropbear and SSH key configuration into separate pages in order to improve the form layout and to simplify the code. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20Merge pull request #2308 from YuriPet/masterJo-Philipp Wich
opkg.po: update Ukrainian translation
2018-11-20opkg.po: update Ukrainian translationYurii
Signed-off-by: Yurii yuripet@gmail.com
2018-11-19Merge pull request #2304 from ryu0/masterDirk Brenken
luci-app-lxc: add i686 to target map
2018-11-19luci-app-lxc: add i686 to target mapJames Buren
Add i686 to target map so i386 container templates are usable. Signed-off-by: James Buren <ryuo@ryuo.xyz>
2018-11-19luci-base: further hash calculation signedness bugfixesJo-Philipp Wich
- cbi.js: make sure to treat single bytes as signed char when handling end cases - template_lmo.c: make sure to treat single bytes as signed char when handling end cases, avoids hash miscalculations on ARM Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-19luci-base: cbi.js: fix sfh() signedness bug for strings with 3 trailing bytesJo-Philipp Wich
Replace a sign-propagating right shift by a zero-filling right shift to avoid calculating a wrong hash code in the three-trailing-bytes case. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-19luci-base: cbi.js: fix sfh() hash calculation over multibyte sequencesJo-Philipp Wich
The C side implementation of the hash operates on bytes while the JS variant operated on UTF-16 codepoints, leading to miscalculations on input strings containing multibyte sequences. Recode the given string to an internal UTF-8 byte representation and calculate the hash over that. Fixes client side mapping of translation strings containing non-ASCII characters. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-19luci-app-opkg: accesibility fixesJo-Philipp Wich
- Use semantic button markup for buttons - Add ARIA labels to page forward/backward buttons Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-19Merge pull request #2306 from yglb/masterJo-Philipp Wich
luci-theme-rosy: Repair form bug
2018-11-19luci-theme-luci: Match css to implement related stylesYanlan Shen
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-11-19luci-theme-rosy: Modifying the form does not fully display the bug of the ↵Yanlan Shen
dropdown box Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-11-17Merge pull request #2299 from dibdot/banipDirk Brenken
luci-app-banip: sync with update 0.0.6
2018-11-17luci-mod-status: fix average calculationsJo-Philipp Wich
Calculate the average over the actual data and not over the entire timeframe. Fixes #2301 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-16Merge pull request #2298 from YuriPet/masterHannu Nyman
luci-base: update Ukrainian translation
2018-11-16Merge pull request #2297 from tano-systems/fix-fstab-mount-tableJo-Philipp Wich
luci-mod-system: fstab: fix table cell rendering without unmount button