diff --git a/.dockerignore b/.dockerignore index b5924c32836..ff561a782b4 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,7 +1,20 @@ -node_modules/ +# Root folder of this turbo monorepo +# Doesn't send useless context to Docker daemon +.git +.github +about +apps +docker +examples +i18n +**/node_modules +spec +supabase +tests + +**/.next .vercel -.next -.env.local -.env.production -.env.dev -.env.* \ No newline at end of file +.env.* + +.dockerignore +studio/Dockerfile diff --git a/.github/workflows/avoid-typos.yml b/.github/workflows/avoid-typos.yml new file mode 100644 index 00000000000..cd8d982f4aa --- /dev/null +++ b/.github/workflows/avoid-typos.yml @@ -0,0 +1,20 @@ +name: reviewdog +on: + pull_request: + types: [opened, synchronize, reopened, edited] + +jobs: + misspell: + name: runner / misspell + runs-on: ubuntu-latest + steps: + - name: Check out code. + uses: actions/checkout@v1 + - name: misspell + uses: reviewdog/action-misspell@v1 + with: + github_token: ${{ secrets.github_token }} + locale: "US" + reporter: github-pr-review + level: error + exclude: "*.css" diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 0a4d1b1fd57..47563fba1ef 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -19,12 +19,16 @@ jobs: permissions: contents: read packages: write + id-token: write steps: + - name: configure aws credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + role-to-assume: ${{ secrets.PROD_AWS_ROLE }} + aws-region: us-east-1 - uses: docker/login-action@v2 with: registry: public.ecr.aws - username: ${{ secrets.PROD_ACCESS_KEY_ID }} - password: ${{ secrets.PROD_SECRET_ACCESS_KEY }} - uses: docker/login-action@v2 with: registry: ghcr.io diff --git a/LICENSE b/LICENSE index 438f239eb5d..e029233d99c 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2022 Supabase + Copyright 2023 Supabase Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apps/docs/components/CustomHTMLElements/Heading.tsx b/apps/docs/components/CustomHTMLElements/Heading.tsx index f1248c38d1c..74f3511b110 100644 --- a/apps/docs/components/CustomHTMLElements/Heading.tsx +++ b/apps/docs/components/CustomHTMLElements/Heading.tsx @@ -14,12 +14,22 @@ import { useInView } from 'react-intersection-observer' */ interface Props { - tag: string + tag?: string + parseAnchors?: boolean + customAnchor?: string } -const Heading: React.FC = ({ tag, children }) => { +/** + * This TOC is used in .mdx files and in .tsx files. + * In mdx files, we need to parse the content and format them to match the + * expected tocList format (text, link,level). + * + * In tsx files, we can generate this tocList directly. For these files, we don't + * need to parse the and generate anchors + */ +const Heading: React.FC = ({ tag, parseAnchors = false, customAnchor, children }) => { const HeadingTag = `${tag}` as any - const anchor = getAnchor(children) + const anchor = customAnchor ? customAnchor : getAnchor(children) const link = `#${anchor}` const { ref } = useInView({ @@ -33,7 +43,7 @@ const Heading: React.FC = ({ tag, children }) => { return ( - {removeAnchor(children)} + {parseAnchors ? removeAnchor(children) : children} {anchor && ( # diff --git a/apps/docs/components/JwtGenerator.js b/apps/docs/components/JwtGenerator.js index 46dd4758e31..4ac1b05e255 100644 --- a/apps/docs/components/JwtGenerator.js +++ b/apps/docs/components/JwtGenerator.js @@ -1,7 +1,7 @@ import React, { useState } from 'react' import KJUR from 'jsrsasign' import CodeBlock from './CodeBlock/CodeBlock' -import { Button } from 'ui' +import { Button, Select, Input } from 'ui' const JWT_HEADER = { alg: 'HS256', typ: 'JWT' } const now = new Date() @@ -46,9 +46,8 @@ export default function JwtGenerator({}) {
-
- +
-