fix: prevent asset conflicts between React and Grid.js versions

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>
This commit is contained in:
dwindown
2026-04-18 17:02:14 +07:00
parent bd9cdac02e
commit e8fbfb14c1
74973 changed files with 6658406 additions and 71 deletions

3
node_modules/js-library-detector/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,3 @@
*
!library/**
!.npmignore

8
node_modules/js-library-detector/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,8 @@
The MIT License (MIT)
Copyright (c) 2010-2016 Andrew Bredow, John Michel, and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

190
node_modules/js-library-detector/README.md generated vendored Normal file
View File

@@ -0,0 +1,190 @@
[Library Detector For Chrome](https://chrome.google.com/webstore/detail/library-detector/cgaocdmhkmfnkdkbnckgmpopcbpaaejo?hl=en)
===========================
[![](https://img.shields.io/chrome-web-store/v/cgaocdmhkmfnkdkbnckgmpopcbpaaejo.svg?style=flat-square)
![](https://img.shields.io/chrome-web-store/d/cgaocdmhkmfnkdkbnckgmpopcbpaaejo.svg?style=flat-square)
![](https://img.shields.io/chrome-web-store/stars/cgaocdmhkmfnkdkbnckgmpopcbpaaejo.svg?style=flat-square)
![](https://img.shields.io/chrome-web-store/rating-count/cgaocdmhkmfnkdkbnckgmpopcbpaaejo.svg?style=flat-square)](https://chrome.google.com/webstore/detail/library-detector/cgaocdmhkmfnkdkbnckgmpopcbpaaejo?hl=en)
[![](https://img.shields.io/npm/v/js-library-detector.svg?style=flat-square)](https://npm.im/js-library-detector)
The Library Detector extension discovers which JavaScript libraries are being
utilized on webpages that you visit and displays their icons on the Chrome Menu. Currently
supports:
- [AMP](https://amp.dev/)
- [AmplifyJS](http://amplifyjs.com/)
- [Angular](https://angular.io/)
- [AngularJS](https://angularjs.org/)
- [Backbone](http://backbonejs.org/)
- [base2](http://code.google.com/p/base2)
- [Bento](https://bentojs.dev)
- [boomerang.js](https://soasta.github.io/boomerang/)
- [Bootstrap](http://getbootstrap.com/)
- [Boq](https://github.com/johnmichel/Library-Detector-for-Chrome/pull/143)
- [Brewser](https://robertpataki.github.io/brewser/)
- [CamanJS](http://camanjs.com/)
- [Can](https://canjs.com/)
- [Closure Library](https://developers.google.com/closure/library/)
- [ControlJS](http://stevesouders.com/controljs/)
- [core-js](https://github.com/zloirock/core-js)
- [Create React App](https://create-react-app.dev/)
- [CreateJS](https://createjs.com/)
- [D3](https://d3js.org/)
- [DC.js](http://dc-js.github.io/dc.js/)
- [Dojo](http://dojotoolkit.org)
- [Drupal](https://www.drupal.org/)
- [Ember.js](https://emberjs.com/)
- [Ext JS](https://www.sencha.com/products/extjs/)
- [Ezoic](https://www.ezoic.com/)
- [Fabric.js](http://fabricjs.com/)
- [FastClick](https://github.com/ftlabs/fastclick)
- [FlexSlider](https://woocommerce.com/flexslider/)
- [FlotCharts](http://www.flotcharts.org/)
- [Framer](https://framer.com/)
- [FuseJS](http://fusejs.io/)
- [Gatsby](https://www.gatsbyjs.org/)
- [Glow](http://www.bbc.co.uk/glow/)
- [Google Maps](https://developers.google.com/maps/)
- [gRapha&euml;l](https://github.com/DmitryBaranovskiy/g.raphael)
- [GreenSock JS](https://greensock.com/gsap)
- [Guess.js](https://guess-js.github.io/)
- [GWT](http://www.gwtproject.org/)
- [Hammer.js](http://eightmedia.github.io/hammer.js/)
- [Handlebars](http://handlebarsjs.com/)
- [Handsontable](https://handsontable.com/)
- [Head JS](http://headjs.com/)
- [Highcharts](http://www.highcharts.com)
- [IfVisible.js](http://serkanyersen.github.io/ifvisible.js/)
- [InfoVis](http://philogb.github.com/jit/)
- [Ink](http://ink.sapo.pt/)
- [Ionic](https://ionicframework.com/)
- [Isotope](https://isotope.metafizzy.co/)
- [Joomla](https://www.joomla.org/)
- [jQuery](http://jquery.com)
- [jQuery (Fast path)](http://jquery.com)
- [jQuery Mobile](http://jquerymobile.com/)
- [jQuery Tools](http://jquerytools.github.io/)
- [jQuery UI](http://jqueryui.com)
- [Kendo UI](https://github.com/telerik/kendo-ui-core)
- [Knockout](http://knockoutjs.com/)
- [LABjs](https://github.com/getify/LABjs)
- [Leaflet](http://leafletjs.com)
- [lit-html](https://lit-html.polymer-project.org/)
- [LitElement](https://lit-element.polymer-project.org/)
- [Lo-Dash](https://lodash.com/)
- [Magento](https://magento.com/)
- [Mapbox](https://www.mapbox.com/)
- [Marionette](https://marionettejs.com/)
- [Marko](https://markojs.com/)
- [Material Design Lite](https://getmdl.io/)
- [Matter.js](http://brm.io/matter-js/)
- [MochiKit](https://mochi.github.io/mochikit/)
- [Modernizr](https://modernizr.com/)
- [Moment Timezone](http://momentjs.com/timezone/)
- [Moment.js](http://momentjs.com/)
- [MooTools](https://mootools.net/)
- [Move](https://github.com/rsms/move)
- [Mustache](http://mustache.github.io/)
- [Next.js](https://nextjs.org/)
- [Next.js (Fast path)](https://nextjs.org/)
- [NitroPack](https://nitropack.io/)
- [Numeral.js](http://numeraljs.com/)
- [Nuxt.js](https://nuxtjs.org/)
- [Nuxt.js (Fast path)](https://nuxtjs.org/)
- [October CMS](https://octobercms.com/)
- [Paper.js](http://paperjs.org/)
- [PhiloGL](http://www.senchalabs.org/philogl/)
- [Pixi.js](http://www.pixijs.com/)
- [Polymer](https://www.polymer-project.org/)
- [Popcorn.js](https://github.com/mozilla/popcorn-js/)
- [Preact](https://preactjs.com/)
- [Preact (Fast path)](https://preactjs.com/)
- [Processing.js](http://processingjs.org)
- [Prototype](http://prototypejs.org)
- [Pusher](https://pusher.com/docs/)
- [Qooxdoo](http://www.qooxdoo.org/)
- [Rapha&euml;l](http://dmitrybaranovskiy.github.io/raphael/)
- [React](https://reactjs.org/)
- [React (Fast path)](https://reactjs.org/)
- [Remix](https://remix.run/)
- [RequireJS](http://requirejs.org/)
- [Rico](http://openrico.sourceforge.net/examples/index.html)
- [RightJS](http://rightjs.org/)
- [Riot](http://riotjs.com/)
- [Sammy](http://sammyjs.org)
- [Scriptaculous](http://script.aculo.us)
- [ScrollMagic](http://scrollmagic.io/)
- [Sea.js](https://seajs.github.io/seajs/docs/)
- [Shopify](https://www.shopify.com/)
- [Socket.IO](https://socket.io/)
- [SPF](https://youtube.github.io/spfjs/)
- [Spine](http://spine.github.io/)
- [SproutCore](http://sproutcore.com/)
- [Spry](http://labs.adobe.com/technologies/spry)
- [Sugar](https://sugarjs.com)
- [SWFObject](https://github.com/swfobject/swfobject)
- [Swiffy](https://developers.google.com/swiffy/)
- [three.js](https://threejs.org/)
- [Tween.js](https://github.com/tweenjs/tween.js)
- [Two](https://two.js.org/)
- [TYPO3](https://typo3.org/)
- [Underscore](http://underscorejs.org/)
- [Vaadin](https://vaadin.com/)
- [Velocity.js](http://velocityjs.org/)
- [Visibility.js](https://github.com/ai/visibilityjs)
- [Vue](https://vuejs.org/)
- [Vue (Fast path)](https://vuejs.org/)
- [WebFont Loader](https://github.com/typekit/webfontloader)
- [Wix](https://www.wix.com/)
- [Wiz](https://github.com/johnmichel/Library-Detector-for-Chrome/pull/147)
- [WordPress](https://wordpress.org/)
- [Workbox](https://developers.google.com/web/tools/workbox/)
- [WP Rocket](https://wp-rocket.me/)
- [yepnope](http://yepnopejs.com/)
- [YUI 2](http://developer.yahoo.com/yui/2/)
- [YUI 3](https://yuilibrary.com/)
- [Zepto.js](http://zeptojs.com)
- [Zurb](https://foundation.zurb.com/)
### To run the development version of the plugin
1. Clone the Git repo from Github `git clone git@github.com:johnmichel/Library-Detector-for-Chrome.git LibraryDetector`
2. Navigate to `chrome://extensions` in Chrome
3. Expand the "Developer Mode" section
4. Click "Load unpacked extension..." and select the `LibraryDetector` folder
### Contributors
- [Andrew Bredow](http://andrewbredow.com)
- [John Michel](https://cowbird.org)
- [Artem Nezvigin](http://artnez.com) (Multiple library icon concept)
- [Karl Swedberg](https://karlswedberg.com/)
- [Joseph Lust](https://lustforge.com/)
- [Eliot Sykes](https://www.eliotsykes.com)
- [John-David Dalton](http://allyoucanleet.com/)
- [Tan Le](https://github.com/tancnle)
- [Serkan Yerşen](http://serkan.io/)
- [Robert Pataki](https://robertpataki.com/)
- [Andrii Vakarev](https://github.com/avakarev)
- [Allan Esquina](https://github.com/allanesquina)
- [Derek Peterson](http://www.derekpetey.com/)
- [Arnaud Ligny](http://narno.org)
- [Adrian Chia](https://github.com/adrianchia)
- [Julian Shapiro](https://www.julian.com/)
- [Olov Günther-Hanssen](https://github.com/eolognt)
- [Dmitri Suvorov](https://github.com/suvjunmd)
- [Andrii Vakarev](https://github.com/avakarev)
- [François Richard](https://github.com/iamWh1sp3r)
- [Derek Peterson](https://derekpeterson.me/)
- [Artem Riasnianskyi](https://github.com/asci)
- [Piotr Kaminski](https://github.com/pkaminski)
- [Cristian Douce](https://github.com/cristiandouce)
- [Vinicius Reis](https://github.com/vinicius73)
- [Rick Viscomi](https://github.com/rviscomi)
- [Emmanuel Krebs](https://github.com/e-krebs)
- [Patrick Hulce](https://github.com/patrickhulce)
- [Ajaykumar Prathap](https://github.com/ajay2507)
- [Benni Mack](https://github.com/bmack)
### Inspiration
Library detection class inspired by [Paul Bakaus'](https://paulbakaus.com/) [Library Detector for Firefox](https://addons.mozilla.org/en-us/firefox/addon/library-detector/)

1975
node_modules/js-library-detector/library/libraries.js generated vendored Normal file

File diff suppressed because it is too large Load Diff

63
node_modules/js-library-detector/package.json generated vendored Normal file
View File

@@ -0,0 +1,63 @@
{
"name": "js-library-detector",
"version": "6.7.0",
"description": "Detects the JavaScript libraries running on a page",
"main": "library/libraries.js",
"scripts": {
"test": "node test/object-test.js",
"release": "node release.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/johnmichel/Library-Detector-for-Chrome.git"
},
"keywords": [
"javascript",
"libraries",
"googlechrome"
],
"author": "John Michel <johnmichel@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/johnmichel/Library-Detector-for-Chrome/issues"
},
"chrome": {
"name": "Library Detector",
"id": "cgaocdmhkmfnkdkbnckgmpopcbpaaejo",
"url": "https://chrome.google.com/webstore/detail/library-detector/cgaocdmhkmfnkdkbnckgmpopcbpaaejo?hl=en"
},
"homepage": "https://github.com/johnmichel/Library-Detector-for-Chrome#readme",
"contributors": [
{"name":"Andrew Bredow","url":"http://andrewbredow.com"},
{"name":"John Michel","url":"https://cowbird.org"},
{"name":"Artem Nezvigin","url":"http://artnez.com", "comment": "(Multiple library icon concept)"},
{"name":"Karl Swedberg","url":"https://karlswedberg.com/"},
{"name":"Joseph Lust","url":"https://lustforge.com/"},
{"name":"Eliot Sykes","url":"https://www.eliotsykes.com"},
{"name":"John-David Dalton","url":"http://allyoucanleet.com/"},
{"name":"Tan Le","url":"https://github.com/tancnle"},
{"name":"Serkan Yerşen","url":"http://serkan.io/"},
{"name":"Robert Pataki","url":"https://robertpataki.com/"},
{"name":"Andrii Vakarev","url":"https://github.com/avakarev"},
{"name":"Allan Esquina","url":"https://github.com/allanesquina"},
{"name":"Derek Peterson","url":"http://www.derekpetey.com/"},
{"name":"Arnaud Ligny","url":"http://narno.org"},
{"name":"Adrian Chia","url":"https://github.com/adrianchia"},
{"name":"Julian Shapiro","url":"https://www.julian.com/"},
{"name":"Olov Günther-Hanssen","url":"https://github.com/eolognt"},
{"name":"Dmitri Suvorov","url":"https://github.com/suvjunmd"},
{"name":"Andrii Vakarev","url":"https://github.com/avakarev"},
{"name":"François Richard","url":"https://github.com/iamWh1sp3r"},
{"name":"Derek Peterson","url":"https://derekpeterson.me/"},
{"name":"Artem Riasnianskyi","url":"https://github.com/asci"},
{"name":"Piotr Kaminski","url":"https://github.com/pkaminski"},
{"name":"Cristian Douce","url":"https://github.com/cristiandouce"},
{"name":"Vinicius Reis","url":"https://github.com/vinicius73"},
{"name":"Rick Viscomi","url":"https://github.com/rviscomi"},
{"name":"Emmanuel Krebs","url":"https://github.com/e-krebs"},
{"name":"Patrick Hulce","url":"https://github.com/patrickhulce"},
{"name":"Ajaykumar Prathap","url":"https://github.com/ajay2507"},
{"name":"Benni Mack","url":"https://github.com/bmack"}
],
"engines" : { "node" : ">=12" }
}