From 55ee41eab1b725d15c2101b2b9aebfa327ec3f67 Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Fri, 2 Dec 2022 16:46:28 +0800 Subject: [PATCH] fix build issuies --- apps/docs/layouts/ref/RefSubLayout.tsx | 39 ++- apps/docs/pages/404.tsx | 4 +- .../pages/guides/auth/auth-helpers/nextjs.mdx | 2 +- .../new/reference/javascript/v1/[...slug].tsx | 2 + apps/docs/public/sitemap.xml | 328 +++++++++++++----- packages/ui/index.tsx | 2 +- 6 files changed, 271 insertions(+), 106 deletions(-) diff --git a/apps/docs/layouts/ref/RefSubLayout.tsx b/apps/docs/layouts/ref/RefSubLayout.tsx index f280172be7b..09a4490401f 100644 --- a/apps/docs/layouts/ref/RefSubLayout.tsx +++ b/apps/docs/layouts/ref/RefSubLayout.tsx @@ -1,22 +1,22 @@ import { useInView } from 'react-intersection-observer' import { FC } from 'react' -interface ISectionContainer extends FC { +interface ISectionContainer { id: string title?: string monoFont?: boolean } type RefSubLayoutSubComponents = { - Section: ISectionContainer - Details: ISectionDetails - Examples: ISectionExamples + Section: FC + Details: FC + Examples: FC } type StickyHeader = { id: string - title: string - monoFont: boolean + title?: string + monoFont?: boolean } type RefSubLayoutType = {} @@ -31,16 +31,16 @@ const RefSubLayout: FC & RefSubLayoutSubComponents = (props) = ) } -const Section: FC = ({ id, title, monoFont, children }) => { +const Section: FC = (props) => { return ( -
- -
{children}
+
+ +
{props.children}
) } -const StickyHeader: FC = ({ id, title, monoFont }) => { +const StickyHeader: FC = (props) => { const { ref } = useInView({ threshold: 1, rootMargin: '30% 0% -35% 0px', @@ -52,21 +52,23 @@ const StickyHeader: FC = ({ id, title, monoFont }) => { return (

- {title} + props.{props.title && {props.title}}

) } -interface ISectionDetails extends FC {} +interface ISectionDetails {} -const Details: FC = (props: any) => { - return
{props.children}
+const Details: FC = (props) => { + return
{props.children}
} -interface ISectionExamples extends FC {} +interface ISectionExamples {} const Examples: FC = (props) => { return ( @@ -76,7 +78,6 @@ const Examples: FC = (props) => { ) } -// @ts-ignore // needs typing with FC type RefSubLayout.Section = Section RefSubLayout.Details = Details RefSubLayout.Examples = Examples diff --git a/apps/docs/pages/404.tsx b/apps/docs/pages/404.tsx index 94f4db764e3..71b9bb5f6f5 100644 --- a/apps/docs/pages/404.tsx +++ b/apps/docs/pages/404.tsx @@ -33,9 +33,9 @@ export default function Custom404() { }`} >
-

Looking for something? 🔍

+

Looking for something?

- We couldn't find the page that you're looking for! + We could not find the page that you are looking for!

diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx index 08dbb12a001..c38f8f3b284 100644 --- a/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx +++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx @@ -365,7 +365,7 @@ export const getServerSideProps = async (ctx: GetServerSidePropsContext) => { -## Server-side data fetching to OAuth APIs using `provider token` {#oauth-provider-token} +## Server-side data fetching to OAuth APIs using `provider token` {`#oauth-provider-token`} When using third-party auth providers, sessions are initiated with an additional `provider_token` field which is persisted in the auth cookie and can be accessed within the session object. The `provider_token` can be used to make API requests to the OAuth provider's API endpoints on behalf of the logged-in user. diff --git a/apps/docs/pages/new/reference/javascript/v1/[...slug].tsx b/apps/docs/pages/new/reference/javascript/v1/[...slug].tsx index e07b7a69cfb..d73e1029ec7 100644 --- a/apps/docs/pages/new/reference/javascript/v1/[...slug].tsx +++ b/apps/docs/pages/new/reference/javascript/v1/[...slug].tsx @@ -239,6 +239,8 @@ export default function Ref(props) { )} {/* // parameters */} + {/* + @ts-expect-error */} {parameters &&
}
diff --git a/apps/docs/public/sitemap.xml b/apps/docs/public/sitemap.xml index 6d2c085106e..39aaad851c0 100644 --- a/apps/docs/public/sitemap.xml +++ b/apps/docs/public/sitemap.xml @@ -12,12 +12,6 @@ 0.5 - - https://supabase.com/docs/404 - weekly - 0.5 - - https://supabase.com/docs/architecture weekly @@ -42,6 +36,12 @@ 0.5 + + https://supabase.com/docs/ref-pages + weekly + 0.5 + + https://supabase.com/docs/reference weekly @@ -132,6 +132,12 @@ 0.5 + + https://supabase.com/docs/guides/integrations + weekly + 0.5 + + https://supabase.com/docs/guides/realtime weekly @@ -150,6 +156,12 @@ 0.5 + + https://supabase.com/docs/guides/tutorials + weekly + 0.5 + + https://supabase.com/docs/guides/with-angular weekly @@ -235,31 +247,37 @@ - https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts + https://supabase.com/docs/tutorials/nextjs weekly 0.5 - https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth + https://supabase.com/docs/new/1 weekly 0.5 - https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue + https://supabase.com/docs/new/auth weekly 0.5 - https://supabase.com/docs/learn/auth-deep-dive/auth-policies + https://supabase.com/docs/new/danny weekly 0.5 - https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security + https://supabase.com/docs/new/database + weekly + 0.5 + + + + https://supabase.com/docs/new/index weekly 0.5 @@ -270,48 +288,6 @@ 0.5 - - https://supabase.com/docs/guides/cli/local-development - weekly - 0.5 - - - - https://supabase.com/docs/guides/cli/managing-environments - weekly - 0.5 - - - - https://supabase.com/docs/guides/functions/auth - weekly - 0.5 - - - - https://supabase.com/docs/guides/functions/best-practices - weekly - 0.5 - - - - https://supabase.com/docs/guides/functions/cicd-workflow - weekly - 0.5 - - - - https://supabase.com/docs/guides/functions/examples - weekly - 0.5 - - - - https://supabase.com/docs/guides/functions/quickstart - weekly - 0.5 - - https://supabase.com/docs/guides/auth/auth-apple weekly @@ -468,6 +444,12 @@ 0.5 + + https://supabase.com/docs/guides/auth/overview + weekly + 0.5 + + https://supabase.com/docs/guides/auth/row-level-security weekly @@ -480,6 +462,60 @@ 0.5 + + https://supabase.com/docs/guides/functions/auth + weekly + 0.5 + + + + https://supabase.com/docs/guides/functions/best-practices + weekly + 0.5 + + + + https://supabase.com/docs/guides/functions/cicd-workflow + weekly + 0.5 + + + + https://supabase.com/docs/guides/functions/quickstart + weekly + 0.5 + + + + https://supabase.com/docs/guides/hosting/docker + weekly + 0.5 + + + + https://supabase.com/docs/guides/hosting/overview + weekly + 0.5 + + + + https://supabase.com/docs/guides/hosting/platform + weekly + 0.5 + + + + https://supabase.com/docs/guides/cli/local-development + weekly + 0.5 + + + + https://supabase.com/docs/guides/cli/managing-environments + weekly + 0.5 + + https://supabase.com/docs/guides/database/arrays weekly @@ -565,19 +601,25 @@ - https://supabase.com/docs/guides/hosting/docker + https://supabase.com/docs/guides/migrations/firebase-auth weekly 0.5 - https://supabase.com/docs/guides/hosting/overview + https://supabase.com/docs/guides/migrations/firebase-storage weekly 0.5 - https://supabase.com/docs/guides/hosting/platform + https://supabase.com/docs/guides/migrations/firestore-data + weekly + 0.5 + + + + https://supabase.com/docs/guides/migrations/heroku weekly 0.5 @@ -721,25 +763,19 @@ - https://supabase.com/docs/guides/migrations/firebase-auth + https://supabase.com/docs/guides/realtime/postgres-cdc weekly 0.5 - https://supabase.com/docs/guides/migrations/firebase-storage + https://supabase.com/docs/guides/realtime/quickstart weekly 0.5 - https://supabase.com/docs/guides/migrations/firestore-data - weekly - 0.5 - - - - https://supabase.com/docs/guides/migrations/heroku + https://supabase.com/docs/guides/realtime/rate-limits weekly 0.5 @@ -798,30 +834,144 @@ 0.5 - - https://supabase.com/docs/guides/realtime/postgres-cdc - weekly - 0.5 - - - - https://supabase.com/docs/guides/realtime/quickstart - weekly - 0.5 - - - - https://supabase.com/docs/guides/realtime/rate-limits - weekly - 0.5 - - https://supabase.com/docs/guides/storage/storage-sample weekly 0.5 + + https://supabase.com/docs/guides/tutorials/with-angular + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-expo + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-flutter + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-ionic-angular + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-ionic-react + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-ionic-vue + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-nextjs + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-nuxt-3 + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-react + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-redwoodjs + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-solidjs + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-svelte + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-sveltekit + weekly + 0.5 + + + + https://supabase.com/docs/guides/tutorials/with-vue-3 + weekly + 0.5 + + + + https://supabase.com/docs/new/auth/auth-login + weekly + 0.5 + + + + https://supabase.com/docs/new/reference/index + weekly + 0.5 + + + + https://supabase.com/docs/new/tutorials/nextjs + weekly + 0.5 + + + + https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts + weekly + 0.5 + + + + https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth + weekly + 0.5 + + + + https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue + weekly + 0.5 + + + + https://supabase.com/docs/learn/auth-deep-dive/auth-policies + weekly + 0.5 + + + + https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security + weekly + 0.5 + + https://supabase.com/docs/guides/auth/auth-helpers/auth-ui weekly @@ -852,6 +1002,18 @@ 0.5 + + https://supabase.com/docs/guides/functions/examples/index + weekly + 0.5 + + + + https://supabase.com/docs/guides/functions/examples/og-image + weekly + 0.5 + + https://supabase.com/docs/guides/database/extensions/http weekly diff --git a/packages/ui/index.tsx b/packages/ui/index.tsx index f2d6744f6b1..cc297cf34b9 100644 --- a/packages/ui/index.tsx +++ b/packages/ui/index.tsx @@ -40,7 +40,7 @@ export * from './src/components/Popover' export * from './src/components/Space' export * from './src/components/Loading' export * from './src/components/Divider' -export * from './src/components/ThemeProvider' +// export * from './src/components/ThemeProvider' // DATA ENTRY