wallet-core/packages/demobank-ui
2023-10-14 00:00:32 -03:00
..
contrib repo: integrate packages from former merchant-backoffice.git 2022-10-24 10:46:14 +02:00
src show operation not found 2023-10-14 00:00:32 -03:00
.gitignore using new localStorage api, pageState => settings, notifcation using observer api 2023-04-14 14:16:25 -03:00
build.mjs some ui 2023-09-25 14:50:38 -03:00
copyleft-header.js copyleft header 2022-12-09 09:09:20 -03:00
dev.mjs more ui 2023-09-29 16:02:15 -03:00
Makefile build system: support DESTDIR 2023-09-28 17:50:53 +02:00
package.json relase demobank to test 2023-10-09 09:05:40 -03:00
postcss.config.js some ui 2023-09-25 14:50:38 -03:00
README.md icon link 2023-10-03 13:51:58 -03:00
tailwind.config.js some ui 2023-09-25 14:50:38 -03:00
test.mjs new asset api 2023-06-01 14:26:07 -03:00
TODO several minor fixes worked out 2022-10-27 14:27:41 -03:00
tsconfig.json move bank API client to taler-util, update typescript config 2023-09-06 13:24:34 +02:00

Taler Demobank UI

Web-based user interface for the libeufin demobank.

CLI Commands

  • pnpm install: Installs dependencies

  • pnpm run build: Create a production-ready build under dist/.

  • pnpm run check: Run type checker

  • pnpm run lint: Pass TypeScript files using ESLint

Testing

By default, the demobank-ui points to https://bank.demo.taler.net/demobanks/default/ as the bank access API base URL.

This can be changed for testing by setting the URL via local storage (via your browser's devtools):

localStorage.setItem("bank-base-url", OTHER_URL);

Customizing Per-Deployment Settings

To customize per-deployment settings, make sure that the demobank-ui-settings.js file is served alongside the UI.

This file is loaded before the SPA and can do customizations by changing globalThis..

For example, the following settings would correspond to the default settings:

globalThis.talerDemobankSettings = {
  // 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/"],
    ["Bank", "https://bank.demo.taler.net/"],
    ["Essay Shop", "https://shop.demo.taler.net/"],
    ["Donations", "https://donations.demo.taler.net/"],
    ["Survey", "https://donations.demo.taler.net/"],
  ],
};