-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Executor Update and Github CI/CD Update
- Loading branch information
1 parent
09de659
commit c6d9bba
Showing
8 changed files
with
135 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules/* | ||
dist/* | ||
dist/* | ||
a.exe |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>SnapCode Terminal</title> | ||
</head> | ||
<script src="shellExecutor.js"></script> | ||
<body> | ||
<div id="output"></div> | ||
<input type="text" id="input" placeholder="Input everything here..."> | ||
</body> | ||
<style> | ||
body { | ||
display: flex; | ||
flex-direction: column; | ||
margin: 0px; | ||
padding: 15px; | ||
background-color: #252b30; | ||
color: white; | ||
font-family: consolas, monospace; | ||
font-size: 14px; | ||
} | ||
#input { | ||
margin-top: 10px; | ||
background-color: #252b30; | ||
color: white; | ||
border: none; | ||
outline: none; | ||
font-family: consolas, monospace; | ||
font-size: 14px; | ||
} | ||
</style> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
window.ipcRenderer.on("output", (event, data) => { | ||
document.getElementById("output").textContent += (data + "\n"); | ||
}) | ||
|
||
document.getElementById("input").addEventListener("keypress", (event) => { | ||
if (event.key === "Enter") { | ||
window.ipcRenderer.send("input", document.getElementById("input").value); | ||
document.getElementById("input").value = ""; | ||
} | ||
}) |