Commit graph

11 commits

Author SHA1 Message Date
Xingwang Liao
f90de782a7
luci-app-aria2: Refactor, new views and more options
This commit contains:

* Refactor package code.
* Add options for RPC, HTTP/HTTPS and BT.
* Improve descriptions for some options.
* New views for config files and log files.
* Also updated translation for simplified Chinese.

Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
2019-07-01 14:28:54 +08:00
练亮斌
2326a0a4c0
luci-app-aria2: fix: datatype
just a spelling mistake.

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
2019-06-16 22:26:11 +08:00
Florian Eckert
121e7fea66 luci-app-*: use default poll interval
Replace all XHR poll time number with -1 so they will use the default
poll interval time value from "/etc/config/luci". If this is not set then
5 seconds as default is used.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-20 10:20:23 +01:00
Zheng Qian
e56af3c3e5 luci-app-aria2: fix the log option
According to the package aria2, the log option
is enable_logging, so fix this option name.

As luci-app-aria2 can't set custom log file dir,
the default log file is /var/log/aria2.log but not
in the config file dir.

Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-12-15 21:44:49 +08:00
Zheng Qian
83703aaec0 luci-app-aria2: fix showRPCURL when using https
if login luci-admin with https, RPC protocol should be https or wss.

Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-12-14 13:32:49 +08:00
Zheng Qian
4f11edadff luci-app-aria2: fix http/https protocol when opening aria2 webUI
In the openWebUI function, the url is assumed as http protocol,
this will cause problem when we login luci-admin with https.

The variable localhostPath has already contained http/https
protocol, so we can use it directly and add the path of aria2
webUI.

Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-12-10 17:45:55 +08: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
Stefan Weil
ec63339ae5 Add missing variable declarations in JavaScript code
This fixes errors reported by LGTM.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-10-28 22:38:20 +01:00
Hsing-Wang Liao
909083e673 luci-app-aria2: fix template name
Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
2016-09-20 11:44:03 +08:00
Hsing-Wang Liao
a4c8c20647 luci-app-aria2: fix bugs and add log option
* Fix unable save authentication method;
* Use luci.dispatcher.build_url(...) to support Chaos Calmer;
* Add log file and log level options;
* Rename files.

Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
2016-09-19 18:15:25 +08:00
Hsing-Wang Liao
c88aea6277 luci-app-aria2: Add package
LuCI Support for Aria2

Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
2016-05-30 21:27:22 +08:00