feat(docs): migrate documentation site into monorepo (#5912)
This commit is contained in:
1 parent
3e464a76f2
commit
9e421c67bd
605 files changed
+26764
-219
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
type Contributor = {
|
||||
login: string;
|
||||
avatar_url: string;
|
||||
};
|
||||
|
||||
// do not add any real users here
|
||||
const blacklistedUsernames = ["deepsource-autofix[bot]", "deepsource-io[bot]", "renovate[bot]", "dependabot[bot]"];
|
||||
|
||||
export const CodeContributorList = () => {
|
||||
const [contributors, setContributors] = useState<Contributor[]>([]);
|
||||
|
||||
useEffect(() => {
|
||||
fetch("/data/contributions.json").then(async (response) => {
|
||||
const data = await response.json();
|
||||
setContributors(data.filter((contributor: Contributor) => !blacklistedUsernames.includes(contributor.login)));
|
||||
});
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className={"flex flex-wrap gap-3 argos-ignore"}>
|
||||
{contributors.map((contributor: Contributor) => (
|
||||
<div className={"flex flex-col items-center w-24"}>
|
||||
<img className={"w-24 h-24 aspect-square rounded mb-2"} src={contributor.avatar_url} alt={""} />
|
||||
<h6 className={"truncate text-nowrap max-w-full"}>{contributor.login}</h6>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user