From f8e90e0e04d1e8c0ae29cba3fa5e9d30d948c629 Mon Sep 17 00:00:00 2001 From: Vasile Popescu Date: Sat, 12 May 2018 18:34:19 +0200 Subject: [PATCH] Move the tty-receiver frontend inside a folder --- frontend/{src => tty-receiver}/app.js | 9 --------- frontend/{src => tty-receiver}/base64.js | 0 frontend/{src => tty-receiver}/main.js | 3 +-- 3 files changed, 1 insertion(+), 11 deletions(-) rename frontend/{src => tty-receiver}/app.js (57%) rename frontend/{src => tty-receiver}/base64.js (100%) rename frontend/{src => tty-receiver}/main.js (95%) diff --git a/frontend/src/app.js b/frontend/tty-receiver/app.js similarity index 57% rename from frontend/src/app.js rename to frontend/tty-receiver/app.js index b4250c2..db80e8a 100644 --- a/frontend/src/app.js +++ b/frontend/tty-receiver/app.js @@ -10,15 +10,6 @@ class App extends Component { } render() { return (
); - return ( - - - - ); } } export default App; \ No newline at end of file diff --git a/frontend/src/base64.js b/frontend/tty-receiver/base64.js similarity index 100% rename from frontend/src/base64.js rename to frontend/tty-receiver/base64.js diff --git a/frontend/src/main.js b/frontend/tty-receiver/main.js similarity index 95% rename from frontend/src/main.js rename to frontend/tty-receiver/main.js index 0f9e4d1..369f231 100644 --- a/frontend/src/main.js +++ b/frontend/tty-receiver/main.js @@ -33,12 +33,11 @@ let connection = new WebSocket(wsAddress); term.open(document.getElementById('terminal'), true); -//term.attach(connection); term.write("$"); connection.onclose = function(evt) { - console.log("Got the WS closed !!"); + console.log("Got the WS closed: ", evt); term.write("disconnected"); }