-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from bugwheels94/bugwheels94/feature
Bugwheels94/feature
- Loading branch information
Showing
21 changed files
with
541 additions
and
201 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 |
---|---|---|
|
@@ -8,4 +8,7 @@ temp/ | |
*.sqlite | ||
/super-terminal-* | ||
dist/ | ||
*.zip | ||
*.zip | ||
.DS_Store | ||
/out | ||
*.dmg |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
git fetch origin && git merge origin/master |
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 @@ | ||
## Intro |
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,7 @@ | ||
{ | ||
"title": "Super Terminal", | ||
"contents": [ | ||
{ "x": 448, "y": 344, "type": "link", "path": "/Applications" }, | ||
{ "x": 192, "y": 344, "type": "file", "path": "out/Super Terminal-darwin-x64/Super Terminal.app" } | ||
] | ||
} |
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,70 @@ | ||
const { app, BrowserWindow, Menu } = require('electron'); | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const util = require('util'); | ||
const { main } = require('./dist/index'); | ||
const createWindow = () => { | ||
// Create the browser window. | ||
const mainWindow = new BrowserWindow({ | ||
width: 800, | ||
height: 600, | ||
webPreferences: { | ||
// preload: path.join(__dirname, 'preload.js'), | ||
}, | ||
}); | ||
|
||
// and load the index.html of the app. | ||
mainWindow.loadURL('http://localhost:7001'); | ||
// mainWindow.loadFile('node_modules/super-terminal-ui/dist/index.html'); | ||
|
||
// Open the DevTools. | ||
mainWindow.webContents.openDevTools(); | ||
}; | ||
|
||
// This method will be called when Electron has finished | ||
// initialization and is ready to create browser windows. | ||
// Some APIs can only be used after this event occurs. | ||
const isMac = process.platform === 'darwin'; | ||
const dockMenu = Menu.buildFromTemplate([ | ||
{ | ||
label: 'New Window', | ||
click() { | ||
createWindow(); | ||
}, | ||
}, | ||
]); | ||
|
||
app | ||
.whenReady() | ||
.then(() => { | ||
if (process.platform === 'darwin') { | ||
app.dock.setMenu(dockMenu); | ||
} | ||
}) | ||
.then(() => { | ||
createWindow(); | ||
|
||
app.on('activate', () => { | ||
// On macOS it's common to re-create a window in the app when the | ||
// dock icon is clicked and there are no other windows open. | ||
if (BrowserWindow.getAllWindows().length === 0) createWindow(); | ||
}); | ||
}); | ||
|
||
// Quit when all windows are closed, except on macOS. There, it's common | ||
// for applications and their menu bar to stay active until the user quits | ||
// explicitly with Cmd + Q. | ||
app.on('window-all-closed', () => { | ||
if (process.platform !== 'darwin') app.quit(); | ||
}); | ||
|
||
// use a fixed path, to ensure log shows outside Electron dist | ||
// const logPath = `/Users/ankit.gautam/chutiya.log`; | ||
// const logFile = fs.createWriteStream(logPath, { flags: 'w' }); | ||
// const logStdout = process.stdout; | ||
|
||
// console.log = function (...args) { | ||
// logFile.write(util.format.apply(null, args) + '\n'); | ||
// logStdout.write(util.format.apply(null, args) + '\n'); | ||
// }; | ||
// console.error = console.log; |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.