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/run-con/.github/FUNDING.yml generated vendored Normal file
View File

@@ -0,0 +1,3 @@
# These are supported funding model platforms
issuehunt: goatandsheep/rc

9
node_modules/run-con/.github/dependabot.yml generated vendored Normal file
View File

@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 10
versioning-strategy: increase

37
node_modules/run-con/.github/workflows/coverage.yml generated vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Running Code Coverage
on: [push, pull_request]
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run the tests
run: npm test -- --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

44
node_modules/run-con/.github/workflows/dependabot.yml generated vendored Normal file
View File

@@ -0,0 +1,44 @@
name: CreateDependabotIssue
on:
workflow_dispatch:
pull_request:
types: [opened, reopened]
permissions:
actions: none
checks: none
contents: read
deployments: none
id-token: write
issues: write
discussions: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
jobs:
issue:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- name: Checks if Dependabot PR
if: ${{github.event_name != 'pull_request'}}
run: echo "no dependabot"
- uses: actions/checkout@v2
if: ${{github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'app/dependabot'}}
- name: Open issue if Dependabot PR
if: ${{github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'app/dependabot'}}
env:
pr_title: ${{github.event.pull_request.title}}
pr_number: ${{github.event.pull_request.number}}
pr_url: ${{github.event.pull_request.url}}
run: |
title="Dependabot PR $pr_title opened"
body="Dependabot has opened PR #$pr_number
Link: $pr_url"
gh issue create --title "$title" --body "$body"

33
node_modules/run-con/.github/workflows/issuehunt.yml generated vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Auto message for Issues
on:
issues:
types: [opened, reopened]
permissions:
actions: none
checks: none
contents: read
deployments: none
id-token: write
issues: write
discussions: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
jobs:
comment:
name: Hello new contributor
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Posts comment
env:
issue_num: ${{github.event.issue.number}}
comment_message: "Hey, thank you for opening this issue! 🙂 To boost priority on this issue and support open source please tip the team at https://issuehunt.io/r/${{github.repository}}/issues/${{github.event.issue.number }}"
run: gh issue comment $issue_num --body "$comment_message"