From d072b404ce31552469b68cb934b55d91264d56f9 Mon Sep 17 00:00:00 2001 From: walidmash Date: Thu, 10 Aug 2017 09:17:41 +0300 Subject: [PATCH 1/3] add new token --- src/apiReq.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apiReq.js b/src/apiReq.js index bf81e68..a3518a3 100644 --- a/src/apiReq.js +++ b/src/apiReq.js @@ -4,7 +4,7 @@ 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); request({url: path , headers: {'user-agent': 'node.js'}}, (err, response , body) => { if(err) cb(err, {}); @@ -27,7 +27,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 { From f29605979fa6a1b784c876c6965a8f3154f37f7d Mon Sep 17 00:00:00 2001 From: walidmash Date: Thu, 10 Aug 2017 09:20:23 +0300 Subject: [PATCH 2/3] add token to travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 766c4ee..2bc6484 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,4 @@ script: - node test/front-end-test.js - node test/back-end-test.js env: - - TOKEN=412348569e8e3508a2f095568b0200c0e6ba2a7c + - TOKEN=410117c6d712e27c01a83036f62a4da412737ba8 From 4f1e7ba77c883bcb9395643c67ab0d885b42b9e1 Mon Sep 17 00:00:00 2001 From: walidmash Date: Thu, 10 Aug 2017 11:54:27 +0300 Subject: [PATCH 3/3] responsive css --- public/css/style.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/public/css/style.css b/public/css/style.css index 8eb8521..7800184 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -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; + } +}