diff options
author | Sebastian <sebasjm@gmail.com> | 2022-06-05 23:10:51 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-06-05 23:11:38 -0300 |
commit | abb47b60ad6aa82f68c88c10b0fa614785cd123c (patch) | |
tree | 79fa39379ece376dd106c3865ca4b2f8531dc30d /packages/anastasis-webui/src/utils/index.tsx | |
parent | fee5de75624a1d8e42ac695876ab188ab2d92921 (diff) | |
download | wallet-core-abb47b60ad6aa82f68c88c10b0fa614785cd123c.tar.xz |
dev script without storybook
Diffstat (limited to 'packages/anastasis-webui/src/utils/index.tsx')
-rw-r--r-- | packages/anastasis-webui/src/utils/index.tsx | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/packages/anastasis-webui/src/utils/index.tsx b/packages/anastasis-webui/src/utils/index.tsx index 4dace0934..2e502cacb 100644 --- a/packages/anastasis-webui/src/utils/index.tsx +++ b/packages/anastasis-webui/src/utils/index.tsx @@ -1,5 +1,8 @@ /* eslint-disable @typescript-eslint/camelcase */ import { + AuthenticationProviderStatus, + AuthenticationProviderStatusError, + AuthenticationProviderStatusOk, BackupStates, RecoveryStates, ReducerState, @@ -115,6 +118,7 @@ const base = { ], authentication_providers: { "http://localhost:8086/": { + status: "ok", http_status: 200, annual_fee: "COL:0", business_name: "Anastasis Local", @@ -134,11 +138,12 @@ const base = { usage_fee: "COL:0", }, ], - salt: "WBMDD76BR1E90YQ5AHBMKPH7GW", + provider_salt: "WBMDD76BR1E90YQ5AHBMKPH7GW", storage_limit_in_megabytes: 16, truth_upload_fee: "COL:0", - }, + } as AuthenticationProviderStatusOk, "https://kudos.demo.anastasis.lu/": { + status: "ok", http_status: 200, annual_fee: "COL:0", business_name: "Anastasis Kudo", @@ -154,11 +159,12 @@ const base = { usage_fee: "COL:0", }, ], - salt: "WBMDD76BR1E90YQ5AHBMKPH7GW", + provider_salt: "WBMDD76BR1E90YQ5AHBMKPH7GW", storage_limit_in_megabytes: 16, truth_upload_fee: "COL:0", - }, + } as AuthenticationProviderStatusOk, "https://anastasis.demo.taler.net/": { + status: "ok", http_status: 200, annual_fee: "COL:0", business_name: "Anastasis Demo", @@ -178,23 +184,23 @@ const base = { usage_fee: "COL:0", }, ], - salt: "WBMDD76BR1E90YQ5AHBMKPH7GW", + provider_salt: "WBMDD76BR1E90YQ5AHBMKPH7GW", storage_limit_in_megabytes: 16, truth_upload_fee: "COL:0", - }, + } as AuthenticationProviderStatusOk, "http://localhost:8087/": { code: 8414, hint: "request to provider failed", - }, + } as AuthenticationProviderStatusError, "http://localhost:8088/": { code: 8414, hint: "request to provider failed", - }, + } as AuthenticationProviderStatusError, "http://localhost:8089/": { code: 8414, hint: "request to provider failed", - }, + } as AuthenticationProviderStatusError, }, } as Partial<ReducerState>; @@ -210,6 +216,7 @@ export const reducerStatesExample = { } as ReducerState, secretSelection: { ...base, + reducer_type: "recovery", recovery_state: RecoveryStates.SecretSelecting, } as ReducerState, recoveryFinished: { @@ -260,6 +267,7 @@ export const reducerStatesExample = { authEditing: { ...base, backup_state: BackupStates.AuthenticationsEditing, + reducer_type: "backup", } as ReducerState, backupAttributeEditing: { ...base, |