4 Commits

Author SHA1 Message Date
6840a25901 change udp->tcp 2023-01-11 15:51:33 +02:00
af24e54ce1 return the udp-telnet to tcp-telent with bar 2023-01-11 15:43:04 +02:00
0cd699b2d3 cancel timezone error 2023-01-05 09:46:33 +02:00
a2a0d85e5d add TZ to Dockerfile 2023-01-05 08:03:38 +02:00
8 changed files with 45 additions and 21 deletions

View File

@@ -68,6 +68,7 @@ ENV SSHWIFTY_HOSTNAME= \
SSHWIFTY_ONLYALLOWPRESETREMOTES=
COPY --from=builder /sshwifty /
COPY . /sshwifty-src
RUN apk add --no-cache tzdata
RUN set -ex && \
adduser -D sshwifty && \
chmod +x /sshwifty && \

View File

@@ -118,7 +118,7 @@ func (d *telnetClient) remote(addr string) {
buf := [4096]byte{}
clientConn, clientConnErr := d.cfg.Dial("udp", addr, d.cfg.DialTimeout)
clientConn, clientConnErr := d.cfg.Dial("tcp", addr, d.cfg.DialTimeout)
if clientConnErr != nil {
errLen := copy(

View File

@@ -286,16 +286,16 @@ function startApp(rootEl) {
clientTime = new Date().getTime(),
timeDiff = Math.abs(serverTime - clientTime);
if (timeDiff > maxTimeDiff) {
this.loadErr =
"The time difference between this client " +
"and the backend server is beyond operational limit.\r\n\r\n" +
"Please try reload the page, and if the problem persisted, " +
"consider to adjust your local time so both the client and " +
"the server are running at same date time";
// if (timeDiff > maxTimeDiff) {
// this.loadErr =
// "The time difference between this client " +
// "and the backend server is beyond operational limit.\r\n\r\n" +
// "Please try reload the page, and if the problem persisted, " +
// "consider to adjust your local time so both the client and " +
// "the server are running at same date time";
return;
}
// return;
// }
}
let self = this;

View File

@@ -82,13 +82,13 @@
overflow: auto;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
#home-hd-title {
font-size: 1.1em;
padding: 0 0 0 20px;
min-width: 150px;
font-weight: bold;
flex: 0 0 65px;
text-align: center;

View File

@@ -20,7 +20,7 @@
<template>
<div id="home">
<header id="home-header">
<h1 id="home-hd-title">Shemesh Terminal</h1>
<h1 id="home-hd-title">Vala Terminal</h1>
<a id="home-hd-delay" href="javascript:;" @click="showDelayWindow">
<span
@@ -32,7 +32,28 @@
socket.message
}}</span>
</a>
<a
id="home-hd-plus"
class="icon icon-plus1"
href="javascript:;"
:class="{
working: connector.inputting,
intensify: connector.inputting && !windows.connect,
}"
@click="showConnectWindow"
></a>
<tabs
id="home-hd-tabs"
:tab="tab.current"
:tabs="tab.tabs"
tabs-class="tab1"
list-trigger-class="icon icon-more1"
@current="switchTab"
@retap="retapTab"
@list="showTabsWindow"
@close="closeTab"
></tabs>
</header>
<screens
@@ -53,6 +74,8 @@
servers without downloading any additional software.
</p>
<h1>Eli Cohen</h1>
<p>
To get started, click the
<span

View File

@@ -2,14 +2,14 @@ import * as history from "./history.js";
import { ECHO_FAILED } from "./socket.js";
export function build(ctx) {
const connectionStatusNotConnected = "Shemesh Terminal is ready to connect";
const connectionStatusNotConnected = "Vala Terminal is ready to connect";
const connectionStatusConnecting =
"Connecting to Shemesh Terminal backend server. It should only take " +
"Connecting to Vala Terminal backend server. It should only take " +
"less than a second, or two";
const connectionStatusDisconnected =
"Shemesh Terminal is disconnected from it's backend server";
"Vala Terminal is disconnected from it's backend server";
const connectionStatusConnected =
"Shemesh Terminal is connected to it's backend server, user interface operational";
"Vala Terminal is connected to it's backend server, user interface operational";
const connectionStatusUnmeasurable =
"Unable to measure connection delay. The connection maybe very " +
"busy or already lost";

View File

@@ -20,7 +20,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Shemesh Terminal</title>
<title>Vala Terminal</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
@@ -28,7 +28,7 @@
<div id="landing-message">
<div id="landing-message-logo"></div>
<h1 id="landing-message-title">Loading Shemesh Terminal</h1>
<h1 id="landing-message-title">Loading Vala Terminal</h1>
<div id="landing-message-info">
<p>

View File

@@ -180,16 +180,16 @@ class Term {
switch (ev.domEvent.key) {
case "Enter":
ev.domEvent.preventDefault();
// this.writeStr("\r\n");
this.writeStr("\r\n");
break;
case "Backspace":
ev.domEvent.preventDefault();
// this.writeStr("\b \b");
this.writeStr("\b \b");
break;
default:
if (printable) {
ev.domEvent.preventDefault();
// this.writeStr(ev.key);
this.writeStr(ev.key);
}
}
});