-
Notifications
You must be signed in to change notification settings - Fork 0
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 aa26b47
Showing
1,093 changed files
with
214,024 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,3 @@ | ||
{ | ||
"directory" : "public/components" | ||
} |
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 @@ | ||
node_modules |
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,22 @@ | ||
# giantcrm | ||
|
||
## Installation Instructions | ||
1. clone this repo | ||
2. ```npm install --save``` | ||
3. ```bower install``` | ||
4. ```npm start``` | ||
5. visit http://localhost:5000 in your browser | ||
|
||
## Technology Used | ||
- Express | ||
- Jade | ||
- HTML | ||
- CSS | ||
- JavaScript | ||
- Bootstrap | ||
|
||
## APIs | ||
- Google Contacts | ||
- Google Calendar | ||
- Gmail | ||
- IBM Watson Personality Insights |
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,87 @@ | ||
var express = require('express') | ||
var path = require('path') | ||
var logger = require('morgan') | ||
var cookieParser = require('cookie-parser') | ||
var bodyParser = require('body-parser') | ||
|
||
var routes = require('./routes/index') | ||
var users = require('./routes/users') | ||
var calendar = require('./routes/calendar') | ||
var contacts = require('./routes/contacts') | ||
var gmail = require('./routes/gmail') | ||
var reviews = require('./routes/reviews') | ||
var push = require('./routes/push') | ||
var notes = require('./routes/notes') | ||
var concepts = require('./routes/concepts') | ||
|
||
var app = express() | ||
var jwt = require('express-jwt') | ||
|
||
var jwtCheck = jwt({ | ||
secret: new Buffer('L7ctAGkBFBX29RhsdXixp62Lkpo8B1y9YMLwA-ymBVYNjSVcQtk_VM9RR7C-RG8g', 'base64'), | ||
audience: 'keY7skILu0DeJk9ZXNB1Kbkeln9wBZsj' | ||
}) | ||
|
||
// view engine setup | ||
app.set('views', path.join(__dirname, 'views')) | ||
app.set('view engine', 'jade') | ||
|
||
// uncomment after placing your favicon in /public | ||
// app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); | ||
app.use(logger('dev')) | ||
app.use(bodyParser.json()) | ||
app.use(bodyParser.urlencoded({ extended: false })) | ||
app.use(cookieParser()) | ||
app.use(express.static(path.join(__dirname, 'public'))) | ||
|
||
app.use('/', routes) | ||
app.use('/users', users) | ||
app.use('/calendar', calendar) | ||
app.use('/contacts', contacts) | ||
app.use('/gmail', gmail) | ||
app.use('/reviews', reviews) | ||
app.use('/push', push) | ||
app.use('/notes', notes) | ||
app.use('/concepts', concepts) | ||
|
||
app.use('/users', jwtCheck) | ||
app.use('/calendar', jwtCheck) | ||
app.use('/contacts', jwtCheck) | ||
app.use('/gmail', jwtCheck) | ||
app.use('/reviews', jwtCheck) | ||
app.use('/push', jwtCheck) | ||
app.use('/notes', jwtCheck) | ||
app.use('/concepts', jwtCheck) | ||
|
||
// catch 404 and forward to error handler | ||
app.use(function (req, res, next) { | ||
var err = new Error('Not Found') | ||
err.status = 404 | ||
next(err) | ||
}) | ||
|
||
// error handlers | ||
|
||
// development error handler | ||
// will print stacktrace | ||
if (app.get('env') === 'development') { | ||
app.use(function (err, req, res, next) { | ||
res.status(err.status || 500) | ||
res.render('error', { | ||
message: err.message, | ||
error: err | ||
}) | ||
}) | ||
} | ||
|
||
// production error handler | ||
// no stacktraces leaked to user | ||
app.use(function (err, req, res, next) { | ||
res.status(err.status || 500) | ||
res.render('error', { | ||
message: err.message, | ||
error: {} | ||
}) | ||
}) | ||
|
||
module.exports = app |
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,90 @@ | ||
#!/usr/bin/env node | ||
|
||
/** | ||
* Module dependencies. | ||
*/ | ||
|
||
var app = require('../app'); | ||
var debug = require('debug')('myapp:server'); | ||
var http = require('http'); | ||
|
||
/** | ||
* Get port from environment and store in Express. | ||
*/ | ||
|
||
var port = normalizePort(process.env.PORT || '5000'); | ||
app.set('port', port); | ||
|
||
/** | ||
* Create HTTP server. | ||
*/ | ||
|
||
var server = http.createServer(app); | ||
|
||
/** | ||
* Listen on provided port, on all network interfaces. | ||
*/ | ||
|
||
server.listen(port); | ||
server.on('error', onError); | ||
server.on('listening', onListening); | ||
|
||
/** | ||
* Normalize a port into a number, string, or false. | ||
*/ | ||
|
||
function normalizePort(val) { | ||
var port = parseInt(val, 10); | ||
|
||
if (isNaN(port)) { | ||
// named pipe | ||
return val; | ||
} | ||
|
||
if (port >= 0) { | ||
// port number | ||
return port; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
/** | ||
* Event listener for HTTP server "error" event. | ||
*/ | ||
|
||
function onError(error) { | ||
if (error.syscall !== 'listen') { | ||
throw error; | ||
} | ||
|
||
var bind = typeof port === 'string' | ||
? 'Pipe ' + port | ||
: 'Port ' + port; | ||
|
||
// handle specific listen errors with friendly messages | ||
switch (error.code) { | ||
case 'EACCES': | ||
console.error(bind + ' requires elevated privileges'); | ||
process.exit(1); | ||
break; | ||
case 'EADDRINUSE': | ||
console.error(bind + ' is already in use'); | ||
process.exit(1); | ||
break; | ||
default: | ||
throw error; | ||
} | ||
} | ||
|
||
/** | ||
* Event listener for HTTP server "listening" event. | ||
*/ | ||
|
||
function onListening() { | ||
var addr = server.address(); | ||
var bind = typeof addr === 'string' | ||
? 'pipe ' + addr | ||
: 'port ' + addr.port; | ||
debug('Listening on ' + bind); | ||
} |
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,32 @@ | ||
{ | ||
"name": "myapp", | ||
"description": "", | ||
"main": "", | ||
"authors": [ | ||
"lanbau <[email protected]>" | ||
], | ||
"license": "MIT", | ||
"moduleType": [], | ||
"homepage": "", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
], | ||
"dependencies": { | ||
"polymer": "Polymer/polymer#^1.2.0", | ||
"google-calendar": "GoogleWebComponents/google-calendar#~1.0.1", | ||
"datatables": "~1.10.4", | ||
"datatables-plugins": "~1.0.1", | ||
"flot": "~0.8.3", | ||
"font-awesome": "~4.2.0", | ||
"holderjs": "~2.4.1", | ||
"metisMenu": "~1.1.3", | ||
"morrisjs": "~0.5.1", | ||
"datatables-responsive": "~1.0.3", | ||
"bootstrap-social": "~4.8.0", | ||
"flot.tooltip": "~0.8.4" | ||
} | ||
} |
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,27 @@ | ||
{ | ||
"name": "myapp", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"start": "node ./bin/www" | ||
}, | ||
"dependencies": { | ||
"body-parser": "~1.13.2", | ||
"browserify": "^13.0.0", | ||
"cloudant": "^1.4.0", | ||
"cookie-parser": "~1.3.5", | ||
"debug": "^2.2.0", | ||
"express": "~4.13.1", | ||
"express-jwt": "^3.3.0", | ||
"gcm": "^1.0.1", | ||
"jade": "~1.11.0", | ||
"morgan": "~1.6.1", | ||
"serve-favicon": "~2.3.0", | ||
"watson-developer-cloud": "^1.2.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.4.1", | ||
"mocha": "^2.3.4", | ||
"supertest": "^1.1.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,25 @@ | ||
{ | ||
"name": "bootstrap-social", | ||
"main": "bootstrap-social.css", | ||
"licence": "MIT", | ||
"ignore": [ | ||
"assets", | ||
"index.html", | ||
"LICENCE" | ||
], | ||
"dependencies": { | ||
"bootstrap": "~3", | ||
"font-awesome": "~4.2" | ||
}, | ||
"homepage": "https://github.com/lipis/bootstrap-social", | ||
"version": "4.8.0", | ||
"_release": "4.8.0", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "4.8.0", | ||
"commit": "918fc55c3c938377a7618ec0f115846e50d4b883" | ||
}, | ||
"_source": "git://github.com/lipis/bootstrap-social.git", | ||
"_target": "~4.8.0", | ||
"_originalSource": "bootstrap-social" | ||
} |
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,11 @@ | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
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,2 @@ | ||
.DS_Store | ||
dev |
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,58 @@ | ||
Social Buttons for Bootstrap | ||
============================ | ||
|
||
Social Buttons made in pure CSS based on | ||
[Bootstrap](http://twbs.github.io/bootstrap/) and | ||
[Font Awesome](http://fortawesome.github.io/Font-Awesome/)! | ||
|
||
[Check the live demo!](http://lipis.github.io/bootstrap-social) | ||
|
||
Installation | ||
------------ | ||
|
||
Include the `bootstrap-social.css` or `bootstrap-social.less` in your project, or | ||
install it through [Bower](http://bower.io/): | ||
|
||
bower install bootstrap-social | ||
|
||
Available classes | ||
----------------- | ||
- `btn-adn` | ||
- `btn-bitbucket` | ||
- `btn-dropbox` | ||
- `btn-facebook` | ||
- `btn-flickr` | ||
- `btn-foursquare` | ||
- `btn-github` | ||
- `btn-google-plus` | ||
- `btn-instagram` | ||
- `btn-linkedin` | ||
- `btn-microsoft` | ||
- `btn-openid` | ||
- `btn-reddit` | ||
- `btn-soundcloud` | ||
- `btn-tumblr` | ||
- `btn-twitter` | ||
- `btn-vimeo` | ||
- `btn-vk` | ||
- `btn-yahoo` | ||
|
||
Examples | ||
-------- | ||
|
||
```html | ||
<a class="btn btn-block btn-social btn-twitter"> | ||
<i class="fa fa-twitter"></i> | ||
Sign in with Twitter | ||
</a> | ||
|
||
<a class="btn btn-social-icon btn-twitter"> | ||
<i class="fa fa-twitter"></i> | ||
</a> | ||
``` | ||
|
||
Pull Requests | ||
------------- | ||
If you are about to create a new **Pull Request** for adding a new button don't | ||
update the minified `bootstrap-social.css` file. It will be generated | ||
automatically after a successful merge. |
Oops, something went wrong.