diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1114db2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +Keep-*/ +node_modules/ \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..d7dd5b7 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v7.6.0 \ No newline at end of file diff --git a/IconTemplate.png b/IconTemplate.png new file mode 100644 index 0000000..1188f59 Binary files /dev/null and b/IconTemplate.png differ diff --git a/IconTemplate@2x.png b/IconTemplate@2x.png new file mode 100644 index 0000000..e5f9103 Binary files /dev/null and b/IconTemplate@2x.png differ diff --git a/Keep.icns b/Keep.icns new file mode 100644 index 0000000..d00e850 Binary files /dev/null and b/Keep.icns differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..60d4620 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Keep + + +## Todo +- [ ] Better icons +- [ ] Add session save support +- [ ] Add option menu to exit +- [ ] Allow configuration of size etc diff --git a/index.html b/index.html new file mode 100644 index 0000000..b7819c7 --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/main.js b/main.js new file mode 100644 index 0000000..c5f135e --- /dev/null +++ b/main.js @@ -0,0 +1,15 @@ +const Menubar = require('menubar') + +const menubar = Menubar({ + alwaysOnTop: true, + height: 600, + preloadWindow: true, + showDockIcon: false, + showOnAllWorkspaces: true, + tooltip: 'Keep', + width: 380 +}) + +menubar.on('focus-lost', () => { + menubar.hideWindow() +}) diff --git a/package.json b/package.json new file mode 100644 index 0000000..b7be689 --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "keep", + "productName": "Keep", + "version": "0.1.0", + "description": "Google Keep menu bar app for macOS", + "main": "main.js", + "scripts": { + "build": "electron-packager ./ --icon=Keep.icns --overwrite --platform=darwin --quiet", + "start": "electron .", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": "https://github.com/tmcinerney/keep", + "keywords": [ + "google", + "keep", + "tray" + ], + "author": "Travers McInerney", + "license": "MIT", + "dependencies": { + "menubar": "^5.2.3" + }, + "devDependencies": { + "electron": "^1.6.2", + "electron-packager": "^8.5.2" + } +}