The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Clean up console logs
Joshen Limef90666b37af
diff --git a/studio/components/interfaces/Functions/FunctionsListItem.tsx b/studio/components/interfaces/Functions/FunctionsListItem.tsxindex afb149f81b4..db721e96c4a 100644--- a/studio/components/interfaces/Functions/FunctionsListItem.tsx+++ b/studio/components/interfaces/Functions/FunctionsListItem.tsx@@ -14,8 +14,6 @@ interface Props {const FunctionsListItem: FC<Props> = ({ function: item }) => {const { ui } = useStore()-- console.log('_function', item)const is_functionConfirmed = item.email_confirmed_at || item.phone_confirmed_atconst router = useRouter()diff --git a/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx b/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsxindex 8bd1cf7e361..fed7ea84ebb 100644--- a/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx+++ b/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx@@ -15,7 +15,6 @@ const SavedQueriesItem: FC<Props> = ({ item }: Props) => {const router = useRouter()const { ref } = router.query- console.log('item in component', item)return (<><Table.tr key={item.id} className="expandable-tr">@@ -47,7 +46,9 @@ const SavedQueriesItem: FC<Props> = ({ item }: Props) => {type="alternative"iconRight={<IconPlay size={10} />}onClick={() =>- router.push(`/project/${ref}/logs-explorer?sql=${encodeURIComponent(item.content.sql)}`)+ router.push(+ `/project/${ref}/logs-explorer?sql=${encodeURIComponent(item.content.sql)}`+ )}>Rundiff --git a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx b/studio/components/to-be-cleaned/Charts/ChartHandler.tsxindex cd29ff6f485..5b8458d20e9 100644--- a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx+++ b/studio/components/to-be-cleaned/Charts/ChartHandler.tsx@@ -136,7 +136,6 @@ const ChartHandler: FC<Props> = ({}if (isUndefined(chartData)) {- console.log('i am undefined chart data')return (<div className="w-full h-52 flex flex-col space-y-4 items-center justify-center"><IconAlertCircle className="text-scale-700" />diff --git a/studio/components/ui/DatePicker/DatePicker.tsx b/studio/components/ui/DatePicker/DatePicker.tsxindex 3b53c88c482..417a50e48d9 100644--- a/studio/components/ui/DatePicker/DatePicker.tsx+++ b/studio/components/ui/DatePicker/DatePicker.tsx@@ -43,8 +43,6 @@ interface RootProps {const START_DATE_DEFAULT = new Date()const END_DATE_DEFAULT = new Date()-// console.log('START_DATE_DEFAULT', START_DATE_DEFAULT)-const START_TIME_DEFAULT = { HH: '00', mm: '00', ss: '00' }const END_TIME_DEFAULT = { HH: '23', mm: '59', ss: '59' }diff --git a/studio/pages/project/[ref]/functions/[id]/details.tsx b/studio/pages/project/[ref]/functions/[id]/details.tsxindex c34fdca806e..2c42719413f 100644--- a/studio/pages/project/[ref]/functions/[id]/details.tsx+++ b/studio/pages/project/[ref]/functions/[id]/details.tsx@@ -5,9 +5,7 @@ import FunctionsLayout from 'components/interfaces/Functions/FunctionsLayout'import CommandRender from 'components/interfaces/Functions/CommandRender'import { useRouter } from 'next/router'import { useEffect, useState } from 'react'-import { toJS } from 'mobx'-import { IconExternalLink, IconGlobe, IconTerminal, Loading } from '@supabase/ui'-import Link from 'next/link'+import { IconGlobe, IconTerminal } from '@supabase/ui'import dayjs from 'dayjs'import { NextPageWithLayout } from 'types'@@ -23,10 +21,6 @@ const PageLayout: NextPageWithLayout = () => {setSelectedFunction(functions.byId(id))}, [functions.isLoaded, ui.selectedProject])- // if (!functions.isLoading) return <></>-- console.log('selected', functions.byId(id))-const managementCommands: any = [{command: `supabase functions deploy ${selectedFunction?.slug}`,diff --git a/studio/pages/project/[ref]/logs-explorer/saved.tsx b/studio/pages/project/[ref]/logs-explorer/saved.tsxindex 074b4779e37..642ae52ba7d 100644--- a/studio/pages/project/[ref]/logs-explorer/saved.tsx+++ b/studio/pages/project/[ref]/logs-explorer/saved.tsx@@ -28,7 +28,6 @@ export const LogsExplorerPage: NextPage = () => {const saved = content.list()- console.log('saved in parent', saved.length)return (<LogsExplorerLayout><div className="flex flex-col gap-3">diff --git a/studio/stores/content/ProjectContentStore.ts b/studio/stores/content/ProjectContentStore.tsindex 1c8fddff0ad..cdf5abcd506 100644--- a/studio/stores/content/ProjectContentStore.ts+++ b/studio/stores/content/ProjectContentStore.ts@@ -116,7 +116,6 @@ export default class ProjectContentStore implements IProjectContentStore {}sqlSnippets(filter?: any) {- console.log('i ran')let arr = Object.values(this.data)if (!!filter) {const arr_filtered = arr