project/luci.git
5 years agoluci-theme-rosy: Modify the code for the progress bar of the overview interface 2334/head
Yanlan Shen [Mon, 3 Dec 2018 07:14:14 +0000 (15:14 +0800)]
luci-theme-rosy: Modify the code for the progress bar of the overview interface

Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
5 years agoluci-theme-rosy: Fixed bug with rounded corners and drop down boxes
Yanlan Shen [Thu, 29 Nov 2018 10:30:12 +0000 (18:30 +0800)]
luci-theme-rosy: Fixed bug with rounded corners and drop down boxes

Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
5 years agoluci-theme-rosy: Modify the color of the button's primary and secondary colors and...
Yanlan Shen [Tue, 27 Nov 2018 02:15:31 +0000 (10:15 +0800)]
luci-theme-rosy: Modify the color of the button's primary and secondary colors and the bug of the status-overview page.

Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
5 years agoluci-mod-system: fix IE10/Edge rendering quirk on SSH keys page
Jo-Philipp Wich [Sun, 2 Dec 2018 16:10:39 +0000 (17:10 +0100)]
luci-mod-system: fix IE10/Edge rendering quirk on SSH keys page

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-theme-bootstrap, luci-theme-openwrt: allow dynlist item content to wrap
Jo-Philipp Wich [Sun, 2 Dec 2018 15:57:24 +0000 (16:57 +0100)]
luci-theme-bootstrap, luci-theme-openwrt: allow dynlist item content to wrap

Very long values without whitespace can easily overflow the dynlist item
container, so allow the browser to forcibly break such lines.

Reported-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: fix ReferenceError
Jo-Philipp Wich [Sun, 2 Dec 2018 13:40:05 +0000 (21:40 +0800)]
luci-base: fix ReferenceError

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>
5 years agoluci-mod-status: use -w flag when dumping iptables
Jo-Philipp Wich [Sun, 2 Dec 2018 13:29:53 +0000 (14:29 +0100)]
luci-mod-status: use -w flag when dumping iptables

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>
5 years agoMerge pull request #2344 from shunjou/theme-material
Jo-Philipp Wich [Thu, 29 Nov 2018 09:37:45 +0000 (10:37 +0100)]
Merge pull request #2344 from shunjou/theme-material

luci-theme-material: minor changes

5 years agoluci-theme-material: optimize brand logo 2344/head
shunjou [Thu, 29 Nov 2018 09:10:38 +0000 (04:10 -0500)]
luci-theme-material: optimize brand logo

Signed-off-by: Shun Jou <shunjou@gmail.com>
5 years agoluci-theme-material: remove obsolete header info
shunjou [Thu, 29 Nov 2018 09:03:20 +0000 (04:03 -0500)]
luci-theme-material: remove obsolete header info

Signed-off-by: Shun Jou <shunjou@gmail.com>
5 years agoMerge pull request #2342 from dibdot/fw
Dirk Brenken [Wed, 28 Nov 2018 12:59:30 +0000 (13:59 +0100)]
Merge pull request #2342 from dibdot/fw

luci-app-firewall: remove hinting

5 years agoluci-app-firewall: remove hinting 2342/head
Dirk Brenken [Wed, 28 Nov 2018 12:55:42 +0000 (13:55 +0100)]
luci-app-firewall: remove hinting

Remove firewall hinting as discussed in #2340

Signed-off-by: Dirk Brenken <dev@brenken.org>
5 years agoMerge pull request #2341 from brvphoenix/luci-theme-material
Jo-Philipp Wich [Wed, 28 Nov 2018 12:39:49 +0000 (13:39 +0100)]
Merge pull request #2341 from brvphoenix/luci-theme-material

luci-theme-material: add the missing modal/progressbar rules.

5 years agoluci-theme-material: add the missing modal/progressbar rules. 2341/head
brv phoenix [Wed, 28 Nov 2018 11:27:46 +0000 (19:27 +0800)]
luci-theme-material: add the missing modal/progressbar rules.

