diff --git a/gulp/contributors.js b/gulp/contributors.js index 0def5031..4a1ccbfe 100644 --- a/gulp/contributors.js +++ b/gulp/contributors.js @@ -5,7 +5,7 @@ const nodeFetch = require("node-fetch"); const APILink = "https://api.github.com/repos/tobspr/shapez.io"; const numOfReqPerPage = 100; // Max is 100, change to something lower if loads are too long -const personalAccessToken = "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"; +const personalAccessToken = "PUT TOKEN HERE"; const JSONFileLocation = path.join(__dirname, "..", "contributors.json"); @@ -91,8 +91,8 @@ async function sortPRs(prs) { if (i !== 0) clearLine(); console.log(`PR's Downloaded: ${i} out of ${prs.length} (${prs.length - i} left)`); } - clearLine(); + clearLine(); console.log("Downloaded All PR's"); return { @@ -173,21 +173,6 @@ async function updateContributors() { function gulpTaskContributors($, gulp) { gulp.task("contributors.build", cb => tryToUpdateContributors().then(() => cb)); gulp.task("contributors.build.force", cb => updateContributors().then(() => cb)); - - gulp.task("contributors.test", async cb => { - const people = []; - for (let i = 0; i < 100; i++) people.push(i); - - console.log("Starting"); - for (let i = 0; i < 100; i++) { - console.log(`PR's Downloaded: ${i} out of ${people.length} (${people.length - i} left)`); - await new Promise(res => setTimeout(res, 100)); - } - - process.stdout.moveCursor(0, -1); // up one line - process.stdout.clearLine(1); - console.log("Finished"); - }); } module.exports = { diff --git a/src/css/states/credits.scss b/src/css/states/credits.scss index da619a26..af6d53be 100644 --- a/src/css/states/credits.scss +++ b/src/css/states/credits.scss @@ -3,7 +3,6 @@ text-align: center; .tobspr .title { - @include S(margin-top, 10px); } .section { @@ -16,7 +15,6 @@ .title { @include Heading; - @include S(margin-bottom, 8px); color: #555; @include DarkThemeOverride { @@ -29,6 +27,9 @@ overflow: hidden; transition: max-height 0.5s ease-out; } + .people > :first-child { + @include S(margin-top, 8px); + } } } } diff --git a/src/js/states/credits.js b/src/js/states/credits.js index 9adffeeb..b5feb5c2 100644 --- a/src/js/states/credits.js +++ b/src/js/states/credits.js @@ -13,10 +13,12 @@ export class CreditsState extends TextualGameState { getMainContentHTML() { return ` -
${this.linkify( - "https://github.com/tobspr", - "Tobias Springer" - )} - ${T.credits.tobspr}
+
+ +
+
${this.linkify("https://github.com/tobspr", "Tobias Springer")}
+
+
@@ -57,7 +59,7 @@ export class CreditsState extends TextualGameState { i ].value .map(pr => { - return `${this.getGoodTitle(pr.title)}, `; + return `${this.linkify(pr.html_url, this.getGoodTitle(pr.title))}, `; }) .reduce((p, c) => p + c) .slice(0, -2)}