-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8907f1d
Showing
54 changed files
with
30,448 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["es2015", "stage-0"], | ||
"plugins": ["transform-runtime"] | ||
} |
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,9 @@ | ||
app/node_modules/** | ||
app/src/static/** | ||
app/src/main/** | ||
app/src/components/** | ||
app/dist/** | ||
app/electron.js | ||
test/unit/coverage/** | ||
test/unit/*.js | ||
test/e2e/*.js |
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,28 @@ | ||
module.exports = { | ||
root: true, | ||
parser: 'babel-eslint', | ||
parserOptions: { | ||
sourceType: 'module' | ||
}, | ||
env: { | ||
browser: true, | ||
node: true | ||
}, | ||
extends: 'standard', | ||
plugins: [ | ||
'html' | ||
], | ||
'rules': { | ||
// allow paren-less arrow functions | ||
'arrow-parens': 0, | ||
// allow async-await | ||
'generator-star-spacing': 0, | ||
// allow debugger during development | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, | ||
'camelcase': 0, | ||
'no-unused-vars': 1, | ||
'spaced-comment': 1, | ||
'no-mixed-spaces-and-tabs': 1, | ||
'indent': 1 | ||
} | ||
} |
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,12 @@ | ||
.DS_Store | ||
app/dist/index.html | ||
app/dist/build.js | ||
app/dist/styles.css | ||
builds/* | ||
coverage | ||
node_modules | ||
.node-persist | ||
npm-debug.log | ||
npm-debug.log.* | ||
thumbs.db | ||
!.gitkeep |
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,13 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Debug Main Process", | ||
"type": "node", | ||
"request": "launch", | ||
"cwd": "${workspaceRoot}", | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", | ||
"program": "${workspaceRoot}/app/electron.js" | ||
} | ||
] | ||
} |
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,63 @@ | ||
# Notifyer *Beta* | ||
>*Be inspired* | ||
![](http://g.recordit.co/B4qxjGiR9I.gif) | ||
|
||
## What does it do? | ||
Using Microsoft’s OneNote as a datastore, Notifyer utilizes OneNote’s API to retrieve notes from a given section. | ||
Use case? | ||
- Get a daily quote from your curated collection. | ||
- Effortlessly resurface a buried quote and re-apply it to the present. | ||
|
||
## How to use | ||
#### Requirements | ||
- [OneNote Account][] *(app accesses consumer notebooks only)*. | ||
- macOS *(Only 64bit binaries are provided for macOS, and the minimum macOS version supported is macOS 10.9)*. | ||
|
||
#### Get Started | ||
1. Create or Sign into your [OneNote Account][]. | ||
2. In your default/primary notebook, create a section with the name **Quotes**. | ||
3. Add a couple notes to the **Quotes** section. | ||
4. [Download Notifyer][]. Run the app and sign in. | ||
5. Just want to demo the app? [Ping me](http://twitter.com/komplexb) and I'll send you credentials. | ||
|
||
#### Help | ||
- The app sends a notification every 5 minutes so you can easily see it work. You might want to change that to daily. *(Restart the app if it doesn't stop)*. | ||
- Random (via [Chance][]) means you might see the same note in close succession. | ||
- Cmd+Alt+O triggers a random note even when the app is minimized. | ||
- Clicking the notification opens the app. | ||
- The app displays a preview text snippet for each note. Clicking the title in the app opens the source note in the OneNote client. | ||
- Disabled fields means you can't change that setting just yet. | ||
|
||
|
||
## Build Setup* | ||
#### Built with [Electron](http://electron.atom.io/), [VueJS](https://vuejs.org/v2/guide/) and [Semantic UI](http://semantic-ui.com/). | ||
|
||
``` bash | ||
# install dependencies | ||
npm install | ||
|
||
# serve with hot reload at localhost:9080 | ||
npm run dev | ||
|
||
# build electron app for production | ||
npm run build | ||
|
||
# lint all JS/Vue component files in `app/src` | ||
npm run lint | ||
|
||
# run webpack in production | ||
npm run pack | ||
``` | ||
\* Client ID and secret required from [MS Dev Center](https://msdn.microsoft.com/en-us/office/office365/howto/onenote-auth#register-msa) for use in `onenote.config.js`. | ||
|
||
--- | ||
Notifyer icon/logo via [Thomas Helbig's][] [Notifications Collection][]. | ||
|
||
This project was generated from [electron-vue](https://github.com/SimulatedGREG/electron-vue) using [vue-cli](https://github.com/vuejs/vue-cli). Documentation about this project can be found [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html). | ||
|
||
[Thomas Helbig's]: https://thenounproject.com/dergraph | ||
[Notifications Collection]: https://thenounproject.com/dergraph/collection/notifications | ||
[OneNote Account]: http://onenote.com | ||
[Download Notifyer]: https://github.com/komplexb/notifyer-electron/releases | ||
[Chance]: http://chancejs.com |
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,33 @@ | ||
const URLS = { | ||
OAUTH_AUTHORIZE: 'https://login.live.com/oauth20_authorize.srf', | ||
OAUTH_TOKEN: 'https://login.live.com/oauth20_token.srf', | ||
LOGOUT: 'https://login.live.com/oauth20_logout.srf', | ||
SHARE: 'https://www.onenote.com/api/v1.0/me/notes/pages', | ||
SECTION: 'https://www.onenote.com/api/v1.0/me/notes/sections/', | ||
THUMBNAIL: './static/images/placeholder/image.png', | ||
SETTINGS: 'notifyer-settings' | ||
} | ||
|
||
const WINDOW = { | ||
height: 510, | ||
width: 318 | ||
} | ||
|
||
const TIMEOUTS = { | ||
response: 10000, // Wait 10 seconds for the server to start sending, | ||
deadline: 60000 // but allow 1 minute for the file to finish loading. | ||
} | ||
|
||
const DEFAULT_SETTINGS = new Map([ | ||
['sectionName', 'Quotes'], | ||
['schedule', 9], | ||
['openWith', 'Browser'], | ||
['shortcutKey', 'CmdOrCtrl+Alt+O'] | ||
]) | ||
|
||
module.exports = { | ||
URLS: URLS, | ||
WINDOW: WINDOW, | ||
TIMEOUTS: TIMEOUTS, | ||
DEFAULT_SETTINGS: DEFAULT_SETTINGS | ||
} |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.