Connect, collaborate, and grow with a community of TypeScript developers
Twitter script (#307)
bautistaaa089c0f46a6a5
diff --git a/package.json b/package.jsonindex 1e1c4f3d..81fc942a 100644--- a/package.json+++ b/package.json@@ -13,6 +13,7 @@"refresh": "pnpm reset && pnpm prisma db seed","typecheck": "tsc --noEmit","prepare": "husky install",+ "dl-git": "tsx scripts/contributors.ts","dl-monaco": "tsx scripts/dl-monaco.ts","dl-monaco:force": "tsx scripts/dl-monaco.ts --force"},@@ -47,6 +48,7 @@"clsx": "^2.0.0","cmdk": "^0.2.0","date-fns": "^2.30.0",+ "dotenv": "^16.3.1","framer-motion": "^10.12.22","lodash": "^4.17.21","lucide-react": "^0.260.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 1e26ad7b..38ec78cb 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -103,6 +103,9 @@ dependencies:date-fns:specifier: ^2.30.0version: 2.30.0+ dotenv:+ specifier: ^16.3.1+ version: 16.3.1framer-motion:specifier: ^10.12.22version: 10.12.22([email protected])([email protected])@@ -3334,6 +3337,11 @@ packages:esutils: 2.0.3dev: true+ resolution: {integrity: sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==}+ engines: {node: '>=12'}+ dev: false+resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}dev: truediff --git a/public/contributors.json b/public/contributors.jsonnew file mode 100644index 00000000..3d7d70a7--- /dev/null+++ b/public/contributors.json@@ -0,0 +1 @@+[{"login":"bautistaaa","id":3660667,"node_id":"MDQ6VXNlcjM2NjA2Njc=","avatar_url":"https://avatars.githubusercontent.com/u/3660667?v=4","gravatar_id":"","url":"https://api.github.com/users/bautistaaa","html_url":"https://github.com/bautistaaa","followers_url":"https://api.github.com/users/bautistaaa/followers","following_url":"https://api.github.com/users/bautistaaa/following{/other_user}","gists_url":"https://api.github.com/users/bautistaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/bautistaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bautistaaa/subscriptions","organizations_url":"https://api.github.com/users/bautistaaa/orgs","repos_url":"https://api.github.com/users/bautistaaa/repos","events_url":"https://api.github.com/users/bautistaaa/events{/privacy}","received_events_url":"https://api.github.com/users/bautistaaa/received_events","type":"User","site_admin":false,"contributions":58},{"login":"PickleNik","id":31113245,"node_id":"MDQ6VXNlcjMxMTEzMjQ1","avatar_url":"https://avatars.githubusercontent.com/u/31113245?v=4","gravatar_id":"","url":"https://api.github.com/users/PickleNik","html_url":"https://github.com/PickleNik","followers_url":"https://api.github.com/users/PickleNik/followers","following_url":"https://api.github.com/users/PickleNik/following{/other_user}","gists_url":"https://api.github.com/users/PickleNik/gists{/gist_id}","starred_url":"https://api.github.com/users/PickleNik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PickleNik/subscriptions","organizations_url":"https://api.github.com/users/PickleNik/orgs","repos_url":"https://api.github.com/users/PickleNik/repos","events_url":"https://api.github.com/users/PickleNik/events{/privacy}","received_events_url":"https://api.github.com/users/PickleNik/received_events","type":"User","site_admin":false,"contributions":56},{"login":"Hacksore","id":996134,"node_id":"MDQ6VXNlcjk5NjEzNA==","avatar_url":"https://avatars.githubusercontent.com/u/996134?v=4","gravatar_id":"","url":"https://api.github.com/users/Hacksore","html_url":"https://github.com/Hacksore","followers_url":"https://api.github.com/users/Hacksore/followers","following_url":"https://api.github.com/users/Hacksore/following{/other_user}","gists_url":"https://api.github.com/users/Hacksore/gists{/gist_id}","starred_url":"https://api.github.com/users/Hacksore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hacksore/subscriptions","organizations_url":"https://api.github.com/users/Hacksore/orgs","repos_url":"https://api.github.com/users/Hacksore/repos","events_url":"https://api.github.com/users/Hacksore/events{/privacy}","received_events_url":"https://api.github.com/users/Hacksore/received_events","type":"User","site_admin":false,"contributions":50},{"login":"jhechtf","id":8152471,"node_id":"MDQ6VXNlcjgxNTI0NzE=","avatar_url":"https://avatars.githubusercontent.com/u/8152471?v=4","gravatar_id":"","url":"https://api.github.com/users/jhechtf","html_url":"https://github.com/jhechtf","followers_url":"https://api.github.com/users/jhechtf/followers","following_url":"https://api.github.com/users/jhechtf/following{/other_user}","gists_url":"https://api.github.com/users/jhechtf/gists{/gist_id}","starred_url":"https://api.github.com/users/jhechtf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhechtf/subscriptions","organizations_url":"https://api.github.com/users/jhechtf/orgs","repos_url":"https://api.github.com/users/jhechtf/repos","events_url":"https://api.github.com/users/jhechtf/events{/privacy}","received_events_url":"https://api.github.com/users/jhechtf/received_events","type":"User","site_admin":false,"contributions":16},{"login":"ggrandi","id":49359646,"node_id":"MDQ6VXNlcjQ5MzU5NjQ2","avatar_url":"https://avatars.githubusercontent.com/u/49359646?v=4","gravatar_id":"","url":"https://api.github.com/users/ggrandi","html_url":"https://github.com/ggrandi","followers_url":"https://api.github.com/users/ggrandi/followers","following_url":"https://api.github.com/users/ggrandi/following{/other_user}","gists_url":"https://api.github.com/users/ggrandi/gists{/gist_id}","starred_url":"https://api.github.com/users/ggrandi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggrandi/subscriptions","organizations_url":"https://api.github.com/users/ggrandi/orgs","repos_url":"https://api.github.com/users/ggrandi/repos","events_url":"https://api.github.com/users/ggrandi/events{/privacy}","received_events_url":"https://api.github.com/users/ggrandi/received_events","type":"User","site_admin":false,"contributions":15},{"login":"creativenull","id":3767728,"node_id":"MDQ6VXNlcjM3Njc3Mjg=","avatar_url":"https://avatars.githubusercontent.com/u/3767728?v=4","gravatar_id":"","url":"https://api.github.com/users/creativenull","html_url":"https://github.com/creativenull","followers_url":"https://api.github.com/users/creativenull/followers","following_url":"https://api.github.com/users/creativenull/following{/other_user}","gists_url":"https://api.github.com/users/creativenull/gists{/gist_id}","starred_url":"https://api.github.com/users/creativenull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creativenull/subscriptions","organizations_url":"https://api.github.com/users/creativenull/orgs","repos_url":"https://api.github.com/users/creativenull/repos","events_url":"https://api.github.com/users/creativenull/events{/privacy}","received_events_url":"https://api.github.com/users/creativenull/received_events","type":"User","site_admin":false,"contributions":14},{"login":"ernestoresende","id":55156145,"node_id":"MDQ6VXNlcjU1MTU2MTQ1","avatar_url":"https://avatars.githubusercontent.com/u/55156145?v=4","gravatar_id":"","url":"https://api.github.com/users/ernestoresende","html_url":"https://github.com/ernestoresende","followers_url":"https://api.github.com/users/ernestoresende/followers","following_url":"https://api.github.com/users/ernestoresende/following{/other_user}","gists_url":"https://api.github.com/users/ernestoresende/gists{/gist_id}","starred_url":"https://api.github.com/users/ernestoresende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernestoresende/subscriptions","organizations_url":"https://api.github.com/users/ernestoresende/orgs","repos_url":"https://api.github.com/users/ernestoresende/repos","events_url":"https://api.github.com/users/ernestoresende/events{/privacy}","received_events_url":"https://api.github.com/users/ernestoresende/received_events","type":"User","site_admin":false,"contributions":9},{"login":"is-it-ayush","id":36449128,"node_id":"MDQ6VXNlcjM2NDQ5MTI4","avatar_url":"https://avatars.githubusercontent.com/u/36449128?v=4","gravatar_id":"","url":"https://api.github.com/users/is-it-ayush","html_url":"https://github.com/is-it-ayush","followers_url":"https://api.github.com/users/is-it-ayush/followers","following_url":"https://api.github.com/users/is-it-ayush/following{/other_user}","gists_url":"https://api.github.com/users/is-it-ayush/gists{/gist_id}","starred_url":"https://api.github.com/users/is-it-ayush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/is-it-ayush/subscriptions","organizations_url":"https://api.github.com/users/is-it-ayush/orgs","repos_url":"https://api.github.com/users/is-it-ayush/repos","events_url":"https://api.github.com/users/is-it-ayush/events{/privacy}","received_events_url":"https://api.github.com/users/is-it-ayush/received_events","type":"User","site_admin":false,"contributions":8},{"login":"basokant","id":70033855,"node_id":"MDQ6VXNlcjcwMDMzODU1","avatar_url":"https://avatars.githubusercontent.com/u/70033855?v=4","gravatar_id":"","url":"https://api.github.com/users/basokant","html_url":"https://github.com/basokant","followers_url":"https://api.github.com/users/basokant/followers","following_url":"https://api.github.com/users/basokant/following{/other_user}","gists_url":"https://api.github.com/users/basokant/gists{/gist_id}","starred_url":"https://api.github.com/users/basokant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basokant/subscriptions","organizations_url":"https://api.github.com/users/basokant/orgs","repos_url":"https://api.github.com/users/basokant/repos","events_url":"https://api.github.com/users/basokant/events{/privacy}","received_events_url":"https://api.github.com/users/basokant/received_events","type":"User","site_admin":false,"contributions":5},{"login":"emalineg","id":93755103,"node_id":"U_kgDOBZaW3w","avatar_url":"https://avatars.githubusercontent.com/u/93755103?v=4","gravatar_id":"","url":"https://api.github.com/users/emalineg","html_url":"https://github.com/emalineg","followers_url":"https://api.github.com/users/emalineg/followers","following_url":"https://api.github.com/users/emalineg/following{/other_user}","gists_url":"https://api.github.com/users/emalineg/gists{/gist_id}","starred_url":"https://api.github.com/users/emalineg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emalineg/subscriptions","organizations_url":"https://api.github.com/users/emalineg/orgs","repos_url":"https://api.github.com/users/emalineg/repos","events_url":"https://api.github.com/users/emalineg/events{/privacy}","received_events_url":"https://api.github.com/users/emalineg/received_events","type":"User","site_admin":false,"contributions":4},{"login":"FullStackCorm","id":101738478,"node_id":"U_kgDOBhBn7g","avatar_url":"https://avatars.githubusercontent.com/u/101738478?v=4","gravatar_id":"","url":"https://api.github.com/users/FullStackCorm","html_url":"https://github.com/FullStackCorm","followers_url":"https://api.github.com/users/FullStackCorm/followers","following_url":"https://api.github.com/users/FullStackCorm/following{/other_user}","gists_url":"https://api.github.com/users/FullStackCorm/gists{/gist_id}","starred_url":"https://api.github.com/users/FullStackCorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FullStackCorm/subscriptions","organizations_url":"https://api.github.com/users/FullStackCorm/orgs","repos_url":"https://api.github.com/users/FullStackCorm/repos","events_url":"https://api.github.com/users/FullStackCorm/events{/privacy}","received_events_url":"https://api.github.com/users/FullStackCorm/received_events","type":"User","site_admin":false,"contributions":4},{"login":"F-PTS","id":80021800,"node_id":"MDQ6VXNlcjgwMDIxODAw","avatar_url":"https://avatars.githubusercontent.com/u/80021800?v=4","gravatar_id":"","url":"https://api.github.com/users/F-PTS","html_url":"https://github.com/F-PTS","followers_url":"https://api.github.com/users/F-PTS/followers","following_url":"https://api.github.com/users/F-PTS/following{/other_user}","gists_url":"https://api.github.com/users/F-PTS/gists{/gist_id}","starred_url":"https://api.github.com/users/F-PTS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/F-PTS/subscriptions","organizations_url":"https://api.github.com/users/F-PTS/orgs","repos_url":"https://api.github.com/users/F-PTS/repos","events_url":"https://api.github.com/users/F-PTS/events{/privacy}","received_events_url":"https://api.github.com/users/F-PTS/received_events","type":"User","site_admin":false,"contributions":3},{"login":"metal-face","id":101987676,"node_id":"U_kgDOBhQ1XA","avatar_url":"https://avatars.githubusercontent.com/u/101987676?v=4","gravatar_id":"","url":"https://api.github.com/users/metal-face","html_url":"https://github.com/metal-face","followers_url":"https://api.github.com/users/metal-face/followers","following_url":"https://api.github.com/users/metal-face/following{/other_user}","gists_url":"https://api.github.com/users/metal-face/gists{/gist_id}","starred_url":"https://api.github.com/users/metal-face/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metal-face/subscriptions","organizations_url":"https://api.github.com/users/metal-face/orgs","repos_url":"https://api.github.com/users/metal-face/repos","events_url":"https://api.github.com/users/metal-face/events{/privacy}","received_events_url":"https://api.github.com/users/metal-face/received_events","type":"User","site_admin":false,"contributions":3},{"login":"thecornisians","id":84820874,"node_id":"MDQ6VXNlcjg0ODIwODc0","avatar_url":"https://avatars.githubusercontent.com/u/84820874?v=4","gravatar_id":"","url":"https://api.github.com/users/thecornisians","html_url":"https://github.com/thecornisians","followers_url":"https://api.github.com/users/thecornisians/followers","following_url":"https://api.github.com/users/thecornisians/following{/other_user}","gists_url":"https://api.github.com/users/thecornisians/gists{/gist_id}","starred_url":"https://api.github.com/users/thecornisians/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecornisians/subscriptions","organizations_url":"https://api.github.com/users/thecornisians/orgs","repos_url":"https://api.github.com/users/thecornisians/repos","events_url":"https://api.github.com/users/thecornisians/events{/privacy}","received_events_url":"https://api.github.com/users/thecornisians/received_events","type":"User","site_admin":false,"contributions":1},{"login":"QuiiBz","id":43268759,"node_id":"MDQ6VXNlcjQzMjY4NzU5","avatar_url":"https://avatars.githubusercontent.com/u/43268759?v=4","gravatar_id":"","url":"https://api.github.com/users/QuiiBz","html_url":"https://github.com/QuiiBz","followers_url":"https://api.github.com/users/QuiiBz/followers","following_url":"https://api.github.com/users/QuiiBz/following{/other_user}","gists_url":"https://api.github.com/users/QuiiBz/gists{/gist_id}","starred_url":"https://api.github.com/users/QuiiBz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuiiBz/subscriptions","organizations_url":"https://api.github.com/users/QuiiBz/orgs","repos_url":"https://api.github.com/users/QuiiBz/repos","events_url":"https://api.github.com/users/QuiiBz/events{/privacy}","received_events_url":"https://api.github.com/users/QuiiBz/received_events","type":"User","site_admin":false,"contributions":1}]\ No newline at end of filediff --git a/public/contributors.ts b/public/contributors.tsnew file mode 100644index 00000000..403c2a51--- /dev/null+++ b/public/contributors.ts@@ -0,0 +1,318 @@+// eslint-disable+export const contributors = [+ {+ login: 'bautistaaa',+ id: 3660667,+ node_id: 'MDQ6VXNlcjM2NjA2Njc=',+ avatar_url: 'https://avatars.githubusercontent.com/u/3660667?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/bautistaaa',+ html_url: 'https://github.com/bautistaaa',+ followers_url: 'https://api.github.com/users/bautistaaa/followers',+ following_url: 'https://api.github.com/users/bautistaaa/following{/other_user}',+ gists_url: 'https://api.github.com/users/bautistaaa/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/bautistaaa/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/bautistaaa/subscriptions',+ organizations_url: 'https://api.github.com/users/bautistaaa/orgs',+ repos_url: 'https://api.github.com/users/bautistaaa/repos',+ events_url: 'https://api.github.com/users/bautistaaa/events{/privacy}',+ received_events_url: 'https://api.github.com/users/bautistaaa/received_events',+ type: 'User',+ site_admin: false,+ contributions: 58,+ },+ {+ login: 'PickleNik',+ id: 31113245,+ node_id: 'MDQ6VXNlcjMxMTEzMjQ1',+ avatar_url: 'https://avatars.githubusercontent.com/u/31113245?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/PickleNik',+ html_url: 'https://github.com/PickleNik',+ followers_url: 'https://api.github.com/users/PickleNik/followers',+ following_url: 'https://api.github.com/users/PickleNik/following{/other_user}',+ gists_url: 'https://api.github.com/users/PickleNik/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/PickleNik/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/PickleNik/subscriptions',+ organizations_url: 'https://api.github.com/users/PickleNik/orgs',+ repos_url: 'https://api.github.com/users/PickleNik/repos',+ events_url: 'https://api.github.com/users/PickleNik/events{/privacy}',+ received_events_url: 'https://api.github.com/users/PickleNik/received_events',+ type: 'User',+ site_admin: false,+ contributions: 56,+ },+ {+ login: 'Hacksore',+ id: 996134,+ node_id: 'MDQ6VXNlcjk5NjEzNA==',+ avatar_url: 'https://avatars.githubusercontent.com/u/996134?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/Hacksore',+ html_url: 'https://github.com/Hacksore',+ followers_url: 'https://api.github.com/users/Hacksore/followers',+ following_url: 'https://api.github.com/users/Hacksore/following{/other_user}',+ gists_url: 'https://api.github.com/users/Hacksore/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/Hacksore/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/Hacksore/subscriptions',+ organizations_url: 'https://api.github.com/users/Hacksore/orgs',+ repos_url: 'https://api.github.com/users/Hacksore/repos',+ events_url: 'https://api.github.com/users/Hacksore/events{/privacy}',+ received_events_url: 'https://api.github.com/users/Hacksore/received_events',+ type: 'User',+ site_admin: false,+ contributions: 50,+ },+ {+ login: 'jhechtf',+ id: 8152471,+ node_id: 'MDQ6VXNlcjgxNTI0NzE=',+ avatar_url: 'https://avatars.githubusercontent.com/u/8152471?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/jhechtf',+ html_url: 'https://github.com/jhechtf',+ followers_url: 'https://api.github.com/users/jhechtf/followers',+ following_url: 'https://api.github.com/users/jhechtf/following{/other_user}',+ gists_url: 'https://api.github.com/users/jhechtf/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/jhechtf/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/jhechtf/subscriptions',+ organizations_url: 'https://api.github.com/users/jhechtf/orgs',+ repos_url: 'https://api.github.com/users/jhechtf/repos',+ events_url: 'https://api.github.com/users/jhechtf/events{/privacy}',+ received_events_url: 'https://api.github.com/users/jhechtf/received_events',+ type: 'User',+ site_admin: false,+ contributions: 16,+ },+ {+ login: 'ggrandi',+ id: 49359646,+ node_id: 'MDQ6VXNlcjQ5MzU5NjQ2',+ avatar_url: 'https://avatars.githubusercontent.com/u/49359646?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/ggrandi',+ html_url: 'https://github.com/ggrandi',+ followers_url: 'https://api.github.com/users/ggrandi/followers',+ following_url: 'https://api.github.com/users/ggrandi/following{/other_user}',+ gists_url: 'https://api.github.com/users/ggrandi/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/ggrandi/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/ggrandi/subscriptions',+ organizations_url: 'https://api.github.com/users/ggrandi/orgs',+ repos_url: 'https://api.github.com/users/ggrandi/repos',+ events_url: 'https://api.github.com/users/ggrandi/events{/privacy}',+ received_events_url: 'https://api.github.com/users/ggrandi/received_events',+ type: 'User',+ site_admin: false,+ contributions: 15,+ },+ {+ login: 'creativenull',+ id: 3767728,+ node_id: 'MDQ6VXNlcjM3Njc3Mjg=',+ avatar_url: 'https://avatars.githubusercontent.com/u/3767728?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/creativenull',+ html_url: 'https://github.com/creativenull',+ followers_url: 'https://api.github.com/users/creativenull/followers',+ following_url: 'https://api.github.com/users/creativenull/following{/other_user}',+ gists_url: 'https://api.github.com/users/creativenull/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/creativenull/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/creativenull/subscriptions',+ organizations_url: 'https://api.github.com/users/creativenull/orgs',+ repos_url: 'https://api.github.com/users/creativenull/repos',+ events_url: 'https://api.github.com/users/creativenull/events{/privacy}',+ received_events_url: 'https://api.github.com/users/creativenull/received_events',+ type: 'User',+ site_admin: false,+ contributions: 14,+ },+ {+ login: 'ernestoresende',+ id: 55156145,+ node_id: 'MDQ6VXNlcjU1MTU2MTQ1',+ avatar_url: 'https://avatars.githubusercontent.com/u/55156145?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/ernestoresende',+ html_url: 'https://github.com/ernestoresende',+ followers_url: 'https://api.github.com/users/ernestoresende/followers',+ following_url: 'https://api.github.com/users/ernestoresende/following{/other_user}',+ gists_url: 'https://api.github.com/users/ernestoresende/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/ernestoresende/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/ernestoresende/subscriptions',+ organizations_url: 'https://api.github.com/users/ernestoresende/orgs',+ repos_url: 'https://api.github.com/users/ernestoresende/repos',+ events_url: 'https://api.github.com/users/ernestoresende/events{/privacy}',+ received_events_url: 'https://api.github.com/users/ernestoresende/received_events',+ type: 'User',+ site_admin: false,+ contributions: 9,+ },+ {+ login: 'is-it-ayush',+ id: 36449128,+ node_id: 'MDQ6VXNlcjM2NDQ5MTI4',+ avatar_url: 'https://avatars.githubusercontent.com/u/36449128?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/is-it-ayush',+ html_url: 'https://github.com/is-it-ayush',+ followers_url: 'https://api.github.com/users/is-it-ayush/followers',+ following_url: 'https://api.github.com/users/is-it-ayush/following{/other_user}',+ gists_url: 'https://api.github.com/users/is-it-ayush/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/is-it-ayush/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/is-it-ayush/subscriptions',+ organizations_url: 'https://api.github.com/users/is-it-ayush/orgs',+ repos_url: 'https://api.github.com/users/is-it-ayush/repos',+ events_url: 'https://api.github.com/users/is-it-ayush/events{/privacy}',+ received_events_url: 'https://api.github.com/users/is-it-ayush/received_events',+ type: 'User',+ site_admin: false,+ contributions: 8,+ },+ {+ login: 'basokant',+ id: 70033855,+ node_id: 'MDQ6VXNlcjcwMDMzODU1',+ avatar_url: 'https://avatars.githubusercontent.com/u/70033855?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/basokant',+ html_url: 'https://github.com/basokant',+ followers_url: 'https://api.github.com/users/basokant/followers',+ following_url: 'https://api.github.com/users/basokant/following{/other_user}',+ gists_url: 'https://api.github.com/users/basokant/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/basokant/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/basokant/subscriptions',+ organizations_url: 'https://api.github.com/users/basokant/orgs',+ repos_url: 'https://api.github.com/users/basokant/repos',+ events_url: 'https://api.github.com/users/basokant/events{/privacy}',+ received_events_url: 'https://api.github.com/users/basokant/received_events',+ type: 'User',+ site_admin: false,+ contributions: 5,+ },+ {+ login: 'emalineg',+ id: 93755103,+ node_id: 'U_kgDOBZaW3w',+ avatar_url: 'https://avatars.githubusercontent.com/u/93755103?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/emalineg',+ html_url: 'https://github.com/emalineg',+ followers_url: 'https://api.github.com/users/emalineg/followers',+ following_url: 'https://api.github.com/users/emalineg/following{/other_user}',+ gists_url: 'https://api.github.com/users/emalineg/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/emalineg/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/emalineg/subscriptions',+ organizations_url: 'https://api.github.com/users/emalineg/orgs',+ repos_url: 'https://api.github.com/users/emalineg/repos',+ events_url: 'https://api.github.com/users/emalineg/events{/privacy}',+ received_events_url: 'https://api.github.com/users/emalineg/received_events',+ type: 'User',+ site_admin: false,+ contributions: 4,+ },+ {+ login: 'FullStackCorm',+ id: 101738478,+ node_id: 'U_kgDOBhBn7g',+ avatar_url: 'https://avatars.githubusercontent.com/u/101738478?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/FullStackCorm',+ html_url: 'https://github.com/FullStackCorm',+ followers_url: 'https://api.github.com/users/FullStackCorm/followers',+ following_url: 'https://api.github.com/users/FullStackCorm/following{/other_user}',+ gists_url: 'https://api.github.com/users/FullStackCorm/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/FullStackCorm/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/FullStackCorm/subscriptions',+ organizations_url: 'https://api.github.com/users/FullStackCorm/orgs',+ repos_url: 'https://api.github.com/users/FullStackCorm/repos',+ events_url: 'https://api.github.com/users/FullStackCorm/events{/privacy}',+ received_events_url: 'https://api.github.com/users/FullStackCorm/received_events',+ type: 'User',+ site_admin: false,+ contributions: 4,+ },+ {+ login: 'F-PTS',+ id: 80021800,+ node_id: 'MDQ6VXNlcjgwMDIxODAw',+ avatar_url: 'https://avatars.githubusercontent.com/u/80021800?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/F-PTS',+ html_url: 'https://github.com/F-PTS',+ followers_url: 'https://api.github.com/users/F-PTS/followers',+ following_url: 'https://api.github.com/users/F-PTS/following{/other_user}',+ gists_url: 'https://api.github.com/users/F-PTS/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/F-PTS/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/F-PTS/subscriptions',+ organizations_url: 'https://api.github.com/users/F-PTS/orgs',+ repos_url: 'https://api.github.com/users/F-PTS/repos',+ events_url: 'https://api.github.com/users/F-PTS/events{/privacy}',+ received_events_url: 'https://api.github.com/users/F-PTS/received_events',+ type: 'User',+ site_admin: false,+ contributions: 3,+ },+ {+ login: 'metal-face',+ id: 101987676,+ node_id: 'U_kgDOBhQ1XA',+ avatar_url: 'https://avatars.githubusercontent.com/u/101987676?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/metal-face',+ html_url: 'https://github.com/metal-face',+ followers_url: 'https://api.github.com/users/metal-face/followers',+ following_url: 'https://api.github.com/users/metal-face/following{/other_user}',+ gists_url: 'https://api.github.com/users/metal-face/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/metal-face/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/metal-face/subscriptions',+ organizations_url: 'https://api.github.com/users/metal-face/orgs',+ repos_url: 'https://api.github.com/users/metal-face/repos',+ events_url: 'https://api.github.com/users/metal-face/events{/privacy}',+ received_events_url: 'https://api.github.com/users/metal-face/received_events',+ type: 'User',+ site_admin: false,+ contributions: 3,+ },+ {+ login: 'thecornisians',+ id: 84820874,+ node_id: 'MDQ6VXNlcjg0ODIwODc0',+ avatar_url: 'https://avatars.githubusercontent.com/u/84820874?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/thecornisians',+ html_url: 'https://github.com/thecornisians',+ followers_url: 'https://api.github.com/users/thecornisians/followers',+ following_url: 'https://api.github.com/users/thecornisians/following{/other_user}',+ gists_url: 'https://api.github.com/users/thecornisians/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/thecornisians/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/thecornisians/subscriptions',+ organizations_url: 'https://api.github.com/users/thecornisians/orgs',+ repos_url: 'https://api.github.com/users/thecornisians/repos',+ events_url: 'https://api.github.com/users/thecornisians/events{/privacy}',+ received_events_url: 'https://api.github.com/users/thecornisians/received_events',+ type: 'User',+ site_admin: false,+ contributions: 1,+ },+ {+ login: 'QuiiBz',+ id: 43268759,+ node_id: 'MDQ6VXNlcjQzMjY4NzU5',+ avatar_url: 'https://avatars.githubusercontent.com/u/43268759?v=4',+ gravatar_id: '',+ url: 'https://api.github.com/users/QuiiBz',+ html_url: 'https://github.com/QuiiBz',+ followers_url: 'https://api.github.com/users/QuiiBz/followers',+ following_url: 'https://api.github.com/users/QuiiBz/following{/other_user}',+ gists_url: 'https://api.github.com/users/QuiiBz/gists{/gist_id}',+ starred_url: 'https://api.github.com/users/QuiiBz/starred{/owner}{/repo}',+ subscriptions_url: 'https://api.github.com/users/QuiiBz/subscriptions',+ organizations_url: 'https://api.github.com/users/QuiiBz/orgs',+ repos_url: 'https://api.github.com/users/QuiiBz/repos',+ events_url: 'https://api.github.com/users/QuiiBz/events{/privacy}',+ received_events_url: 'https://api.github.com/users/QuiiBz/received_events',+ type: 'User',+ site_admin: false,+ contributions: 1,+ },+];diff --git a/scripts/contributors.ts b/scripts/contributors.tsnew file mode 100644index 00000000..8a18aa05--- /dev/null+++ b/scripts/contributors.ts@@ -0,0 +1,38 @@+import 'dotenv/config';+import fs from 'node:fs/promises';+import path from 'node:path';+import { Octokit } from 'octokit';+import { fileURLToPath } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = path.dirname(__filename);++async function getOcto() {+ if (!process.env.GITHUB_TOKEN) {+ console.error('No GitHub token provided. Please set GITHUB_TOKEN env var.');+ return [];+ }+ const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });+ const response = await octokit.request('GET /repos/{owner}/{repo}/contributors', {+ owner: 'bautistaaa',+ repo: 'typehero',+ });+ // put all avatar urls in a list+ return response.data.map((contributor) => contributor);+}++async function start() {+ const contributors = await getOcto();++ const text = [+ `// prettier-ignore`,+ `// eslint-disable`,+ `export const contributors = ${JSON.stringify(contributors, null, 4)}`,+ ``,+ ].join('\n');++ const dir = path.join(__dirname, '../public');+ await fs.writeFile(`${dir}/contributors.ts`, text);+}++start();diff --git a/src/components/landing/community.tsx b/src/components/landing/community.tsxindex c28eea99..d2bdceda 100644--- a/src/components/landing/community.tsx+++ b/src/components/landing/community.tsx@@ -1,34 +1,9 @@-import { Octokit } from 'octokit';+// eslint-disable-next-line no-restricted-imports+import { contributors } from '../../../public/contributors';const Community = async function () {- async function getOcto() {- if (!process.env.PROD) {- console.log('You are not in production mode. Mocking data.');- return Array(13).fill({- login: 'PickleNik',- avatar_url: 'https://avatars.githubusercontent.com/u/31113245?v=4',- html_url: 'https://github.com/PickleNik',- });- }- if (!process.env.GITHUB_TOKEN) {- console.error('No GitHub token provided. Please set GITHUB_TOKEN env var.');- return [];- }- const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });- const response = await octokit.request('GET /repos/{owner}/{repo}/contributors', {- owner: 'bautistaa',- repo: 'typehero',- headers: {- 'X-GitHub-Api-Version': '2022-11-28',- },- });- // put all avatar urls in a list- return response.data.map((contributor) => contributor);- }- const avatars = await getOcto();-return (- <section className="container md:mb-[172px] mt-[172px] flex flex-col justify-center lg:flex-row lg:items-center">+ <section className="container mt-[172px] flex flex-col justify-center md:mb-[172px] lg:flex-row lg:items-center"><div className="flex flex-1 flex-col items-center pb-36 lg:items-start lg:pb-0"><h2 className="mb-2 text-center text-4xl font-bold lg:text-left">Built by the community</h2><span className="text-neutral-400 dark:text-neutral-600">@@ -69,12 +44,13 @@ const Community = async function () {</div><div className="relative flex-1 pb-36 pl-4 lg:pb-0"><div className="mx-auto flex w-[18.25rem] flex-wrap gap-x-3 gap-y-1 sm:w-[23rem] [&>*:nth-child(7n_+_1)]:ml-[2.375rem] sm:[&>*:nth-child(7n_+_1)]:ml-0 sm:[&>*:nth-child(9n_+_1)]:ml-[2.375rem]">- {avatars.map((avatar) => (- <div- key={avatar.id}- style={{ backgroundImage: `url('${avatar.avatar_url}')` }}- className="honeycombchild h-16 w-16 rounded-full bg-neutral-700 bg-cover"- ></div>+ {contributors.map((contributor) => (+ <a key={contributor.id} target="_blank" href={contributor.html_url}>+ <div+ style={{ backgroundImage: `url('${contributor.avatar_url}')` }}+ className="honeycombchild h-16 w-16 rounded-full bg-neutral-700 bg-cover"+ ></div>+ </a>))}</div></div>