From 6bb9eafe1572acce5c182da3826323790fa37b50 Mon Sep 17 00:00:00 2001 From: Paul Copplestone Date: Mon, 27 Jan 2020 21:43:24 +0800 Subject: [PATCH] Adding a simple script for getting our traction --- Makefile | 11 +++ web/src/components/GithubCard.js | 7 +- web/src/data/github.js | 7 ++ web/src/data/repos.json | 23 ------ web/src/data/repos/monorepo.json | 117 +++++++++++++++++++++++++++++ web/src/data/repos/realtime.json | 123 +++++++++++++++++++++++++++++++ web/src/data/repos/schemas.json | 123 +++++++++++++++++++++++++++++++ web/src/pages/index.js | 13 +++- web/src/pages/oss.js | 20 +++-- 9 files changed, 409 insertions(+), 35 deletions(-) create mode 100644 web/src/data/github.js delete mode 100644 web/src/data/repos.json create mode 100644 web/src/data/repos/monorepo.json create mode 100644 web/src/data/repos/realtime.json create mode 100644 web/src/data/repos/schemas.json diff --git a/Makefile b/Makefile index 979323613c..d84e1c2b61 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ help: @echo "\SCRIPTS\n" @echo "make github.contributors # pull a list of all contributors" @echo "make github.issues # pull a list of all issue creators" + @echo "make github.repos # pull a list of our repos" @echo "make github.traction # get a history of stargazers for our individual repos" github.users: @@ -20,5 +21,15 @@ github.issues: | sort_by(.username)' \ > $(REPO_DIR)/web/src/data/contributors/issues.json +.PHONY: github.repos +github.repos: \ + github.repos.monorepo \ + github.repos.realtime \ + github.repos.schemas + +github.repos.%: + curl -sS https://api.github.com/repos/supabase/$* \ + > $(REPO_DIR)/web/src/data/repos/$*.json + github.traction: \ cd web && npm run traction \ No newline at end of file diff --git a/web/src/components/GithubCard.js b/web/src/components/GithubCard.js index d853bc608b..442981c0c1 100644 --- a/web/src/components/GithubCard.js +++ b/web/src/components/GithubCard.js @@ -2,19 +2,17 @@ import React from 'react' export default function GithubCard({ title, description, href, stars, handle }) { return ( -
-

{title}

+

{title}

{description}

