Skip to content

Commit

Permalink
portfolio init
Browse files Browse the repository at this point in the history
  • Loading branch information
komplexb committed Dec 15, 2016
0 parents commit 8907f1d
Show file tree
Hide file tree
Showing 54 changed files with 30,448 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["es2015", "stage-0"],
"plugins": ["transform-runtime"]
}
9 changes: 9 additions & 0 deletions .eslintignore
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
28 changes: 28 additions & 0 deletions .eslintrc.js
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
}
}
12 changes: 12 additions & 0 deletions .gitignore
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
13 changes: 13 additions & 0 deletions .vscode/launch.json
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"
}
]
}
63 changes: 63 additions & 0 deletions README.md
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
33 changes: 33 additions & 0 deletions app/app.config.js
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 added app/dist/.gitkeep
Empty file.
Binary file added app/dist/static/images/placeholder/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8907f1d

Please sign in to comment.