Skip to content

Commit

Permalink
Merge branch 'supabase:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
nipundev authored Aug 18, 2023
2 parents 7f59525 + 5ec623b commit 9af353f
Show file tree
Hide file tree
Showing 763 changed files with 120,194 additions and 78,527 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Our approach for client libraries is modular. Each sub-library is a standalone i
- [Nepali / नेपाली](/i18n/README.ne.md)
- [Indonesian / Bahasa Indonesia](/i18n/README.id.md)
- [Italiano / Italian](/i18n/README.it.md)
- [Japanese / 日本語](/i18n/README.ja.md)
- [Japanese / 日本語](/i18n/README.jp.md)
- [Korean / 한국어](/i18n/README.ko.md)
- [Lithuanian / lietuvių](/i18n/README.lt.md)
- [Latvian / latviski](/i18n/README.lv.md)
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/components/CustomHTMLElements/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface Props {
*
* In tsx files, we can generate this tocList directly. For these files, we don't
* need to parse the <a> and generate anchors. Custom anchors are used in tsx files.
* (see: /pages/reference/cli/config.tsx)
* (see: /pages/guides/cli/config.tsx)
*/
const Heading: React.FC<Props> = ({ tag, customAnchor, children }) => {
const HeadingTag = `${tag}` as any
Expand Down
24 changes: 13 additions & 11 deletions apps/docs/components/JwtGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ const today = new Date(now.getFullYear(), now.getMonth(), now.getDate())
const fiveYears = new Date(now.getFullYear() + 5, now.getMonth(), now.getDate())
const anonToken = `
{
"role": "anon",
"iss": "supabase",
"iat": ${Math.floor(today / 1000)},
"exp": ${Math.floor(fiveYears / 1000)}
"role": "anon",
"iss": "supabase",
"iat": ${Math.floor(today / 1000)},
"exp": ${Math.floor(fiveYears / 1000)}
}
`.trim()

const serviceToken = `
{
"role": "service_role",
"iss": "supabase",
"iat": ${Math.floor(today / 1000)},
"exp": ${Math.floor(fiveYears / 1000)}
"role": "service_role",
"iss": "supabase",
"iat": ${Math.floor(today / 1000)},
"exp": ${Math.floor(fiveYears / 1000)}
}
`.trim()

Expand Down Expand Up @@ -50,12 +50,13 @@ export default function JwtGenerator({}) {
type="text"
placeholder="JWT Secret (at least 32 characters)"
value={jwtSecret}
style={{ fontFamily: 'monospace' }}
onChange={(e) => setJwtSecret(e.target.value)}
/>
</div>
<div className="grid mb-8">
<label for="service">Preconfigured Payload:</label>
<Select id="service" onChange={handleKeySelection}>
<Select id="service" style={{ fontFamily: 'monospace' }} onChange={handleKeySelection}>
<Select.Option value="anon">ANON_KEY</Select.Option>
<Select.Option value="service">SERVICE_KEY</Select.Option>
</Select>
Expand All @@ -66,9 +67,10 @@ export default function JwtGenerator({}) {
<Input.TextArea
id="token"
type="text"
rows="5"
rows="6"
placeholder="A valid JWT Token"
value={token}
style={{ fontFamily: 'monospace' }}
onChange={(e) => setToken(e.target.value)}
/>
</div>
Expand All @@ -80,7 +82,7 @@ export default function JwtGenerator({}) {
{signedToken && (
<div className="mt-8">
<h4>Generated Token:</h4>
<CodeBlock language="bash" className="relative">
<CodeBlock language="bash" className="relative" style={{ fontFamily: 'monospace' }}>
{signedToken}
</CodeBlock>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ export const database: NavMenuConstant = {
{ name: 'Implementing Cascade Deletes', url: '/guides/database/postgres/cascade-deletes' },
{ name: 'Implementing column encryption', url: '/guides/database/column-encryption' },
{ name: 'Partitioning your tables', url: '/guides/database/partitions' },
{ name: 'Query Optimization', url: '/guides/database/query-optimization' },
{ name: 'Testing your database', url: '/guides/database/testing' },
{ name: 'Managing Timeouts', url: '/guides/database/timeouts' },
{ name: 'Managing Passwords', url: '/guides/database/managing-passwords' },
Expand All @@ -588,6 +589,10 @@ export const database: NavMenuConstant = {
url: '/guides/database/extensions/plv8',
},
{ name: 'http: RESTful Client', url: '/guides/database/extensions/http' },
{
name: 'index_advisor: Query optimization',
url: '/guides/database/extensions/index_advisor',
},
{
name: 'PGAudit: Postgres Auditing',
url: '/guides/database/extensions/pgaudit',
Expand Down Expand Up @@ -920,6 +925,10 @@ export const ai: NavMenuConstant = {
items: [
{ name: 'Developing locally with Vecs', url: '/guides/ai/vecs-python-client' },
{ name: 'Creating and managing collections', url: '/guides/ai/quickstarts/hello-world' },
{
name: 'Generate Embeddings',
url: '/guides/ai/quickstarts/generate-text-embeddings',
},
{ name: 'Text Deduplication', url: '/guides/ai/quickstarts/text-deduplication' },
{ name: 'Face similarity search', url: '/guides/ai/quickstarts/face-similarity' },
],
Expand Down Expand Up @@ -1033,6 +1042,10 @@ export const supabase_cli: NavMenuConstant = {
name: 'Testing and linting',
url: '/guides/cli/testing-and-linting',
},
{
name: 'Customizing email templates',
url: '/guides/cli/customizing-email-templates',
},
],
},
{
Expand Down Expand Up @@ -1135,12 +1148,8 @@ export const platform: NavMenuConstant = {
url: '/guides/platform/marketplace',
},
{
name: 'Publish an OAuth App',
url: '/guides/platform/oauth-apps/publish-an-oauth-app',
},
{
name: 'Sign in with Supabase',
url: '/guides/platform/oauth-apps/authorize-an-oauth-app',
name: 'Build a Supabase Integration',
url: '/guides/platform/oauth-apps/build-a-supabase-integration',
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const menus: Menu[] = [
},
{
id: 'supabase_cli',
// TODO: Add path '/reference/cli/config'
// TODO: Add path '/guides/cli/config'
path: '/guides/cli',
type: 'guide',
},
Expand Down
9 changes: 6 additions & 3 deletions apps/docs/components/StepHikeCompact/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//import { Step } from 'next-seo/lib/types'
import React, { FC } from 'react'
import { FC } from 'react'
import { cn } from 'ui'

interface IStep {
title: string
Expand All @@ -13,7 +14,9 @@ interface IStepHikeCompactSubcomponents {
}
interface IDetails {
title?: string
fullWidth?: boolean
}

interface ICode {}

interface IStepHikeCompact {
Expand Down Expand Up @@ -74,9 +77,9 @@ const Step: FC<IStep> = ({ children, title, step }) => {
)
}

const Details: FC<IDetails> = ({ children, title }) => {
const Details: FC<IDetails> = ({ children, title, fullWidth = false }) => {
return (
<div className="col-span-5 ml-12 lg:ml-0">
<div className={cn(fullWidth ? 'col-span-12' : 'col-span-5', 'ml-12', 'lg:ml-0')}>
<h3 className="mt-0 text-scale-1200 text-base">{title}</h3>
{children}
</div>
Expand Down
8 changes: 7 additions & 1 deletion apps/docs/data/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@
"tags": ["Admin", "Utility"],
"link": "https://www.postgresql.org/docs/current/oldsnapshot.html"
},
{
"name": "index_advisor",
"comment": "optimize query performance with automatic index recommendation",
"tags": ["Utility"],
"link": "/guides/database/extensions/index_advisor"
},
{
"name": "intarray",
"comment": "functions, operators, and index support for 1-D arrays of integers",
Expand Down Expand Up @@ -411,6 +417,6 @@
"name": "wrappers",
"comment": "Foreign data wrappers developed by Supabase",
"tags": ["Admin", "Utility"],
"link": "/guides/database/extensions/wrappers"
"link": "/guides/database/extensions/wrappers/overview"
}
]
2 changes: 1 addition & 1 deletion apps/docs/data/nav/supabase-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Nav = [
items: [
{ name: 'Supabase CLI', url: '/reference/cli', items: [] },
{ name: 'Usage', url: '/reference/cli/usage', items: [] },
{ name: 'Configuration', url: '/reference/cli/config', items: [] },
{ name: 'Configuration', url: '/guides/cli/config', items: [] },
{ name: 'Release Notes', url: '/reference/cli/release-notes', items: [] },
],
},
Expand Down
20 changes: 9 additions & 11 deletions apps/docs/docs/ref/csharp/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,18 @@ hideTitle: true
</div>
</div>

{/* prettier-ignore */}
<div className="max-w-xl">
This reference documents every object and method available in Supabase's C# library,
[supabase-csharp](https://www.nuget.org/packages/supabase-csharp). You can use supabase-csharp to
interact with your Postgres database, listen to database changes, invoke Deno Edge Functions,
build login and user management functionality, and manage large files.
This reference documents every object and method available in Supabase's C# library, [supabase-csharp](https://www.nuget.org/packages/supabase-csharp). You can use supabase-csharp to interact with your Postgres database, listen to database changes, invoke Deno Edge Functions, build login and user management functionality, and manage large files.
</div>

{/* prettier-ignore */}
<div className="max-w-xl bg-slate-300 px-4 py-2 rounded-md">
<p>The C# client library is created and maintained by the Supabase community, and is not an official library. Please be tolerant of areas where the library is still being developed, and — as with all the libraries — feel free to contribute wherever you find issues.</p>

<p>
Huge thanks to official maintainer, [Joseph Schultz](https://github.com/acupofjose), and to [Ben
Randall](https://github.com/veleek) and [Rhuan Barros](https://github.com/rhuanbarros) for their
help.
</p>
<p>
The C# client library is created and maintained by the Supabase community, and is not an official library. Please be tolerant of areas where the library is still being developed, and — as with all the libraries — feel free to contribute wherever you find issues.
</p>

<p>
Huge thanks to official maintainer, [Joseph Schultz](https://github.com/acupofjose), and to [Ben Randall](https://github.com/veleek) and [Rhuan Barros](https://github.com/rhuanbarros) for their help.
</p>
</div>
12 changes: 4 additions & 8 deletions apps/docs/docs/ref/dart/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ hideTitle: true
</div>
</div>

{/* prettier-ignore */}
<div className="max-w-xl">

This reference documents every object and method available in Supabase's Flutter
library, [supabase-flutter](https://pub.dev/packages/supabase_flutter). You can
use supabase-flutter to interact with your Postgres database, listen to database changes, invoke
Deno Edge Functions, build login and user management functionality, and manage large files.

We also provide a [supabase](https://pub.dev/packages/supabase) package for non-Flutter projects.

This reference documents every object and method available in Supabase's Flutter library, [supabase-flutter](https://pub.dev/packages/supabase_flutter). You can use supabase-flutter to interact with your Postgres database, listen to database changes, invoke Deno Edge Functions, build login and user management functionality, and manage large files.

We also provide a [supabase](https://pub.dev/packages/supabase) package for non-Flutter projects.
</div>
19 changes: 7 additions & 12 deletions apps/docs/docs/ref/dart/v0/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,12 @@ hideTitle: true
</div>
</div>

{/* prettier-ignore */}
<div className="max-w-xl">

<Admonition type="caution">
You're viewing the docs for an older version of the `supabase-flutter` library. Learn how to
[upgrade to the latest version](/docs/reference/dart/v0/upgrade-guide).
</Admonition>

This reference documents every object and method available in Supabase's Flutter library, [supabase-flutter](https://pub.dev/packages/supabase_flutter).
You can use supabase-flutter to interact with your Postgres database, listen to database changes, invoke
Deno Edge Functions, build login and user management functionality, and manage large files.

We also provide a [supabase](https://pub.dev/packages/supabase) package for non-Flutter projects.

<Admonition type="caution">
You're viewing the docs for an older version of the `supabase-flutter` library. Learn how to [upgrade to the latest version](/docs/reference/dart/v0/upgrade-guide).
</Admonition>
This reference documents every object and method available in Supabase's Flutter library, [supabase-flutter](https://pub.dev/packages/supabase_flutter). You can use supabase-flutter to interact with your Postgres database, listen to database changes, invoke Deno Edge Functions, build login and user management functionality, and manage large files.

We also provide a [supabase](https://pub.dev/packages/supabase) package for non-Flutter projects.
</div>
8 changes: 3 additions & 5 deletions apps/docs/docs/ref/javascript/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ hideTitle: true
<div className="flex items-start gap-6 not-prose" id="introduction">
<IconMenuJavascript width={35} height={35} />
<div className="flex flex-col gap-2">
<h1 className="text-3xl text-scale-1200 m-0">Javascript Client Library</h1>
<h1 className="text-3xl text-scale-1200 m-0">JavaScript Client Library</h1>
<h2 className="text-base font-mono text-scale-1100">@supabase/supabase-js</h2>
</div>
</div>

{/* prettier-ignore */}
<div className="max-w-xl">
This reference documents every object and method available in Supabase's isomorphic JavaScript
library, supabase-js. You can use supabase-js to interact with your Postgres database, listen to
database changes, invoke Deno Edge Functions, build login and user management functionality, and
manage large files.
This reference documents every object and method available in Supabase's isomorphic JavaScript library, supabase-js. You can use supabase-js to interact with your Postgres database, listen to database changes, invoke Deno Edge Functions, build login and user management functionality, and manage large files.
</div>
Loading

0 comments on commit 9af353f

Please sign in to comment.