luci-app-alist: add usage documentation link

This commit is contained in:
sbwml 2022-08-03 03:30:27 +08:00
parent fc5e327475
commit caceafb2ba
3 changed files with 9 additions and 6 deletions

View File

@ -16,4 +16,4 @@ make V=s
--------------
![](https://camo.githubusercontent.com/fae1a7e14a91f2d748e4999006c94ac5cb519f97f616f46051f6ae1006d212a6/68747470733a2f2f696d672e636f6f6c75632e636f6d2f696d67732f323032322f30352f643335326637306437626366313739302e706e67)
![](https://user-images.githubusercontent.com/16485166/182457881-ac7dfb65-aa3b-41fb-9b55-1770f136aa5e.png)

View File

@ -3,9 +3,9 @@ local sys = require "luci.sys"
if sys.call("pidof alist >/dev/null") == 0 then
local password = sys.exec("/usr/bin/alist --conf /etc/alist/config.json -password | awk '{print $3}'")
m = Map("alist", translate("Alist"), translate("A file list program that supports multiple storage.") .. " " .. translate("manage password:") .. "<font color=\"green\">" .. password .. "</font>")
m = Map("alist", translate("Alist"), translate("A file list program that supports multiple storage.") .. " " .. translate("manage password:") .. "<font color=\"green\">" .. password .. "</font>" .. "<br/>" .. [[<a href="https://alist-doc.nn.ci/docs/driver/native" target="_blank">]] .. translate("User Manual") .. [[</a>]])
else
m = Map("alist", translate("Alist"), translate("A file list program that supports multiple storage."))
m = Map("alist", translate("Alist"), translate("A file list program that supports multiple storage.") .. "<br/>" .. [[<a href="https://alist-doc.nn.ci/docs/driver/native" target="_blank">]] .. translate("User Manual") .. [[</a>]])
end
m:section(SimpleSection).template = "alist_status"
@ -46,7 +46,7 @@ o = s:option(Value, "cleanup_interval", translate("Clear the invalidation cache
o.datatype = "and(uinteger,min(1))"
o.rmempty = false
o = s:option(Value, "temp_dir", translate("Temp directory"))
o = s:option(Value, "temp_dir", translate("Cache directory"))
o.datatype = "string"
o.rmempty = false

View File

@ -43,8 +43,8 @@ msgstr "缓存失效时间(分钟)"
msgid "Clear the invalidation cache interval (unit: minutes)"
msgstr "清理失效缓存间隔(分钟)"
msgid "Temp directory"
msgstr "临时目录"
msgid "Cache directory"
msgstr "缓存目录"
msgid "The Alist service is running."
msgstr "Alist 服务已启动"
@ -57,3 +57,6 @@ msgstr "收集数据..."
msgid "NAS"
msgstr "网络存储"
msgid "User Manual"
msgstr "用户手册"