Signed-off-by: brv phoenix <feixuekaka1@gmail.com>
5 years agoMerge pull request #2329 from TDT-AG/pr/20181123-luci-theme-material
Jo-Philipp Wich [Tue, 27 Nov 2018 22:46:08 +0000 (23:46 +0100)]
Merge pull request #2329 from TDT-AG/pr/20181123-luci-theme-material

luci-theme-material: add missing css cbi-section-error definitions

5 years agoMerge pull request #2335 from shunjou/material-favicon
Jo-Philipp Wich [Tue, 27 Nov 2018 22:44:24 +0000 (23:44 +0100)]
Merge pull request #2335 from shunjou/material-favicon

luci-theme-material: add new favicon

5 years agoMerge pull request #2309 from rbalik/patch-1
Jo-Philipp Wich [Tue, 27 Nov 2018 22:43:23 +0000 (23:43 +0100)]
Merge pull request #2309 from rbalik/patch-1

luci-mod-network: Add DAE settings to security tab

5 years agoMerge pull request #2336 from TDT-AG/pr/20181127-luci-app-openvpn
Jo-Philipp Wich [Tue, 27 Nov 2018 14:28:05 +0000 (15:28 +0100)]
Merge pull request #2336 from TDT-AG/pr/20181127-luci-app-openvpn

luci-app-openvpn: Add missing config options

