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
@@ -4,9 +4,13 @@ export const storefrontImgUrlPrefix = '/shop/assets/img';
export const storefrontCssUrlPrefix = '/shop/assets/css';
export const storefrontJsUrlPrefix = '/shop/assets/js';
export const getStorefrontPublicDir = (): string =>
path.join(__dirname, '..', 'modules', 'storefrontCore', 'public');
export const getStorefrontImgDir = (): string => path.join(getStorefrontPublicDir(), 'img');
export const getStorefrontCssDir = (): string => path.join(getStorefrontPublicDir(), 'css');
export const getStorefrontJsDir = (): string => path.join(getStorefrontPublicDir(), 'js');