Skip to content

Commit

Permalink
Setup a starter electron project.
Browse files Browse the repository at this point in the history
  • Loading branch information
kprav33n committed Nov 23, 2017
0 parents commit 8593db8
Show file tree
Hide file tree
Showing 6 changed files with 917 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*.{js,json}]
indent_size = 2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
Binary file added assets/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const { app, Tray, Menu, BrowserWindow } = require('electron');
const path = require('path');

let tray = null;

app.on('ready', function () {
tray = new Tray(path.join(__dirname, 'assets/images/TrayIconTemplate.png'));
const contextMenu = Menu.buildFromTemplate([
{
label: 'Quit',
accelerator: 'Command+Q',
selector: 'terminate:',
}
]);
tray.setToolTip('Zendoro');
tray.setContextMenu(contextMenu);
});
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "zendoro",
"version": "0.5.0",
"description": "A simple timer to use with the Pomodoro Technique",
"main": "main.js",
"scripts": {
"start": "electron ."
},
"repository": "https://github.com/kprav33n/zendoro",
"author": "Praveen Kumar <[email protected]>",
"license": "MIT",
"dependencies": {
"electron": "^1.7.9"
}
}
Loading

0 comments on commit 8593db8

Please sign in to comment.