mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-20 05:29:17 +00:00
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.
This commit is contained in:
parent
a147de0bb3
commit
78dfaa6396
@ -1,5 +1,3 @@
|
||||
// import { SupabaseAPI } from "@kksh/supabase/api"
|
||||
// import type { Database } from "@kksh/supabase/types"
|
||||
import * as sb from "@supabase/supabase-js"
|
||||
import { SUPABASE_ANON_KEY, SUPABASE_URL } from "./constants"
|
||||
|
||||
|
@ -45,10 +45,10 @@ export const ExtensionStoreListItem = v.object({
|
||||
export type ExtensionStoreListItem = v.InferOutput<typeof ExtensionStoreListItem>
|
||||
|
||||
export enum PublishStateEnum {
|
||||
"public",
|
||||
"pending",
|
||||
"under_review",
|
||||
"private"
|
||||
public = "public",
|
||||
pending = "pending",
|
||||
under_review = "under_review",
|
||||
private = "private"
|
||||
}
|
||||
export const ExtensionPublishState = v.enum(PublishStateEnum)
|
||||
|
||||
@ -56,7 +56,7 @@ export const ExtPublish = v.object({
|
||||
id: v.number(),
|
||||
name: v.string(),
|
||||
tarball_path: v.string(),
|
||||
created_at: v.date(),
|
||||
created_at: v.string(),
|
||||
version: v.string(),
|
||||
manifest: KunkunExtManifest,
|
||||
shasum: v.string(),
|
||||
|
@ -5,7 +5,6 @@
|
||||
import { isCompatible } from "@kksh/api"
|
||||
import { copy_dir_all, db, decompressTarball } from "@kksh/api/commands"
|
||||
import type { ExtensionStoreListItem, ExtPackageJsonExtra } from "@kksh/api/models"
|
||||
// import { SBExt } from "@kksh/supabase/models"
|
||||
import { greaterThan, parse as parseSemver } from "@std/semver"
|
||||
import * as path from "@tauri-apps/api/path"
|
||||
import * as dialog from "@tauri-apps/plugin-dialog"
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { writeFileSync } from "fs"
|
||||
// import { type Database } from "@kksh/supabase/types"
|
||||
import { createClient } from "@supabase/supabase-js"
|
||||
|
||||
if (!process.env.SUPABASE_URL || !process.env.SUPABASE_ANON_KEY) {
|
||||
|
@ -9,8 +9,6 @@
|
||||
IconEnum,
|
||||
KunkunExtManifest
|
||||
} from "@kksh/api/models"
|
||||
// import { ExtPublishMetadata, ExtPublishSourceTypeEnum } from "@kksh/supabase/models"
|
||||
// import { type Tables } from "@kksh/supabase/types"
|
||||
import { Badge, Button, ScrollArea, Separator, Tooltip } from "@kksh/svelte5"
|
||||
import { Constants, IconMultiplexer } from "@kksh/ui"
|
||||
import { cn } from "@kksh/ui/utils"
|
||||
|
Loading…
x
Reference in New Issue
Block a user