Skip to content

Commit

Permalink
Cleared out console log
Browse files Browse the repository at this point in the history
  • Loading branch information
bioshazard committed Oct 15, 2023
1 parent 288a856 commit d59ba23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 46 deletions.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
27 changes: 2 additions & 25 deletions src/components/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() {
Expand Down
20 changes: 0 additions & 20 deletions src/hooks/useSupabase.js
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit d59ba23

Please sign in to comment.