Commit graph

10392 commits

Author SHA1 Message Date
Florian Eckert
1987b38011 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>
2018-11-22 11:29:44 +01:00
INAGAKI Hiroshi
38f19b4d34 luci-base: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-11-22 16:30:52 +09:00
Florian Eckert
1986dc2751 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>
2018-11-22 08:18:17 +01:00
Florian Eckert
9881ad5a6b luci-app-openvpn: sync code style with openvpn-advanced
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-22 08:18:14 +01:00
Florian Eckert
95f02e9d84 luci-app-openvpn: fix whitespaces in openvpn-basic
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-22 08:18:12 +01:00
Anton Kikin
562ae5f0e5 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>
2018-11-21 22:40:47 +02:00
Hannu Nyman
177b1c152b
Merge pull request #2319 from tano-systems/luci-base-upd-rus-i18n
luci-base: update Russian translation
2018-11-21 19:17:57 +02:00
Dirk Brenken
d5c59834c8
Merge pull request #2307 from dibdot/ovpn
luci-app-openvpn: more changes & fixes
2018-11-21 15:51:19 +01:00
Dirk Brenken
e222003f5d 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>
2018-11-21 15:21:37 +01:00
Anton Kikin
73f89ed327 luci-base: update Russian translation
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-11-21 17:12:25 +03:00
Jo-Philipp Wich
b7acf147ca
Merge pull request #2316 from sotux/master-aria2
luci-app-aria2: add button for to AriaNg
2018-11-21 11:21:55 +01:00
Zheng Qian
8267a65f09 luci-app-aria2: add a button to open ariang
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-11-21 14:05:38 +08:00
Hannu Nyman
73f7c5d5cd
Merge pull request #2313 from sotux/master
i18n: luci-base: update Simplified Chinese translation
2018-11-21 07:41:19 +02:00
Hannu Nyman
18ac3c6701
Merge pull request #2315 from musashino205/l10n/opkg-upd-ja
luci-app-opkg: fix and update Japanese translation
2018-11-21 07:39:45 +02:00
INAGAKI Hiroshi
001a00f48d luci-app-opkg: fix and update Japanese translation
Fixed and updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-11-21 12:30:36 +09:00
Zheng Qian
1902816444 i18n: luci-base: update Simplified Chinese translation
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-11-21 09:50:07 +08:00
Jo-Philipp Wich
515562be27 luci-theme-bootstrap, luci-theme-openwrt: allow dynlist .add-item to expand
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20 13:32:31 +01:00
Jo-Philipp Wich
398d69945a luci-app-opkg: use a more appropriate german translation for "clear"
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20 13:20:52 +01:00
Jo-Philipp Wich
7a32e11e2b 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>
2018-11-20 11:54:22 +01:00
Jo-Philipp Wich
a17c5808f0 luci-base: resync translations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20 11:46:17 +01:00
Jo-Philipp Wich
26529ed578 luci-app-opkg: resync translations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20 11:45:43 +01:00
Jo-Philipp Wich
50ee130cd8 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>
2018-11-20 11:43:20 +01:00
Jo-Philipp Wich
447f0c8171 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>
2018-11-20 11:01:50 +01:00
Jo-Philipp Wich
fc87173e1f
Merge pull request #2308 from YuriPet/master
opkg.po: update Ukrainian translation
2018-11-20 08:18:27 +01:00
Reuben Balik
6f53654a58
luci-mod-network: Add DAE settings to security tab
Signed-off-by: Reuben Balik <rsbalik@gmail.com>
2018-11-19 17:43:10 -06:00
Yurii
a8d950861d
opkg.po: update Ukrainian translation
Signed-off-by: Yurii yuripet@gmail.com
2018-11-20 00:51:38 +02:00
Dirk Brenken
d373dd9c55
Merge pull request #2304 from ryu0/master
luci-app-lxc: add i686 to target map
2018-11-19 16:51:44 +01:00
James Buren
9630e7e994 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>
2018-11-19 09:02:49 -06:00
Jo-Philipp Wich
51de74d520 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>
2018-11-19 13:31:43 +01:00
Jo-Philipp Wich
c55436e36f 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>
2018-11-19 11:58:17 +01:00
Jo-Philipp Wich
2babc47ae2 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>
2018-11-19 11:50:25 +01:00
Jo-Philipp Wich
1ca5a99a49 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>
2018-11-19 09:26:27 +01:00
Jo-Philipp Wich
90f728e536
Merge pull request #2306 from yglb/master
luci-theme-rosy: Repair form bug
2018-11-19 07:51:06 +01:00
Yanlan Shen
58c03a8a06 luci-theme-luci: Match css to implement related styles
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-11-19 14:09:15 +08:00
Yanlan Shen
94a562ccf3 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>
2018-11-19 14:09:15 +08:00
Dirk Brenken
18c6544057
Merge pull request #2299 from dibdot/banip
luci-app-banip: sync with update 0.0.6
2018-11-17 16:57:55 +01:00
Jo-Philipp Wich
e5f9e3ff25 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>
2018-11-17 14:57:08 +01:00
Hannu Nyman
93fdac8560
Merge pull request #2298 from YuriPet/master
luci-base: update Ukrainian translation
2018-11-16 23:00:02 +02:00
Jo-Philipp Wich
e991e09d47
Merge pull request #2297 from tano-systems/fix-fstab-mount-table
luci-mod-system: fstab: fix table cell rendering without unmount button
2018-11-16 21:37:35 +01:00
Anton Kikin
677765705d luci-mod-system: fstab: fix table cell rendering without unmount button
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-11-16 23:20:21 +03:00
Jo-Philipp Wich
a1fff6a9ee 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>
2018-11-16 21:11:34 +01:00
Jo-Philipp Wich
425a02734e 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>
2018-11-16 21:11:34 +01:00
Jo-Philipp Wich
5dddb105d2 luci-theme-bootstrap: remove redundant rules
Drop rules specific to the old status page progress bars and rework the
cbi element rules to work independently of a parent form tag.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-16 21:11:34 +01:00
Dirk Brenken
bef7d98bd6 luci-app-banip: sync with update 0.0.6
* add a manual interface selection to support
  multiple WAN interfaces in iptables rules

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-11-16 21:09:14 +01:00
Yurii
827c83f7ae
luci-base: update Ukrainian translation
Signed-off-by: Yurii yuripet@gmail.com
2018-11-16 21:59:41 +02:00
Hannu Nyman
ee6e07217c
Merge pull request #2296 from tano-systems/luci-base-upd-rus-i18n
luci-base: update Russian translation
2018-11-16 18:57:15 +02:00
Anton Kikin
c098c2345c luci-base: update Russian translation
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-11-16 19:50:46 +03:00
Hannu Nyman
68894e22d3
Merge pull request #2293 from musashino205/l10n/opkg-upd-ja
luci-app-opkg: update Japanese translation
2018-11-16 18:27:50 +02:00
Jo-Philipp Wich
36f79a042d
Merge pull request #2295 from musashino205/l10n/base-upd-ja
luci-base: update Japanese translation
2018-11-16 15:17:25 +01:00
INAGAKI Hiroshi
2d1c0301f8 luci-base: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-11-16 23:09:24 +09:00