diff --git a/packages/anastasis-webui/.gitignore b/packages/anastasis-webui/.gitignore index 7e0633d5e..5baa9defe 100644 --- a/packages/anastasis-webui/.gitignore +++ b/packages/anastasis-webui/.gitignore @@ -1,3 +1,4 @@ node_modules /build /*.log +/size-plugin.json diff --git a/packages/anastasis-webui/src/components/menu/LangSelector.tsx b/packages/anastasis-webui/src/components/menu/LangSelector.tsx index 41d08a58b..0f91abd7e 100644 --- a/packages/anastasis-webui/src/components/menu/LangSelector.tsx +++ b/packages/anastasis-webui/src/components/menu/LangSelector.tsx @@ -38,9 +38,9 @@ const names: LangsNames = { it: 'Italiano [it]', } -function getLangName(s: keyof LangsNames | string) { +function getLangName(s: keyof LangsNames | string): string { if (names[s]) return names[s] - return s + return String(s) } export function LangSelector(): VNode { diff --git a/packages/anastasis-webui/src/components/menu/index.tsx b/packages/anastasis-webui/src/components/menu/index.tsx index d15bf9264..febcd79c8 100644 --- a/packages/anastasis-webui/src/components/menu/index.tsx +++ b/packages/anastasis-webui/src/components/menu/index.tsx @@ -88,7 +88,7 @@ export function NotYetReadyAppMenu({ onLogout, title }: NotYetReadyAppMenuProps) return
diff --git a/packages/anastasis-webui/src/pages/home/AuthMethodQuestionSetup.tsx b/packages/anastasis-webui/src/pages/home/AuthMethodQuestionSetup.tsx index 7a0da7ebf..7699cdf34 100644 --- a/packages/anastasis-webui/src/pages/home/AuthMethodQuestionSetup.tsx +++ b/packages/anastasis-webui/src/pages/home/AuthMethodQuestionSetup.tsx @@ -5,7 +5,8 @@ import { } from "@gnu-taler/taler-util"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; -import { AuthMethodSetupProps, AnastasisClientFrame, LabeledInput } from "./index"; +import { AuthMethodSetupProps } from "./AuthenticationEditorScreen"; +import { AnastasisClientFrame, LabeledInput } from "./index"; export function AuthMethodQuestionSetup(props: AuthMethodSetupProps): VNode { const [questionText, setQuestionText] = useState(""); diff --git a/packages/anastasis-webui/src/pages/home/AuthMethodSmsSetup.tsx b/packages/anastasis-webui/src/pages/home/AuthMethodSmsSetup.tsx index d193f6eb7..6f4797275 100644 --- a/packages/anastasis-webui/src/pages/home/AuthMethodSmsSetup.tsx +++ b/packages/anastasis-webui/src/pages/home/AuthMethodSmsSetup.tsx @@ -5,7 +5,8 @@ import { } from "@gnu-taler/taler-util"; import { h, VNode } from "preact"; import { useState, useRef, useLayoutEffect } from "preact/hooks"; -import { AuthMethodSetupProps, AnastasisClientFrame } from "./index"; +import { AuthMethodSetupProps } from "./AuthenticationEditorScreen"; +import { AnastasisClientFrame } from "./index"; export function AuthMethodSmsSetup(props: AuthMethodSetupProps): VNode { const [mobileNumber, setMobileNumber] = useState(""); diff --git a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx index 5357891a9..fc28942aa 100644 --- a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx @@ -94,7 +94,7 @@ export function AuthenticationEditorScreen(props: AuthenticationEditorProps): VN ); } -interface AuthMethodSetupProps { +export interface AuthMethodSetupProps { method: string; addAuthMethod: (x: any) => void; cancel: () => void; diff --git a/packages/anastasis-webui/src/pages/home/SolveScreen.tsx b/packages/anastasis-webui/src/pages/home/SolveScreen.tsx index 46ff8227d..357a7c2d3 100644 --- a/packages/anastasis-webui/src/pages/home/SolveScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/SolveScreen.tsx @@ -1,11 +1,12 @@ import { h, VNode } from "preact"; -import { AnastasisReducerApi, ChallengeFeedback, ChallengeInfo } from "../../hooks/use-anastasis-reducer"; +import { AnastasisReducerApi } from "../../hooks/use-anastasis-reducer"; import { SolveEmailEntry } from "./SolveEmailEntry"; import { SolvePostEntry } from "./SolvePostEntry"; import { SolveQuestionEntry } from "./SolveQuestionEntry"; import { SolveSmsEntry } from "./SolveSmsEntry"; import { SolveUnsupportedEntry } from "./SolveUnsupportedEntry"; import { RecoveryReducerProps } from "./index"; +import { ChallengeInfo, ChallengeFeedback } from "../../../../anastasis-core/lib"; export function SolveScreen(props: RecoveryReducerProps): VNode { const chArr = props.recoveryState.recovery_information!.challenges;