mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-20 21:49:16 +00:00

* feat: add required license field to manifest * chore: add license MIT to all templates * feat: add license check to jsr and npm validation * fix: supabase export split every item into its own subexport for better debugability * fix: supabase imports * feat: hide app when escape is pressed * fix: update package version in api test from 0.0.6 to 0.0.20 * fix: update test for kunkun extension with new version and commit details * fix: update kunkun extension test to use version 0.0.4 * fix: update kunkun extension test to reflect new version 0.0.20 and updated commit details * feat: display downloads in extension details * feat: add downloads display to store
20 lines
625 B
TypeScript
20 lines
625 B
TypeScript
import { SupabaseAPI } from "@kksh/supabase/api"
|
|
import type { Database } from "@kksh/supabase/types"
|
|
import { createClient, SupabaseClient } from "@supabase/supabase-js"
|
|
import { SUPABASE_ANON_KEY, SUPABASE_URL } from "./constants"
|
|
|
|
// export const supabase = createSB(SUPABASE_URL, SUPABASE_ANON_KEY)
|
|
export const supabase: SupabaseClient<Database> = createClient<Database>(
|
|
SUPABASE_URL,
|
|
SUPABASE_ANON_KEY,
|
|
{
|
|
auth: {
|
|
flowType: "pkce"
|
|
}
|
|
}
|
|
)
|
|
|
|
export const storage = supabase.storage
|
|
export const supabaseExtensionsStorage = supabase.storage.from("extensions")
|
|
export const supabaseAPI = new SupabaseAPI(supabase)
|