Skip to content

Commit

Permalink
Merge pull request #145 from invince/develop
Browse files Browse the repository at this point in the history
V1.0.0
  • Loading branch information
invince authored Jan 15, 2025
2 parents 0ca0b73 + a7a36dd commit 1cccdfe
Show file tree
Hide file tree
Showing 35 changed files with 1,315 additions and 334 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# yetAnotherElectronTerm

This project is based on angular + electron to create a remote connection tool supporting SSH RDP SCP VNC
YAET is a remote connection tool based on angular + electron supporting SSH RDP SCP/SFTP FTP VNC

## Prerequisites
- Node
- angular cli
Expand Down
41 changes: 41 additions & 0 deletions TestPlan.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- multiple message can be displayed one by one (for ex, when you change master key and re-encrypt all settings)
- dev mode has menu
- prod mode no menu
- mouse middle-click the title of the tab trigger close of the tab

## Package
- local dev mode ok
Expand Down Expand Up @@ -71,13 +72,15 @@
- vnc
- rdp
- scp
- ftp
- icon ok
- clone works
- custom
- ssh
- vnc
- rdp
- scp
- ftp
- with same group info cloned
- with same tags info cloned
- edit
Expand Down Expand Up @@ -155,6 +158,44 @@
## SCP
- all ok, use a third party lib
- init path pb fixed via patch-package
- [x] scp form
- [x] connect
- [x] list
- [x] cd
- [x] download single
- [x] download multiple
- [x] details
- [x] upload
- [x] drag and drop file to upload
- [x] copy paste file
- [x] cut paste file
- [x] create folder
- [] create file
- [x] rename folder
- [x] rename file
- [x] delete file
- [x] delete folder
- [x] double click open the file
- if you update the file, the file will be uploaded to scp

## Ftp
- [x] profile form
- [x] connect
- [x] list
- [x] cd
- [x] download single
- [x] download multiple
- [x] upload
- [x] drag and drop file to upload
- [x] init path
- [x] create folder
- [] create file
- [x] rename folder
- [x] rename file
- [x] delete file
- [x] delete folder
- [x] double click open the file
- if you update the file, the file will be uploaded to ftp

# Custom
- custom command can start, for ex for realvnc
14 changes: 12 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"@xterm/addon-web-links": "^0.11.0",
"@xterm/addon-webgl": "^0.18.0",
"@xterm/xterm": "^5.5.0",
"basic-ftp": "^5.0.5",
"cors": "^2.8.5",
"crypto-js": "^4.2.0",
"electron-log": "^5.2.4",
Expand Down
15 changes: 15 additions & 0 deletions src-electron/electronMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ const {initCustomSessionHandler} = require("./ipc/custom");
const {initScpSftpHandler} = require("./ipc/scp");
const {initAutoUpdater} = require("./ipc/autoUpdater");
const {initBackend} = require("./ipc/backend");
const {initFtpHandler} = require("./ipc/ftp");

let tray;
let expressApp;
let mainWindow;
let terminalMap = new Map();
let vncMap = new Map();
let scpMap = new Map();
let ftpMap = new Map();

const log = require("electron-log")

const logPath = `${__dirname}/logs/main.log`;
console.log(logPath);
log.transports.file.resolvePathFn = () => logPath;
Expand Down Expand Up @@ -110,9 +113,13 @@ app.on('ready', () => {
initRdpHandler(log);
initVncHandler(log, vncMap);
initScpSftpHandler(log, scpMap, expressApp);
initFtpHandler(log, ftpMap, expressApp);
initClipboard(log, mainWindow);
initCustomSessionHandler(log);

// Start API
expressApp.listen(13012, () => log.info('API listening on port 13012'));


});

Expand All @@ -139,6 +146,14 @@ app.on('window-all-closed', () => {
}
});


ftpMap.forEach((ftpClient) => {
// value?.end();
if (ftpClient) {
ftpClient.close(); // WebSocket server for this vnc client closed
}
});

app.quit();
}
});
Expand Down
Loading

0 comments on commit 1cccdfe

Please sign in to comment.