LuCI - OpenWrt Configuration Interface
Revisão | 3adfb7e6e16573ea3ef822bb1d647f9c8f712d00 (tree) |
---|---|
Hora | 2022-05-20 22:40:13 |
Autor | Tianling Shen <cnsztl@immo...> |
Commiter | Tianling Shen |
Merge Mainline
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
@@ -11,7 +11,7 @@ PKG_VERSION:=0.9 | ||
11 | 11 | PKG_RELEASE:=20210309 |
12 | 12 | |
13 | 13 | LUCI_TITLE:=LuCI page for Argon Config |
14 | -LUCI_DEPENDS:=+luci-theme-argonv3 | |
14 | +LUCI_DEPENDS:=+luci-lib-ipkg +luci-theme-argonv3 | |
15 | 15 | LUCI_PKGARCH:=all |
16 | 16 | |
17 | 17 | include ../../luci.mk |
@@ -7,7 +7,7 @@ | ||
7 | 7 | include $(TOPDIR)/rules.mk |
8 | 8 | |
9 | 9 | LUCI_TITLE:=LuCI Support for cupsd |
10 | -LUCI_DEPENDS:= +cups | |
10 | +LUCI_DEPENDS:=+cups +luci-lib-ipkg | |
11 | 11 | PKG_VERSION:=1.2 |
12 | 12 | |
13 | 13 | include ../../luci.mk |
@@ -9,7 +9,7 @@ PKG_VERSION:=1.4.1 | ||
9 | 9 | PKG_RELEASE:=2 |
10 | 10 | |
11 | 11 | LUCI_TITLE:=LuCI support for Rclone |
12 | -LUCI_DEPENDS:=+rclone-config \ | |
12 | +LUCI_DEPENDS:=+luci-lib-ipkg +rclone-config \ | |
13 | 13 | +PACKAGE_$(PKG_NAME)_INCLUDE_rclone-webui:rclone-webui-react \ |
14 | 14 | +PACKAGE_$(PKG_NAME)_INCLUDE_rclone-ng:rclone-ng |
15 | 15 | LUCI_PKGARCH:=all |
@@ -1,15 +1,9 @@ | ||
1 | -# Copyright (C) 2016 Openwrt.org | |
2 | -# | |
3 | -# This is free software, licensed under the Apache License, Version 2.0 . | |
4 | -# | |
5 | - | |
6 | 1 | include $(TOPDIR)/rules.mk |
7 | 2 | |
8 | 3 | LUCI_TITLE:=LuCI support for syncthing |
9 | 4 | LUCI_DEPENDS:=+syncthing |
10 | 5 | LUCI_PKGARCH:=all |
11 | -PKG_VERSION:=1.0 | |
12 | -PKG_RELEASE:=2 | |
6 | +PKG_RELEASE:=$(COMMITCOUNT) | |
13 | 7 | |
14 | 8 | include ../../luci.mk |
15 | 9 |
@@ -3,17 +3,50 @@ | ||
3 | 3 | |
4 | 4 | require("nixio.fs") |
5 | 5 | |
6 | -m = Map("syncthing", translate("SyncThing Synchronization Tool")) | |
6 | +m = Map("syncthing", translate("Syncthing Synchronization Tool")) | |
7 | 7 | |
8 | 8 | m:section(SimpleSection).template = "syncthing/syncthing_status" |
9 | 9 | |
10 | -s = m:section(TypedSection, "setting", translate("Settings")) | |
10 | +s = m:section(TypedSection, "syncthing") | |
11 | +s.addremove = false | |
11 | 12 | s.anonymous = true |
12 | 13 | |
13 | -s:option(Flag, "enabled", translate("Enable")) | |
14 | - | |
15 | -s:option(Value, "port", translate("port")).default = 8384 | |
16 | -s.rmempty = true | |
14 | +o = s:option(Flag, "enabled", translate("Enabled")) | |
15 | +o.default = 0 | |
16 | +o.rmempty = false | |
17 | + | |
18 | +gui_address = s:option(Value, "gui_address", translate("GUI access address")) | |
19 | +gui_address.description = translate("Use 0.0.0.0:8384 to monitor all access.") | |
20 | +gui_address.default = "http://0.0.0.0:8384" | |
21 | +gui_address.placeholder = "http://0.0.0.0:8384" | |
22 | +gui_address.rmempty = false | |
23 | + | |
24 | +home = s:option(Value, "home", translate("Configuration file directory")) | |
25 | +home.description = translate("Only the configuration saved in /etc/syncthing will be automatically backed up!") | |
26 | +home.default = "/etc/syncthing" | |
27 | +home.placeholder = "/etc/syncthing" | |
28 | +home.rmempty = false | |
29 | + | |
30 | +user = s:option(ListValue, "user", translate("User")) | |
31 | +user.description = translate("The default is syncthing, but it may cause permission denied. Syncthing officially does not recommend running as root.") | |
32 | +user:value("", translate("syncthing")) | |
33 | +for u in luci.util.execi("cat /etc/passwd | cut -d ':' -f1") do | |
34 | + user:value(u) | |
35 | +end | |
36 | + | |
37 | +macprocs = s:option(Value, "macprocs", translate("Thread limit")) | |
38 | +macprocs.description = translate("0 to match the number of CPUs (default), >0 to explicitly specify concurrency.") | |
39 | +macprocs.default = "0" | |
40 | +macprocs.placeholder = "0" | |
41 | +macprocs.datatype="range(0,32)" | |
42 | +macprocs.rmempty = false | |
43 | + | |
44 | +nice = s:option(Value, "nice", "Nice") | |
45 | +nice.description = translate("Explicitly specify nice. 0 is the highest and 19 is the lowest. (negative values are not allowed to be set temporarily)") | |
46 | +nice.default = "19" | |
47 | +nice.placeholder = "19" | |
48 | +nice.datatype="range(0,19)" | |
49 | +nice.rmempty = false | |
17 | 50 | |
18 | 51 | |
19 | 52 | return m |
@@ -1,27 +1,22 @@ | ||
1 | 1 | <script type="text/javascript">//<![CDATA[ |
2 | -XHR.poll(1, '<%=url([[admin]], [[nas]], [[syncthing]], [[status]])%>', null, | |
3 | - function(x, data) { | |
4 | - var tb = document.getElementById('syncthing_status'); | |
5 | - if (data && tb) { | |
6 | - if (data.running) { | |
7 | - var links = '<font color=green>Syncthing <%:RUNNING%></font><input class="cbi-button mar-10" type="button" value="<%:Open Web Interface%>" onclick="openClient();" />'; | |
8 | - tb.innerHTML = links; | |
9 | - } else { | |
10 | - tb.innerHTML = '<font color=red>Syncthing <%:NOT RUNNING%></font>'; | |
2 | + XHR.poll(1, '<%=url([[admin]], [[nas]], [[syncthing]], [[status]])%>', null, | |
3 | + function (x, data) { | |
4 | + var tb = document.getElementById('syncthing_status'); | |
5 | + if (data && tb) { | |
6 | + if (data.running) { | |
7 | + var links = '<em><b><font color="green">Syncthing <%:RUNNING%></font></b></em><input class="btn cbi-button mar-10" type="button" value="<%:Open Syncthing page%>" onclick="openwebui();" />'; | |
8 | + tb.innerHTML = links; | |
9 | + } else { | |
10 | + tb.innerHTML = '<em><b><font color="red">Syncthing <%:NOT RUNNING%></font></b></em>'; | |
11 | + } | |
11 | 12 | } |
12 | 13 | } |
13 | - } | |
14 | -); | |
14 | + ); | |
15 | 15 | |
16 | -function openClient() { | |
17 | - var curWwwPath = window.document.location.href; | |
18 | - var pathName = window.document.location.pathname; | |
19 | - var pos = curWwwPath.indexOf(pathName); | |
20 | - var localhostPath = curWwwPath.substring(0, pos); | |
21 | - var clientPort = window.document.getElementById("cbid.syncthing.config.port").value | |
22 | - var url = localhostPath + ":" + clientPort; | |
23 | - window.open(url) | |
24 | -}; | |
16 | +function openwebui(){ | |
17 | + var url = window.location.host+":<%=luci.sys.exec("uci -q get syncthing.syncthing.gui_address"):match(":[0-9]+"):gsub(":", "")%>"; | |
18 | + window.open('http://'+url,'target',''); | |
19 | +} | |
25 | 20 | //]]> |
26 | 21 | </script> |
27 | 22 | <style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style> |
@@ -1,8 +1,35 @@ | ||
1 | 1 | msgid "Syncthing" |
2 | -msgstr "储存同步" | |
2 | +msgstr "Syncthing" | |
3 | 3 | |
4 | -msgid "SyncThing Synchronization Tool" | |
5 | -msgstr "syncthing同步工具" | |
4 | +msgid "Syncthing Synchronization Tool" | |
5 | +msgstr "Syncthing 存储同步工具" | |
6 | 6 | |
7 | -msgid "Open Web Interface" | |
8 | -msgstr "打开管理页面" | |
7 | +msgid "Open Syncthing page" | |
8 | +msgstr "打开储存同步页面" | |
9 | + | |
10 | +msgid "GUI access address" | |
11 | +msgstr "GUI访问地址" | |
12 | + | |
13 | +msgid "Use 0.0.0.0:8384 to monitor all access." | |
14 | +msgstr "使用0.0.0.0:8384监听所有访问。" | |
15 | + | |
16 | +msgid "Configuration file directory" | |
17 | +msgstr "配置文件存储目录" | |
18 | + | |
19 | +msgid "Only the configuration saved in /etc/syncthing will be automatically backed up!" | |
20 | +msgstr "只有保存在 /etc/syncthing 的配置会被自动备份!" | |
21 | + | |
22 | +msgid "User" | |
23 | +msgstr "用户" | |
24 | + | |
25 | +msgid "The default is syncthing, but it may cause permission denied. Syncthing officially does not recommend running as root." | |
26 | +msgstr "默认为syncthing,但可能引起权限不足问题。Syncthing官方不建议以root身份运行。" | |
27 | + | |
28 | +msgid "Thread limit" | |
29 | +msgstr "线程限制" | |
30 | + | |
31 | +msgid "0 to match the number of CPUs (default), >0 to explicitly specify concurrency." | |
32 | +msgstr "使用0来匹配CPU核心数,或输入大于0的数来显式指定并发数。" | |
33 | + | |
34 | +msgid "Explicitly specify nice. 0 is the highest and 19 is the lowest. (negative values are not allowed to be set temporarily)" | |
35 | +msgstr "显式指定进程Nice值。其中0最高,19最低。(暂不允许设置负值)" |
@@ -1,4 +0,0 @@ | ||
1 | - | |
2 | -config setting 'config' | |
3 | - option enabled '0' | |
4 | - option port '8384' |
@@ -1,43 +0,0 @@ | ||
1 | -#!/bin/sh /etc/rc.common | |
2 | -START=50 | |
3 | - | |
4 | -run_syncthing() | |
5 | -{ | |
6 | - local enabled | |
7 | - config_get_bool enabled $1 enabled | |
8 | - if [ $enabled = 1 ]; then | |
9 | - local port | |
10 | - config_get port $1 port | |
11 | - state=`pgrep syncthing | wc -l` | |
12 | - if [ $state = 0 ] ; then | |
13 | - export HOME="/root" | |
14 | - syncthing -gui-address="0.0.0.0:$port" -logfile="/var/log/syncthing.log" -no-browser >/dev/null & | |
15 | - echo "启动中..." | |
16 | - start=`pgrep syncthing | wc -l` | |
17 | - if [ $start = 0 ] ; then | |
18 | - echo "启动失败" | |
19 | - else | |
20 | - echo "启动成功" | |
21 | - fi | |
22 | - else | |
23 | - echo "已在运行" | |
24 | - fi | |
25 | - fi | |
26 | -} | |
27 | - | |
28 | -start() | |
29 | -{ | |
30 | - config_load syncthing | |
31 | - config_foreach run_syncthing setting | |
32 | -} | |
33 | - | |
34 | -stop() | |
35 | -{ | |
36 | - kill -9 `pgrep syncthing` | |
37 | - stop=`pgrep syncthing | wc -l` | |
38 | - if [ $stop = 0 ] ; then | |
39 | - echo "已停止运行" | |
40 | - else | |
41 | - echo "未停止运行" | |
42 | - fi | |
43 | -} |
@@ -6,7 +6,7 @@ | ||
6 | 6 | include $(TOPDIR)/rules.mk |
7 | 7 | |
8 | 8 | LUCI_TITLE:=LuCI support for V2ray Server |
9 | -LUCI_DEPENDS:=+xray-core | |
9 | +LUCI_DEPENDS:=+luci-lib-ipkg +xray-core | |
10 | 10 | LUCI_PKGARCH:=all |
11 | 11 | PKG_VERSION:=1.1 |
12 | 12 | PKG_RELEASE:=5 |
@@ -14,7 +14,7 @@ PKG_CONFIG_DEPENDS:= \ | ||
14 | 14 | LUCI_TITLE:=A New SS/SSR/Xray/Trojan LuCI interface |
15 | 15 | LUCI_PKGARCH:=all |
16 | 16 | LUCI_DEPENDS:= \ |
17 | - +bash +coreutils +coreutils-base64 +dnsmasq-full +ip-full +ipset +iptables-mod-tproxy \ | |
17 | + +bash +coreutils +coreutils-base64 +dnsmasq-full +ip-full +ipset +iptables-mod-tproxy +luci-lib-ipkg \ | |
18 | 18 | +lua +lua-cjson +lua-maxminddb +luasocket +pdnsd-alt +shadowsocksr-libev-ssr-check +shadowsocksr-libev-ssr-redir \ |
19 | 19 | +shadowsocks-libev-ss-local +shadowsocksr-libev-ssr-local +shadowsocks-libev-ss-redir +simple-obfs +wget-ssl \ |
20 | 20 | +PACKAGE_$(PKG_NAME)_INCLUDE_Kcptun:kcptun-client \ |
@@ -6,7 +6,7 @@ | ||
6 | 6 | include $(TOPDIR)/rules.mk |
7 | 7 | |
8 | 8 | LUCI_TITLE:=LuCI support for Wrtbwmon |
9 | -LUCI_DEPENDS:=+luci-app-nlbwmon | |
9 | +LUCI_DEPENDS:=+luci-app-nlbwmon +luci-lib-ipkg | |
10 | 10 | LUCI_PKGARCH:=all |
11 | 11 | PKG_VERSION:=1.0 |
12 | 12 | PKG_RELEASE:=7 |
@@ -1237,7 +1237,7 @@ msgstr "Espai lliure" | ||
1237 | 1237 | |
1238 | 1238 | msgid "" |
1239 | 1239 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1240 | -"wireguard.io\">wireguard.io</a>." | |
1240 | +"wireguard.com\">wireguard.com</a>." | |
1241 | 1241 | msgstr "" |
1242 | 1242 | |
1243 | 1243 | msgid "GHz" |
@@ -1266,7 +1266,7 @@ msgstr "Volné místo" | ||
1266 | 1266 | |
1267 | 1267 | msgid "" |
1268 | 1268 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1269 | -"wireguard.io\">wireguard.io</a>." | |
1269 | +"wireguard.com\">wireguard.com</a>." | |
1270 | 1270 | msgstr "" |
1271 | 1271 | |
1272 | 1272 | msgid "GHz" |
@@ -1279,10 +1279,10 @@ msgstr "Freier Platz" | ||
1279 | 1279 | |
1280 | 1280 | msgid "" |
1281 | 1281 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1282 | -"wireguard.io\">wireguard.io</a>." | |
1282 | +"wireguard.com\">wireguard.com</a>." | |
1283 | 1283 | msgstr "" |
1284 | 1284 | "Weitere Informationen zu WireGuard-Schnittstellen und Peers unter <a href=" |
1285 | -"\"http://wireguard.io\">wireguard.io</a>." | |
1285 | +"\"http://wireguard.com\">wireguard.com</a>." | |
1286 | 1286 | |
1287 | 1287 | msgid "GHz" |
1288 | 1288 | msgstr "GHz" |
@@ -1257,7 +1257,7 @@ msgstr "Ελεύθερος χώρος" | ||
1257 | 1257 | |
1258 | 1258 | msgid "" |
1259 | 1259 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1260 | -"wireguard.io\">wireguard.io</a>." | |
1260 | +"wireguard.com\">wireguard.com</a>." | |
1261 | 1261 | msgstr "" |
1262 | 1262 | |
1263 | 1263 | msgid "GHz" |
@@ -1232,7 +1232,7 @@ msgstr "" | ||
1232 | 1232 | |
1233 | 1233 | msgid "" |
1234 | 1234 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1235 | -"wireguard.io\">wireguard.io</a>." | |
1235 | +"wireguard.com\">wireguard.com</a>." | |
1236 | 1236 | msgstr "" |
1237 | 1237 | |
1238 | 1238 | msgid "GHz" |
@@ -1274,7 +1274,7 @@ msgstr "Espacio libre" | ||
1274 | 1274 | |
1275 | 1275 | msgid "" |
1276 | 1276 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1277 | -"wireguard.io\">wireguard.io</a>." | |
1277 | +"wireguard.com\">wireguard.com</a>." | |
1278 | 1278 | msgstr "" |
1279 | 1279 | |
1280 | 1280 | msgid "GHz" |
@@ -1287,7 +1287,7 @@ msgstr "Espace libre" | ||
1287 | 1287 | |
1288 | 1288 | msgid "" |
1289 | 1289 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1290 | -"wireguard.io\">wireguard.io</a>." | |
1290 | +"wireguard.com\">wireguard.com</a>." | |
1291 | 1291 | msgstr "" |
1292 | 1292 | |
1293 | 1293 | msgid "GHz" |
@@ -1215,7 +1215,7 @@ msgstr "" | ||
1215 | 1215 | |
1216 | 1216 | msgid "" |
1217 | 1217 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1218 | -"wireguard.io\">wireguard.io</a>." | |
1218 | +"wireguard.com\">wireguard.com</a>." | |
1219 | 1219 | msgstr "" |
1220 | 1220 | |
1221 | 1221 | msgid "GHz" |
@@ -1272,7 +1272,7 @@ msgstr "Szabad hely" | ||
1272 | 1272 | |
1273 | 1273 | msgid "" |
1274 | 1274 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1275 | -"wireguard.io\">wireguard.io</a>." | |
1275 | +"wireguard.com\">wireguard.com</a>." | |
1276 | 1276 | msgstr "" |
1277 | 1277 | |
1278 | 1278 | msgid "GHz" |
@@ -1256,7 +1256,7 @@ msgstr "Spazio libero" | ||
1256 | 1256 | |
1257 | 1257 | msgid "" |
1258 | 1258 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1259 | -"wireguard.io\">wireguard.io</a>." | |
1259 | +"wireguard.com\">wireguard.com</a>." | |
1260 | 1260 | msgstr "" |
1261 | 1261 | |
1262 | 1262 | msgid "GHz" |
@@ -1264,10 +1264,10 @@ msgstr "ディスクの空き容量" | ||
1264 | 1264 | |
1265 | 1265 | msgid "" |
1266 | 1266 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1267 | -"wireguard.io\">wireguard.io</a>." | |
1267 | +"wireguard.com\">wireguard.com</a>." | |
1268 | 1268 | msgstr "" |
1269 | 1269 | "WireGuard インターフェースとピアについての詳細情報: <a href=\"http://" |
1270 | -"wireguard.io\">wireguard.io</a>" | |
1270 | +"wireguard.com\">wireguard.com</a>" | |
1271 | 1271 | |
1272 | 1272 | msgid "GHz" |
1273 | 1273 | msgstr "GHz" |
@@ -1242,7 +1242,7 @@ msgstr "여유 공간" | ||
1242 | 1242 | |
1243 | 1243 | msgid "" |
1244 | 1244 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1245 | -"wireguard.io\">wireguard.io</a>." | |
1245 | +"wireguard.com\">wireguard.com</a>." | |
1246 | 1246 | msgstr "" |
1247 | 1247 | |
1248 | 1248 | msgid "GHz" |
@@ -1200,7 +1200,7 @@ msgstr "" | ||
1200 | 1200 | |
1201 | 1201 | msgid "" |
1202 | 1202 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1203 | -"wireguard.io\">wireguard.io</a>." | |
1203 | +"wireguard.com\">wireguard.com</a>." | |
1204 | 1204 | msgstr "" |
1205 | 1205 | |
1206 | 1206 | msgid "GHz" |
@@ -1238,7 +1238,7 @@ msgstr "Ledig plass" | ||
1238 | 1238 | |
1239 | 1239 | msgid "" |
1240 | 1240 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1241 | -"wireguard.io\">wireguard.io</a>." | |
1241 | +"wireguard.com\">wireguard.com</a>." | |
1242 | 1242 | msgstr "" |
1243 | 1243 | |
1244 | 1244 | msgid "GHz" |
@@ -1277,7 +1277,7 @@ msgstr "Wolna przestrzeń" | ||
1277 | 1277 | |
1278 | 1278 | msgid "" |
1279 | 1279 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1280 | -"wireguard.io\">wireguard.io</a>." | |
1280 | +"wireguard.com\">wireguard.com</a>." | |
1281 | 1281 | msgstr "" |
1282 | 1282 | |
1283 | 1283 | msgid "GHz" |
@@ -1307,10 +1307,10 @@ msgstr "Espaço livre" | ||
1307 | 1307 | |
1308 | 1308 | msgid "" |
1309 | 1309 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1310 | -"wireguard.io\">wireguard.io</a>." | |
1310 | +"wireguard.com\">wireguard.com</a>." | |
1311 | 1311 | msgstr "" |
1312 | 1312 | "Mais informações sobre interfaces e parceiros WireGuard em <a href=\"http://" |
1313 | -"wireguard.io\">wireguard.io</a>." | |
1313 | +"wireguard.com\">wireguard.com</a>." | |
1314 | 1314 | |
1315 | 1315 | msgid "GHz" |
1316 | 1316 | msgstr "GHz" |
@@ -1279,7 +1279,7 @@ msgstr "Espaço livre" | ||
1279 | 1279 | |
1280 | 1280 | msgid "" |
1281 | 1281 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1282 | -"wireguard.io\">wireguard.io</a>." | |
1282 | +"wireguard.com\">wireguard.com</a>." | |
1283 | 1283 | msgstr "" |
1284 | 1284 | |
1285 | 1285 | msgid "GHz" |
@@ -1209,7 +1209,7 @@ msgstr "Spatiu liber" | ||
1209 | 1209 | |
1210 | 1210 | msgid "" |
1211 | 1211 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1212 | -"wireguard.io\">wireguard.io</a>." | |
1212 | +"wireguard.com\">wireguard.com</a>." | |
1213 | 1213 | msgstr "" |
1214 | 1214 | |
1215 | 1215 | msgid "GHz" |
@@ -1280,8 +1280,10 @@ msgstr "Свободное место" | ||
1280 | 1280 | |
1281 | 1281 | msgid "" |
1282 | 1282 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1283 | -"wireguard.io\">wireguard.io</a>." | |
1283 | +"wireguard.com\">wireguard.com</a>." | |
1284 | 1284 | msgstr "" |
1285 | +"Дополнительная информация о интерфейсах и партнерах WireGuard приведена в <a " | |
1286 | +"href=\"http://wireguard.com\">wireguard.com</a>." | |
1285 | 1287 | |
1286 | 1288 | msgid "GHz" |
1287 | 1289 | msgstr "ГГц" |
@@ -1206,7 +1206,7 @@ msgstr "" | ||
1206 | 1206 | |
1207 | 1207 | msgid "" |
1208 | 1208 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1209 | -"wireguard.io\">wireguard.io</a>." | |
1209 | +"wireguard.com\">wireguard.com</a>." | |
1210 | 1210 | msgstr "" |
1211 | 1211 | |
1212 | 1212 | msgid "GHz" |
@@ -1212,7 +1212,7 @@ msgstr "Fritt utrymme" | ||
1212 | 1212 | |
1213 | 1213 | msgid "" |
1214 | 1214 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1215 | -"wireguard.io\">wireguard.io</a>." | |
1215 | +"wireguard.com\">wireguard.com</a>." | |
1216 | 1216 | msgstr "" |
1217 | 1217 | |
1218 | 1218 | msgid "GHz" |
@@ -1247,7 +1247,7 @@ msgstr "Boş alan" | ||
1247 | 1247 | |
1248 | 1248 | msgid "" |
1249 | 1249 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1250 | -"wireguard.io\">wireguard.io</a>." | |
1250 | +"wireguard.com\">wireguard.com</a>." | |
1251 | 1251 | msgstr "" |
1252 | 1252 | |
1253 | 1253 | msgid "GHz" |
@@ -1286,7 +1286,7 @@ msgstr "Вільне місце" | ||
1286 | 1286 | |
1287 | 1287 | msgid "" |
1288 | 1288 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1289 | -"wireguard.io\">wireguard.io</a>." | |
1289 | +"wireguard.com\">wireguard.com</a>." | |
1290 | 1290 | msgstr "" |
1291 | 1291 | |
1292 | 1292 | msgid "GHz" |
@@ -1250,7 +1250,7 @@ msgstr "" | ||
1250 | 1250 | |
1251 | 1251 | msgid "" |
1252 | 1252 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1253 | -"wireguard.io\">wireguard.io</a>." | |
1253 | +"wireguard.com\">wireguard.com</a>." | |
1254 | 1254 | msgstr "" |
1255 | 1255 | |
1256 | 1256 | msgid "GHz" |
@@ -1329,10 +1329,10 @@ msgstr "空闲空间" | ||
1329 | 1329 | |
1330 | 1330 | msgid "" |
1331 | 1331 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1332 | -"wireguard.io\">wireguard.io</a>." | |
1332 | +"wireguard.com\">wireguard.com</a>." | |
1333 | 1333 | msgstr "" |
1334 | -"有关 WireGuard 接口和 Peer 的更多信息:<a href=\"http://wireguard.io" | |
1335 | -"\">wireguard.io</a>。" | |
1334 | +"有关 WireGuard 接口和 Peer 的更多信息:<a href=\"http://wireguard.com" | |
1335 | +"\">wireguard.com</a>。" | |
1336 | 1336 | |
1337 | 1337 | msgid "GHz" |
1338 | 1338 | msgstr "GHz" |
@@ -1226,7 +1226,7 @@ msgstr "剩餘空間" | ||
1226 | 1226 | |
1227 | 1227 | msgid "" |
1228 | 1228 | "Further information about WireGuard interfaces and peers at <a href=\"http://" |
1229 | -"wireguard.io\">wireguard.io</a>." | |
1229 | +"wireguard.com\">wireguard.com</a>." | |
1230 | 1230 | msgstr "" |
1231 | 1231 | |
1232 | 1232 | msgid "GHz" |
@@ -5,7 +5,7 @@ | ||
5 | 5 | local map, section, net = ... |
6 | 6 | local ifname = net:get_interface():name() |
7 | 7 | local private_key, listen_port |
8 | -local metric, mtu, preshared_key | |
8 | +local metric, mtu, preshared_key, description | |
9 | 9 | local peers, public_key, allowed_ips, endpoint, persistent_keepalive |
10 | 10 | |
11 | 11 |
@@ -89,13 +89,23 @@ peers = map:section( | ||
89 | 89 | "wireguard_" .. ifname, |
90 | 90 | translate("Peers"), |
91 | 91 | translate("Further information about WireGuard interfaces and peers " .. |
92 | - "at <a href=\"http://wireguard.io\">wireguard.io</a>.") | |
92 | + "at <a href=\"http://wireguard.com\">wireguard.com</a>.") | |
93 | 93 | ) |
94 | 94 | peers.template = "cbi/tsection" |
95 | 95 | peers.anonymous = true |
96 | 96 | peers.addremove = true |
97 | 97 | |
98 | 98 | |
99 | +description = peers:option( | |
100 | + Value, | |
101 | + "description", | |
102 | + translate("Description"), | |
103 | + translate("Optional. Description of peer.")) | |
104 | +description.placeholder = "My Peer" | |
105 | +description.datatype = "string" | |
106 | +description.optional = true | |
107 | + | |
108 | + | |
99 | 109 | public_key = peers:option( |
100 | 110 | Value, |
101 | 111 | "public_key", |
@@ -47,8 +47,6 @@ | ||
47 | 47 | border-bottom: 1px solid #eee; |
48 | 48 | } |
49 | 49 | |
50 | - | |
51 | - | |
52 | 50 | .th { |
53 | 51 | font-weight: bold; |
54 | 52 | } |
@@ -669,7 +667,7 @@ td > table > tbody > tr > td, | ||
669 | 667 | .cbi-button-apply.important, |
670 | 668 | .cbi-button-reload.important, |
671 | 669 | .cbi-button-action.important { |
672 | - color: #fff; | |
670 | + color: #fff; | |
673 | 671 | background-color: #F24C7C; |
674 | 672 | } |
675 | 673 |
@@ -1742,6 +1740,19 @@ header > .container > .pull-right > * { | ||
1742 | 1740 | background-color: #8A4568; |
1743 | 1741 | } |
1744 | 1742 | |
1743 | +.login .cbi-page-actions .cbi-button-apply, | |
1744 | +.login .cbi-button-apply { | |
1745 | + color: #fff; | |
1746 | + border: 1px solid #f24b7c; | |
1747 | + background-color: #f24b7c; | |
1748 | +} | |
1749 | + | |
1750 | +.login .cbi-button-reset { | |
1751 | + color: #fff; | |
1752 | + border: 1px solid #9a4569; | |
1753 | + background-color: #9a4569; | |
1754 | +} | |
1755 | + | |
1745 | 1756 | .login footer { |
1746 | 1757 | bottom: 0; |
1747 | 1758 | position: absolute; |
@@ -1946,7 +1957,7 @@ body.lang_pl.login .cbi-value-title { | ||
1946 | 1957 | .login { |
1947 | 1958 | background: #354057; |
1948 | 1959 | } |
1949 | - | |
1960 | + | |
1950 | 1961 | .logged-in .main-left { |
1951 | 1962 | width: 0; |
1952 | 1963 | position: fixed; |
@@ -2032,7 +2043,7 @@ body.lang_pl.login .cbi-value-title { | ||
2032 | 2043 | .cbi-section { |
2033 | 2044 | padding: 1rem; |
2034 | 2045 | } |
2035 | - | |
2046 | + | |
2036 | 2047 | table, .table { |
2037 | 2048 | border-bottom: 1px solid #eee; |
2038 | 2049 | } |
@@ -2133,7 +2144,7 @@ body.lang_pl.login .cbi-value-title { | ||
2133 | 2144 | .hide-xs { |
2134 | 2145 | display: none; |
2135 | 2146 | } |
2136 | - | |
2147 | + | |
2137 | 2148 | /* The scroll bar of the navigation bar is compatible with each browser. */ |
2138 | 2149 | /* Google */ |
2139 | 2150 | .main-left .navbar-container::-webkit-scrollbar { |
@@ -1,4 +1,4 @@ | ||
1 | -<%# | |
1 | +<%# | |
2 | 2 | Rosy is a theme for LuCI. It is based on luci-theme-bootstrap |
3 | 3 | luci-theme-rosy |
4 | 4 | Copyright 2018 Rosy Song <rosysong@rosinson.com> |