mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
built_temp
This commit is contained in:
parent
bee69802b8
commit
c1af4c5b3d
@ -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 = {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,10 +13,12 @@ export class CreditsState extends TextualGameState {
|
||||
|
||||
getMainContentHTML() {
|
||||
return `
|
||||
<div class="section tobspr"><div class="title">${this.linkify(
|
||||
"https://github.com/tobspr",
|
||||
"Tobias Springer"
|
||||
)} - ${T.credits.tobspr}</div></div>
|
||||
<div class="section tobspr">
|
||||
<button class="title">${T.credits.tobspr}</button>
|
||||
<div class="people">
|
||||
<div class="entry">${this.linkify("https://github.com/tobspr", "Tobias Springer")}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="special-shout-out section">
|
||||
<button class="title">${T.credits.specialThanks.title}:</button>
|
||||
<div class="people">
|
||||
@ -57,7 +59,7 @@ export class CreditsState extends TextualGameState {
|
||||
i
|
||||
].value
|
||||
.map(pr => {
|
||||
return `<a href=${pr.html_url} target="_blank">${this.getGoodTitle(pr.title)}</a>, `;
|
||||
return `${this.linkify(pr.html_url, this.getGoodTitle(pr.title))}, `;
|
||||
})
|
||||
.reduce((p, c) => p + c)
|
||||
.slice(0, -2)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user