Browse Source

Merge pull request #15 from jrtechs/config-and-link-fixes

Config and link fixes (Closes #6 #12)
pull/17/head
Jeffery Russell 4 years ago
committed by GitHub
parent
commit
27be3c07ac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions
  1. +2
    -1
      conf.json
  2. +1
    -1
      public/js/createOrgTable.js
  3. +2
    -1
      public/js/profileGen.js

+ 2
- 1
conf.json View File

@ -1,7 +1,8 @@
{
"port": 7000,
"sessionSecret": "superDuperSecret",
"sessionSecret": "superDuperSecret for session stuff",
"user": "github-user-used-with-api-account",
"clientID": "github client id",
"clientSecret": "clientSecret"
}

+ 1
- 1
public/js/createOrgTable.js View File

@ -5,7 +5,7 @@ function generateHtmlRow(repoData) {
${repoData.language === 'null'
? '<div class="bg-light d-inline-block" style="height: 14px; width: 14px; border-radius: 7px"></div>'
: `<i class="devicon-${repoData.language}-plain colored"></i>`}
<a class="text-reset ml-1" href="${repoData.url}">${repoData.name}</a>
<a class="text-reset ml-1" href="${repoData.html_url}" target="_blank">${repoData.name}</a>
</td>
<td class="text-right">${repoData.forks}</td>
</tr>

+ 2
- 1
public/js/profileGen.js View File

@ -66,7 +66,8 @@ function parseOrgs(name) {
prom.push( new Promise( (res, rej) => {
url = orgs[i].url;
queryUrl(url, (orgData) => {
orgs_final.push("<a href=\""+orgData.html_url+"\"><img src=\""+orgData.avatar_url+"\" class=\"img-fluid\" style=\"max-width:35px\"></img></a>");
console.log(orgData);
orgs_final.push("<a href=\"OrgRepoGraph.html?name="+orgData.login+"\"><img src=\""+orgData.avatar_url+"\" class=\"img-fluid\" style=\"max-width:35px\"></img></a>");
res();
}, (error) => {
console.log(error);

Loading…
Cancel
Save