Commit graph

9624 commits

Author SHA1 Message Date
Jo-Philipp Wich
79c82237e3 luci-base: add element creation helper to cbi.js
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>
2018-05-28 15:18:45 +02:00
Jo-Philipp Wich
97a640c836 themes: add forward-compatibility CSS
Subsequent changes will largely replace tables with div based markup, so
add forward compatibility style rules to keep the rendering intact.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-28 15:18:45 +02:00
Hannu Nyman
fb70693b7d
Merge pull request #1836 from sotux/master-zh_CN-translation
luci-app-firewall: zh_CN: update Simplified Chinese translation
2018-05-28 07:59:17 +03:00
Zheng Qian
c69bbd194d luci-app-firewall: zh_CN: update Simplified Chinese translation
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-05-28 12:41:23 +08:00
Yousong Zhou
402ad57e55 shadowsocks-libev: fix enumerating server and ss_redir sections
The issue existed since the first revision of the rewrite and was
exposed by commit 4024d4f (luci-base: switch to ubus uci operations)

A quick scan of the current repo indicates that these are the only sites
of wrong call pattern

Fixes openwrt/packages#6113

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-28 11:13:15 +08:00
Hannu Nyman
6f630b5e66
Merge pull request #1834 from Ansuel/fixpo
luci-base: fix broken translation
2018-05-27 22:07:52 +03:00
Ansuel Smith
c29ffe4dfc
luci-base: fix broken translation
Currently this translation refer to an old string, sync to the new one.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-05-27 21:01:33 +02:00
Dirk Brenken
31dfa80d4f
Merge pull request #1828 from dibdot/lxc_fix
luci-app-lxc: fix "plain-vanilla" integration, part 2
2018-05-27 20:52:31 +02:00
Dirk Brenken
d9b6c5dd78 luci-app-lxc: fix "plain-vanilla" integration, part 2
I've tried to get the lxc app in a more usable state. Tested with mips
and amd64 targets.

* check /etc/config/lxc in controller, not in cbi
* more controller cleanups
* remove unused 'fork_exec' function
* check path before container creation
* check space requirements before container creation
  * support new uci options 'min_space' and 'min_temp',
    default for both is 100000 KB
  * both options are configurable via LuCI CBI template
* write messages to log in case of an error
* validate the container name during creation,
  automatically remove invalid chars
* inform the user that only a stopped container can be destroyed
* add experimental ssl support (untested, disabled by default)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-05-27 20:46:13 +02:00
Hannu Nyman
247754431b
Merge pull request #1833 from ysoyipek/patch-3
Update base.po
2018-05-27 16:22:27 +03:00
Yusuf Soyipek
2d053d39d0
Update base.po
Some of the shortcomings in Turkish were added.
2018-05-27 16:17:15 +03:00
Hannu Nyman
c0fc861142
Merge pull request #1832 from musashino205/l10n/fw-upd-ja
luci-app-firewall: update Japanese translation
2018-05-27 15:32:38 +03:00
INAGAKI Hiroshi
a3be234992 luci-app-firewall: update Japanese translation
Added Japanese translations for offloading options.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-05-27 21:27:32 +09:00
INAGAKI Hiroshi
b4d484e372 luci-app-firewall: sync translations
Synchronized translations with sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-05-27 21:07:07 +09:00
Hannu Nyman
aadc1f79c1
Merge pull request #1826 from hnyman/offload
luci-app-firewall: expose flow offloading options
2018-05-27 09:55:55 +03:00
Hannu Nyman
be6dff8f2a
Merge pull request #1829 from musashino205/l10n/mwan3-upd-ja
luci-app-mwan3: update Japanese translation
2018-05-26 21:33:36 +03:00
INAGAKI Hiroshi
e050337c51 luci-app-mwan3: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-05-27 03:12:24 +09:00
Hannu Nyman
177224c14a luci-app-firewall: expose flow offloading options
Expose options related to routing/NAT flow offloading
feature in firewall3. Offloading is available in kernel 4.14+

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-05-26 20:31:23 +03:00
Ansuel Smith
2f0c07a2c7
luci-theme-material: upgrade jquery
This upgrade jquery to latest version and solve 404 error for the useless .map file. Also it's 85kb instead of 97kb

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-05-26 18:58:45 +02:00
Hannu Nyman
9de9a71a9f i18n: one more fix for Polish translation
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-05-25 17:11:47 +03:00
Hannu Nyman
36654b7f4d i18n: sync, fix and cleanup translations
* sync translations (aiccu removal)
* remove some other old strings
* fix Polish translation

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-05-25 16:44:50 +03:00
Hannu Nyman
67ba105de7
Merge pull request #1821 from TDT-AG/pr/20180521-protocols-remove-aiccu
luci-proto-ipv6: remove outdated aiccu proto support
2018-05-25 16:10:19 +03:00
Florian Eckert
9e3fb2c585 luci-proto-ipv6: remove outdated aiccu proto support
Remove outdated package for luci proto section.
See commit:
441f8a3ed1

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-05-25 12:04:28 +02:00
Jo-Philipp Wich
c181699bf7
Merge pull request #1481 from TDT-AG/luci-app-openvpn-fixes
luci-app-openvpn: several fixes
2018-05-25 07:22:27 +02:00
Dirk Brenken
59d91d8a72
Merge pull request #1818 from dibdot/lxc_fix
luci-app-lxc: remove wrong leftover from last commit
2018-05-24 00:26:42 +02:00
Dirk Brenken
e9fa69df18
luci-app-lxc: remove wrong leftover from last commit
Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-05-24 00:25:36 +02:00
Dirk Brenken
77d957c390
Merge pull request #1817 from dibdot/travelmate
luci-app-travelmate: fix url ampersand encoding
2018-05-23 23:52:03 +02:00
Dirk Brenken
85342e2c03
luci-app-travelmate: fix url ampersand encoding
* fix ampersand encoding in wireless stations overview

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-05-23 23:48:47 +02:00
Dirk Brenken
1b2cd8d1c4
Merge pull request #1808 from dibdot/lxc_fix
luci-app-lxc: fix "plain-vanilla" integration
2018-05-23 22:22:44 +02:00
Dirk Brenken
fa4dc6be91 luci-app-lxc: fix "plain-vanilla" integration
I've tried to get the lxc app in a more usable state. Tested with mips
and amd64 targets.