5 years agoluci-base: dispatcher: use consistent ordering
Jo-Philipp Wich [Tue, 27 Nov 2018 14:23:41 +0000 (15:23 +0100)]
luci-base: dispatcher: use consistent ordering

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>
5 years agoluci-base: dispatcher: remove tree modifier support
Jo-Philipp Wich [Tue, 27 Nov 2018 13:46:55 +0000 (14:46 +0100)]
luci-base: dispatcher: remove tree modifier support

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>
5 years agoluci-theme-bootstrap: allow tabmenus to wrap (#2333)
Jo-Philipp Wich [Tue, 27 Nov 2018 12:57:32 +0000 (13:57 +0100)]
luci-theme-bootstrap: allow tabmenus to wrap (#2333)

Allow the tab menu line to wrap around on narrow screens to fix the issue
reported in PR #2333.

Also add the .nowrap utility class to the Bootstrap theme while we're
touching it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-openvpn: add missing ncp_ciphers option 2336/head
Florian Eckert [Mon, 26 Nov 2018 14:43:08 +0000 (15:43 +0100)]
luci-app-openvpn: add missing ncp_ciphers option

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-app-openvpn: add missing verify_client_cert option
Florian Eckert [Mon, 26 Nov 2018 14:13:24 +0000 (15:13 +0100)]
luci-app-openvpn: add missing verify_client_cert option

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-app-openvpn: add missing compress option
Florian Eckert [Mon, 26 Nov 2018 12:08:02 +0000 (13:08 +0100)]
luci-app-openvpn: add missing compress option

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-app-openvpn: predefining the dropdown for the cipher option
Florian Eckert [Mon, 26 Nov 2018 13:31:52 +0000 (14:31 +0100)]
luci-app-openvpn: predefining the dropdown for the cipher option

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-app-openvpn: add missing ncp_disable option
Florian Eckert [Mon, 26 Nov 2018 13:04:42 +0000 (14:04 +0100)]
luci-app-openvpn: add missing ncp_disable option

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-app-openvpn: add missing allow_recursive_routing option
Florian Eckert [Mon, 26 Nov 2018 12:41:40 +0000 (13:41 +0100)]
luci-app-openvpn: add missing allow_recursive_routing option

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-theme-material: add new favicon 2335/head
shunjou [Tue, 27 Nov 2018 02:31:30 +0000 (21:31 -0500)]
luci-theme-material: add new favicon

Also remove logo.png as it is unused.

Signed-off-by: Shun Jou <shunjou@gmail.com>
5 years agoMerge pull request #2331 from dibdot/ovpn
Dirk Brenken [Mon, 26 Nov 2018 14:21:42 +0000 (15:21 +0100)]
Merge pull request #2331 from dibdot/ovpn

luci-app-openvpn: "final" changeset

5 years agoluci-app-openvpn: "final" changeset 2331/head
Dirk Brenken [Sat, 24 Nov 2018 15:33:54 +0000 (16:33 +0100)]
luci-app-openvpn: "final" changeset

* add 'auth-user-pass' edit section in file mode (see screenshot)
* add port & protocol detection in file mode (see screenshot)
* don't mix file & normal edit modes any longer
* add CC compatibility fix (for turris devices)
* fix/refine JS instance name filter
* remove needless CSS rules
* unlink ovpn/auth files on section removal
* commit changes instantly (Add/Upload/Delete)

Signed-off-by: Dirk Brenken <dev@brenken.org>
5 years agoluci-mod-network: adapt to current 802.11r defaults
Hannu Nyman [Sun, 25 Nov 2018 06:48:16 +0000 (08:48 +0200)]
luci-mod-network: adapt to current 802.11r defaults

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>
5 years agoluci-mod-network: remove debug code from iface_status.js
Jo-Philipp Wich [Sat, 24 Nov 2018 20:32:33 +0000 (21:32 +0100)]
luci-mod-network: remove debug code from iface_status.js

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: CSS accessibility improvements for modal dialog
Jo-Philipp Wich [Fri, 23 Nov 2018 06:44:30 +0000 (07:44 +0100)]
luci-base: CSS accessibility improvements for modal dialog

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-network: move wifi and iface status JS into external files
Jo-Philipp Wich [Fri, 23 Nov 2018 14:47:44 +0000 (15:47 +0100)]
luci-mod-network: move wifi and iface status JS into external files

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-network: move wifi scan JS into external file
Jo-Philipp Wich [Fri, 23 Nov 2018 14:41:56 +0000 (15:41 +0100)]
luci-mod-network: move wifi scan JS into external file

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: modal accessibility fix, wrap XHR.stop()
Jo-Philipp Wich [Fri, 23 Nov 2018 14:43:33 +0000 (15:43 +0100)]
luci-base: modal accessibility fix, wrap XHR.stop()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-network: wifi scan CSS tweaks
Jo-Philipp Wich [Fri, 23 Nov 2018 14:10:54 +0000 (15:10 +0100)]
luci-mod-network: wifi scan CSS tweaks

Hide less important fields for mobile views.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-system: sshkeys CSS tweak
Jo-Philipp Wich [Fri, 23 Nov 2018 14:10:16 +0000 (15:10 +0100)]
luci-mod-system: sshkeys CSS tweak

Overflow pubkey preview to the left, not to the right.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-theme-bootstrap: add responsive CSS
Jo-Philipp Wich [Fri, 23 Nov 2018 14:08:50 +0000 (15:08 +0100)]
luci-theme-bootstrap: add responsive CSS

Add responsive CSS to improve the rendering on small screen devices.

Tested on Mobile Safari using an iPhone 5 and iPhone 6, ymmv for other
platforms.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-theme-material: add missing css cbi-section-error definitions 2329/head
Florian Eckert [Fri, 23 Nov 2018 09:26:58 +0000 (10:26 +0100)]
luci-theme-material: add missing css cbi-section-error definitions

Add the missing error css class definitions.
Highlights the wrong inputs detected by the cbi validation function.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoMerge pull request #2328 from tano-systems/fix-translate-arg
Jo-Philipp Wich [Fri, 23 Nov 2018 09:14:49 +0000 (10:14 +0100)]
Merge pull request #2328 from tano-systems/fix-translate-arg

luci-mod-network: fix invalid translate() argument pass

5 years agoluci-mod-network: fix invalid translate() argument pass 2328/head
Anton Kikin [Thu, 22 Nov 2018 21:46:51 +0000 (00:46 +0300)]
luci-mod-network: fix invalid translate() argument pass

We must pass to the translate() a string without substituted zone name.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
5 years agoMerge pull request #2325 from YuriPet/master
Jo-Philipp Wich [Thu, 22 Nov 2018 17:51:12 +0000 (18:51 +0100)]
Merge pull request #2325 from YuriPet/master

luci-base & luci-app-opkg: update Ukrainian translation

5 years agoluci-base: do not trigger form action when revealing password
Jo-Philipp Wich [Thu, 22 Nov 2018 13:47:56 +0000 (14:47 +0100)]
luci-base: do not trigger form action when revealing password

Ref: https://github.com/openwrt/luci/issues/2327
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-opkg: update Ukrainian translation 2325/head
Yurii [Thu, 22 Nov 2018 12:09:12 +0000 (14:09 +0200)]
luci-app-opkg: update Ukrainian translation

Signed-off-by: Yurii yuripet@gmail.com
5 years agoluci-base: update Ukrainian translation
Yurii [Thu, 22 Nov 2018 12:07:45 +0000 (14:07 +0200)]
luci-base: update Ukrainian translation

Signed-off-by: Yurii yuripet@gmail.com
5 years agoluci-mod-status: move index and iptables page JS code into external files
Jo-Philipp Wich [Wed, 21 Nov 2018 19:16:06 +0000 (20:16 +0100)]
luci-mod-status: move index and iptables page JS code into external files

Also adjust the Bootstrap and OpenWrt themes accordingly

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-network: move wifi overview markup and JS code into external files
Jo-Philipp Wich [Thu, 22 Nov 2018 11:56:05 +0000 (12:56 +0100)]
luci-mod-network: move wifi overview markup and JS code into external files

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-network: move interface overview JS into external file
Jo-Philipp Wich [Wed, 21 Nov 2018 20:07:34 +0000 (21:07 +0100)]
luci-mod-network: move interface overview JS into external file

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: move DOM manipulation functions to luci.js
Jo-Philipp Wich [Thu, 22 Nov 2018 07:52:14 +0000 (08:52 +0100)]
luci-base: move DOM manipulation functions to luci.js

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>
5 years agoluci-app-opkg: allow presetting filter via query attribute
Jo-Philipp Wich [Thu, 22 Nov 2018 07:57:09 +0000 (08:57 +0100)]
luci-app-opkg: allow presetting filter via query attribute

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-system: move password and sshkey JS code into external files
Jo-Philipp Wich [Wed, 21 Nov 2018 19:04:55 +0000 (20:04 +0100)]
luci-mod-system: move password and sshkey JS code into external files

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-opkg: move JS code into external file
Jo-Philipp Wich [Wed, 21 Nov 2018 19:01:54 +0000 (20:01 +0100)]
luci-app-opkg: move JS code into external file

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: cbi.js: remove functions moved to luci.js
Jo-Philipp Wich [Wed, 21 Nov 2018 19:27:08 +0000 (20:27 +0100)]
luci-base: cbi.js: remove functions moved to luci.js

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: introduce common JavaScript api
Jo-Philipp Wich [Wed, 21 Nov 2018 17:44:59 +0000 (18:44 +0100)]
luci-base: introduce common JavaScript api

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>
5 years agobuild: add build option to minify *.js files
Jo-Philipp Wich [Wed, 21 Nov 2018 17:30:14 +0000 (18:30 +0100)]
build: add build option to minify *.js files

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoMerge pull request #2323 from musashino205/l10n/base-upd-ja
Dirk Brenken [Thu, 22 Nov 2018 11:09:52 +0000 (12:09 +0100)]
Merge pull request #2323 from musashino205/l10n/base-upd-ja

luci-base: update Japanese translation

5 years agoMerge pull request #2317 from TDT-AG/pr/20181121-luci-app-openvpn
Dirk Brenken [Thu, 22 Nov 2018 11:09:19 +0000 (12:09 +0100)]
Merge pull request #2317 from TDT-AG/pr/20181121-luci-app-openvpn

luci-app-openvpn: redirect to overview page on save/apply, hide boolean by default and cleanup code

5 years agoluci-app-openvpn: do not show all boolean option by default 2317/head
Florian Eckert [Thu, 22 Nov 2018 09:53:55 +0000 (10:53 +0100)]
luci-app-openvpn: do not show all boolean option by default

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>
5 years agoluci-base: update Japanese translation 2323/head
INAGAKI Hiroshi [Thu, 22 Nov 2018 07:27:00 +0000 (16:27 +0900)]
luci-base: update Japanese translation

Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
5 years agoluci-app-openvpn: On apply/save redirect to OpenVPN overview page
Florian Eckert [Wed, 21 Nov 2018 12:15:29 +0000 (13:15 +0100)]
luci-app-openvpn: On apply/save redirect to OpenVPN overview page

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>
5 years agoluci-app-openvpn: sync code style with openvpn-advanced
Florian Eckert [Wed, 21 Nov 2018 11:46:29 +0000 (12:46 +0100)]
luci-app-openvpn: sync code style with openvpn-advanced

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-app-openvpn: fix whitespaces in openvpn-basic
Florian Eckert [Wed, 21 Nov 2018 11:42:10 +0000 (12:42 +0100)]
luci-app-openvpn: fix whitespaces in openvpn-basic

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-app-statistics: update and fix Russian translation
Anton Kikin [Wed, 21 Nov 2018 19:24:00 +0000 (22:24 +0300)]
luci-app-statistics: update and fix Russian translation

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>
5 years agoMerge pull request #2319 from tano-systems/luci-base-upd-rus-i18n
Hannu Nyman [Wed, 21 Nov 2018 17:17:57 +0000 (19:17 +0200)]
Merge pull request #2319 from tano-systems/luci-base-upd-rus-i18n

luci-base: update Russian translation

5 years agoMerge pull request #2307 from dibdot/ovpn
Dirk Brenken [Wed, 21 Nov 2018 14:51:19 +0000 (15:51 +0100)]
Merge pull request #2307 from dibdot/ovpn

luci-app-openvpn: more changes & fixes

5 years agoluci-app-openvpn: more changes & fixes 2307/head
Dirk Brenken [Mon, 19 Nov 2018 20:20:22 +0000 (21:20 +0100)]
luci-app-openvpn: more changes & fixes

* 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>
5 years agoluci-base: update Russian translation 2319/head
Anton Kikin [Tue, 20 Nov 2018 16:59:48 +0000 (19:59 +0300)]
luci-base: update Russian translation

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
5 years agoMerge pull request #2316 from sotux/master-aria2
Jo-Philipp Wich [Wed, 21 Nov 2018 10:21:55 +0000 (11:21 +0100)]
Merge pull request #2316 from sotux/master-aria2

luci-app-aria2: add button for to AriaNg

5 years agoluci-app-aria2: add a button to open ariang 2316/head
Zheng Qian [Wed, 21 Nov 2018 02:48:32 +0000 (10:48 +0800)]
luci-app-aria2: add a button to open ariang

Signed-off-by: Zheng Qian <sotux82@gmail.com>
5 years agoMerge pull request #2313 from sotux/master
Hannu Nyman [Wed, 21 Nov 2018 05:41:19 +0000 (07:41 +0200)]
Merge pull request #2313 from sotux/master

i18n: luci-base: update Simplified Chinese translation

5 years agoMerge pull request #2315 from musashino205/l10n/opkg-upd-ja
Hannu Nyman [Wed, 21 Nov 2018 05:39:45 +0000 (07:39 +0200)]
Merge pull request #2315 from musashino205/l10n/opkg-upd-ja

luci-app-opkg: fix and update Japanese translation

5 years agoluci-app-opkg: fix and update Japanese translation 2314/head 2315/head
INAGAKI Hiroshi [Wed, 21 Nov 2018 03:30:36 +0000 (12:30 +0900)]
luci-app-opkg: fix and update Japanese translation

Fixed and updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
5 years agoi18n: luci-base: update Simplified Chinese translation 2313/head
Zheng Qian [Wed, 21 Nov 2018 00:40:52 +0000 (08:40 +0800)]
i18n: luci-base: update Simplified Chinese translation

Signed-off-by: Zheng Qian <sotux82@gmail.com>
5 years agoluci-theme-bootstrap, luci-theme-openwrt: allow dynlist .add-item to expand
Jo-Philipp Wich [Tue, 20 Nov 2018 12:31:58 +0000 (13:31 +0100)]
luci-theme-bootstrap, luci-theme-openwrt: allow dynlist .add-item to expand

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-opkg: use a more appropriate german translation for "clear"
Jo-Philipp Wich [Tue, 20 Nov 2018 12:20:52 +0000 (13:20 +0100)]
luci-app-opkg: use a more appropriate german translation for "clear"

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-system: submit password change on enter
Jo-Philipp Wich [Tue, 20 Nov 2018 10:54:22 +0000 (11:54 +0100)]
luci-mod-system: submit password change on enter

Allow to submit the password change form by pressing enter in the second
input field.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: resync translations
Jo-Philipp Wich [Tue, 20 Nov 2018 10:46:17 +0000 (11:46 +0100)]
luci-base: resync translations

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-opkg: resync translations
Jo-Philipp Wich [Tue, 20 Nov 2018 10:45:43 +0000 (11:45 +0100)]
luci-app-opkg: resync translations

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: fix apply/rollback strings
Jo-Philipp Wich [Tue, 20 Nov 2018 10:43:20 +0000 (11:43 +0100)]
luci-base: fix apply/rollback strings

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>
5 years agoluci-mod-system: restructure administration pages
Jo-Philipp Wich [Tue, 20 Nov 2018 09:50:03 +0000 (10:50 +0100)]
luci-mod-system: restructure administration pages

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>
5 years agoMerge pull request #2308 from YuriPet/master
Jo-Philipp Wich [Tue, 20 Nov 2018 07:18:27 +0000 (08:18 +0100)]
Merge pull request #2308 from YuriPet/master

opkg.po: update Ukrainian translation

5 years agoluci-mod-network: Add DAE settings to security tab 2309/head
Reuben Balik [Mon, 19 Nov 2018 23:43:10 +0000 (17:43 -0600)]
luci-mod-network: Add DAE settings to security tab

Signed-off-by: Reuben Balik <rsbalik@gmail.com>
5 years agoopkg.po: update Ukrainian translation 2308/head
Yurii [Mon, 19 Nov 2018 22:51:38 +0000 (00:51 +0200)]
opkg.po: update Ukrainian translation

Signed-off-by: Yurii yuripet@gmail.com
5 years agoMerge pull request #2304 from ryu0/master
Dirk Brenken [Mon, 19 Nov 2018 15:51:44 +0000 (16:51 +0100)]
Merge pull request #2304 from ryu0/master

luci-app-lxc: add i686 to target map

5 years agoluci-app-lxc: add i686 to target map 2304/head
James Buren [Sun, 18 Nov 2018 20:57:37 +0000 (14:57 -0600)]
luci-app-lxc: add i686 to target map
Add i686 to target map so i386 container templates are usable.

Signed-off-by: James Buren <ryuo@ryuo.xyz>
5 years agoluci-base: further hash calculation signedness bugfixes
Jo-Philipp Wich [Mon, 19 Nov 2018 12:28:52 +0000 (13:28 +0100)]
luci-base: further hash calculation signedness bugfixes

 - 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>
5 years agoluci-base: cbi.js: fix sfh() signedness bug for strings with 3 trailing bytes
Jo-Philipp Wich [Mon, 19 Nov 2018 10:58:17 +0000 (11:58 +0100)]
luci-base: cbi.js: fix sfh() signedness bug for strings with 3 trailing bytes

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>
5 years agoluci-base: cbi.js: fix sfh() hash calculation over multibyte sequences
Jo-Philipp Wich [Mon, 19 Nov 2018 10:47:18 +0000 (11:47 +0100)]
luci-base: cbi.js: fix sfh() hash calculation over multibyte sequences

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>
5 years agoluci-app-opkg: accesibility fixes
Jo-Philipp Wich [Mon, 19 Nov 2018 08:26:27 +0000 (09:26 +0100)]
luci-app-opkg: accesibility fixes

 - Use semantic button markup for buttons
 - Add ARIA labels to page forward/backward buttons

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoMerge pull request #2306 from yglb/master
Jo-Philipp Wich [Mon, 19 Nov 2018 06:51:06 +0000 (07:51 +0100)]
Merge pull request #2306 from yglb/master

luci-theme-rosy: Repair form bug

5 years agoluci-theme-luci: Match css to implement related styles 2306/head
Yanlan Shen [Mon, 19 Nov 2018 05:37:36 +0000 (13:37 +0800)]
luci-theme-luci: Match css to implement related styles

Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
5 years agoluci-theme-rosy: Modifying the form does not fully display the bug of the dropdown box
Yanlan Shen [Mon, 19 Nov 2018 05:34:31 +0000 (13:34 +0800)]
luci-theme-rosy: Modifying the form does not fully display the bug of the dropdown box

Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
5 years agoMerge pull request #2299 from dibdot/banip
Dirk Brenken [Sat, 17 Nov 2018 15:57:55 +0000 (16:57 +0100)]
Merge pull request #2299 from dibdot/banip

luci-app-banip: sync with update 0.0.6

5 years agoluci-mod-status: fix average calculations
Jo-Philipp Wich [Sat, 17 Nov 2018 13:54:43 +0000 (14:54 +0100)]
luci-mod-status: fix average calculations

Calculate the average over the actual data and not over the entire timeframe.

Fixes #2301
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoMerge pull request #2298 from YuriPet/master
Hannu Nyman [Fri, 16 Nov 2018 21:00:02 +0000 (23:00 +0200)]
Merge pull request #2298 from YuriPet/master

luci-base: update Ukrainian translation

5 years agoMerge pull request #2297 from tano-systems/fix-fstab-mount-table
Jo-Philipp Wich [Fri, 16 Nov 2018 20:37:35 +0000 (21:37 +0100)]
Merge pull request #2297 from tano-systems/fix-fstab-mount-table

luci-mod-system: fstab: fix table cell rendering without unmount button

5 years agoluci-mod-system: fstab: fix table cell rendering without unmount button 2297/head
Anton Kikin [Fri, 16 Nov 2018 18:13:14 +0000 (21:13 +0300)]
luci-mod-system: fstab: fix table cell rendering without unmount button

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
5 years agoluci-base: xhr.js: rework class, handle expired session
Jo-Philipp Wich [Fri, 16 Nov 2018 18:31:07 +0000 (19:31 +0100)]
luci-base: xhr.js: rework class, handle expired session

Drop very old IE compat code, restructure class, align code style with
other files and properly handle JSON mimetypes with charset trailer.

Also detect session related 403 errors and show a modal prompting
to re-login.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: dispatcher: add login indication on 403 errors
Jo-Philipp Wich [Fri, 16 Nov 2018 18:33:39 +0000 (19:33 +0100)]
luci-base: dispatcher: add login indication on 403 errors

Send a custom LuCI X-Header to indicate that a login is required to access
the requested resource. This is mainly intended for xhr.js to be able to
intercept such responses and popup an authentication dialog.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>