6 changed files with 145 additions and 1470 deletions
			
			
		@ -1,11 +1,7 @@ | 
				
			|||||
FROM node:boron | 
					FROM node:boron | 
				
			||||
MAINTAINER Nathan LeClaire <nathan@docker.com> | 
					MAINTAINER Nathan LeClaire <nathan@docker.com> | 
				
			||||
 | 
					 | 
				
			||||
ADD . /app | 
					ADD . /app | 
				
			||||
WORKDIR /app | 
					WORKDIR /app | 
				
			||||
RUN apt-get update && apt-get upgrade -y | 
					RUN apt-get update && apt-get upgrade -y && yarn install && yarn global add grunt && yarn build | 
				
			||||
RUN npm install | 
					 | 
				
			||||
 | 
					 | 
				
			||||
EXPOSE 3000 | 
					EXPOSE 3000 | 
				
			||||
 | 
					CMD yarn start | 
				
			||||
CMD node app.js | 
					 | 
				
			||||
 | 
				
			|||||
@ -1,51 +1,47 @@ | 
				
			|||||
<!doctype html> | 
					<!doctype html> | 
				
			||||
<html lang="en"> | 
					<html lang="en"> | 
				
			||||
 | 
					  <head> | 
				
			||||
<head> | 
					 | 
				
			||||
    <meta charset="UTF-8"> | 
					    <meta charset="UTF-8"> | 
				
			||||
    <title>Wetty - The WebTTY Terminal Emulator</title> | 
					    <title>Wetty - The WebTTY Terminal Emulator</title> | 
				
			||||
    <script src="/wetty/hterm_all.js"></script> | 
					    <script src="/wetty/hterm_all.js"></script> | 
				
			||||
    <script src="/wetty/socket.io/socket.io.js"></script> | 
					    <script src="/wetty/socket.io/socket.io.js"></script> | 
				
			||||
    <script src="/wetty/wetty.js"></script> | 
					    <script src="/wetty/wetty.js"></script> | 
				
			||||
    <style> | 
					    <style> | 
				
			||||
        html, | 
					      html, body { | 
				
			||||
        body { | 
					        height: 100%; | 
				
			||||
            height: 100%; | 
					        width: 100%; | 
				
			||||
            width: 100%; | 
					        margin: 0px; | 
				
			||||
            margin: 0px; | 
					      } | 
				
			||||
        } | 
					      #overlay { | 
				
			||||
        #overlay { | 
					        position: absolute; | 
				
			||||
            position: absolute; | 
					        height: 100%; | 
				
			||||
            height: 100%; | 
					        width: 100%; | 
				
			||||
            width: 100%; | 
					        background-color: rgba(0,0,0,0.75);; | 
				
			||||
            background-color: rgba(0,0,0,0.75);; | 
					        display: none; | 
				
			||||
            display: none; | 
					      } | 
				
			||||
        } | 
					      #overlay input { | 
				
			||||
        #overlay input { | 
					        display: block; | 
				
			||||
            display: block; | 
					        margin: auto; | 
				
			||||
            margin: auto; | 
					        position: relative; | 
				
			||||
            position: relative; | 
					        top: 50%; | 
				
			||||
            top: 50%; | 
					        transform: translateY(-50%); | 
				
			||||
            transform: translateY(-50%); | 
					      } | 
				
			||||
        } | 
					      #terminal { | 
				
			||||
        #terminal { | 
					        display: block; | 
				
			||||
            display: block; | 
					        position: relative; | 
				
			||||
            position: relative; | 
					        width: 100%; | 
				
			||||
            width: 100%; | 
					        height: 100%; | 
				
			||||
            height: 100%; | 
					      } | 
				
			||||
        } | 
					 | 
				
			||||
    </style> | 
					    </style> | 
				
			||||
</head> | 
					  </head> | 
				
			||||
 | 
					  <body> | 
				
			||||
<body> | 
					 | 
				
			||||
    <div id="overlay"><input type="button" onclick="javascript:location.reload();" value="reconnect" /></div> | 
					    <div id="overlay"><input type="button" onclick="javascript:location.reload();" value="reconnect" /></div> | 
				
			||||
    <div id="terminal" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></div> | 
					    <div id="terminal" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></div> | 
				
			||||
	<script type="application/javascript"> | 
					    <script type="application/javascript"> | 
				
			||||
