Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ script:
- node test/front-end-test.js
- node test/back-end-test.js
env:
- TOKEN=412348569e8e3508a2f095568b0200c0e6ba2a7c
- TOKEN=410117c6d712e27c01a83036f62a4da412737ba8
13 changes: 13 additions & 0 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,16 @@ aside img{
.repoLang span{
color: #586069 !important;
}
@media (max-width:700) {
.repoData{
width:95%;
}
.repos{
width: 70%;
margin: 0 auto;
}
.main > aside{
width: 29%;
margin: 0 auto;
}
}
6 changes: 4 additions & 2 deletions src/apiReq.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ const env = require('env2')('.env');
function apiReq(username, cb){
let obj = {};
let arr = [];
let path = 'https://api.github.com/users/' + username ;
let path = 'https://api.github.com/users/' + username + '?access_token='+process.env.TOKEN;
//console.log('https://api.github.com/users/' + username + '?access_token='+process.env.TOKEN);
//let path = 'https://api.github.com/users/' + username ;
request({url: path , headers: {'user-agent': 'node.js'}}, (err, response , body) => {
if(err) cb(err, {});
else {
Expand All @@ -27,7 +29,7 @@ function apiReq(username, cb){
}

function getRepos(username , cb){
let path = "https://api.github.com/users/" + username + "/repos";
let path = "https://api.github.com/users/" + username + "/repos"+ '?access_token='+process.env.TOKEN ;
request({url: path , headers: {'user-agent': 'node.js'}} , (err, response , body) => {
if(err) cb(err, []);
else {
Expand Down