mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-05-24 13:45:03 +00:00

* remove supabase package * upgrade valibot * removed supabase package Migration not complete yet * update submodule * fixed some supabase errors * Add new fields to extension models - Added `id` field to `ExtPublish` - Expanded `DBExtension` with multiple new properties: - `api_version`, `author_id`, `created_at`, - `downloads`, `icon`, `identifier`, - `long_description`, `name`, - `readme`, `short_description`, - and `tarball_size` * Refactor: clean up unused Supabase imports - Removed commented-out Supabase imports from various files to streamline the codebase. - Updated `created_at` type in `ExtPublish` model from `date` to `string` for consistency. * update icon enum to union * fix type errors after removing supabase * format * more types fixed * feat: enhance command handling and update SDK version
14 lines
478 B
TypeScript
14 lines
478 B
TypeScript
import * as sb from "@supabase/supabase-js"
|
|
import { SUPABASE_ANON_KEY, SUPABASE_URL } from "./constants"
|
|
|
|
// export const supabase = createSB(SUPABASE_URL, SUPABASE_ANON_KEY)
|
|
export const supabase: sb.SupabaseClient = sb.createClient(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)
|