Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
18 lines
1.8 KiB
TypeScript
18 lines
1.8 KiB
TypeScript
export const icon: "data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 124 124\"><path fill=\"%2380EEC0\" fill-rule=\"evenodd\" d=\"M55.75 27.155c-3.222-5.54-11.278-5.54-14.5 0L6.134 87.535C2.912 93.075 6.94 100 13.384 100h27.413c-2.753-2.407-3.773-6.57-1.69-10.142L65.704 44.27 55.75 27.155Z\" clip-rule=\"evenodd\"/><path fill=\"%2300DC82\" d=\"M78 40.4c2.667-4.533 9.333-4.533 12 0l29.06 49.4c2.667 4.533-.666 10.199-5.999 10.199H54.938c-5.333 0-8.666-5.666-6-10.199L78 40.4Z\"/></svg>";
|
|
export const UIStrings: {
|
|
/** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to serve modern formats like WebP. */
|
|
'modern-image-formats': string;
|
|
/** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to defer loading images which are not shown on screen. */
|
|
'offscreen-images': string;
|
|
/** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to automatically compress their images. */
|
|
'uses-optimized-images': string;
|
|
/** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to serve appropriately sized images to different devices. */
|
|
'uses-responsive-images': string;
|
|
/** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to prioritize the loading of the image that is part of the Largest Contentful Paint (LCP). */
|
|
'prioritize-lcp-image': string;
|
|
/** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to provide explicit `width` and `height` for images to prevent layout shift. */
|
|
'unsized-images': string;
|
|
};
|
|
export declare let id: string;
|
|
export declare let title: string;
|