separated xterm in static dir
This commit is contained in:
		
							parent
							
								
									a03b419b43
								
							
						
					
					
						commit
						7dc2f5c5c7
					
				| 
						 | 
				
			
			@ -26,9 +26,9 @@ function getQueryParam(name) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
function makeWsUrl() {
 | 
			
		||||
const proxyIp   = getQueryParam("ip");     // "10.0.0.42" if you came via /proxyAgent
 | 
			
		||||
const proxyPort = getQueryParam("port");   // "8080"
 | 
			
		||||
const usingProxy = proxyIp && proxyPort;   // truthy only in that case
 | 
			
		||||
  const proxyIp   = getQueryParam("ip");     // "10.0.0.42" if you came via /proxyAgent
 | 
			
		||||
  const proxyPort = getQueryParam("port");   // "8080"
 | 
			
		||||
  const usingProxy = proxyIp && proxyPort;   // truthy only in that case
 | 
			
		||||
 | 
			
		||||
  if (usingProxy) {
 | 
			
		||||
    // Build ws(s)://<main-server>/proxyAgent/terminal?ip=…&port=…
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,9 +14,9 @@
 | 
			
		|||
    <script type="text/javascript" src="static/agents-graph.js"></script>
 | 
			
		||||
    <script type="text/javascript" src="static/gontrol-helper.js"></script>
 | 
			
		||||
 | 
			
		||||
    <link rel="stylesheet" href="static/xterm.css" />
 | 
			
		||||
    <script rel="text/javascript" src="static/xterm.js"></script>
 | 
			
		||||
    <script rel="text/javascript" src="static/xterm-addon-fit.js"></script>
 | 
			
		||||
    <link rel="stylesheet" href="static/xterm/xterm.css" />
 | 
			
		||||
    <script rel="text/javascript" src="static/xterm/xterm.js"></script>
 | 
			
		||||
    <script rel="text/javascript" src="static/xterm/xterm-addon-fit.js"></script>
 | 
			
		||||
 | 
			
		||||
    <title>g2: gommand & gontrol</title>
 | 
			
		||||
</head>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue