Commit graph

9609 commits

Author SHA1 Message Date
Ansuel Smith
09c3a8385e
luci-app-ddns: make param opt, optional, add myself as maintainer
Currently these params should be optional but in the current script then are required for any configuration to save. We add an "optional" boolean value to the validate function so that we can make this pram optional as it should be. Also adds me as maintainer

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-06-04 09:37:05 +02:00
Jo-Philipp Wich
2d352a9251 luci-base: cbi: atomically reorder uci sections
Since the switch to ubus uci operations we do not have a local application-
side cursor cache anymore, instead uci operations happen synchronously in
the rpcd backend server.

This may cause cbi section reorder operations involving multiple elements
to fail, because anonymous section hashes may change due to rehashing
between consecutive ubus uci reorder calls.

In order to avoid that problem, use the ubus uci batch reorder extension,
which allows to pass a complete (or partial) list of section ids in the
desired order in one call, bypassing the volatile section id problem.

Fixes #1844.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-03 20:02:44 +02:00
Hannu Nyman
660e4f5504
Merge pull request #1819 from Ansuel/ddns-performance
luci-app-ddns: improve performance
2018-06-02 21:11:51 +03:00
Ansuel Smith
299121fc84
luci-app-ddns: improve performance
Every request directed to the ddns app call ddns tools module.
Ddns tools module have lots of global variable that call slow os.execute function. This adds 10 second to every ddns request even if the function that is requested doesn't need that global variable. This commit introduce env_info function that execute os.execute command by executing what is actually requested and not process all the variables. Also remove 2 unecessary module that are not used. More researh find that major slowdown was caused by the calling of ddns script for the version check. Now we check if opkg is present and use it to check ddns-scripts version.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-06-02 18:52:22 +02:00
Hannu Nyman
18b5b068c8
Merge pull request #1846 from musashino205/l10n/base-upd-ja
luci-base: update Japanese translation
2018-06-01 19:52:11 +03:00
Dirk Brenken
c4559052c8
Merge pull request #1847 from dibdot/lxc_fix
luci-app-lxc: bugfix
2018-06-01 18:41:50 +02:00
Dirk Brenken
babcc14c79 luci-app-lxc: bugfix
* fix remaining javascript errors in Chrome

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-06-01 18:33:05 +02:00
INAGAKI Hiroshi
f28784b61e luci-base: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-06-01 02:45:53 +09:00
INAGAKI Hiroshi
2d196614f4 luci-base: sync translations
Synchronized translations with sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-06-01 02:20:05 +09:00
Jo-Philipp Wich
fed315a5e3 themes: drop errorbox styles
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 19:09:51 +02:00
Jo-Philipp Wich
a64ab077d7 luci-mod-freifunk: use common alert message markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 19:08:14 +02:00
Jo-Philipp Wich
29b391d7bc luci-base: use common alert message markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 19:06:48 +02:00
Jo-Philipp Wich
724cc29978 luci-mod-admin-full: use common alert message markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 19:00:56 +02:00
Jo-Philipp Wich
e3bc12da6d themes: unify no-password / no-javascript alert boxes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 18:57:32 +02:00
Jo-Philipp Wich
298d164dd7 luci-base: update coxpcall() implementation, fix runtime error reporting
Sync our coxpcall() implementation to the newest upstream version in order to
get access to the inner backtrace information and propagate these traces to
the browser in luci.dispatcher.dispatch().

This should make tracking down runtime errors much easier.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 17:45:49 +02:00
Jo-Philipp Wich
79d793dffe themes: adjust CSS for reworked apply widget
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 15:38:42 +02:00
Jo-Philipp Wich
5427395649 luci-base: add full page overlay during apply
After applying uci configuration, a full map reload is required in many
cases as the anonymous section identifiers might have been rehashed, causing
the rendered map to go out of sync.