-
{handle}
+
@{handle}
{stars} ★
-
) } @@ -24,6 +22,7 @@ const styles = { }, h3: { margin: 0, + textTransform: 'capitalize' }, cardBase: { display: 'flex', diff --git a/web/src/data/github.js b/web/src/data/github.js new file mode 100644 index 0000000000..0a720ad3f5 --- /dev/null +++ b/web/src/data/github.js @@ -0,0 +1,7 @@ +import monorepo from './repos/monorepo.json' +import realtime from './repos/realtime.json' +import schemas from './repos/schemas.json' + +const repos = [monorepo, realtime, schemas] + +export { repos } diff --git a/web/src/data/repos.json b/web/src/data/repos.json deleted file mode 100644 index b75b652cb1..0000000000 --- a/web/src/data/repos.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "title": "Monorepo", - "description": "Website, docs, and client libraries. Follow to stay updated about our public Beta.", - "href": "https://github.com/supabase/monorepo", - "handle": "supabase/monorepo", - "stars": 49 - }, - { - "title": "Realtime", - "description": "Listen to your to PostgreSQL database in realtime via websockets. Built with Elixir.", - "href": "https://github.com/supabase/realtime", - "handle": "supabase/realtime", - "stars": 285 - }, - { - "title": "Schemas", - "description": "An opensource repository of PostgreSQL schemas to get your projects started.", - "href": "https://github.com/supabase/schemas", - "handle": "supabase/schemas", - "stars": 3 - } -] diff --git a/web/src/data/repos/monorepo.json b/web/src/data/repos/monorepo.json new file mode 100644 index 0000000000..a42543cf98 --- /dev/null +++ b/web/src/data/repos/monorepo.json @@ -0,0 +1,117 @@ +{ + "id": 214587193, + "node_id": "MDEwOlJlcG9zaXRvcnkyMTQ1ODcxOTM=", + "name": "monorepo", + "full_name": "supabase/monorepo", + "private": false, + "owner": { + "login": "supabase", + "id": 54469796, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0NDY5Nzk2", + "avatar_url": "https://avatars3.githubusercontent.com/u/54469796?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/supabase", + "html_url": "https://github.com/supabase", + "followers_url": "https://api.github.com/users/supabase/followers", + "following_url": "https://api.github.com/users/supabase/following{/other_user}", + "gists_url": "https://api.github.com/users/supabase/gists{/gist_id}", + "starred_url": "https://api.github.com/users/supabase/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/supabase/subscriptions", + "organizations_url": "https://api.github.com/users/supabase/orgs", + "repos_url": "https://api.github.com/users/supabase/repos", + "events_url": "https://api.github.com/users/supabase/events{/privacy}", + "received_events_url": "https://api.github.com/users/supabase/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/supabase/monorepo", + "description": "Website, docs, and client libraries. Follow to stay updated about our public Beta.", + "fork": false, + "url": "https://api.github.com/repos/supabase/monorepo", + "forks_url": "https://api.github.com/repos/supabase/monorepo/forks", + "keys_url": "https://api.github.com/repos/supabase/monorepo/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/supabase/monorepo/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/supabase/monorepo/teams", + "hooks_url": "https://api.github.com/repos/supabase/monorepo/hooks", + "issue_events_url": "https://api.github.com/repos/supabase/monorepo/issues/events{/number}", + "events_url": "https://api.github.com/repos/supabase/monorepo/events", + "assignees_url": "https://api.github.com/repos/supabase/monorepo/assignees{/user}", + "branches_url": "https://api.github.com/repos/supabase/monorepo/branches{/branch}", + "tags_url": "https://api.github.com/repos/supabase/monorepo/tags", + "blobs_url": "https://api.github.com/repos/supabase/monorepo/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/supabase/monorepo/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/supabase/monorepo/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/supabase/monorepo/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/supabase/monorepo/statuses/{sha}", + "languages_url": "https://api.github.com/repos/supabase/monorepo/languages", + "stargazers_url": "https://api.github.com/repos/supabase/monorepo/stargazers", + "contributors_url": "https://api.github.com/repos/supabase/monorepo/contributors", + "subscribers_url": "https://api.github.com/repos/supabase/monorepo/subscribers", + "subscription_url": "https://api.github.com/repos/supabase/monorepo/subscription", + "commits_url": "https://api.github.com/repos/supabase/monorepo/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/supabase/monorepo/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/supabase/monorepo/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/supabase/monorepo/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/supabase/monorepo/contents/{+path}", + "compare_url": "https://api.github.com/repos/supabase/monorepo/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/supabase/monorepo/merges", + "archive_url": "https://api.github.com/repos/supabase/monorepo/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/supabase/monorepo/downloads", + "issues_url": "https://api.github.com/repos/supabase/monorepo/issues{/number}", + "pulls_url": "https://api.github.com/repos/supabase/monorepo/pulls{/number}", + "milestones_url": "https://api.github.com/repos/supabase/monorepo/milestones{/number}", + "notifications_url": "https://api.github.com/repos/supabase/monorepo/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/supabase/monorepo/labels{/name}", + "releases_url": "https://api.github.com/repos/supabase/monorepo/releases{/id}", + "deployments_url": "https://api.github.com/repos/supabase/monorepo/deployments", + "created_at": "2019-10-12T05:56:49Z", + "updated_at": "2020-01-27T13:29:32Z", + "pushed_at": "2020-01-27T13:21:44Z", + "git_url": "git://github.com/supabase/monorepo.git", + "ssh_url": "git@github.com:supabase/monorepo.git", + "clone_url": "https://github.com/supabase/monorepo.git", + "svn_url": "https://github.com/supabase/monorepo", + "homepage": "https://supabase.io", + "size": 3539, + "stargazers_count": 61, + "watchers_count": 61, + "language": "JavaScript", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 6, + "license": null, + "forks": 1, + "open_issues": 6, + "watchers": 61, + "default_branch": "master", + "temp_clone_token": null, + "organization": { + "login": "supabase", + "id": 54469796, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0NDY5Nzk2", + "avatar_url": "https://avatars3.githubusercontent.com/u/54469796?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/supabase", + "html_url": "https://github.com/supabase", + "followers_url": "https://api.github.com/users/supabase/followers", + "following_url": "https://api.github.com/users/supabase/following{/other_user}", + "gists_url": "https://api.github.com/users/supabase/gists{/gist_id}", + "starred_url": "https://api.github.com/users/supabase/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/supabase/subscriptions", + "organizations_url": "https://api.github.com/users/supabase/orgs", + "repos_url": "https://api.github.com/users/supabase/repos", + "events_url": "https://api.github.com/users/supabase/events{/privacy}", + "received_events_url": "https://api.github.com/users/supabase/received_events", + "type": "Organization", + "site_admin": false + }, + "network_count": 1, + "subscribers_count": 9 +} diff --git a/web/src/data/repos/realtime.json b/web/src/data/repos/realtime.json new file mode 100644 index 0000000000..e3c2bd1ec2 --- /dev/null +++ b/web/src/data/repos/realtime.json @@ -0,0 +1,123 @@ +{ + "id": 210347143, + "node_id": "MDEwOlJlcG9zaXRvcnkyMTAzNDcxNDM=", + "name": "realtime", + "full_name": "supabase/realtime", + "private": false, + "owner": { + "login": "supabase", + "id": 54469796, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0NDY5Nzk2", + "avatar_url": "https://avatars3.githubusercontent.com/u/54469796?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/supabase", + "html_url": "https://github.com/supabase", + "followers_url": "https://api.github.com/users/supabase/followers", + "following_url": "https://api.github.com/users/supabase/following{/other_user}", + "gists_url": "https://api.github.com/users/supabase/gists{/gist_id}", + "starred_url": "https://api.github.com/users/supabase/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/supabase/subscriptions", + "organizations_url": "https://api.github.com/users/supabase/orgs", + "repos_url": "https://api.github.com/users/supabase/repos", + "events_url": "https://api.github.com/users/supabase/events{/privacy}", + "received_events_url": "https://api.github.com/users/supabase/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/supabase/realtime", + "description": "Listen to your to PostgreSQL database in realtime via websockets. Built with Elixir.", + "fork": false, + "url": "https://api.github.com/repos/supabase/realtime", + "forks_url": "https://api.github.com/repos/supabase/realtime/forks", + "keys_url": "https://api.github.com/repos/supabase/realtime/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/supabase/realtime/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/supabase/realtime/teams", + "hooks_url": "https://api.github.com/repos/supabase/realtime/hooks", + "issue_events_url": "https://api.github.com/repos/supabase/realtime/issues/events{/number}", + "events_url": "https://api.github.com/repos/supabase/realtime/events", + "assignees_url": "https://api.github.com/repos/supabase/realtime/assignees{/user}", + "branches_url": "https://api.github.com/repos/supabase/realtime/branches{/branch}", + "tags_url": "https://api.github.com/repos/supabase/realtime/tags", + "blobs_url": "https://api.github.com/repos/supabase/realtime/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/supabase/realtime/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/supabase/realtime/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/supabase/realtime/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/supabase/realtime/statuses/{sha}", + "languages_url": "https://api.github.com/repos/supabase/realtime/languages", + "stargazers_url": "https://api.github.com/repos/supabase/realtime/stargazers", + "contributors_url": "https://api.github.com/repos/supabase/realtime/contributors", + "subscribers_url": "https://api.github.com/repos/supabase/realtime/subscribers", + "subscription_url": "https://api.github.com/repos/supabase/realtime/subscription", + "commits_url": "https://api.github.com/repos/supabase/realtime/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/supabase/realtime/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/supabase/realtime/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/supabase/realtime/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/supabase/realtime/contents/{+path}", + "compare_url": "https://api.github.com/repos/supabase/realtime/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/supabase/realtime/merges", + "archive_url": "https://api.github.com/repos/supabase/realtime/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/supabase/realtime/downloads", + "issues_url": "https://api.github.com/repos/supabase/realtime/issues{/number}", + "pulls_url": "https://api.github.com/repos/supabase/realtime/pulls{/number}", + "milestones_url": "https://api.github.com/repos/supabase/realtime/milestones{/number}", + "notifications_url": "https://api.github.com/repos/supabase/realtime/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/supabase/realtime/labels{/name}", + "releases_url": "https://api.github.com/repos/supabase/realtime/releases{/id}", + "deployments_url": "https://api.github.com/repos/supabase/realtime/deployments", + "created_at": "2019-09-23T12:15:45Z", + "updated_at": "2020-01-27T13:29:53Z", + "pushed_at": "2020-01-24T09:33:58Z", + "git_url": "git://github.com/supabase/realtime.git", + "ssh_url": "git@github.com:supabase/realtime.git", + "clone_url": "https://github.com/supabase/realtime.git", + "svn_url": "https://github.com/supabase/realtime", + "homepage": "https://supabase.io", + "size": 2030, + "stargazers_count": 334, + "watchers_count": 334, + "language": "JavaScript", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 5, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "apache-2.0", + "name": "Apache License 2.0", + "spdx_id": "Apache-2.0", + "url": "https://api.github.com/licenses/apache-2.0", + "node_id": "MDc6TGljZW5zZTI=" + }, + "forks": 5, + "open_issues": 2, + "watchers": 334, + "default_branch": "master", + "temp_clone_token": null, + "organization": { + "login": "supabase", + "id": 54469796, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0NDY5Nzk2", + "avatar_url": "https://avatars3.githubusercontent.com/u/54469796?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/supabase", + "html_url": "https://github.com/supabase", + "followers_url": "https://api.github.com/users/supabase/followers", + "following_url": "https://api.github.com/users/supabase/following{/other_user}", + "gists_url": "https://api.github.com/users/supabase/gists{/gist_id}", + "starred_url": "https://api.github.com/users/supabase/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/supabase/subscriptions", + "organizations_url": "https://api.github.com/users/supabase/orgs", + "repos_url": "https://api.github.com/users/supabase/repos", + "events_url": "https://api.github.com/users/supabase/events{/privacy}", + "received_events_url": "https://api.github.com/users/supabase/received_events", + "type": "Organization", + "site_admin": false + }, + "network_count": 5, + "subscribers_count": 12 +} diff --git a/web/src/data/repos/schemas.json b/web/src/data/repos/schemas.json new file mode 100644 index 0000000000..21a2835b29 --- /dev/null +++ b/web/src/data/repos/schemas.json @@ -0,0 +1,123 @@ +{ + "id": 231560476, + "node_id": "MDEwOlJlcG9zaXRvcnkyMzE1NjA0NzY=", + "name": "schemas", + "full_name": "supabase/schemas", + "private": false, + "owner": { + "login": "supabase", + "id": 54469796, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0NDY5Nzk2", + "avatar_url": "https://avatars3.githubusercontent.com/u/54469796?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/supabase", + "html_url": "https://github.com/supabase", + "followers_url": "https://api.github.com/users/supabase/followers", + "following_url": "https://api.github.com/users/supabase/following{/other_user}", + "gists_url": "https://api.github.com/users/supabase/gists{/gist_id}", + "starred_url": "https://api.github.com/users/supabase/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/supabase/subscriptions", + "organizations_url": "https://api.github.com/users/supabase/orgs", + "repos_url": "https://api.github.com/users/supabase/repos", + "events_url": "https://api.github.com/users/supabase/events{/privacy}", + "received_events_url": "https://api.github.com/users/supabase/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/supabase/schemas", + "description": "An opensource repository of PostgreSQL schemas to get your projects started.", + "fork": false, + "url": "https://api.github.com/repos/supabase/schemas", + "forks_url": "https://api.github.com/repos/supabase/schemas/forks", + "keys_url": "https://api.github.com/repos/supabase/schemas/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/supabase/schemas/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/supabase/schemas/teams", + "hooks_url": "https://api.github.com/repos/supabase/schemas/hooks", + "issue_events_url": "https://api.github.com/repos/supabase/schemas/issues/events{/number}", + "events_url": "https://api.github.com/repos/supabase/schemas/events", + "assignees_url": "https://api.github.com/repos/supabase/schemas/assignees{/user}", + "branches_url": "https://api.github.com/repos/supabase/schemas/branches{/branch}", + "tags_url": "https://api.github.com/repos/supabase/schemas/tags", + "blobs_url": "https://api.github.com/repos/supabase/schemas/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/supabase/schemas/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/supabase/schemas/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/supabase/schemas/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/supabase/schemas/statuses/{sha}", + "languages_url": "https://api.github.com/repos/supabase/schemas/languages", + "stargazers_url": "https://api.github.com/repos/supabase/schemas/stargazers", + "contributors_url": "https://api.github.com/repos/supabase/schemas/contributors", + "subscribers_url": "https://api.github.com/repos/supabase/schemas/subscribers", + "subscription_url": "https://api.github.com/repos/supabase/schemas/subscription", + "commits_url": "https://api.github.com/repos/supabase/schemas/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/supabase/schemas/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/supabase/schemas/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/supabase/schemas/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/supabase/schemas/contents/{+path}", + "compare_url": "https://api.github.com/repos/supabase/schemas/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/supabase/schemas/merges", + "archive_url": "https://api.github.com/repos/supabase/schemas/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/supabase/schemas/downloads", + "issues_url": "https://api.github.com/repos/supabase/schemas/issues{/number}", + "pulls_url": "https://api.github.com/repos/supabase/schemas/pulls{/number}", + "milestones_url": "https://api.github.com/repos/supabase/schemas/milestones{/number}", + "notifications_url": "https://api.github.com/repos/supabase/schemas/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/supabase/schemas/labels{/name}", + "releases_url": "https://api.github.com/repos/supabase/schemas/releases{/id}", + "deployments_url": "https://api.github.com/repos/supabase/schemas/deployments", + "created_at": "2020-01-03T09:59:40Z", + "updated_at": "2020-01-27T13:30:16Z", + "pushed_at": "2020-01-17T07:11:29Z", + "git_url": "git://github.com/supabase/schemas.git", + "ssh_url": "git@github.com:supabase/schemas.git", + "clone_url": "https://github.com/supabase/schemas.git", + "svn_url": "https://github.com/supabase/schemas", + "homepage": "https://supabase.io", + "size": 12, + "stargazers_count": 5, + "watchers_count": 5, + "language": "TSQL", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 1, + "open_issues": 0, + "watchers": 5, + "default_branch": "master", + "temp_clone_token": null, + "organization": { + "login": "supabase", + "id": 54469796, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0NDY5Nzk2", + "avatar_url": "https://avatars3.githubusercontent.com/u/54469796?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/supabase", + "html_url": "https://github.com/supabase", + "followers_url": "https://api.github.com/users/supabase/followers", + "following_url": "https://api.github.com/users/supabase/following{/other_user}", + "gists_url": "https://api.github.com/users/supabase/gists{/gist_id}", + "starred_url": "https://api.github.com/users/supabase/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/supabase/subscriptions", + "organizations_url": "https://api.github.com/users/supabase/orgs", + "repos_url": "https://api.github.com/users/supabase/repos", + "events_url": "https://api.github.com/users/supabase/events{/privacy}", + "received_events_url": "https://api.github.com/users/supabase/received_events", + "type": "Organization", + "site_admin": false + }, + "network_count": 1, + "subscribers_count": 2 +} diff --git a/web/src/pages/index.js b/web/src/pages/index.js index c97e57c60d..01e738b12b 100755 --- a/web/src/pages/index.js +++ b/web/src/pages/index.js @@ -7,7 +7,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl' import styles from './styles.module.css' import CustomCodeBlock from '../components/CustomCodeBlock' import GithubCard from '../components/GithubCard' -import repos from '../data/repos.json' +import { repos } from '../data/github' const heroExample = ` import { createClient } from '@supabase/supabase-js' @@ -298,7 +298,16 @@ function Home() {
{repos.map((props, idx) => ( - +
+ +
))}
diff --git a/web/src/pages/oss.js b/web/src/pages/oss.js index e3472e5787..a87fbfe41e 100644 --- a/web/src/pages/oss.js +++ b/web/src/pages/oss.js @@ -3,9 +3,8 @@ import Layout from '@theme/Layout' import { AreaChart, Area, Tooltip, ResponsiveContainer } from 'recharts' import useDocusaurusContext from '@docusaurus/useDocusaurusContext' import stargazers from '../data/stars/stargazers.json' -import repos from '../data/repos.json' import GithubCard from '../components/GithubCard' -import classnames from 'classnames' +import { repos } from '../data/github' export default function Oss() { const context = useDocusaurusContext() @@ -19,7 +18,8 @@ export default function Oss() {

Open source

- Supabase is an opensource company. Follow us on GitHub. + Supabase is an opensource company. Follow us on{' '} + GitHub.

@@ -74,7 +74,16 @@ export default function Oss() {
{repos.map((props, idx) => ( - +
+ +
))}
@@ -83,7 +92,6 @@ export default function Oss() { ) } - /** * Hijacked from recharts as the labels don't show up properly without the XAxis component */ @@ -148,4 +156,4 @@ const CustomTooltip = props => { } return null -} \ No newline at end of file +}