Skip to content

Commit

Permalink
Merge pull request #4661 from brvphoenix/frpc
Browse files Browse the repository at this point in the history
luci-app-frp: add the dynamiclist for additional parameters
  • Loading branch information
feckert committed Dec 15, 2020
2 parents f3beb3b + 7558666 commit a650949
Show file tree
Hide file tree
Showing 68 changed files with 1,867 additions and 1,176 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ var commonConf = [
[form.ListValue, 'protocol', _('Protocol'), _('Protocol specifies the protocol to use when interacting with the server. Valid values are "tcp", "kcp", and "websocket".<br>By default, this value is "tcp".'), {values: ['tcp', 'kcp', 'websocket']}],
[form.Flag, 'tls_enable', _('TLS'), _('TLSEnable specifies whether or not TLS should be used when communicating with the server.'), {datatype: 'bool'}],
[form.Value, 'heartbeat_interval', _('Heartbeat interval'), _('HeartBeatInterval specifies at what interval heartbeats are sent to the server, in seconds. It is not recommended to change this value.<br>By default, this value is 30.'), {datatype: 'uinteger'}],
[form.Value, 'heartbeat_timeout', _('Heartbeat timeout'), _('HeartBeatTimeout specifies the maximum allowed heartbeat response delay before the connection is terminated, in seconds. It is not recommended to change this value.<br>By default, this value is 90.'), {datatype: 'uinteger'}]
[form.Value, 'heartbeat_timeout', _('Heartbeat timeout'), _('HeartBeatTimeout specifies the maximum allowed heartbeat response delay before the connection is terminated, in seconds. It is not recommended to change this value.<br>By default, this value is 90.'), {datatype: 'uinteger'}],
[form.DynamicList, '_', _('Additional settings'), _('This list can be used to specify some additional parameters which have not been included in this LuCI.'), {placeholder: 'Key-A=Value-A'}]
];

var baseProxyConf = [
Expand Down
72 changes: 41 additions & 31 deletions applications/luci-app-frpc/po/ar/frpc.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ msgstr ""
msgid "Additional configs"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:37
msgid "Additional settings"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:25
msgid "Admin address"
msgstr ""
Expand Down Expand Up @@ -60,19 +64,19 @@ msgid ""
"bundled executable using statik.<br>By default, this value is \"\"."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:126
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:127
msgid "Common Settings"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:42
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:43
msgid "Compression"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:15
msgid "Config files include in temporary config file"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:52
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:53
msgid "Custom domains"
msgstr ""

Expand All @@ -86,7 +90,7 @@ msgid ""
"true."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:41
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:42
msgid "Encryption"
msgstr ""

Expand All @@ -98,27 +102,27 @@ msgstr ""
msgid "Exit when login fail"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:151
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:152
msgid "General Settings"
msgstr ""

#: applications/luci-app-frpc/root/usr/share/rpcd/acl.d/luci-app-frpc.json:3
msgid "Grant access to LuCI app frpc"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:152
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:153
msgid "HTTP Settings"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:59
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:60
msgid "HTTP password"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:21
msgid "HTTP proxy"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:58
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:59
msgid "HTTP user"
msgstr ""

Expand All @@ -144,7 +148,7 @@ msgstr ""
msgid "Heartbeat timeout"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:60
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:61
msgid "Host header rewrite"
msgstr ""

Expand All @@ -155,29 +159,29 @@ msgid ""
"this value is read from the \"http_proxy\" environment variable."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:48
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:49
msgid "If remote_port is 0, frps will assign a random port for you"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:43
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:155
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:44
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:156
msgid "Local IP"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:44
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:156
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:45
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:157
msgid "Local port"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:43
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:44
msgid "LocalIp specifies the IP address or host name to proxy to."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:44
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:45
msgid "LocalPort specifies the port to proxy to."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:57
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:58
msgid "Locations"
msgstr ""

Expand Down Expand Up @@ -206,7 +210,7 @@ msgid ""
"succeeds.<br>By default, this value is true."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:145
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:146
msgid "Name can not be \"common\""
msgstr ""

Expand All @@ -227,31 +231,31 @@ msgid ""
"value is \"tcp\"."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:138
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:139
msgid "Proxy Settings"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:40
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:154
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:41
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:155
msgid "Proxy type"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:40
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:41
msgid ""
"ProxyType specifies the type of this proxy. Valid values include \"tcp\", "
"\"udp\", \"http\", \"https\", \"stcp\", and \"xtcp\".<br>By default, this "
"value is \"tcp\"."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:48
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:49
msgid "Remote port"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:13
msgid "Respawn when crashed"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:65
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:66
msgid "Role"
msgstr ""

Expand Down Expand Up @@ -283,16 +287,16 @@ msgid ""
"this value is 7000."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:66
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:67
msgid "Sk"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:127
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:131
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:128
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:132
msgid "Startup Settings"
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:53
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:54
msgid "Subdomain"
msgstr ""

Expand All @@ -318,6 +322,12 @@ msgid ""
"true."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:37
msgid ""
"This list can be used to specify some additional parameters which have not "
"been included in this LuCI."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:24
msgid "Token"
msgstr ""
Expand All @@ -329,13 +339,13 @@ msgid ""
"succeed. <br>By default, this value is \"\"."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:42
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:43
msgid ""
"UseCompression controls whether or not communication with the server will be "
"compressed.<br>By default, this value is false."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:41
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:42
msgid ""
"UseEncryption controls whether or not communication with the server will be "
"encrypted. Encryption is done using the tokens supplied in the server and "
Expand All @@ -353,7 +363,7 @@ msgid ""
"changed to \"{user}.{proxy_name}\".<br>By default, this value is \"\"."
msgstr ""

#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:121
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:122
#: applications/luci-app-frpc/root/usr/share/luci/menu.d/luci-app-frpc.json:3
msgid "frp Client"
msgstr ""
Loading

0 comments on commit a650949

Please sign in to comment.