From 51a78206fe90d94a0acf44882e98d452ee2d5996 Mon Sep 17 00:00:00 2001 From: Copple Date: Fri, 24 Jan 2020 14:40:49 +0800 Subject: [PATCH] Adding the contributors to the site --- Makefile | 21 ++++ web/docs/handbook/contributing.mdx | 21 +++- web/docs/hosting/realtime.mdx | 4 +- web/package-lock.json | 123 ++++++++++++++------ web/src/components/ContributorList.js | 15 +++ web/src/data/contributors/contributors.json | 14 +++ web/src/data/contributors/issues.json | 14 +++ 7 files changed, 177 insertions(+), 35 deletions(-) create mode 100644 Makefile create mode 100644 web/src/components/ContributorList.js create mode 100644 web/src/data/contributors/contributors.json create mode 100644 web/src/data/contributors/issues.json diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000..7ce09210aa424 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +REPO_DIR=$(shell pwd) + +help: + @echo "\SCRIPTS\n" + @echo "make contributors.users # pull a list of all contributors" + @echo "make contributors.issues # pull a list of all issue creators" + + +contributors.users: + curl -sS https://api.github.com/repos/supabase/monorepo/contributors \ + | jq -r 'map_values({username: .login, avatar_url: .avatar_url}) \ + | unique \ + | sort_by(.username)' \ + > $(REPO_DIR)/web/src/data/contributors/contributors.json + +contributors.issues: + curl -sS https://api.github.com/repos/supabase/monorepo/issues \ + | jq -r 'map_values({username: .user.login, avatar_url: .user.avatar_url}) \ + | unique \ + | sort_by(.username)' \ + > $(REPO_DIR)/web/src/data/contributors/issues.json \ No newline at end of file diff --git a/web/docs/handbook/contributing.mdx b/web/docs/handbook/contributing.mdx index 97c12778714ae..a6d2d2bcd661a 100644 --- a/web/docs/handbook/contributing.mdx +++ b/web/docs/handbook/contributing.mdx @@ -1,8 +1,15 @@ --- id: contributing title: Contributing +description: Want to help? --- +import ContributorList from '../../src/components/ContributorList' +import Contributors from '../../src/data/contributors/contributors.json' +import IssueCreators from '../../src/data/contributors/issues.json' + +## How to contribute + Want to contribute? Why not jump into our github and: - submit an issue @@ -12,6 +19,18 @@ Want to contribute? Why not jump into our github and: - translate this website - [vote on a new client library](https://github.com/supabase/monorepo/issues/5) for your favourite language - [vote on a new connector](https://github.com/supabase/monorepo/issues/4) for a tool that you use +- [vote on a new database](https://github.com/supabase/monorepo/issues/6) - spread the word if you like what we are doing -Please refrain from putting us on any launch lists (like Product Hunt) until we are ready for public launch :) \ No newline at end of file +Please refrain from putting us on any launch lists (like Product Hunt) until we are ready for public launch :) + +## Kudos + +### Contributors + + + +### Issue creators + + + diff --git a/web/docs/hosting/realtime.mdx b/web/docs/hosting/realtime.mdx index 8bbc55f7895ad..2a2d72122d6e8 100644 --- a/web/docs/hosting/realtime.mdx +++ b/web/docs/hosting/realtime.mdx @@ -1,8 +1,10 @@ --- id: hosting-realtime -title: Self-hosting Supabase Realtime +title: On-premise Realtime --- +> Status: DRAFT + ## Pre-requisites - Postgres 10+ diff --git a/web/package-lock.json b/web/package-lock.json index 7d76c075e4cb9..3ce5582057e2d 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -4482,7 +4482,8 @@ }, "ansi-regex": { "version": "2.1.1", - "bundled": true + "bundled": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -4500,11 +4501,13 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true + "bundled": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -4517,15 +4520,18 @@ }, "code-point-at": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "concat-map": { "version": "0.0.1", - "bundled": true + "bundled": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -4628,7 +4634,8 @@ }, "inherits": { "version": "2.0.4", - "bundled": true + "bundled": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -4638,6 +4645,7 @@ "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -4650,17 +4658,20 @@ "minimatch": { "version": "3.0.4", "bundled": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "bundled": true + "bundled": true, + "optional": true }, "minipass": { "version": "2.9.0", "bundled": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -4677,6 +4688,7 @@ "mkdirp": { "version": "0.5.1", "bundled": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -4757,7 +4769,8 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true + "bundled": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -4767,6 +4780,7 @@ "once": { "version": "1.4.0", "bundled": true, + "optional": true, "requires": { "wrappy": "1" } @@ -4842,7 +4856,8 @@ }, "safe-buffer": { "version": "5.1.2", - "bundled": true + "bundled": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -4872,6 +4887,7 @@ "string-width": { "version": "1.0.2", "bundled": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -4889,6 +4905,7 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -4927,11 +4944,13 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "yallist": { "version": "3.1.1", - "bundled": true + "bundled": true, + "optional": true } } }, @@ -11770,7 +11789,8 @@ }, "ansi-regex": { "version": "2.1.1", - "bundled": true + "bundled": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -11788,11 +11808,13 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true + "bundled": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -11805,15 +11827,18 @@ }, "code-point-at": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "concat-map": { "version": "0.0.1", - "bundled": true + "bundled": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -11916,7 +11941,8 @@ }, "inherits": { "version": "2.0.4", - "bundled": true + "bundled": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -11926,6 +11952,7 @@ "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -11938,17 +11965,20 @@ "minimatch": { "version": "3.0.4", "bundled": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "bundled": true + "bundled": true, + "optional": true }, "minipass": { "version": "2.9.0", "bundled": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -11965,6 +11995,7 @@ "mkdirp": { "version": "0.5.1", "bundled": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -12045,7 +12076,8 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true + "bundled": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -12055,6 +12087,7 @@ "once": { "version": "1.4.0", "bundled": true, + "optional": true, "requires": { "wrappy": "1" } @@ -12130,7 +12163,8 @@ }, "safe-buffer": { "version": "5.1.2", - "bundled": true + "bundled": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -12160,6 +12194,7 @@ "string-width": { "version": "1.0.2", "bundled": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -12177,6 +12212,7 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -12215,11 +12251,13 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "yallist": { "version": "3.1.1", - "bundled": true + "bundled": true, + "optional": true } } }, @@ -12769,7 +12807,8 @@ }, "ansi-regex": { "version": "2.1.1", - "bundled": true + "bundled": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -12787,11 +12826,13 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true + "bundled": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -12804,15 +12845,18 @@ }, "code-point-at": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "concat-map": { "version": "0.0.1", - "bundled": true + "bundled": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -12915,7 +12959,8 @@ }, "inherits": { "version": "2.0.4", - "bundled": true + "bundled": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -12925,6 +12970,7 @@ "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -12937,17 +12983,20 @@ "minimatch": { "version": "3.0.4", "bundled": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "bundled": true + "bundled": true, + "optional": true }, "minipass": { "version": "2.9.0", "bundled": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -12964,6 +13013,7 @@ "mkdirp": { "version": "0.5.1", "bundled": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -13044,7 +13094,8 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true + "bundled": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -13054,6 +13105,7 @@ "once": { "version": "1.4.0", "bundled": true, + "optional": true, "requires": { "wrappy": "1" } @@ -13129,7 +13181,8 @@ }, "safe-buffer": { "version": "5.1.2", - "bundled": true + "bundled": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -13159,6 +13212,7 @@ "string-width": { "version": "1.0.2", "bundled": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -13176,6 +13230,7 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -13214,11 +13269,13 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "yallist": { "version": "3.1.1", - "bundled": true + "bundled": true, + "optional": true } } }, diff --git a/web/src/components/ContributorList.js b/web/src/components/ContributorList.js new file mode 100644 index 0000000000000..db4433d5576bc --- /dev/null +++ b/web/src/components/ContributorList.js @@ -0,0 +1,15 @@ +import React from 'react' + +export default function ContributorList({ list }) { + let users = list.map((x, i )=> ( + <> + + @{x.username} + + {i < list.length - 1 && ', '} + + )) + console.log('users', users) + + return users +} diff --git a/web/src/data/contributors/contributors.json b/web/src/data/contributors/contributors.json new file mode 100644 index 0000000000000..a4f040f90d3f7 --- /dev/null +++ b/web/src/data/contributors/contributors.json @@ -0,0 +1,14 @@ +[ + { + "username": "awalias", + "avatar_url": "https://avatars3.githubusercontent.com/u/458736?v=4" + }, + { + "username": "dragarcia", + "avatar_url": "https://avatars3.githubusercontent.com/u/26374889?v=4" + }, + { + "username": "kiwicopple", + "avatar_url": "https://avatars0.githubusercontent.com/u/10214025?v=4" + } +] diff --git a/web/src/data/contributors/issues.json b/web/src/data/contributors/issues.json new file mode 100644 index 0000000000000..c92e4706962f8 --- /dev/null +++ b/web/src/data/contributors/issues.json @@ -0,0 +1,14 @@ +[ + { + "username": "awalias", + "avatar_url": "https://avatars3.githubusercontent.com/u/458736?v=4" + }, + { + "username": "kiwicopple", + "avatar_url": "https://avatars0.githubusercontent.com/u/10214025?v=4" + }, + { + "username": "phamhieu", + "avatar_url": "https://avatars2.githubusercontent.com/u/689843?v=4" + } +]