Add copy-to-clipboard for crypto payment amounts and addresses.

Mount storefront JS assets, hide copy controls without JavaScript, and load per-page copy handling on checkout and order views.
This commit is contained in:
2026-09-14 15:20:17 +02:00
parent a9ffc57608
commit 0345fe042e
14 changed files with 190 additions and 5 deletions
+7 -1
View File
@@ -8,8 +8,10 @@ import path from 'node:path';
import {
getStorefrontCssDir,
getStorefrontImgDir,
getStorefrontJsDir,
storefrontCssUrlPrefix,
storefrontImgUrlPrefix
storefrontImgUrlPrefix,
storefrontJsUrlPrefix
} from './config/storefrontAssetPaths';
import { getPublicUploadsDir, publicUploadsUrlPrefix } from './config/uploadPaths';
import { AppModule } from './AppModule';
@@ -42,6 +44,10 @@ async function bootstrap() {
prefix: storefrontCssUrlPrefix
});
app.useStaticAssets(getStorefrontJsDir(), {
prefix: storefrontJsUrlPrefix
});
app.use(cookieParser());
if (nodeEnv === NodeEnv.Production) {