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

14
node_modules/globjoin/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,14 @@
## globjoin changelog
### 2016/02/16 - 0.1.4
* NPM: Remove accidental dependency.
### 2016/02/15 - 0.1.3
* Bug Fix: Should use Array.prototype.slice().
* Misc: Remove unused test fixtures.
### 2015/12/24 - 0.1.2
First Release

22
node_modules/globjoin/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2016 amobiz
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.

54
node_modules/globjoin/README.md generated vendored Normal file
View File

@@ -0,0 +1,54 @@
# globjoin
Join paths and globs.
[![MIT](http://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/amobiz/globjoin/blob/master/LICENSE) [![npm version](https://badge.fury.io/js/globjoin.svg)](http://badge.fury.io/js/globjoin) [![David Dependency Badge](https://david-dm.org/amobiz/globjoin.svg)](https://david-dm.org/amobiz/globjoin)
[![NPM](https://nodei.co/npm/globjoin.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/globjoin.png?downloads=true&downloadRank=true&stars=true) [![NPM](https://nodei.co/npm-dl/globjoin.png?months=6&height=3)](https://nodei.co/npm/globjoin/)
## Install
``` bash
$ npm install globjoin
```
## API
### `globjoin(globs...)`
Join paths and globs.
Like Node's [path.join()](https://nodejs.org/api/path.html#path_path_join_path1_path2) that join all arguments together and normalize the resulting path, `globjoin` takes arbitrary number of paths and/or arrays of paths, join them together and take care of negative globs.
#### Context
Don't care.
#### Parameters
##### `paths/globs`
The paths/globs or arrays of paths/globs to join.
#### Returns
The result glob, or array of globs if any of paths/globs are array.
#### Example
``` javascript
var join = require('globjoin');
var globs1 = join(__dirname, ['**/*.js', '!**/test*.js']);
var globs2 = join('test', 'fixture', 'app', ['views', '!services'], ['**/*', '!*.{js,json,coffee,ts}']);
```
Check out test for more examples.
## Issues
[Issues](https://github.com/amobiz/globjoin/issues)
## Test
``` bash
$ npm test
```
## Changelog
[Changelog](./CHANGELOG.md)
## License
MIT
## Author
[Amobiz](https://github.com/amobiz)

43
node_modules/globjoin/index.js generated vendored Normal file
View File

@@ -0,0 +1,43 @@
'use strict';
var Path = require('path');
var slice = Array.prototype.slice;
function join(/* globs */) {
var args;
args = slice.call(arguments, 0);
return args.reduce(function (result, globs) {
return _apply(result, function (path) {
return _apply(globs, function (glob) {
return _join(path, glob);
});
});
}, '');
}
function _apply(values, fn) {
if (Array.isArray(values)) {
return values.reduce(function (result, value) {
return result.concat(fn(value));
}, []);
}
return fn(values);
}
function _join(path, glob) {
var negative, positive;
if (glob[0] === '!') {
positive = glob.substr(1);
if (path[0] === '!') {
negative = '';
} else {
negative = '!';
}
return negative + Path.join(path, positive);
}
return Path.join(path, glob);
}
module.exports = join;

37
node_modules/globjoin/package.json generated vendored Normal file
View File

@@ -0,0 +1,37 @@
{
"name": "globjoin",
"version": "0.1.4",
"description": "Join paths and globs.",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/amobiz/globjoin.git"
},
"scripts": {
"test": "mocha"
},
"keywords": [
"array",
"glob",
"glob join",
"globbing",
"multiple",
"negative glob",
"path",
"path join",
"patterns",
"wildcard"
],
"author": "Amobiz",
"license": "MIT",
"bugs": {
"url": "https://github.com/amobiz/globjoin/issues"
},
"homepage": "https://github.com/amobiz/globjoin",
"devDependencies": {
"mocha": "^2.3.4",
"mocha-cases": "^0.1.4"
},
"dependencies": {
}
}