window.addEventListener('beforeunload', function(e) { | 
					      window.addEventListener('beforeunload', function(e) { | 
				
			||||
	e.returnValue = "Are you sure?"; | 
					        e.returnValue = "Are you sure?"; | 
				
			||||
	return e.returnValue; | 
					        return e.returnValue; | 
				
			||||
}); | 
					      }); | 
				
			||||
	</script> | 
					    </script> | 
				
			||||
</body> | 
					  </body> | 
				
			||||
 | 
					 | 
				
			||||
</html> | 
					</html> | 
				
			||||
 | 
				
			|||||
@ -1,46 +1,47 @@ | 
				
			|||||
<!doctype html> | 
					<!doctype html> | 
				
			||||
<html lang="en"> | 
					<html lang="en"> | 
				
			||||
 | 
					  <head> | 
				
			||||
<head> | 
					 | 
				
			||||
    <meta charset="UTF-8"> | 
					    <meta charset="UTF-8"> | 
				
			||||
    <title>Wetty - The WebTTY Terminal Emulator</title> | 
					    <title>Wetty - The WebTTY Terminal Emulator</title> | 
				
			||||
    <script src="/wetty/hterm_all.js"></script> | 
					    <script src="/wetty/hterm_all.js"></script> | 
				
			||||
    <script src="/wetty/socket.io/socket.io.js"></script> | 
					    <script src="/wetty/socket.io/socket.io.js"></script> | 
				
			||||
    <script src="/wetty/wetty.js"></script> | 
					    <script src="/wetty/wetty.js"></script> | 
				
			||||
    <style> | 
					    <style> | 
				
			||||
        html, | 
					      html, body { | 
				
			||||
        body { | 
					        height: 100%; | 
				
			||||
            height: 100%; | 
					        width: 100%; | 
				
			||||
            width: 100%; | 
					        margin: 0px; | 
				
			||||
            margin: 0px; | 
					      } | 
				
			||||
        } | 
					      #overlay { | 
				
			||||
        #overlay { | 
					        position: absolute; | 
				
			||||
            position: absolute; | 
					        height: 100%; | 
				
			||||
            height: 100%; | 
					        width: 100%; | 
				
			||||
            width: 100%; | 
					        background-color: rgba(0,0,0,0.75);; | 
				
			||||
            background-color: rgba(0,0,0,0.75);; | 
					        display: none; | 
				
			||||
            display: none; | 
					      } | 
				
			||||
            z-index: 100; | 
					      #overlay input { | 
				
			||||
        } | 
					        display: block; | 
				
			||||
        #overlay input { | 
					        margin: auto; | 
				
			||||
            display: block; | 
					        position: relative; | 
				
			||||
            margin: auto; | 
					        top: 50%; | 
				
			||||
            position: relative; | 
					        transform: translateY(-50%); | 
				
			||||
            top: 50%; | 
					      } | 
				
			||||
            transform: translateY(-50%); | 
					      #terminal { | 
				
			||||
        } | 
					        display: block; | 
				
			||||
        #terminal { | 
					        position: relative; | 
				
			||||
            display: block; | 
					        width: 100%; | 
				
			||||
            position: relative; | 
					        height: 100%; | 
				
			||||
            width: 100%; | 
					      } | 
				
			||||
            height: 100%; | 
					 | 
				
			||||
        } | 
					 | 
				
			||||
    </style> | 
					    </style> | 
				
			||||
</head> | 
					  </head> | 
				
			||||
 | 
					  <body> | 
				
			||||
<body> | 
					 | 
				
			||||
    <div id="overlay"><input type="button" onclick="javascript:location.reload();" value="reconnect" /></div> | 
					    <div id="overlay"><input type="button" onclick="javascript:location.reload();" value="reconnect" /></div> | 
				
			||||
    <div id="terminal"autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></div> | 
					    <div id="terminal" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></div> | 
				
			||||
</body> | 
					    <script type="application/javascript"> | 
				
			||||
 | 
					      window.addEventListener('beforeunload', function(e) { | 
				
			||||
 | 
					        e.returnValue = "Are you sure?"; | 
				
			||||
 | 
					        return e.returnValue; | 
				
			||||
 | 
					      }); | 
				
			||||
 | 
					    </script> | 
				
			||||
 | 
					  </body> | 
				
			||||
</html> | 
					</html> | 
				
			||||
 | 
				
			|||||
								
									
										File diff suppressed because it is too large
									
								
							
						
					
					Loading…
					
					
				
		Reference in new issue