* fix missing tar/xz dependency,
  only if LXC_BUSYBOX_OPTIONS is not selected
* mute needless gpg validation warning
* tidy up controller a little bit
* fix multiple possible dispatcher errors
* fix compatibility with XHTML standard theme (looks still horrible ;-)
* inform the user about custom kernel prerequisites
* inform the user about the template download
* inform the user if no template was found

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-05-23 22:21:46 +02:00
Jo-Philipp Wich
7acacf2cf8
Merge pull request #1814 from Ansuel/lua-interpreter
luci-base: fix dispacher fail
2018-05-23 09:58:53 +02:00
Ansuel Smith
da1e655294
luci-base: fix dispacher fail
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>
2018-05-23 02:52:08 +02:00
Hannu Nyman
bc8e928639
Merge pull request #1810 from musashino205/l10n/tmate-upd-ja
luci-app-travelmate: update Japanese translation
2018-05-21 18:07:54 +03:00
INAGAKI Hiroshi
af19588b9e luci-app-travelmate: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-05-21 23:55:39 +09:00
Hannu Nyman
4b27ad0023
Merge pull request #1809 from musashino205/l10n/adblk-upd-ja
luci-app-adblock: update Japanese translation
2018-05-21 17:17:13 +03:00
INAGAKI Hiroshi
d3c1951cbb luci-app-adblock: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-05-21 23:11:24 +09:00
Hannu Nyman
ba8e7fd7bc
Merge pull request #1805 from musashino205/l10n/base-upd-ja
luci-base: update Japanese translation
2018-05-20 19:26:57 +03:00
INAGAKI Hiroshi
b01471b1fc luci-base: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-05-21 01:04:53 +09:00
INAGAKI Hiroshi
b1fd056fa5 i18n: sync translations
Synchronized translations with sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-05-21 01:04:53 +09:00
Jo-Philipp Wich
37a4a1c070 luci-mod-admin-full: fix crash on wireless when no networks are declared
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-19 23:28:14 +02:00
Jo-Philipp Wich
fdbb417abe luci-mod-admin-full: do not override iface section in wireless cbi map
Do override the iface section id upon commit to avoid clobbering the resulting
configuration. The manual config sync is not needed anymore after switching
to uncached ubus uci operations.

Fixes #1770.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-19 23:26:34 +02:00
Jo-Philipp Wich
64da34b13c luci-base: handle potential crash in luci.model.network.interface.get_i18n()
Should prevent the crash mentioned in #1779.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-19 22:11:08 +02:00
Jo-Philipp Wich
9ed48ef2a6 luci-base: break circular luci.config <> luci.model.uci dependency
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>
2018-05-19 13:07:37 +02:00
Dirk Brenken
72fe5dd703
Merge pull request #1801 from dibdot/adblock
luci-app-adblock: respect SimpleForm size limit
2018-05-18 18:31:07 +02:00
Dirk Brenken
840f45ecc5 luci-app-adblock: respect SimpleForm size limit
* respect SimpleForm size limit of 100KB for advanced online editing

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-05-18 18:19:41 +02:00
Jo-Philipp Wich
09de5a74e1 luci-lib-json: support serializing userdata
Fixes the following error when attempting to serialize userdata objects:

    .../json.lua:81: attempt to call local 'parser' (a nil value)

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-18 16:59:16 +02:00
Jo-Philipp Wich
364c271a84 luci-mod-rpc: fix unresolved controller reference in rpc_auth()
Fixes the following error:

   .../rpc.lua:85: attempt to index global 'ctrl' (a nil value)

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-18 16:58:17 +02:00
Jo-Philipp Wich
828202ef52
Merge pull request #1769 from jow-/master
UCI apply/rollback workflow
2018-05-18 16:44:33 +02:00
Jo-Philipp Wich
80cb4fef8c luci-base: raise maximum POST value size to 100KB
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-18 16:43:29 +02:00
Jo-Philipp Wich
27b7e43180 lucihttp: update to latest HEAD
6ddea4c utils: fix crash with zero length input string in lh_header_attribute()
cb119de lib: add support for setting the maximum allowed data size

Fixes #1784.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-18 16:34:28 +02:00