From 249027c80ae5eb7ce338aac1a8c47269d0ff1ce9 Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Wed, 10 May 2023 22:44:57 -0230 Subject: [PATCH] Remove autodocs intro content --- .../TableGridEditor/APIDocumentationPanel.tsx | 13 +-- .../to-be-cleaned/Docs/Pages/Introduction.tsx | 92 ------------------- studio/styles/ui.scss | 4 +- 3 files changed, 6 insertions(+), 103 deletions(-) diff --git a/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx b/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx index 4565ba6ee28..d03907ffbef 100644 --- a/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx +++ b/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx @@ -3,7 +3,7 @@ import { SidePanel, IconBookOpen } from 'ui' import { useStore } from 'hooks' import { useParams } from 'common/hooks' -import { GeneralContent, ResourceContent } from '../Docs' +import { ResourceContent } from '../Docs' import LangSelector from '../Docs/LangSelector' import GeneratingTypes from '../Docs/GeneratingTypes' import ActionBar from './SidePanelEditor/ActionBar' @@ -105,14 +105,6 @@ const APIDocumentationPanel = ({ visible, onClose }: APIDocumentationPanelProps) autoApiService={autoApiService} /> - - - {jsonSchema?.definitions && ( await refetch()} /> )} +
+ +
) : (
diff --git a/studio/components/to-be-cleaned/Docs/Pages/Introduction.tsx b/studio/components/to-be-cleaned/Docs/Pages/Introduction.tsx index a125f6c4006..c64f2f5457e 100644 --- a/studio/components/to-be-cleaned/Docs/Pages/Introduction.tsx +++ b/studio/components/to-be-cleaned/Docs/Pages/Introduction.tsx @@ -1,24 +1,6 @@ -import Image from 'next/image' import { AutoApiService } from 'data/config/project-api-query' -import { BASE_PATH } from 'lib/constants' import Snippets from '../Snippets' import CodeSnippet from '../CodeSnippet' -import { useTheme } from 'common' - -const libs = [ - { - name: 'Javascript', - url: 'https://supabase.com/docs/reference/javascript/introduction', - icon: 'javascript', - }, - { name: 'Flutter', url: 'https://supabase.com/docs/reference/dart/introduction', icon: 'dart' }, - { - name: 'Python', - url: 'https://supabase.com/docs/reference/python/introduction', - icon: 'python', - }, - { name: 'C#', url: 'https://supabase.com/docs/reference/csharp/introduction', icon: 'csharp' }, -] interface Props { autoApiService: AutoApiService @@ -26,84 +8,10 @@ interface Props { } export default function Introduction({ autoApiService, selectedLang }: Props) { - const { isDarkMode } = useTheme() - return ( <> -

Introduction

-
-
-

- This API provides an easy way to integrate with your Postgres database. The API - documentation below is specifically generated for your database. -

-

- This is an auto-generating API, so as you make changes to your database, this - documentation will change too. -

-

- Note: if you make changes to a field (column) name or type, the API interface for - those fields will change correspondingly. Therefore, please make sure to update your API - implementation accordingly whenever you make changes to your Supabase schema from the - graphical interface. -

- -
-

Read the reference documentation:

-
- {libs.map((lib, i) => ( - - {lib.name} - {lib.name} - - ))} -
-
-
-
- -

API URL

-
-
-

The API URL for your project.

-
-
- -
-
- -

Client Libraries

-
-

Your API consists of both a RESTful interface and a Realtime interface.

-

- For interacting with the Realtime streams, we provide client libraries that handle the - websockets. -

-
-