diff options
author | Florian Dold <florian@dold.me> | 2022-10-31 12:51:45 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-31 12:51:45 +0100 |
commit | 234ee55882da7759591730be72f0940f82c52a05 (patch) | |
tree | 78508429c3fa3ae3e45110c4d368b841d669711e | |
parent | 402ecb1a14276cc064a738f02c2b5014f34e6f5b (diff) |
demobank-ui: bundle asses properly
-rw-r--r-- | packages/demobank-ui/Makefile | 6 | ||||
-rwxr-xr-x | packages/demobank-ui/build.mjs | 2 | ||||
-rw-r--r-- | packages/demobank-ui/src/pages/home/index.tsx | 20 |
3 files changed, 12 insertions, 16 deletions
diff --git a/packages/demobank-ui/Makefile b/packages/demobank-ui/Makefile index ae7474e2c..3c3a3f602 100644 --- a/packages/demobank-ui/Makefile +++ b/packages/demobank-ui/Makefile @@ -13,9 +13,5 @@ install: pnpm run check pnpm run build install -d $(spa_dir) - install ./dist/index.css $(spa_dir) - install ./dist/index.css.map $(spa_dir) - install ./dist/index.js $(spa_dir) - install ./dist/index.js.map $(spa_dir) - install ./dist/index.html $(spa_dir) + install ./dist/* $(spa_dir) diff --git a/packages/demobank-ui/build.mjs b/packages/demobank-ui/build.mjs index 6350804fb..63ddc1f25 100755 --- a/packages/demobank-ui/build.mjs +++ b/packages/demobank-ui/build.mjs @@ -92,7 +92,7 @@ export const buildConfig = { outdir: "dist", minify: false, loader: { - ".svg": "text", + ".svg": "file", ".png": "dataurl", ".jpeg": "dataurl", }, diff --git a/packages/demobank-ui/src/pages/home/index.tsx b/packages/demobank-ui/src/pages/home/index.tsx index c8caf2a92..0ee2aa20d 100644 --- a/packages/demobank-ui/src/pages/home/index.tsx +++ b/packages/demobank-ui/src/pages/home/index.tsx @@ -1517,16 +1517,16 @@ function QrCodeSection({ <section id="main" class="content"> <h1 class="nav">{i18n`Charge Taler Wallet`}</h1> <article> - <div class="qr-div"> - <p>{i18n`Use this QR code to withdraw to your mobile wallet:`}</p> - {QR({ text: talerWithdrawUri })} - <p> - Click <a id="linkqr" href={talerWithdrawUri}>{i18n`this link`}</a> to - open your Taler wallet! - </p> - <br /> - {abortButton} - </div> + <div class="qr-div"> + <p>{i18n`Use this QR code to withdraw to your mobile wallet:`}</p> + {QR({ text: talerWithdrawUri })} + <p> + Click <a id="linkqr" href={talerWithdrawUri}>{i18n`this link`}</a>{" "} + to open your Taler wallet! + </p> + <br /> + {abortButton} + </div> </article> </section> ); |