summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ttyd
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-ttyd')
-rw-r--r--applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js3
-rw-r--r--applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/term.js8
-rw-r--r--applications/luci-app-ttyd/po/hu/ttyd.po8
-rw-r--r--applications/luci-app-ttyd/po/ro/ttyd.po12
-rw-r--r--applications/luci-app-ttyd/po/sk/ttyd.po14
-rw-r--r--applications/luci-app-ttyd/po/zh_Hant/ttyd.po8
6 files changed, 28 insertions, 25 deletions
diff --git a/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js b/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js
index e92880d53c..9934ecebd7 100644
--- a/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js
+++ b/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js
@@ -1,8 +1,9 @@
'use strict';
+'require view';
'require form';
'require tools.widgets as widgets';
-return L.view.extend({
+return view.extend({
render: function() {
var m, s, o;
diff --git a/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/term.js b/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/term.js
index 4725f7a5bc..965f827720 100644
--- a/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/term.js
+++ b/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/term.js
@@ -1,17 +1,19 @@
'use strict';
+'require view';
'require uci';
-return L.view.extend({
+return view.extend({
load: function() {
return uci.load('ttyd');
},
render: function() {
- var port = uci.get_first('ttyd', 'ttyd', 'port') || '7681';
+ var port = uci.get_first('ttyd', 'ttyd', 'port') || '7681',
+ ssl = uci.get_first('ttyd', 'ttyd', 'ssl') || '0';
if (port === '0')
return E('div', { class: 'alert-message warning' },
_('Random ttyd port (port=0) is not supported.<br>Change to a fixed port and try again.'));
return E('iframe', {
- src: window.location.protocol + '//' + window.location.hostname + ':' + port,
+ src: (ssl === '1' ? 'https' : 'http') + '://' + window.location.hostname + ':' + port,
style: 'width: 100%; min-height: 500px; border: none; border-radius: 3px; resize: vertical;'
});
},
diff --git a/applications/luci-app-ttyd/po/hu/ttyd.po b/applications/luci-app-ttyd/po/hu/ttyd.po
index 2ca67ead26..c17e019a99 100644
--- a/applications/luci-app-ttyd/po/hu/ttyd.po
+++ b/applications/luci-app-ttyd/po/hu/ttyd.po
@@ -1,14 +1,14 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2020-01-12 19:22+0000\n"
-"Last-Translator: Balázs Úr <balazs@urbalazs.hu>\n"
+"PO-Revision-Date: 2020-03-31 13:27+0000\n"
+"Last-Translator: Tamas Szanto <taszanto@gmail.com>\n"
"Language-Team: Hungarian <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsttyd/hu/>\n"
"Language: hu\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 3.10.1\n"
+"X-Generator: Weblate 4.0-dev\n"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:55
msgid "Accept only one client and exit on disconnection"
@@ -102,7 +102,7 @@ msgstr "Csatoló"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:51
msgid "Max clients"
-msgstr "Legtöbb ügyfél"
+msgstr "Max. ügyfélszám"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:51
msgid "Maximum clients to support (default: 0, no limit)"
diff --git a/applications/luci-app-ttyd/po/ro/ttyd.po b/applications/luci-app-ttyd/po/ro/ttyd.po
index c638d75562..86c5a0fff3 100644
--- a/applications/luci-app-ttyd/po/ro/ttyd.po
+++ b/applications/luci-app-ttyd/po/ro/ttyd.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2020-01-10 12:24+0000\n"
-"Last-Translator: Alexandru Stan <alex9457sn@gmail.com>\n"
+"PO-Revision-Date: 2020-03-29 21:22+0000\n"
+"Last-Translator: Cristian Ionescu <joker_op@yahoo.com>\n"
"Language-Team: Romanian <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsttyd/ro/>\n"
"Language: ro\n"
@@ -9,7 +9,7 @@ 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 3.10.1\n"
+"X-Generator: Weblate 4.0-dev\n"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:55
msgid "Accept only one client and exit on disconnection"
@@ -99,7 +99,7 @@ msgstr ""
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:23
msgid "Interface"
-msgstr ""
+msgstr "Interfață"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:51
msgid "Max clients"
@@ -121,7 +121,7 @@ msgstr ""
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:19
msgid "Port"
-msgstr ""
+msgstr "Port"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:19
msgid "Port to listen (default: 7681, use `0` for random port)"
@@ -135,7 +135,7 @@ msgstr ""
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:41
msgid "Read-only"
-msgstr ""
+msgstr "Doar citire"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:61
msgid "SSL"
diff --git a/applications/luci-app-ttyd/po/sk/ttyd.po b/applications/luci-app-ttyd/po/sk/ttyd.po
index 153c69944b..8352b5fab0 100644
--- a/applications/luci-app-ttyd/po/sk/ttyd.po
+++ b/applications/luci-app-ttyd/po/sk/ttyd.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2020-03-07 21:24+0000\n"
-"Last-Translator: Chaoos <all@chaoos.com>\n"
+"PO-Revision-Date: 2020-04-04 17:35+0000\n"
+"Last-Translator: Dušan Kazik <prescott66@gmail.com>\n"
"Language-Team: Slovak <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsttyd/sk/>\n"
"Language: sk\n"
@@ -16,7 +16,7 @@ msgstr ""
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:14
msgid "Add instance"
-msgstr ""
+msgstr "Pridať inštanciu"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:39
msgid "Allow URL args"
@@ -90,7 +90,7 @@ msgstr ""
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:59
msgid "IPv6"
-msgstr ""
+msgstr "IPv6"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:57
msgid "Index"
@@ -98,7 +98,7 @@ msgstr ""
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:23
msgid "Interface"
-msgstr ""
+msgstr "Rozhranie"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:51
msgid "Max clients"
@@ -120,7 +120,7 @@ msgstr ""
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:19
msgid "Port"
-msgstr ""
+msgstr "Port"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:19
msgid "Port to listen (default: 7681, use `0` for random port)"
@@ -174,7 +174,7 @@ msgstr ""
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:36
msgid "Signal"
-msgstr ""
+msgstr "Signál"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:36
msgid "Signal to send to the command when exit it (default: 1, SIGHUP)"
diff --git a/applications/luci-app-ttyd/po/zh_Hant/ttyd.po b/applications/luci-app-ttyd/po/zh_Hant/ttyd.po
index 8c4b821ea2..7a06a1b256 100644
--- a/applications/luci-app-ttyd/po/zh_Hant/ttyd.po
+++ b/applications/luci-app-ttyd/po/zh_Hant/ttyd.po
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2020-02-25 23:11+0000\n"
+"PO-Revision-Date: 2020-04-06 12:20+0000\n"
"Last-Translator: Trevor <wowpapa3232@gmail.com>\n"
"Language-Team: Chinese (Traditional) <https://hosted.weblate.org/projects/"
"openwrt/luciapplicationsttyd/zh_Hant/>\n"
@@ -38,7 +38,7 @@ msgstr ""
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:75
msgid "Command"
-msgstr ""
+msgstr "指令"
#: applications/luci-app-ttyd/root/usr/share/luci/menu.d/luci-app-ttyd.json:22
msgid "Config"
@@ -58,7 +58,7 @@ msgstr ""
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:72
msgid "Debug"
-msgstr ""
+msgstr "除錯 Debug"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:41
msgid "Do not allow clients to write to the TTY"
@@ -120,7 +120,7 @@ msgstr ""
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:19
msgid "Port"
-msgstr ""
+msgstr "埠"
#: applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js:19
msgid "Port to listen (default: 7681, use `0` for random port)"