From c39af02e9711657a125de863ef776661ce5728dc Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Sun, 27 Aug 2023 21:05:51 +0200 Subject: [PATCH] cleanup --- gui/main.js | 45 +-- gui/src/chat-module.html | 843 --------------------------------------- gui/src/data-module.html | 285 ------------- gui/src/log-module.html | 92 ----- gui/src/mesh-module.html | 147 ------- 5 files changed, 2 insertions(+), 1410 deletions(-) delete mode 100644 gui/src/chat-module.html delete mode 100644 gui/src/data-module.html delete mode 100644 gui/src/log-module.html delete mode 100644 gui/src/mesh-module.html diff --git a/gui/main.js b/gui/main.js index 1744493d..ddfeda00 100644 --- a/gui/main.js +++ b/gui/main.js @@ -212,21 +212,6 @@ function createWindow() { }) */ win.loadFile("src/index.html"); -/* - chat = new BrowserWindow({ - height: 600, - width: 1000, - show: false, - //parent: win, - webPreferences: { - preload: require.resolve("./preload-chat.js"), - nodeIntegration: true, - }, - }); - - chat.loadFile("src/chat-module.html"); - chat.setMenuBarVisibility(false); -*/ logViewer = new BrowserWindow({ @@ -299,15 +284,7 @@ function createWindow() { //autoUpdater.quitAndInstall(); }); - //chat.on("closed", function () {}); - // https://stackoverflow.com/questions/44258831/only-hide-the-window-when-closing-it-electron - /* - chat.on("close", function (evt) { - evt.preventDefault(); - chat.hide(); - }); - */ } app.whenReady().then(() => { @@ -403,8 +380,7 @@ app.on("window-all-closed", () => { ipcMain.on("set-config-global", (event, data) => { config = data; win.webContents.send("update-config", config); - //chat.webContents.send("update-config", config); - //console.log("set-config-global called"); + }); //Show/update task bar/button progressbar @@ -412,14 +388,6 @@ ipcMain.on("request-show-electron-progressbar", (event, data) => { win.setProgressBar(data / 100); }); -ipcMain.on("request-show-chat-window", () => { - //chat.show(); -}); - -ipcMain.on("request-clear-chat-connected", () => { - //Clear chat window's connected with text - //chat.webContents.send("action-clear-reception-status"); -}); ipcMain.on("request-update-dbclean-spinner", () => { //Turn off dbclean spinner @@ -514,13 +482,6 @@ ipcMain.on("request-clean-db", () => { win.webContents.send("action-clean-db"); }); -ipcMain.on("request-open-tnc-log", () => { - logViewer.show(); -}); - -ipcMain.on("request-open-mesh-module", () => { - meshViewer.show(); -}); //file selector ipcMain.on("get-file-path", (event, data) => { @@ -944,9 +905,7 @@ function close_all() { mainLog.warn("quitting app"); win.destroy(); - //chat.destroy(); - logViewer.destroy(); - meshViewer.destroy(); + app.quit(); } diff --git a/gui/src/chat-module.html b/gui/src/chat-module.html deleted file mode 100644 index 7f161b2b..00000000 --- a/gui/src/chat-module.html +++ /dev/null @@ -1,843 +0,0 @@ - - - - - - - - - - - - - FreeDATA - CHAT - - - - - - - - - - - - -
-
-
- -
-
- - - - - -
-
-
-
-
-
-
-
- -
-
- - - - - - - - - - - - - ------ -
-
- -
- -
- - -
- -
- - - -
- - -
- -
- - - -
- - - -
-
-
-
-
-
- - - - - - - - - - - - - - diff --git a/gui/src/data-module.html b/gui/src/data-module.html deleted file mode 100644 index 30e6605d..00000000 --- a/gui/src/data-module.html +++ /dev/null @@ -1,285 +0,0 @@ - - - - - - - - - - Send & Receive Data - - -
-
-
-
-
-
Select data
-
-
- - -
-
-
-
- -
- -
-
-
-
Transmission
-
-
-
-
- - - ACK - 0000 km - 0 dB -
-
-
-
-
-
- Mode - -
-
-
-
- Frames - -
-
-
-
- - -
-
-
-
-
- -
- -
-
-
-
-
Info
-
123
-
-
-
-
-
-
-
-
- -
- -
- - - - - diff --git a/gui/src/log-module.html b/gui/src/log-module.html deleted file mode 100644 index d7ec5d02..00000000 --- a/gui/src/log-module.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - FreeDATA - Live Log - - - - - - - - -
-
- - - - - - - - - - - - -
TimestampTypeAreaLog entry
-
-
- - diff --git a/gui/src/mesh-module.html b/gui/src/mesh-module.html deleted file mode 100644 index 396ad53e..00000000 --- a/gui/src/mesh-module.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - FreeDATA - Mesh Table - - - - - - - - - -