Adding the contributors to the site

This commit is contained in:
Copple
2020-01-24 14:40:49 +08:00
parent dedae3d4c3
commit 51a78206fe
7 changed files with 177 additions and 35 deletions

21
Makefile Normal file
View File

@@ -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

View File

@@ -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 :)
Please refrain from putting us on any launch lists (like Product Hunt) until we are ready for public launch :)
## Kudos
### Contributors
<ContributorList list={Contributors} />
### Issue creators
<ContributorList list={IssueCreators} />

View File

@@ -1,8 +1,10 @@
---
id: hosting-realtime
title: Self-hosting Supabase Realtime
title: On-premise Realtime
---
> Status: DRAFT
## Pre-requisites
- Postgres 10+

123
web/package-lock.json generated
View File

@@ -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
}
}
},

View File

@@ -0,0 +1,15 @@
import React from 'react'
export default function ContributorList({ list }) {
let users = list.map((x, i )=> (
<>
<a target="_blank" href={`https://github.com/${x.username}`}>
@{x.username}
</a>
{i < list.length - 1 && ', '}
</>
))
console.log('users', users)
return users
}

View File

@@ -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"
}
]

View File

@@ -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"
}
]