refactor: static single-provider settings form (no Add/Delete, form visible immediately); defaultSettings seeds one provider
This commit is contained in:
1 parent
a26a1fd81e
commit
bfd3638093
3 files changed
+53
-85
No files matched your search
+3
-2
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user