fix(plugin): dropdown data prop, always show guide, add config export/import

This commit is contained in:
2026-06-28 17:43:36 +08:00
parent 4b7efd3c5c
commit 3196812c0d
4 changed files with 172 additions and 63 deletions
+24 -1
View File
@@ -73,4 +73,27 @@ export const uploadToDeckyvault = callable<[
export const testApiKey = callable<[apiKey: string, baseUrl?: string], {
valid: boolean
error?: string
}>("test_api_key")
}>("test_api_key")
// ── Config Export/Import ────────────────────────────────────────
export const exportConfig = callable<[settings: {
apiKey: string
exportPath: string
baseUrl: string
hardwareSlug: string | null
}], {
success: boolean
path?: string
error?: string
}>("export_config")
export const importConfig = callable<[], {
success: boolean
settings?: {
apiKey: string
exportPath: string
baseUrl: string
hardwareSlug: string | null
}
error?: string
}>("import_config")