From d59ba239b0d531fe6fa62956ae58584097e671f4 Mon Sep 17 00:00:00 2001 From: Joe Still Date: Sun, 15 Oct 2023 15:52:56 -0500 Subject: [PATCH] Cleared out console log --- src/App.jsx | 2 +- src/components/Home.jsx | 27 ++------------------------- src/hooks/useSupabase.js | 20 -------------------- 3 files changed, 3 insertions(+), 46 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 6b7f367..925da82 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -43,7 +43,7 @@ export default function App() { ? extant : await supabase.from("psuedonyms").insert({ psuedonym }).select() - console.log("ACCOUNT", account) + // console.log("ACCOUNT", account) // Get boards list, and sub const boardsSelect = await supabase.from("boards").select(); diff --git a/src/components/Home.jsx b/src/components/Home.jsx index 191a4a7..da7cfd1 100644 --- a/src/components/Home.jsx +++ b/src/components/Home.jsx @@ -10,7 +10,7 @@ export default function Home(props) { const store = useContext(Store) // const [boards, setBoards] = useState() const boards = store.boards - console.log(boards) + // console.log(boards) useEffect( () => { // https://supabase.com/docs/reference/javascript/subscribe @@ -22,32 +22,9 @@ export default function Home(props) { // return () => { boardSubSub.unsubscribe() } }) - // useEffect( () => { - - // async function getBoards() { - // const { data } = await supabase.from("boards").select(); - // setBoards(data) - // } - // getBoards() - - // // TODO: postgres sub - // // return () => { } - // }, []) - - // async function getProfile() { - // const { data } = await supabase.from("profiles").select(); - // console.log("GET PROFILE", data) - // } - - // async function createProfile() { - // const { data } = await supabase.from("profiles") - // .insert({ persistanon }) - // // console.log("GET PROFILE", data) - // } - async function getSubs() { const { data } = await supabase.from("board_subs").select(); - console.log("GET subs", data) + // console.log("GET subs", data) } async function addSub() { diff --git a/src/hooks/useSupabase.js b/src/hooks/useSupabase.js index 5d3057a..911a0db 100644 --- a/src/hooks/useSupabase.js +++ b/src/hooks/useSupabase.js @@ -1,24 +1,4 @@ -// import { createClient } from "@supabase/supabase-js"; -// const dbCreds = { -// local: [ -// 'http://localhost:54321', -// 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0', -// ], -// dev: [ -// 'https://egwyahahiyjfwqswsanw.supabase.co', -// 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImVnd3lhaGFoaXlqZndxc3dzYW53Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTQwMzcxNjYsImV4cCI6MjAwOTYxMzE2Nn0.-8TSIQZa6cJILq0z7d-Hn6LbHwUwKagwop7fJuULItM', -// ], -// } -// export const supabase = createClient( -// // 'http://localhost:54321', -// // 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0', -// // 'https://egwyahahiyjfwqswsanw.supabase.co', -// // 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImVnd3lhaGFoaXlqZndxc3dzYW53Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTQwMzcxNjYsImV4cCI6MjAwOTYxMzE2Nn0.-8TSIQZa6cJILq0z7d-Hn6LbHwUwKagwop7fJuULItM', -// ...dbCreds.local, -// ); - import { createClient } from '@supabase/supabase-js' const supabaseUrl = import.meta.env.VITE_SUPABASE_URL const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY -console.log(supabaseUrl, supabaseAnonKey) export const supabase = createClient(supabaseUrl, supabaseAnonKey) \ No newline at end of file