Merge branch 'feature/chatroom' of https://github.com/supabase/monorepo into feature/chatroom

This commit is contained in:
awalias committed 2020-01-31 15:31:12 +08:00
commit c673f4a07a
11 files changed
+76 -45

No files matched your search

+7 -6
View File
@@ -2,10 +2,10 @@ REPO_DIR=$(shell pwd)
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"
@echo "make github.users # 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:
curl -sS https://api.github.com/repos/supabase/monorepo/contributors \
@@ -31,5 +31,6 @@ github.repos.%:
curl -sS https://api.github.com/repos/supabase/$* \
> $(REPO_DIR)/web/src/data/repos/$*.json
github.traction: \
cd web && npm run traction
github.traction:
cd "$(REPO_DIR)"/web && \
npm run traction
+15 -2
View File
@@ -14,6 +14,20 @@ services:
DB_SCHEMA: public
depends_on:
- db
realtime:
image: supabase/realtime
restart: on-failure
environment:
DB_HOST: db
DB_NAME: postgres
DB_USER: postgres
DB_PASSWORD: postgres
DB_PORT: 5432
PORT: 4000
HOSTNAME: localhost
SECRET_KEY_BASE: postgres
ports:
- "4000:4000"
db:
image: postgres:12
ports:
@@ -28,5 +42,4 @@ services:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
POSTGRES_PORT: 5432
-1
View File
@@ -13,7 +13,6 @@ const nextConfig = {
},
}
// SASS
const withSass = require('@zeit/next-sass')
const withSassConfig = {
+1
View File
@@ -8,6 +8,7 @@
"start": "next start"
},
"dependencies": {
"@supabase/realtime-js": "^0.1.6",
"@supabase/supabase-js": "^0.1.16",
"@zeit/next-sass": "^1.0.0",
"next": "latest",
+2 -10
View File
@@ -10,7 +10,7 @@ import { createClient } from '@supabase/supabase-js'
import { useRouter } from 'next/router'
const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_KEY)
const ChannelsPage = props => {
const router = useRouter()
const { id: channelId } = router.query
@@ -51,15 +51,6 @@ const ChannelsPage = props => {
}
}, [router.query.id])
// // Update when the messages changes
// useEffect(() => {
// try {
// console.log(messages)
// } catch (error) {
// console.log('Error: ', error)
// }
// }, [messages])
// Render the channels and messages
return (
<Layout channels={channels}>
@@ -108,6 +99,7 @@ const getMessages = async (channelId, setState) => {
.from('messages')
.eq('channel_id', channelId)
.select(`*, author:user_id(*)`)
.order('inserted_at', true)
if (setState) setState(body)
return body
} catch (error) {
+3
View File
@@ -34,3 +34,6 @@ Please refrain from putting us on any launch lists (like Product Hunt) until we
<ContributorList list={IssueCreators} />
### Opensource Software
Supabase would not be possible without the work of some other amazing opensource contributors. [See the full list](/humans.txt).
-4
View File
@@ -6,9 +6,5 @@
{
"username": "kiwicopple",
"avatar_url": "https://avatars0.githubusercontent.com/u/10214025?v=4"
},
{
"username": "phamhieu",
"avatar_url": "https://avatars2.githubusercontent.com/u/689843?v=4"
}
]
+8 -8
View File
@@ -65,16 +65,16 @@
"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-28T02:20:53Z",
"pushed_at": "2020-01-28T02:20:50Z",
"updated_at": "2020-01-30T04:29:14Z",
"pushed_at": "2020-01-30T11:31:20Z",
"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": 3703,
"stargazers_count": 61,
"watchers_count": 61,
"size": 3972,
"stargazers_count": 64,
"watchers_count": 64,
"language": "JavaScript",
"has_issues": true,
"has_projects": true,
@@ -85,7 +85,7 @@
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 6,
"open_issues_count": 7,
"license": {
"key": "apache-2.0",
"name": "Apache License 2.0",
@@ -94,8 +94,8 @@
"node_id": "MDc6TGljZW5zZTI="
},
"forks": 1,
"open_issues": 6,
"watchers": 61,
"open_issues": 7,
"watchers": 64,
"default_branch": "master",
"temp_clone_token": null,
"organization": {
+8 -8
View File
@@ -65,16 +65,16 @@
"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-27T19:27:20Z",
"pushed_at": "2020-01-24T09:33:58Z",
"updated_at": "2020-01-30T20:42:08Z",
"pushed_at": "2020-01-30T06:29:31Z",
"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": 336,
"watchers_count": 336,
"size": 2034,
"stargazers_count": 351,
"watchers_count": 351,
"language": "JavaScript",
"has_issues": true,
"has_projects": true,
@@ -85,7 +85,7 @@
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"open_issues_count": 4,
"license": {
"key": "apache-2.0",
"name": "Apache License 2.0",
@@ -94,8 +94,8 @@
"node_id": "MDc6TGljZW5zZTI="
},
"forks": 5,
"open_issues": 2,
"watchers": 336,
"open_issues": 4,
"watchers": 351,
"default_branch": "master",
"temp_clone_token": null,
"organization": {
+24
View File
@@ -226,5 +226,29 @@
"@supabase/monorepo": 60,
"@supabase/realtime": 333,
"@supabase/schemas": 4
},
{
"name": "2020-01-27",
"@supabase/monorepo": 61,
"@supabase/realtime": 336,
"@supabase/schemas": 5
},
{
"name": "2020-01-28",
"@supabase/monorepo": 63,
"@supabase/realtime": 339,
"@supabase/schemas": 5
},
{
"name": "2020-01-29",
"@supabase/monorepo": 63,
"@supabase/realtime": 347,
"@supabase/schemas": 5
},
{
"name": "2020-01-30",
"@supabase/monorepo": 64,
"@supabase/realtime": 351,
"@supabase/schemas": 5
}
]
+8 -6
View File
@@ -15,10 +15,12 @@ ___________
TECHNOLOGIES
Just a few of the opensource technologies that make Supabase possible.
Web - Docusaurus
App - NextJS
Reatime - Phoenix & Elixir
Restful - PostgREST
Supabase would not be possible without the work of some other amazing opensource contributors.
- Postgres - https://www.postgresql.org/docs/devel/git.html
- PostgREST - https://github.com/PostgREST
- Nginx - http://hg.nginx.org/nginx/
- Kong - https://github.com/kong/
- NextJS - https://nextjs.org/
- Phoenix - https://www.phoenixframework.org/
- Docusaurus - https://v2.docusaurus.io/