wallet-core/packages/demobank-ui
2022-12-21 12:58:27 -03:00
..
contrib repo: integrate packages from former merchant-backoffice.git 2022-10-24 10:46:14 +02:00
src fix #7524: do not break if the account is in an invalid state 2022-12-20 10:17:02 -03:00
.gitignore removed storybook ashes 2022-12-09 08:31:11 -03:00
build.mjs refactoring transaction component to standard component with test and examples 2022-12-14 15:35:28 -03:00
copyleft-header.js copyleft header 2022-12-09 09:09:20 -03:00
dev.mjs using web-utils in demobank 2022-12-06 11:25:05 -03:00
Makefile fix: install doesn't work if there is directory inside 2022-12-21 12:58:27 -03:00
package.json missing dependency 2022-12-20 15:14:51 -03:00
README.md demobank-ui: handle per-deployment customization 2022-10-31 13:11:40 +01:00
TODO several minor fixes worked out 2022-10-27 14:27:41 -03:00
tsconfig.json fix jsx config 2022-12-07 16:08:18 -03:00

Taler Demobank UI

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 = {
  allowRegistrations: true,
  bankName: "Taler Bank",
  // Show explainer text and navbar to other demo sites
  showDemoNav: 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/"],
  ],
};