refactor: static single-provider settings form (no Add/Delete, form visible immediately); defaultSettings seeds one provider

This commit is contained in:
Hermes Agent committed 2026-09-19 16:19:34 +02:00
1 parent a26a1fd81e
commit bfd3638093
3 files changed
+53 -85

No files matched your search

+3 -2
View File
@@ -26,11 +26,12 @@ export const APINEX_BASE_URL = 'https://api.apinex.bond/v1'
const SETTINGS_KEY = 'settings'
export function defaultSettings (): Settings {
const p = createApinexProvider()
return {
version: 1,
auth: { mode: 'local' },
providers: [],
activeProviderId: null
providers: [p],
activeProviderId: p.id
}
}