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>
131 lines
3.5 KiB
TypeScript
131 lines
3.5 KiB
TypeScript
export = stackPacks;
|
|
declare const stackPacks: ({
|
|
id: string;
|
|
title: string;
|
|
icon: string;
|
|
UIStrings: {
|
|
'modern-image-formats': string;
|
|
'offscreen-images': string;
|
|
'render-blocking-resources': string;
|
|
'unminified-css': string;
|
|
'efficient-animated-content': string;
|
|
'uses-responsive-images': string;
|
|
};
|
|
} | {
|
|
id: string;
|
|
title: string;
|
|
icon: string;
|
|
UIStrings: {
|
|
'total-byte-weight': string;
|
|
'unminified-warning': string;
|
|
'unused-javascript': string;
|
|
'uses-responsive-images': string;
|
|
'uses-rel-preload': string;
|
|
'dom-size': string;
|
|
};
|
|
} | {
|
|
id: string;
|
|
title: string;
|
|
icon: string;
|
|
UIStrings: {
|
|
'unused-css-rules': string;
|
|
'modern-image-formats': string;
|
|
'offscreen-images': string;
|
|
'render-blocking-resources': string;
|
|
'unminified-css': string;
|
|
'unminified-javascript': string;
|
|
'uses-long-cache-ttl': string;
|
|
'uses-optimized-images': string;
|
|
'uses-responsive-images': string;
|
|
'server-response-time': string;
|
|
'uses-rel-preconnect': string;
|
|
'uses-rel-preload': string;
|
|
'font-display': string;
|
|
};
|
|
} | {
|
|
id: string;
|
|
title: string;
|
|
icon: string;
|
|
UIStrings: {
|
|
'unused-css-rules': string;
|
|
'modern-image-formats': string;
|
|
'offscreen-images': string;
|
|
'render-blocking-resources': string;
|
|
'unused-javascript': string;
|
|
'uses-long-cache-ttl': string;
|
|
'uses-optimized-images': string;
|
|
'uses-responsive-images': string;
|
|
'prioritize-lcp-image': string;
|
|
};
|
|
} | {
|
|
id: string;
|
|
title: string;
|
|
icon: string;
|
|
UIStrings: {
|
|
'modern-image-formats': string;
|
|
'offscreen-images': string;
|
|
'disable-bundling': string;
|
|
'unminified-css': string;
|
|
'unminified-javascript': string;
|
|
'unused-javascript': string;
|
|
'uses-optimized-images': string;
|
|
'server-response-time': string;
|
|
'uses-rel-preconnect': string;
|
|
'uses-rel-preload': string;
|
|
'critical-request-chains': string;
|
|
'font-display': string;
|
|
};
|
|
} | {
|
|
id: string;
|
|
title: string;
|
|
icon: string;
|
|
UIStrings: {
|
|
'modern-image-formats': string;
|
|
'offscreen-images': string;
|
|
'uses-optimized-images': string;
|
|
'uses-responsive-images': string;
|
|
'prioritize-lcp-image': string;
|
|
'unsized-images': string;
|
|
};
|
|
} | {
|
|
id: string;
|
|
title: string;
|
|
icon: string;
|
|
UIStrings: {
|
|
'unminified-css': string;
|
|
'unminified-javascript': string;
|
|
'unused-javascript': string;
|
|
'server-response-time': string;
|
|
redirects: string;
|
|
'user-timings': string;
|
|
'dom-size': string;
|
|
};
|
|
} | {
|
|
id: string;
|
|
title: string;
|
|
icon: string;
|
|
UIStrings: {
|
|
"modern-image-formats": string;
|
|
"render-blocking-resources": string;
|
|
"efficient-animated-content": string;
|
|
"unused-javascript": string;
|
|
"server-response-time": string;
|
|
};
|
|
} | {
|
|
id: string;
|
|
title: string;
|
|
icon: string;
|
|
UIStrings: {
|
|
'unused-css-rules': string;
|
|
'modern-image-formats': string;
|
|
'unused-javascript': string;
|
|
'render-blocking-resources': string;
|
|
'unminified-css': string;
|
|
'unminified-javascript': string;
|
|
'uses-optimized-images': string;
|
|
'uses-rel-preconnect': string;
|
|
'uses-rel-preload': string;
|
|
'offscreen-images': string;
|
|
};
|
|
})[];
|