summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-frpc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-frpc')
-rw-r--r--applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js24
-rw-r--r--applications/luci-app-frpc/po/it/frpc.po12
-rw-r--r--applications/luci-app-frpc/po/ko/frpc.po10
-rw-r--r--applications/luci-app-frpc/po/ro/frpc.po20
-rw-r--r--applications/luci-app-frpc/po/sk/frpc.po12
-rw-r--r--applications/luci-app-frpc/po/templates/frpc.pot21
-rw-r--r--applications/luci-app-frpc/po/tr/frpc.po15
-rw-r--r--applications/luci-app-frpc/po/zh_Hans/frpc.po21
8 files changed, 98 insertions, 37 deletions
diff --git a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js
index c859aa177f..0999ba0294 100644
--- a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js
+++ b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js
@@ -45,7 +45,7 @@ var baseProxyConf = [
[form.ListValue, 'type', _('Proxy type'), _('ProxyType specifies the type of this proxy. Valid values include "tcp", "udp", "http", "https", "stcp", and "xtcp".<br />By default, this value is "tcp".'), {values: ['tcp', 'udp', 'http', 'https', 'stcp', 'xtcp']}],
[form.Flag, 'use_encryption', _('Encryption'), _('UseEncryption controls whether or not communication with the server will be encrypted. Encryption is done using the tokens supplied in the server and client configuration.<br />By default, this value is false.'), {datatype: 'bool'}],
[form.Flag, 'use_compression', _('Compression'), _('UseCompression controls whether or not communication with the server will be compressed.<br />By default, this value is false.'), {datatype: 'bool'}],
- [form.Value, 'local_ip', _('Local IP'), _('LocalIp specifies the IP address or host name to proxy to.'), {datatype: 'ipaddr'}],
+ [form.Value, 'local_ip', _('Local IP'), _('LocalIp specifies the IP address or host name to proxy to.'), {datatype: 'host'}],
[form.Value, 'local_port', _('Local port'), _('LocalPort specifies the port to proxy to.'), {datatype: 'port'}],
];
@@ -72,6 +72,16 @@ var stcpProxyConf = [
[form.Value, 'sk', _('Sk')],
];
+var pluginConf = [
+ [form.ListValue, 'plugin', _('Plugin'), undefined, {values: ['', 'http_proxy', 'socks5', 'unix_domain_socket'], rmempty: true}],
+ [form.Value, 'plugin_http_user', _('HTTP user'), undefined, {depends: {plugin: 'http_proxy'}}],
+ [form.Value, 'plugin_http_passwd', _('HTTP password'), undefined, {depends: {plugin: 'http_proxy'}}],
+ [form.Value, 'plugin_user', _('SOCKS5 user'), undefined, {depends: {plugin: 'socks5'}}],
+ [form.Value, 'plugin_passwd', _('SOCKS5 password'), undefined, {depends: {plugin: 'socks5'}}],
+ [form.Value, 'plugin_unix_path', _('Unix domain socket path'), undefined, {depends: {plugin: 'unix_domain_socket'}, optional: false, rmempty: false,
+ datatype: 'file', placeholder: '/var/run/docker.sock', default: '/var/run/docker.sock'}],
+];
+
function setParams(o, params) {
if (!params) return;
for (var key in params) {
@@ -207,11 +217,20 @@ return view.extend({
s.tab('general', _('General Settings'));
s.tab('http', _('HTTP Settings'));
+ s.tab('plugin', _('Plugin Settings'));
s.option(form.Value, 'name', _('Proxy name')).modalonly = false;
s.option(form.Value, 'type', _('Proxy type')).modalonly = false;
s.option(form.Value, 'local_ip', _('Local IP')).modalonly = false;
s.option(form.Value, 'local_port', _('Local port')).modalonly = false;
+ o = s.option(form.Value, 'remote_port', _('Remote port'));
+ o.modalonly = false;
+ o.depends('type', 'tcp');
+ o.depends('type', 'udp');
+ o.cfgvalue = function() {
+ var v = this.super('cfgvalue', arguments);
+ return v&&v!='0'?v:'#';
+ };
defTabOpts(s, 'general', baseProxyConf, {modalonly: true});
@@ -227,6 +246,9 @@ return view.extend({
// STCP and XTCP
defTabOpts(s, 'general', stcpProxyConf, {modalonly: true, depends: [{type: 'stcp'}, {type: 'xtcp'}]});
+ // Plugin
+ defTabOpts(s, 'plugin', pluginConf, {modalonly: true});
+
return m.render();
}
});
diff --git a/applications/luci-app-frpc/po/it/frpc.po b/applications/luci-app-frpc/po/it/frpc.po
index cfe2999354..1d2523b980 100644
--- a/applications/luci-app-frpc/po/it/frpc.po
+++ b/applications/luci-app-frpc/po/it/frpc.po
@@ -1,14 +1,14 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2021-09-15 08:34+0000\n"
-"Last-Translator: pisquan8 <cimurro@outlook.de>\n"
+"PO-Revision-Date: 2022-10-10 21:04+0000\n"
+"Last-Translator: garis <garis94@gmail.com>\n"
"Language-Team: Italian <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsfrpc/it/>\n"
"Language: it\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Weblate 4.9-dev\n"
+"X-Generator: Weblate 4.14.1\n"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:204
msgid "Add new proxy..."
@@ -202,11 +202,11 @@ msgstr ""
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:23
msgid "Log file"
-msgstr ""
+msgstr "File registro eventi"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:24
msgid "Log level"
-msgstr ""
+msgstr "Livello registro eventi"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:25
msgid "Log max days"
@@ -312,7 +312,7 @@ msgstr ""
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:12
msgid "Run daemon as user"
-msgstr ""
+msgstr "Esegui il daemon come utente"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:20
msgid "Server address"
diff --git a/applications/luci-app-frpc/po/ko/frpc.po b/applications/luci-app-frpc/po/ko/frpc.po
index e520b41127..4d1cad8f63 100644
--- a/applications/luci-app-frpc/po/ko/frpc.po
+++ b/applications/luci-app-frpc/po/ko/frpc.po
@@ -1,14 +1,14 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2021-01-17 20:54+0000\n"
-"Last-Translator: ANTEGRAL <antegral@antegral.net>\n"
+"PO-Revision-Date: 2022-07-31 13:17+0000\n"
+"Last-Translator: somni <me@somni.one>\n"
"Language-Team: Korean <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsfrpc/ko/>\n"
"Language: ko\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.5-dev\n"
+"X-Generator: Weblate 4.14-dev\n"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:204
msgid "Add new proxy..."
@@ -106,7 +106,7 @@ msgstr ""
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:46
msgid "Encryption"
-msgstr ""
+msgstr "암호화"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:15
msgid "Environment variable"
@@ -259,7 +259,7 @@ msgstr ""
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:36
msgid "Protocol"
-msgstr ""
+msgstr "프로토콜"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:36
msgid ""
diff --git a/applications/luci-app-frpc/po/ro/frpc.po b/applications/luci-app-frpc/po/ro/frpc.po
index 4670889580..2ed4b2b401 100644
--- a/applications/luci-app-frpc/po/ro/frpc.po
+++ b/applications/luci-app-frpc/po/ro/frpc.po
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2021-12-07 19:35+0000\n"
+"PO-Revision-Date: 2022-08-05 01:21+0000\n"
"Last-Translator: Simona Iacob <s@zp1.net>\n"
"Language-Team: Romanian <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsfrpc/ro/>\n"
@@ -9,11 +9,11 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
"20)) ? 1 : 2;\n"
-"X-Generator: Weblate 4.10-dev\n"
+"X-Generator: Weblate 4.14-dev\n"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:204
msgid "Add new proxy..."
-msgstr ""
+msgstr "Adăugați un nou proxy..."
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:16
msgid "Additional configs"
@@ -229,7 +229,7 @@ msgstr "Locații"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:23
msgid "Log file"
-msgstr ""
+msgstr "Fișier jurnal"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:24
msgid "Log level"
@@ -237,7 +237,7 @@ msgstr "Nivel de jurnal"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:25
msgid "Log max days"
-msgstr ""
+msgstr "Jurnal maxim zile"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:11
msgid "Log stderr"
@@ -253,6 +253,9 @@ msgid ""
"be used if LogWay is set appropriately.<br />By default, this value is "
"\"console\"."
msgstr ""
+"LogFile specifică un fișier în care vor fi scrise jurnalele. Această valoare "
+"va fi utilizată numai dacă LogWay este setat în mod corespunzător.<br />În "
+"mod implicit, această valoare este \"console\"."
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:24
msgid ""
@@ -270,6 +273,9 @@ msgid ""
"before deletion. This is only used if LogWay == \"file\".<br />By default, "
"this value is 0."
msgstr ""
+"LogMaxDays specifică numărul maxim de zile de stocare a informațiilor din "
+"jurnal înainte de ștergere . Acest lucru se utilizează numai dacă LogWay == "
+"\"file\".<br />În mod implicit, această valoare este 0."
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:35
msgid ""
@@ -316,7 +322,7 @@ msgstr "Setări Proxy"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:44
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:211
msgid "Proxy name"
-msgstr ""
+msgstr "Nume proxy"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:45
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:212
@@ -363,7 +369,7 @@ msgstr "Adresa serverului"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:71
msgid "Server name"
-msgstr ""
+msgstr "Nume server"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:21
msgid "Server port"
diff --git a/applications/luci-app-frpc/po/sk/frpc.po b/applications/luci-app-frpc/po/sk/frpc.po
index f9d676dc9d..c069e52df6 100644
--- a/applications/luci-app-frpc/po/sk/frpc.po
+++ b/applications/luci-app-frpc/po/sk/frpc.po
@@ -1,14 +1,14 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2020-04-04 17:35+0000\n"
-"Last-Translator: Dušan Kazik <prescott66@gmail.com>\n"
+"PO-Revision-Date: 2022-09-19 10:18+0000\n"
+"Last-Translator: Jose Riha <jose1711@gmail.com>\n"
"Language-Team: Slovak <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsfrpc/sk/>\n"
"Language: sk\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
-"X-Generator: Weblate 4.0-dev\n"
+"X-Generator: Weblate 4.14.1\n"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:204
msgid "Add new proxy..."
@@ -205,7 +205,7 @@ msgstr ""
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:24
msgid "Log level"
-msgstr ""
+msgstr "Úroveň záznamu"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:25
msgid "Log max days"
@@ -323,7 +323,7 @@ msgstr ""
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:21
msgid "Server port"
-msgstr ""
+msgstr "Port servera"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:20
msgid ""
@@ -404,7 +404,7 @@ msgstr ""
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:34
msgid "User"
-msgstr ""
+msgstr "Používateľ"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:34
msgid ""
diff --git a/applications/luci-app-frpc/po/templates/frpc.pot b/applications/luci-app-frpc/po/templates/frpc.pot
index 87e72ffe71..86373f8258 100644
--- a/applications/luci-app-frpc/po/templates/frpc.pot
+++ b/applications/luci-app-frpc/po/templates/frpc.pot
@@ -219,9 +219,9 @@ msgstr ""
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:24
msgid ""
-"LogLevel specifies the minimum log level. Valid values are \"trace\", \"debug"
-"\", \"info\", \"warn\", and \"error\".<br />By default, this value is \"info"
-"\"."
+"LogLevel specifies the minimum log level. Valid values are \"trace\", "
+"\"debug\", \"info\", \"warn\", and \"error\".<br />By default, this value is "
+"\"info\"."
msgstr ""
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:25
@@ -410,3 +410,18 @@ msgstr ""
#: applications/luci-app-frpc/root/usr/share/luci/menu.d/luci-app-frpc.json:3
msgid "frp Client"
msgstr ""
+
+msgid "Plugin Settings"
+msgstr ""
+
+msgid "Plugin"
+msgstr ""
+
+msgid "SOCKS5 user"
+msgstr ""
+
+msgid "SOCKS5 password"
+msgstr ""
+
+msgid "Unix domain socket path"
+msgstr ""
diff --git a/applications/luci-app-frpc/po/tr/frpc.po b/applications/luci-app-frpc/po/tr/frpc.po
index b852171f99..0e1afba668 100644
--- a/applications/luci-app-frpc/po/tr/frpc.po
+++ b/applications/luci-app-frpc/po/tr/frpc.po
@@ -1,14 +1,14 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2022-06-21 21:54+0000\n"
-"Last-Translator: metezd <itoldyouthat@protonmail.com>\n"
+"PO-Revision-Date: 2022-09-25 14:22+0000\n"
+"Last-Translator: semih <semiht@gmail.com>\n"
"Language-Team: Turkish <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsfrpc/tr/>\n"
"Language: tr\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Weblate 4.13.1-dev\n"
+"X-Generator: Weblate 4.14.1\n"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:204
msgid "Add new proxy..."
@@ -234,7 +234,7 @@ msgstr "Günlük seviyesi"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:25
msgid "Log max days"
-msgstr ""
+msgstr "Maksimum günleri günlüğe kaydet"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:11
msgid "Log stderr"
@@ -270,6 +270,9 @@ msgid ""
"before deletion. This is only used if LogWay == \"file\".<br />By default, "
"this value is 0."
msgstr ""
+"LogMaxDays, günlük bilgilerinin silinmeden önce saklanacağı maksimum gün "
+"sayısını belirtir. Bu yalnızca LogWay == \"file\" ise kullanılır.<br /"
+">Varsayılan olarak bu değer 0'dır."
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:35
msgid ""
@@ -316,7 +319,7 @@ msgstr "Vekil sunucu Ayarları"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:44
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:211
msgid "Proxy name"
-msgstr ""
+msgstr "Proxy adı"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:45
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:212
@@ -363,7 +366,7 @@ msgstr "Sunucu adresi"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:71
msgid "Server name"
-msgstr ""
+msgstr "Sunucu adı"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:21
msgid "Server port"
diff --git a/applications/luci-app-frpc/po/zh_Hans/frpc.po b/applications/luci-app-frpc/po/zh_Hans/frpc.po
index 68d911256f..e876bcccd4 100644
--- a/applications/luci-app-frpc/po/zh_Hans/frpc.po
+++ b/applications/luci-app-frpc/po/zh_Hans/frpc.po
@@ -197,15 +197,15 @@ msgstr "本地 IP"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:49
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:214
msgid "Local port"
-msgstr "监听端口"
+msgstr "本地端口"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:48
msgid "LocalIp specifies the IP address or host name to proxy to."
-msgstr "LocalIp 指定要被代理的 IP 地址或主机名。"
+msgstr "本地 IP 指定要被代理的 IP 地址或主机名。"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:49
msgid "LocalPort specifies the port to proxy to."
-msgstr "LocalPort 指定要被代理的端口。"
+msgstr "本地端口指定要被代理的端口。"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:62
msgid "Locations"
@@ -454,5 +454,20 @@ msgstr ""
msgid "frp Client"
msgstr "frp 客户端"
+msgid "Plugin Settings"
+msgstr "插件设置"
+
+msgid "Plugin"
+msgstr "插件"
+
+msgid "SOCKS5 user"
+msgstr "SOCKS5 用户"
+
+msgid "SOCKS5 password"
+msgstr "SOCKS5 密码"
+
+msgid "Unix domain socket path"
+msgstr "Unix 域套接字路径"
+
#~ msgid "Name can not be \"common\""
#~ msgstr "名称不能\"common\""