This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
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 4fdd4a6
Showing
56 changed files
with
3,994 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,33 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"rules": { | ||
"array-bracket-spacing": [2, "never"], | ||
"comma-style": [2, "last"], | ||
"computed-property-spacing": [2, "never"], | ||
"default-case": 2, | ||
"eqeqeq": 2, | ||
"indent": [2, 2], | ||
"max-len": [1, 100, 2], | ||
"no-lonely-if": 2, | ||
"no-multi-spaces": 2, | ||
"no-multiple-empty-lines": 2, | ||
"no-nested-ternary": 2, | ||
"no-new-require": 2, | ||
"no-underscore-dangle": 2, | ||
"no-unused-expressions": 0, | ||
"no-use-before-define": 0, | ||
"no-var": 2, | ||
"object-curly-spacing": [2, "always"], | ||
"quotes": [1, "single", "avoid-escape"], | ||
"semi": 2, | ||
"space-after-keywords": [2, "always"], | ||
"space-before-blocks": [2, "always"], | ||
"space-before-function-paren": [2, "never"], | ||
"space-before-keywords": [2, "always"], | ||
"strict": 0 | ||
} | ||
} |
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,69 @@ | ||
# Created by https://www.gitignore.io/api/osx,node,sass | ||
|
||
### OSX ### | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
|
||
### Node ### | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git | ||
node_modules | ||
|
||
|
||
### Sass ### | ||
.sass-cache/ | ||
*.css.map | ||
|
||
|
||
### PopHub ### | ||
build/ | ||
dist/ |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 Katsuma Tanaka | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,78 @@ | ||
# PopHub | ||
|
||
GitHub activity & notification viewer. | ||
|
||
![](screenshot.png) | ||
|
||
|
||
## Requirements | ||
|
||
Mac OS X 10.8 or later. | ||
|
||
|
||
## Installation | ||
|
||
### Download | ||
|
||
You can download pre-built packages from [releases](https://github.com/questbeat/PopHub/releases) page. | ||
|
||
|
||
### Build from source | ||
|
||
$ npm install | ||
$ npm run dist | ||
|
||
|
||
## Customization | ||
|
||
This is the state shape of PopHub. | ||
|
||
{ | ||
accessToken: '...', | ||
user: { login: 'questbeat', ... }, | ||
activePage: 0, // = ActivePage.EVENTS | ||
eventsUpdateInterval: (1000 * 60 * 10), // 10 min | ||
notificationsUpdateInterval: (1000 * 60 * 10), // 10 min | ||
notificationsUpdateInterval: (1000 * 60 * 30), // 30 min | ||
events: [ ... ], | ||
fetchingEvents: false, | ||
notifications: { | ||
"questbeat/Foo": [ ... ], | ||
"questbeat/Bar": [ ... ] | ||
}, | ||
fetchingNotifications: false, | ||
gitHubStatus: { | ||
"status": "good", | ||
"last_updated": "2015-09-15T05:58:44Z" | ||
} | ||
} | ||
|
||
You can customize the behavior of app by modifying the initial state in `src/renderer/index.js`. | ||
See the examples below. | ||
|
||
|
||
### Example: Automatically sign in on launch | ||
|
||
const store = configureStore({ | ||
accessToken: '...', // Write your personal access token | ||
user: { | ||
login: 'questbeat' | ||
} | ||
}); | ||
|
||
|
||
### Example: Show the "Notifications" tab as default | ||
|
||
const store = configureStore({ | ||
accessToken: '...', // Write your personal access token | ||
user: { | ||
login: 'questbeat' | ||
}, | ||
activePage: 1, // = ActivePage.NOTIFICATIONS | ||
}); | ||
|
||
|
||
## License | ||
|
||
PopHub is released under the MIT license. | ||
For more information, see LICENSE file in this repository. |
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,111 @@ | ||
var autoprefixer = require('gulp-autoprefixer'); | ||
var babel = require('gulp-babel'); | ||
var browserSync = require("browser-sync").create(); | ||
var del = require('del'); | ||
var eslint = require('gulp-eslint'); | ||
var gulp = require('gulp'); | ||
var minifyCss = require('gulp-minify-css') | ||
var runSequence = require('run-sequence'); | ||
var sass = require('gulp-ruby-sass'); | ||
|
||
gulp.task('clean', function(callback) { | ||
del([ | ||
'build', | ||
], callback); | ||
}); | ||
|
||
gulp.task('sass', function() { | ||
return sass('./src/renderer/assets/scss/*.scss') | ||
.on('error', function(error) { | ||
console.error('Error:', error.message); | ||
}) | ||
.pipe(gulp.dest('./build/renderer/assets/css')); | ||
}); | ||
|
||
gulp.task('autoprefixer', function() { | ||
return gulp.src('./build/renderer/assets/css/*.css') | ||
.pipe(autoprefixer({ | ||
browsers: ['last 2 versions'], | ||
cascade: false | ||
})) | ||
.pipe(gulp.dest('./build/renderer/assets/css')); | ||
}); | ||
|
||
gulp.task('minify-css', function() { | ||
return gulp.src('./build/renderer/assets/css/*.css') | ||
.pipe(minifyCss()) | ||
.pipe(gulp.dest('./build/renderer/assets/css')); | ||
}); | ||
|
||
gulp.task('copy', function() { | ||
return gulp.src( | ||
[ | ||
'./src/main/assets/**/*', | ||
'./src/vendor/**/*', | ||
'./src/**/*.html' | ||
], | ||
{ base: 'src' } | ||
) | ||
.pipe(gulp.dest('build')); | ||
}); | ||
|
||
gulp.task('babelify', function() { | ||
return gulp.src( | ||
[ | ||
'./src/main/**/*.js', | ||
'./src/renderer/**/*.js', | ||
'./src/lib/**/*.js' | ||
], | ||
{ base: 'src' } | ||
) | ||
.pipe(babel({ | ||
optional: ['runtime'] | ||
})) | ||
.on('error', function(error) { | ||
console.error('Error:', error.message); | ||
this.emit('end'); | ||
}) | ||
.pipe(gulp.dest('build')); | ||
}); | ||
|
||
gulp.task('lint', function() { | ||
return gulp.src('./src/**/*.js') | ||
.pipe(eslint()) | ||
.pipe(eslint.format()) | ||
.pipe(eslint.failOnError()); | ||
}); | ||
|
||
gulp.task('browser-sync', function() { | ||
browserSync.init({ | ||
server: { | ||
baseDir: './' | ||
} | ||
}); | ||
}); | ||
|
||
gulp.task('build', function(callback) { | ||
runSequence( | ||
'lint', | ||
'sass', | ||
'autoprefixer', | ||
'minify-css', | ||
['copy', 'babelify'], | ||
callback | ||
); | ||
}); | ||
|
||
gulp.task('watch', ['build'], function() { | ||
gulp.watch([ | ||
'./src/**/*.js', | ||
'./src/**/*.scss', | ||
'./src/**/*.html' | ||
], ['build']); | ||
}); | ||
|
||
gulp.task('sync', ['build', 'browser-sync'], function() { | ||
gulp.watch(watch_paths, function() { | ||
runSequence('build', browserSync.reload); | ||
}); | ||
}); | ||
|
||
gulp.task('default', ['build']); |
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,55 @@ | ||
{ | ||
"name": "PopHub", | ||
"version": "0.0.1", | ||
"description": "GitHub activity & notification viewer.", | ||
"main": "build/main/index.js", | ||
"scripts": { | ||
"archive": "npm run build && bash scripts/archive.sh", | ||
"build": "npm run clean && gulp build", | ||
"codesign": "bash scripts/codesign.sh", | ||
"clean": "gulp clean", | ||
"package": "npm run build && bash scripts/package.sh", | ||
"start": "electron .", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"pophub", | ||
"github", | ||
"activities", | ||
"notification", | ||
"mac", | ||
"app" | ||
], | ||
"author": "Katsuma Tanaka <[email protected]> (https://github.com/questbeat)", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/questbeat/PopHub.git" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"babel-runtime": "^5.8.24", | ||
"file-url": "^1.0.1", | ||
"isomorphic-fetch": "^2.1.1", | ||
"menubar": "https://github.com/questbeat/menubar.git", | ||
"moment": "^2.10.6", | ||
"react": "^0.13.3", | ||
"react-redux": "^2.1.2", | ||
"redux": "^3.0.0", | ||
"redux-logger": "^1.0.8", | ||
"redux-thunk": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "^4.1.3", | ||
"browser-sync": "^2.9.3", | ||
"del": "^2.0.2", | ||
"electron-packager": "^5.1.0", | ||
"electron-prebuilt": "^0.32.3", | ||
"gulp": "^3.9.0", | ||
"gulp-autoprefixer": "^3.0.1", | ||
"gulp-babel": "^5.2.1", | ||
"gulp-eslint": "^1.0.0", | ||
"gulp-minify-css": "^1.2.1", | ||
"gulp-ruby-sass": "^2.0.3", | ||
"run-sequence": "^1.1.3" | ||
} | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 @@ | ||
#!/bin/sh | ||
|
||
if [ -e tmp ]; then | ||
rm -rf tmp | ||
fi | ||
|
||
mkdir -p tmp | ||
|
||
cp -r build tmp | ||
cp -r node_modules tmp | ||
cp -r package.json tmp | ||
|
||
pushd tmp | ||
npm prune --production | ||
asar pack . ../app.asar | ||
popd | ||
|
||
rm -rf tmp |
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,5 @@ | ||
#!/bin/sh | ||
|
||
codesign --deep --force --verbose --sign "Developer ID Application: KATSUMA TANAKA" dist/PopHub-darwin-x64/PopHub.app | ||
codesign --verify -vvvv dist/PopHub-darwin-x64/PopHub.app | ||
spctl -a -vvvv dist/PopHub-darwin-x64/PopHub.app |
Oops, something went wrong.