bank prebuilt

This commit is contained in:
Sebastian 2023-03-02 14:43:08 -03:00
parent 36956f404c
commit 5f7a09e8da
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069
6 changed files with 24 additions and 10 deletions

View File

@ -42,6 +42,18 @@ backoffice-prebuilt:
pnpm run --filter @gnu-taler/merchant-backoffice-ui... build
./copy-backoffice-into-prebuilt.sh
.PHONY: backend-prebuilt
backend-prebuilt:
pnpm install --frozen-lockfile --filter @gnu-taler/merchant-backend-ui...
pnpm run --filter @gnu-taler/merchant-backend... build
./copy-backend-into-prebuilt.sh
.PHONY: demobank-prebuilt
demobank-prebuilt:
pnpm install --frozen-lockfile --filter @gnu-taler/merchant-ba...
pnpm run --filter @gnu-taler/demobank-ui... build
./copy-demobank-into-prebuilt.sh
# make documentation from docstrings
.PHONY: typedoc
typedoc:

8
copy-demobank-into-prebuilt.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
[ ! -d prebuilt ] && echo 'directory "prebuilt" not found. first checkout the prebuilt branch into a prebuilt directory' && exit 1
for file in index.html index.js index.css; do
cp packages/demobank-ui/dist/$file prebuilt/demobank/
done

View File

@ -13,7 +13,7 @@
"test": "pnpm compile && mocha --require source-map-support/register 'dist/**/*.test.js' 'dist/**/test.js'",
"test:coverage": "nyc pnpm test",
"compile": "tsc && ./build-fast-with-linaria.mjs",
"prepare": "pnpm compile",
"prepare": "tsc",
"dev": "./dev.mjs",
"pretty": "prettier --write src",
"i18n:extract": "pogen extract",

View File

@ -55,12 +55,6 @@ export function useComponentState({
),
};
}
// if (hook.hasError) {
// return {
// status: "loading-uri",
// error: hook,
// };
// }
const {
contractTerms,

View File

@ -376,15 +376,15 @@ export function Application(): VNode {
<Route
path={Pages.ctaDeposit}
component={({
amountStr,
amount,
talerDepositUri,
}: {
amountStr: string;
amount: string;
talerDepositUri: string;
}) => (
<CallToActionTemplate title={i18n.str`Digital cash deposit`}>
<DepositPageCTA
amountStr={amountStr}
amountStr={amount}
talerDepositUri={talerDepositUri}
cancel={() => redirectTo(Pages.balance)}
onSuccess={(tid: string) =>