From 26e77181d8c1d44a27849679d35ac6ac871c1dcd Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 3 Oct 2023 13:28:44 -0300 Subject: [PATCH] icon link --- packages/demobank-ui/README.md | 9 ++++++- packages/demobank-ui/package.json | 2 +- packages/demobank-ui/src/pages/BankFrame.tsx | 26 ++++++++++---------- packages/demobank-ui/src/settings.ts | 2 ++ 4 files changed, 24 insertions(+), 15 deletions(-) diff --git a/packages/demobank-ui/README.md b/packages/demobank-ui/README.md index 1732b5f38..877799748 100644 --- a/packages/demobank-ui/README.md +++ b/packages/demobank-ui/README.md @@ -36,11 +36,18 @@ to the default settings: ``` globalThis.talerDemobankSettings = { - backendBaseURL: "https://bank.demo.taler.net/demobanks/default/", + // location of libeufin server + backendBaseURL: "https://bank.demo.taler.net/", allowRegistrations: true, bankName: "Taler Bank", // Show explainer text and navbar to other demo sites showDemoNav: true, + // href value of the icon in the top left + iconLinkURL: "https://demo.taler.net/", + // show the button "create random user" in registration form + allowRandomAccountCreation: true, + // do not create random password for random users + simplePasswordForRandomAccounts: true, // Names and links for other demo sites to show in the navbar demoSites: [ ["Landing", "https://demo.taler.net/"], diff --git a/packages/demobank-ui/package.json b/packages/demobank-ui/package.json index b430ebc24..17059afeb 100644 --- a/packages/demobank-ui/package.json +++ b/packages/demobank-ui/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@gnu-taler/demobank-ui", - "version": "0.9.3-dev.17", + "version": "0.9.3-dev.27", "license": "AGPL-3.0-OR-LATER", "type": "module", "scripts": { diff --git a/packages/demobank-ui/src/pages/BankFrame.tsx b/packages/demobank-ui/src/pages/BankFrame.tsx index fc8dfd599..6ab6ba3e4 100644 --- a/packages/demobank-ui/src/pages/BankFrame.tsx +++ b/packages/demobank-ui/src/pages/BankFrame.tsx @@ -14,19 +14,18 @@ GNU Taler; see the file COPYING. If not, see */ -import { Amounts, Logger, PaytoUriIBAN, TranslatedString, parsePaytoUri, stringifyPaytoUri } from "@gnu-taler/taler-util"; -import { NotificationMessage, notifyError, notifyException, useNotifications, useTranslationContext } from "@gnu-taler/web-util/browser"; -import { ComponentChildren, Fragment, h, VNode } from "preact"; -import { StateUpdater, useEffect, useErrorBoundary, useState } from "preact/hooks"; +import { Amounts, Logger, TranslatedString, parsePaytoUri } from "@gnu-taler/taler-util"; +import { notifyError, notifyException, useNotifications, useTranslationContext } from "@gnu-taler/web-util/browser"; +import { ComponentChildren, Fragment, VNode, h } from "preact"; +import { useEffect, useErrorBoundary, useState } from "preact/hooks"; +import logo from "../assets/logo-2021.svg"; +import { Attention } from "../components/Attention.js"; +import { CopyButton } from "../components/CopyButton.js"; import { LangSelector } from "../components/LangSelector.js"; import { useBackendContext } from "../context/backend.js"; -import { useBusinessAccountDetails } from "../hooks/circuit.js"; -import { bankUiSettings } from "../settings.js"; -import { useSettings } from "../hooks/settings.js"; -import { CopyButton, CopyIcon } from "../components/CopyButton.js"; -import logo from "../assets/logo-2021.svg"; import { useAccountDetails } from "../hooks/access.js"; -import { Attention } from "../components/Attention.js"; +import { useSettings } from "../hooks/settings.js"; +import { bankUiSettings } from "../settings.js"; import { RenderAmount } from "./PaytoWireTransferForm.js"; const GIT_HASH = typeof __GIT_HASH__ !== "undefined" ? __GIT_HASH__ : undefined; @@ -34,11 +33,12 @@ const VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : undefined; const versionText = VERSION ? GIT_HASH - ? `Version ${VERSION} (${GIT_HASH.substring(0, 8)})` + ? + Version {VERSION} ({GIT_HASH.substring(0, 8)}) + : VERSION : ""; -const logger = new Logger("BankFrame"); export function BankFrame({ children, @@ -83,7 +83,7 @@ export function BankFrame({