separated xterm in static dir

This commit is contained in:
Stefan Etringer 2025-06-30 09:50:28 +00:00
parent a03b419b43
commit 7dc2f5c5c7
5 changed files with 6 additions and 6 deletions

View File

@ -26,9 +26,9 @@ function getQueryParam(name) {
} }
function makeWsUrl() { function makeWsUrl() {
const proxyIp = getQueryParam("ip"); // "10.0.0.42" if you came via /proxyAgent const proxyIp = getQueryParam("ip"); // "10.0.0.42" if you came via /proxyAgent
const proxyPort = getQueryParam("port"); // "8080" const proxyPort = getQueryParam("port"); // "8080"
const usingProxy = proxyIp && proxyPort; // truthy only in that case const usingProxy = proxyIp && proxyPort; // truthy only in that case
if (usingProxy) { if (usingProxy) {
// Build ws(s)://<main-server>/proxyAgent/terminal?ip=…&port=… // Build ws(s)://<main-server>/proxyAgent/terminal?ip=…&port=…

View File

@ -14,9 +14,9 @@
<script type="text/javascript" src="static/agents-graph.js"></script> <script type="text/javascript" src="static/agents-graph.js"></script>
<script type="text/javascript" src="static/gontrol-helper.js"></script> <script type="text/javascript" src="static/gontrol-helper.js"></script>
<link rel="stylesheet" href="static/xterm.css" /> <link rel="stylesheet" href="static/xterm/xterm.css" />
<script rel="text/javascript" src="static/xterm.js"></script> <script rel="text/javascript" src="static/xterm/xterm.js"></script>
<script rel="text/javascript" src="static/xterm-addon-fit.js"></script> <script rel="text/javascript" src="static/xterm/xterm-addon-fit.js"></script>
<title>g2: gommand & gontrol</title> <title>g2: gommand & gontrol</title>
</head> </head>