feat(plugins/sponsors): add new sponsors plugin (#548)

This commit is contained in:
Simon Lecoq
2021-09-29 20:17:38 -04:00
committed by GitHub
parent 357cf06d40
commit 96ae8d1dfc
10 changed files with 250 additions and 3 deletions

View File

@@ -353,6 +353,26 @@
}
})
: null),
//Sponsors
...(set.plugins.enabled.sponsors
? ({
sponsors: {
sections: options["sponsors.sections"].split(",").map(x => x.trim()),
about: "A new way to contribute to open source",
list: new Array(Number(faker.datatype.number(40))).fill(null).map(_ => ({
login: faker.internet.userName(),
amount: faker.datatype.number(10),
avatar: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mOcOnfpfwAGfgLYttYINwAAAABJRU5ErkJggg==",
})),
count: faker.datatype.number(100),
goal: {
progress: faker.datatype.number(100),
title: `$${faker.datatype.number(100)*10} per month`,
description: "Invest in the software that powers your world"
}
}
})
: null),
//Languages
...(set.plugins.enabled.languages
? ({