mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
docs: update Swift docs for v1 release (#18682)
* docs: update auth section for Swift * docs: fix wrong md for code section * docs: update fetch data section for Swift * docs: update insert data section docs for Swift * docs: update using filter section * docs: update modifier, filters and edge functions sections * docs: update realtime section * docs: update storage section * docs: fix examples not building * docs: add entry for rpc call with filters * Update spec/supabase_swift_v1.yml * Update spec/supabase_swift_v1.yml --------- Co-authored-by: Tyler <18113850+dshukertjr@users.noreply.github.com>
This commit is contained in:
1 parent
c7fe3e307e
commit
fe7494f804
12 files changed
+3480
-2718
No files matched your search
@@ -1565,7 +1565,7 @@ export const reference_python_v2 = {
|
||||
parent: '/reference',
|
||||
}
|
||||
|
||||
export const reference_swift_v0 = {
|
||||
export const reference_swift_v1 = {
|
||||
icon: 'reference-swift',
|
||||
title: 'swift',
|
||||
url: 'guides/reference/swift',
|
||||
|
||||
@@ -147,10 +147,10 @@ const menus: Menu[] = [
|
||||
type: 'reference',
|
||||
},
|
||||
{
|
||||
id: 'reference_swift_v0',
|
||||
id: 'reference_swift_v1',
|
||||
path: '/reference/swift',
|
||||
commonSectionsFile: 'common-client-libs-sections.json',
|
||||
specFile: 'supabase_swift_v0.yml',
|
||||
specFile: 'supabase_swift_v1.yml',
|
||||
type: 'reference',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ const clientLibFiles = [
|
||||
{ fileName: 'supabase_dart_v1', label: 'dart', version: 'v1', versionSlug: false },
|
||||
{ fileName: 'supabase_py_v2', label: 'python', version: 'v2', versionSlug: false },
|
||||
{ fileName: 'supabase_csharp_v0', label: 'csharp', version: 'v0', versionSlug: false },
|
||||
{ fileName: 'supabase_swift_v0', label: 'swift', version: 'v0', versionSlug: false },
|
||||
{ fileName: 'supabase_swift_v1', label: 'swift', version: 'v1', versionSlug: false },
|
||||
{ fileName: 'supabase_kt_v0', label: 'kotlin', version: 'v0', versionSlug: false },
|
||||
]
|
||||
|
||||
|
||||
@@ -98,9 +98,9 @@ const levelsData = {
|
||||
icon: '/docs/img/icons/menu/reference-python',
|
||||
name: 'Python Reference v2.0',
|
||||
},
|
||||
reference_swift_v0: {
|
||||
reference_swift_v1: {
|
||||
icon: '/docs/img/icons/menu/reference-swift',
|
||||
name: 'Swift Reference v0.0',
|
||||
name: 'Swift Reference v1.0',
|
||||
},
|
||||
reference_kotlin_v0: {
|
||||
icon: '/docs/img/icons/menu/reference-kotlin',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'
|
||||
import spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }
|
||||
import spec from '~/../../spec/supabase_swift_v1.yml' assert { type: 'yml' }
|
||||
import RefSectionHandler from '~/components/reference/RefSectionHandler'
|
||||
import { flattenSections } from '~/lib/helpers'
|
||||
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'
|
||||
import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'
|
||||
import spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }
|
||||
import spec from '~/../../spec/supabase_swift_v1.yml' assert { type: 'yml' }
|
||||
import RefSectionHandler from '~/components/reference/RefSectionHandler'
|
||||
import { flattenSections } from '~/lib/helpers'
|
||||
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'
|
||||
import spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }
|
||||
import spec from '~/../../spec/supabase_swift_v1.yml' assert { type: 'yml' }
|
||||
import RefSectionHandler from '~/components/reference/RefSectionHandler'
|
||||
import { flattenSections } from '~/lib/helpers'
|
||||
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
|
||||
import handleRefStaticProps from '~/lib/mdx/handleRefStaticProps'
|
||||
|
||||
const sections = flattenSections(clientLibsCommonSections)
|
||||
const libraryPath = '/swift/v0'
|
||||
const libraryPath = '/swift/v1'
|
||||
|
||||
export default function SwiftReference(props) {
|
||||
return <RefSectionHandler sections={sections} spec={spec} pageProps={props} type="client-lib" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'
|
||||
import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'
|
||||
import spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }
|
||||
import spec from '~/../../spec/supabase_swift_v1.yml' assert { type: 'yml' }
|
||||
import RefSectionHandler from '~/components/reference/RefSectionHandler'
|
||||
import { flattenSections } from '~/lib/helpers'
|
||||
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
|
||||
@@ -9,7 +9,7 @@ import { useRouter } from 'next/router'
|
||||
import RefSEO from '~/components/reference/RefSEO'
|
||||
|
||||
const sections = flattenSections(clientLibsCommonSections)
|
||||
const libraryPath = '/swift/v0'
|
||||
const libraryPath = '/swift/v1'
|
||||
|
||||
export default function SwiftReference(props) {
|
||||
const router = useRouter()
|
||||
|
||||
@@ -64,7 +64,7 @@ export async function fetchSources() {
|
||||
'swift-lib',
|
||||
'/reference/swift',
|
||||
{ title: 'Swift Reference' },
|
||||
'../../spec/supabase_swift_v0.yml',
|
||||
'../../spec/supabase_swift_v1.yml',
|
||||
'../../spec/common-client-libs-sections.json'
|
||||
)
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"reference_javascript_v1",
|
||||
"reference_dart_v0",
|
||||
"reference_python_v2",
|
||||
"reference_swift_v0"
|
||||
"reference_swift_v1"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -34,7 +34,7 @@
|
||||
"reference_dart_v1",
|
||||
"reference_python_v2",
|
||||
"reference_csharp_v0",
|
||||
"reference_swift_v0",
|
||||
"reference_swift_v1",
|
||||
"reference_kotlin_v0"
|
||||
]
|
||||
},
|
||||
@@ -48,7 +48,7 @@
|
||||
"reference_dart_v1",
|
||||
"reference_python_v2",
|
||||
"reference_csharp_v0",
|
||||
"reference_swift_v0",
|
||||
"reference_swift_v1",
|
||||
"reference_kotlin_v0"
|
||||
]
|
||||
},
|
||||
@@ -935,7 +935,7 @@
|
||||
"reference_dart_v0",
|
||||
"reference_python_v2",
|
||||
"reference_csharp_v0",
|
||||
"reference_swift_v0",
|
||||
"reference_swift_v1",
|
||||
"reference_kotlin_v0"
|
||||
],
|
||||
"items": [
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user