To avoid that, add both a full page overlay preventing further page
interaction and let the apply widget forcibly reload the current view once
the operation is complete.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 15:38:42 +02:00
Dirk Brenken
5452cc214e
Merge pull request #1845 from dibdot/lxc_fix
luci-app-lxc: fix "plain-vanilla" integration, part 3
2018-05-31 08:50:07 +02:00
Jo-Philipp Wich
7bd1bcaf30 luci-mod-admin-full: fix status page render glitch on Chrome
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 07:38:40 +02:00
Dirk Brenken
d8f2f24a5b luci-app-lxc: fix "plain-vanilla" integration, part 3
* migrate JS generated HTML tables to divs
* remove (most of) the inline styles
* various markup cleanups

That's the final part ... hopefully it's now in a  more usable &
maintainable state.

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-05-31 07:28:51 +02:00
Jo-Philipp Wich
c3da1fc232 luci-base: cbi.js: remove unused serialize functions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 16:04:07 +02:00
Jo-Philipp Wich
d1df5a6b7d luci-base: cbi.js: fix cbi_row_swap() after recent table markup changes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 15:59:52 +02:00
Jo-Philipp Wich
0d2ae8d653 luci-mod-admin-full: rework network and wifi status displays
Use a more compact flex layout instead of the tabular display.
Also rename "WAN status" to "Upstream" to avoid future confusion about
wan interfaces vs. defaultroute interfaces.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 14:59:24 +02:00
Jo-Philipp Wich
879f90d15c luci-theme-material: add new style classes
Add new style classes required for status page changes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 14:59:24 +02:00
Jo-Philipp Wich
7875d92c42 luci-theme-bootstrap: add new style classes
Add new style classes required for status page changes, also drop old
Internet Explorer compatibility script and vendor prefixed properties.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 14:59:24 +02:00
Jo-Philipp Wich
f8221b9825 luci-theme-openwrt: add new style classes
Add new style classes required for status page changes, also drop old
Internet Explorer compatibility CSS.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 14:59:24 +02:00
Ansuel Smith
f0094cc06e luci-mod-admin-full: fix revert page
This fix the strange redirect link, a bug with uwsgi where the controller
is empty and a bug with the revert page showing the apply content empty.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
[drop unrelated revert.html template change]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 14:59:24 +02:00
Hannu Nyman
796d687444
Merge pull request #1839 from EricLuehrsen/unbound_defdoc
luci-app-unbound: add root zone file cache option
2018-05-29 11:29:43 +03:00
Eric Luehrsen
d0757f1f47 luci-app-unbound: add root zone file cache option
Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
2018-05-29 00:14:00 -04:00
Eric Luehrsen
60ea5dc53f luci-app-unbound: provide transparent defaults with documentation
Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
2018-05-28 23:59:17 -04:00
Florian Eckert
f6aec9fe21 luci-proto-3g: make it a self-contained package
The follow error will appear after clicking "Switch protcol" to 3g when
luci-proto-3g was not installed.  Fix this by moving the relevant parts
from luci-proto-ppp into luci-proto-3g and making it complete as a
single protocol handler

> Missing protocol extension for proto "3g"
> cannot open /usr/lib/lua/luci/model/cbi/admin_network/proto_3g.lua: No such file or directory

Closes openwrt/luci#1815

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-28 22:28:30 +08:00
Dirk Brenken
a013967e6b
Merge pull request #1822 from Ansuel/luci-cpuinfo
luci-admin-full: add architecture info
2018-05-28 16:09:09 +02:00
Ansuel Smith
b8f32b6da7
luci-admin-full: add architecture info
Referring to this, #1698 , we add architecture info and we show Unknown instead of ?. This is usefull if someone needs to install opkg packages manually.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-05-28 15:38:57 +02:00
Jo-Philipp Wich
5e37b724c4
Merge pull request #1827 from Ansuel/luci-map
luci-theme-material: upgrade jquery
2018-05-28 15:19:30 +02:00
Jo-Philipp Wich
067d7dc9f7 treewide: convert HTML tables to div
Mostly convert HTML tables to div based markup to allow for easier styling
in the future. Also change JS accessor code accordingly.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-28 15:18:45 +02:00
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