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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user