[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix some building errors
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix some building errors |
Date: |
Tue, 19 Oct 2021 16:18:02 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new aac2bc38 fix some building errors
aac2bc38 is described below
commit aac2bc389a32b2e91494d097a3f3fc9560ddbfbc
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Oct 19 11:17:54 2021 -0300
fix some building errors
---
packages/anastasis-webui/.gitignore | 1 +
.../anastasis-webui/src/components/menu/LangSelector.tsx | 4 ++--
packages/anastasis-webui/src/components/menu/index.tsx | 2 +-
packages/anastasis-webui/src/declaration.d.ts | 13 +++++++++++++
.../anastasis-webui/src/pages/home/AttributeEntryScreen.tsx | 3 ++-
.../anastasis-webui/src/pages/home/AuthMethodEmailSetup.tsx | 3 ++-
.../anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx | 5 +++--
.../src/pages/home/AuthMethodQuestionSetup.tsx | 3 ++-
.../anastasis-webui/src/pages/home/AuthMethodSmsSetup.tsx | 3 ++-
.../src/pages/home/AuthenticationEditorScreen.tsx | 2 +-
packages/anastasis-webui/src/pages/home/SolveScreen.tsx | 3 ++-
11 files changed, 31 insertions(+), 11 deletions(-)
diff --git a/packages/anastasis-webui/.gitignore
b/packages/anastasis-webui/.gitignore
index 7e0633d5..5baa9def 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 41d08a58..0f91abd7 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 d15bf926..febcd79c 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 <div class={mobileOpen ? "has-aside-mobile-expanded" : ""}
onClick={() => setMobileOpen(false)}>
<NavigationBar onMobileMenu={() => setMobileOpen(!mobileOpen)}
title={title} />
- {onLogout && <Sidebar onLogout={onLogout} mobile={mobileOpen} />}
+ {onLogout && <Sidebar mobile={mobileOpen} />}
</div>
}
diff --git a/packages/anastasis-webui/src/declaration.d.ts
b/packages/anastasis-webui/src/declaration.d.ts
index bbff36e8..b32fb70f 100644
--- a/packages/anastasis-webui/src/declaration.d.ts
+++ b/packages/anastasis-webui/src/declaration.d.ts
@@ -2,3 +2,16 @@ declare module "*.css" {
const mapping: Record<string, string>;
export default mapping;
}
+declare module '*.svg' {
+ const content: any;
+ export default content;
+}
+declare module '*.jpeg' {
+ const content: any;
+ export default content;
+}
+declare module 'jed' {
+ const x: any;
+ export = x;
+ }
+
\ No newline at end of file
diff --git a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
index 4df99db9..6f87a335 100644
--- a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
@@ -1,7 +1,8 @@
/* eslint-disable @typescript-eslint/camelcase */
import { h, VNode } from "preact";
import { useState } from "preact/hooks";
-import { AnastasisReducerApi, ReducerStateRecovery, ReducerStateBackup } from
"../../hooks/use-anastasis-reducer";
+import { ReducerStateRecovery, ReducerStateBackup } from
"../../../../anastasis-core/lib";
+import { AnastasisReducerApi } from "../../hooks/use-anastasis-reducer";
import { AnastasisClientFrame, withProcessLabel, LabeledInput } from "./index";
export function AttributeEntryScreen(props: AttributeEntryProps): VNode {
diff --git a/packages/anastasis-webui/src/pages/home/AuthMethodEmailSetup.tsx
b/packages/anastasis-webui/src/pages/home/AuthMethodEmailSetup.tsx
index 9aa6855f..9567e0ef 100644
--- a/packages/anastasis-webui/src/pages/home/AuthMethodEmailSetup.tsx
+++ b/packages/anastasis-webui/src/pages/home/AuthMethodEmailSetup.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 AuthMethodEmailSetup(props: AuthMethodSetupProps): VNode {
const [email, setEmail] = useState("");
diff --git a/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx
b/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx
index 43dcde33..b58a5f57 100644
--- a/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx
+++ b/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx
@@ -5,7 +5,8 @@ import {
} from "@gnu-taler/taler-util";
import { h, VNode } from "preact";
import { useState } from "preact/hooks";
-import { AuthMethodSetupProps, LabeledInput } from "./index";
+import { AuthMethodSetupProps } from "./AuthenticationEditorScreen";
+import { LabeledInput } from "./index";
export function AuthMethodPostSetup(props: AuthMethodSetupProps): VNode {
const [fullName, setFullName] = useState("");
@@ -32,7 +33,7 @@ export function AuthMethodPostSetup(props:
AuthMethodSetupProps): VNode {
};
return (
- <div class={style.home}>
+ <div > {/* class={style.home} */}
<h1>Add {props.method} authentication</h1>
<div>
<p>
diff --git
a/packages/anastasis-webui/src/pages/home/AuthMethodQuestionSetup.tsx
b/packages/anastasis-webui/src/pages/home/AuthMethodQuestionSetup.tsx
index 7a0da7eb..7699cdf3 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 d193f6eb..6f479727 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 5357891a..fc28942a 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 46ff8227..357a7c2d 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;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: fix some building errors,
gnunet <=