diff options
43 files changed, 137 insertions, 75 deletions
diff --git a/packages/anastasis-webui/src/components/menu/SideBar.tsx b/packages/anastasis-webui/src/components/menu/SideBar.tsx index 6c8189fb9..023b2b63c 100644 --- a/packages/anastasis-webui/src/components/menu/SideBar.tsx +++ b/packages/anastasis-webui/src/components/menu/SideBar.tsx @@ -20,7 +20,7 @@ */ import { Fragment, h, VNode } from "preact"; -import { BackupStates, RecoveryStates } from "../../../../anastasis-core/lib"; +import { BackupStates, RecoveryStates } from "@gnu-taler/anastasis-core"; import { useAnastasisContext } from "../../context/anastasis"; import { Translate } from "../../i18n"; import { LangSelector } from "./LangSelector"; diff --git a/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts b/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts index 7b101baa0..b18610427 100644 --- a/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts +++ b/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts @@ -6,7 +6,7 @@ import { RecoveryStates, reduceAction, ReducerState, -} from "anastasis-core"; +} from "@gnu-taler/anastasis-core"; import { useState } from "preact/hooks"; const reducerBaseUrl = "http://localhost:5000/"; diff --git a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx index 9b067127d..e26ba706f 100644 --- a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { AddingProviderScreen as TestedComponent } from "./AddingProviderScreen"; diff --git a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx index 96b38e92d..d85aa5974 100644 --- a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx @@ -1,4 +1,4 @@ -import { AuthenticationProviderStatusOk } from "anastasis-core"; +import { AuthenticationProviderStatusOk } from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useEffect, useRef, useState } from "preact/hooks"; import { TextInput } from "../../components/fields/TextInput"; diff --git a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.stories.tsx index d48e94403..e61b13279 100644 --- a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { AttributeEntryScreen as TestedComponent } from "./AttributeEntryScreen"; diff --git a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx index c3c5d764b..1d5896e4d 100644 --- a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx @@ -1,4 +1,4 @@ -import { UserAttributeSpec, validators } from "anastasis-core"; +import { UserAttributeSpec, validators } from "@gnu-taler/anastasis-core"; import { isAfter, parse } from "date-fns"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; @@ -47,7 +47,7 @@ export function AttributeEntryScreen(): VNode { errorMessage={error} onConfirm={() => { if (!hasErrors) { - setAskUserIfSure(true) + setAskUserIfSure(true); } }} value={value} @@ -65,7 +65,7 @@ export function AttributeEntryScreen(): VNode { <AnastasisClientFrame title={withProcessLabel(reducer, "Who are you?")} hideNext={hasErrors ? "Complete the form." : undefined} - onNext={async () => isBackup ? setAskUserIfSure(true) : doConfirm() } + onNext={async () => (isBackup ? setAskUserIfSure(true) : doConfirm())} > {askUserIfSure ? ( <ConfirmModal @@ -74,10 +74,10 @@ export function AttributeEntryScreen(): VNode { description="The values in the form must be correct" label="I am sure" cancelLabel="Wait, I want to check" - onConfirm={() => doConfirm().then(() => setAskUserIfSure(false) )} + onConfirm={() => doConfirm().then(() => setAskUserIfSure(false))} > - You personal information is used to define the location where your - secret will be safely stored. If you forget what you have entered or + You personal information is used to define the location where your + secret will be safely stored. If you forget what you have entered or if there is a misspell you will be unable to recover your secret. </ConfirmModal> ) : null} @@ -123,7 +123,7 @@ for (let i = 0; i < 100; i++) { function AttributeEntryField(props: AttributeEntryFieldProps): VNode { return ( <div> - {props.spec.type === "date" && + {props.spec.type === "date" && ( <DateInput grabFocus={props.isFirst} label={props.spec.label} @@ -132,8 +132,8 @@ function AttributeEntryField(props: AttributeEntryFieldProps): VNode { error={props.errorMessage} bind={[props.value, props.setValue]} /> - } - {props.spec.type === 'number' && + )} + {props.spec.type === "number" && ( <PhoneNumberInput grabFocus={props.isFirst} label={props.spec.label} @@ -141,7 +141,7 @@ function AttributeEntryField(props: AttributeEntryFieldProps): VNode { error={props.errorMessage} bind={[props.value, props.setValue]} /> - } + )} {props.spec.type === "string" && ( <TextInput grabFocus={props.isFirst} diff --git a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx index 8acf1c8c8..240809476 100644 --- a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { AuthenticationEditorScreen as TestedComponent } from "./AuthenticationEditorScreen"; diff --git a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx index 91195971d..411efd569 100644 --- a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx @@ -1,4 +1,4 @@ -import { AuthMethod, ReducerStateBackup } from "anastasis-core"; +import { AuthMethod, ReducerStateBackup } from "@gnu-taler/anastasis-core"; import { ComponentChildren, Fragment, h, VNode } from "preact"; import { useState } from "preact/hooks"; import { useAnastasisContext } from "../../context/anastasis"; @@ -155,7 +155,10 @@ export function AuthenticationEditorScreen(): VNode { </div> ); } - const errors = configuredAuthMethods.length < 2 ? "There is not enough authentication methods." : undefined; + const errors = + configuredAuthMethods.length < 2 + ? "There is not enough authentication methods." + : undefined; const handleNext = async () => { const st = reducer.currentReducerState as ReducerStateBackup; if ((st.authentication_methods ?? []).length <= 2) { @@ -243,4 +246,3 @@ function AuthMethodNotImplemented(props: AuthMethodSetupProps): VNode { </AnastasisClientFrame> ); } - diff --git a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.stories.tsx index c3ff7e746..bb0c3c4b6 100644 --- a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { BackupFinishedScreen as TestedComponent } from "./BackupFinishedScreen"; diff --git a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx index 129f1e9e4..66473345f 100644 --- a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx @@ -1,4 +1,4 @@ -import { AuthenticationProviderStatusOk } from "anastasis-core"; +import { AuthenticationProviderStatusOk } from "@gnu-taler/anastasis-core"; import { format } from "date-fns"; import { h, VNode } from "preact"; import { useAnastasisContext } from "../../context/anastasis"; @@ -16,7 +16,7 @@ export function BackupFinishedScreen(): VNode { return <div>invalid state</div>; } const details = reducer.currentReducerState.success_details; - const providers = reducer.currentReducerState.authentication_providers ?? {} + const providers = reducer.currentReducerState.authentication_providers ?? {}; return ( <AnastasisClientFrame hideNav title="Backup success!"> @@ -27,17 +27,19 @@ export function BackupFinishedScreen(): VNode { <p>The backup is stored by the following providers:</p> {Object.keys(details).map((url, i) => { const sd = details[url]; - const p = providers[url] as AuthenticationProviderStatusOk + const p = providers[url] as AuthenticationProviderStatusOk; return ( <div key={i} class="box"> - <a href={url} target="_blank" rel="noreferrer">{p.business_name}</a> + <a href={url} target="_blank" rel="noreferrer"> + {p.business_name} + </a> <p> version {sd.policy_version} {sd.policy_expiration.t_ms !== "never" ? ` expires at: ${format( - new Date(sd.policy_expiration.t_ms), - "dd-MM-yyyy", - )}` + new Date(sd.policy_expiration.t_ms), + "dd-MM-yyyy", + )}` : " without expiration date"} </p> </div> diff --git a/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.stories.tsx index 56aee8763..3bd6a0c17 100644 --- a/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.stories.tsx @@ -23,7 +23,7 @@ import { ChallengeFeedbackStatus, RecoveryStates, ReducerState, -} from "anastasis-core"; +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { ChallengeOverviewScreen as TestedComponent } from "./ChallengeOverviewScreen"; diff --git a/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.tsx b/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.tsx index d0c9b2f5d..f24478d19 100644 --- a/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedback, ChallengeFeedbackStatus } from "anastasis-core"; +import { + ChallengeFeedback, + ChallengeFeedbackStatus, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useAnastasisContext } from "../../context/anastasis"; import { AnastasisClientFrame } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx index 0948d603e..dc1526864 100644 --- a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx @@ -20,7 +20,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { ContinentSelectionScreen as TestedComponent } from "./ContinentSelectionScreen"; diff --git a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx index aafde6e8c..2a480de48 100644 --- a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/camelcase */ -import { BackupStates, RecoveryStates } from "anastasis-core"; +import { BackupStates, RecoveryStates } from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { useAnastasisContext } from "../../context/anastasis"; diff --git a/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.stories.tsx index 4cbeb8308..ed669d1c9 100644 --- a/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.stories.tsx @@ -20,7 +20,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { EditPoliciesScreen as TestedComponent } from "./EditPoliciesScreen"; diff --git a/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.tsx b/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.tsx index 198209399..4e0dc2906 100644 --- a/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.tsx @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/camelcase */ -import { AuthMethod, Policy } from "anastasis-core"; +import { AuthMethod, Policy } from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { useAnastasisContext } from "../../context/anastasis"; diff --git a/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx index 9bebcfbc9..42ef57f39 100644 --- a/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { PoliciesPayingScreen as TestedComponent } from "./PoliciesPayingScreen"; diff --git a/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.stories.tsx index 1c05cd6e1..e005e7521 100644 --- a/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.stories.tsx @@ -20,7 +20,7 @@ */ import { encodeCrock, stringToBytes } from "@gnu-taler/taler-util"; -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { RecoveryFinishedScreen as TestedComponent } from "./RecoveryFinishedScreen"; diff --git a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.stories.tsx index 4a1cba6a8..3330f1679 100644 --- a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { ReviewPoliciesScreen as TestedComponent } from "./ReviewPoliciesScreen"; diff --git a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx index 0ed08e037..4253f4617 100644 --- a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx @@ -1,4 +1,4 @@ -import { AuthenticationProviderStatusOk } from "anastasis-core"; +import { AuthenticationProviderStatusOk } from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx index 3f2c6a245..310fd8700 100644 --- a/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { SecretEditorScreen as TestedComponent } from "./SecretEditorScreen"; diff --git a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx index 01ce3f0a7..df9b38879 100644 --- a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { SecretSelectionScreen as TestedComponent } from "./SecretSelectionScreen"; diff --git a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx index 7e517abfe..076d205b6 100644 --- a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx @@ -1,4 +1,7 @@ -import { AuthenticationProviderStatus, AuthenticationProviderStatusOk } from "anastasis-core"; +import { + AuthenticationProviderStatus, + AuthenticationProviderStatusOk, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../components/AsyncButton"; @@ -68,15 +71,15 @@ export function SecretSelectionScreen(): VNode { return <AddingProviderScreen onCancel={() => setManageProvider(false)} />; } - const provierInfo = provs[recoveryDocument.provider_url] as AuthenticationProviderStatusOk + const provierInfo = provs[ + recoveryDocument.provider_url + ] as AuthenticationProviderStatusOk; return ( <AnastasisClientFrame title="Recovery: Select secret"> <div class="columns"> <div class="column"> <div class="box" style={{ border: "2px solid green" }}> - <h1 class="subtitle"> - {provierInfo.business_name} - </h1> + <h1 class="subtitle">{provierInfo.business_name}</h1> <div class="block"> {currentVersion === 0 ? ( <p>Set to recover the latest version</p> @@ -135,11 +138,13 @@ function ChooseAnotherProviderScreen({ Choose a provider{" "} </option> {Object.keys(providers).map((url) => { - const p = providers[url] - if (!("methods" in p)) return null - return <option key={url} value={url}> - {p.business_name} - </option> + const p = providers[url]; + if (!("methods" in p)) return null; + return ( + <option key={url} value={url}> + {p.business_name} + </option> + ); })} </select> <div class="icon is-small is-left"> @@ -169,7 +174,9 @@ function SelectOtherVersionProviderScreen({ const [otherVersion, setOtherVersion] = useState( version > 0 ? String(version) : "", ); - const otherProviderInfo = providers[otherProvider] as AuthenticationProviderStatusOk + const otherProviderInfo = providers[ + otherProvider + ] as AuthenticationProviderStatusOk; return ( <AnastasisClientFrame hideNav title="Recovery: Select secret"> @@ -199,11 +206,13 @@ function SelectOtherVersionProviderScreen({ Choose a provider{" "} </option> {Object.keys(providers).map((url) => { - const p = providers[url] - if (!("methods" in p)) return null - return <option key={url} value={url}> - {p.business_name} - </option> + const p = providers[url]; + if (!("methods" in p)) return null; + return ( + <option key={url} value={url}> + {p.business_name} + </option> + ); })} </select> <div class="icon is-small is-left"> diff --git a/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx index 76d0700db..d97bfbfbb 100644 --- a/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx @@ -23,7 +23,7 @@ import { ChallengeFeedbackStatus, RecoveryStates, ReducerState, -} from "anastasis-core"; +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { SolveScreen as TestedComponent } from "./SolveScreen"; diff --git a/packages/anastasis-webui/src/pages/home/SolveScreen.tsx b/packages/anastasis-webui/src/pages/home/SolveScreen.tsx index b87dad2ce..c695b9b22 100644 --- a/packages/anastasis-webui/src/pages/home/SolveScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/SolveScreen.tsx @@ -3,7 +3,7 @@ import { AnastasisClientFrame } from "."; import { ChallengeFeedback, ChallengeFeedbackStatus, -} from "../../../../anastasis-core/lib"; +} from "@gnu-taler/anastasis-core"; import { Notifications } from "../../components/Notifications"; import { useAnastasisContext } from "../../context/anastasis"; import { authMethods, KnownAuthMethods } from "./authMethod"; diff --git a/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.stories.tsx index 245ad8889..a7a85fc60 100644 --- a/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { TruthsPayingScreen as TestedComponent } from "./TruthsPayingScreen"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx index 729fa8a1b..1e7053df5 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.tsx index e50c3bb20..7252ca2fd 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.stories.tsx index cbbc253e9..2a0e02dce 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.tsx index 5cff7bf01..3eea9c15f 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.stories.tsx index 3b67ee884..cbfcbb6cb 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.tsx index 1bbbbfc03..af7a62e6a 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.stories.tsx index 1fa9fd6ec..c24ab0503 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.tsx index 2636ca47c..f54f91d92 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.stories.tsx index e8961cccf..c33dbd785 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.tsx index 3370c76d0..61dad3f51 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx index 8743c5a73..8ac146708 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx index 347f9bf03..bd31fd5bf 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.stories.tsx index 7c5511c5a..0e454dd73 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.tsx index efadb9a9a..021589198 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/index.tsx b/packages/anastasis-webui/src/pages/home/authMethod/index.tsx index b4f649488..64cf07cd6 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/index.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/index.tsx @@ -1,4 +1,4 @@ -import { AuthMethod } from "anastasis-core"; +import { AuthMethod } from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import postalIcon from "../../../assets/icons/auth_method/postal.svg"; import questionIcon from "../../../assets/icons/auth_method/question.svg"; diff --git a/packages/anastasis-webui/src/pages/home/index.tsx b/packages/anastasis-webui/src/pages/home/index.tsx index d83442e62..ca6da8474 100644 --- a/packages/anastasis-webui/src/pages/home/index.tsx +++ b/packages/anastasis-webui/src/pages/home/index.tsx @@ -1,4 +1,4 @@ -import { BackupStates, RecoveryStates } from "anastasis-core"; +import { BackupStates, RecoveryStates } from "@gnu-taler/anastasis-core"; import { ComponentChildren, Fragment, diff --git a/packages/anastasis-webui/src/utils/index.tsx b/packages/anastasis-webui/src/utils/index.tsx index a8f6c3101..7ddeefef4 100644 --- a/packages/anastasis-webui/src/utils/index.tsx +++ b/packages/anastasis-webui/src/utils/index.tsx @@ -1,5 +1,9 @@ /* eslint-disable @typescript-eslint/camelcase */ -import { BackupStates, RecoveryStates, ReducerState } from "anastasis-core"; +import { + BackupStates, + RecoveryStates, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { FunctionalComponent, h, VNode } from "preact"; import { AnastasisProvider } from "../context/anastasis"; |