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

39
node_modules/find-process/.github/workflows/nodejs.yml generated vendored Normal file
View File

@@ -0,0 +1,39 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Operating System Matrix
# ubuntu-latest: Latest Ubuntu version (currently 22.04)
# windows-latest: Latest Windows Server version (currently 2022)
# macos-12: macOS 12 Monterey (released 2021)
# macos-13: macOS 13 Ventura (released 2022)
# macos-14: macOS 14 Sonoma (released 2023)
# macos-15: macOS 15 Sequoia (released 2024)
os: [ubuntu-latest, windows-latest, macos-12, macos-13, macos-14, macos-15]
# Node.js Version Matrix
# 16: Node.js 16.x LTS (released 2020, EOL April 2024)
# 18: Node.js 18.x LTS (released 2022, EOL April 2025)
# 20: Node.js 20.x LTS (released 2023, EOL April 2026)
node: [16, 18, 20]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run build --if-present
- run: npm test