diff options
Diffstat (limited to 'applications/luci-app-ttyd')
-rw-r--r-- | applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/term.js | 5 | ||||
-rw-r--r-- | applications/luci-app-ttyd/po/sk/ttyd.po | 14 | ||||
-rw-r--r-- | applications/luci-app-ttyd/po/zh_Hant/ttyd.po | 8 |
3 files changed, 14 insertions, 13 deletions
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 26756a3692..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 @@ -7,12 +7,13 @@ return view.extend({ 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/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)" |