demobank-ui: bundle asses properly

This commit is contained in:
Florian Dold 2022-10-31 12:51:45 +01:00
parent 402ecb1a14
commit 234ee55882
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 12 additions and 16 deletions

View File

@ -13,9 +13,5 @@ install:
pnpm run check pnpm run check
pnpm run build pnpm run build
install -d $(spa_dir) install -d $(spa_dir)
install ./dist/index.css $(spa_dir) install ./dist/* $(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)

View File

@ -92,7 +92,7 @@ export const buildConfig = {
outdir: "dist", outdir: "dist",
minify: false, minify: false,
loader: { loader: {
".svg": "text", ".svg": "file",
".png": "dataurl", ".png": "dataurl",
".jpeg": "dataurl", ".jpeg": "dataurl",
}, },

View File

@ -1517,16 +1517,16 @@ function QrCodeSection({
<section id="main" class="content"> <section id="main" class="content">
<h1 class="nav">{i18n`Charge Taler Wallet`}</h1> <h1 class="nav">{i18n`Charge Taler Wallet`}</h1>
<article> <article>
<div class="qr-div"> <div class="qr-div">
<p>{i18n`Use this QR code to withdraw to your mobile wallet:`}</p> <p>{i18n`Use this QR code to withdraw to your mobile wallet:`}</p>
{QR({ text: talerWithdrawUri })} {QR({ text: talerWithdrawUri })}
<p> <p>
Click <a id="linkqr" href={talerWithdrawUri}>{i18n`this link`}</a> to Click <a id="linkqr" href={talerWithdrawUri}>{i18n`this link`}</a>{" "}
open your Taler wallet! to open your Taler wallet!
</p> </p>
<br /> <br />
{abortButton} {abortButton}
</div> </div>
</article> </article>
</section> </section>
); );