mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 22:59:11 +03:00
Merge branch 'master' into da/typos
This commit is contained in:
5 files changed
+24
-6
No files matched your search
@@ -13,6 +13,24 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
- name: Run prettier
|
||||
run: |-
|
||||
npx prettier -c 'examples/**/*.{js,jsx,ts,tsx,css,md,json}'
|
||||
function run_check() {
|
||||
if $(grep -q '"prettier"' "$1") ; then
|
||||
pushd "$(dirname $1)"
|
||||
echo "Running prettier on $(pwd)"
|
||||
npx prettier -c '**/*.{js,jsx,ts,tsx,css,md,json}'
|
||||
popd
|
||||
fi
|
||||
}
|
||||
find . -type f -name 'package.json' ! -path '*node_modules*' -print0 | while IFS= read -r -d '' file; do
|
||||
run_check "$file"
|
||||
done
|
||||
|
||||
# i18n is not a node package, so we handle that one separately
|
||||
format-i18n:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Run prettier
|
||||
run: |-
|
||||
npx prettier -c 'i18n/**/*.{js,jsx,ts,tsx,css,md,json}'
|
||||
npx prettier -c 'www/**/*.{js,jsx,ts,tsx,css,md,json}'
|
||||
@@ -50,7 +50,7 @@ Go to the Authentication Settings page (the user icon). Enter the flutter app re
|
||||
|
||||
This project uses very high-level Authorization using Postgres' Role Level Security.
|
||||
When you start a Postgres database on Supabase, we populate it with an `auth` schema, and some helper functions.
|
||||
When a user logs in, they are issued a JWT with the role `authenticated` and thier UUID.
|
||||
When a user logs in, they are issued a JWT with the role `authenticated` and their UUID.
|
||||
We can use these details to provide fine-grained control over what each user can and cannot do.
|
||||
|
||||
This is a trimmed-down schema, with the policies:
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
**This directory is not required, you can delete it if you don't want to use it.**
|
||||
|
||||
This directory contains your application middleware.
|
||||
Middleware let you define custom functions that can be run before rendering either a page or a group of pages.
|
||||
Middleware lets you define custom functions that can be run before rendering either a page or a group of pages.
|
||||
|
||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware).
|
||||
+1
-1
@@ -66,7 +66,7 @@ SUPABASE_ANON_KEY=
|
||||
SUPABASE_SERVICE_KEY=
|
||||
```
|
||||
|
||||
Then run the follow commands to install dependencies and start the dashboard.
|
||||
Then run the following commands to install dependencies and start the dashboard.
|
||||
|
||||
```
|
||||
npm install
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
## Component structure
|
||||
|
||||
- If a component has constants and utility methods that are tightly coupled to the itself, keep them close to the component and enclose them in a folder with an `index.tsx` as an entry point
|
||||
- If a component has constants and utility methods that are tightly coupled to itself, keep them close to the component and enclose them in a folder with an `index.tsx` as an entry point
|
||||
- Otherwise it can just be a file on its own
|
||||
- For example:
|
||||
- ```
|
||||
|
||||
Reference in new issue
Block a user