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

11
node_modules/change-case/dist.es2015/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
export * from "camel-case";
export * from "capital-case";
export * from "constant-case";
export * from "dot-case";
export * from "header-case";
export * from "no-case";
export * from "param-case";
export * from "pascal-case";
export * from "path-case";
export * from "sentence-case";
export * from "snake-case";

12
node_modules/change-case/dist.es2015/index.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
export * from "camel-case";
export * from "capital-case";
export * from "constant-case";
export * from "dot-case";
export * from "header-case";
export * from "no-case";
export * from "param-case";
export * from "pascal-case";
export * from "path-case";
export * from "sentence-case";
export * from "snake-case";
//# sourceMappingURL=index.js.map

1
node_modules/change-case/dist.es2015/index.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC","sourcesContent":["export * from \"camel-case\";\nexport * from \"capital-case\";\nexport * from \"constant-case\";\nexport * from \"dot-case\";\nexport * from \"header-case\";\nexport * from \"no-case\";\nexport * from \"param-case\";\nexport * from \"pascal-case\";\nexport * from \"path-case\";\nexport * from \"sentence-case\";\nexport * from \"snake-case\";\n"]}

1
node_modules/change-case/dist.es2015/index.spec.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export {};

7
node_modules/change-case/dist.es2015/index.spec.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
import * as changeCase from ".";
describe("change case", function () {
it("exports expected methods", function () {
expect(typeof changeCase).toEqual("object");
});
});
//# sourceMappingURL=index.spec.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,GAAG,CAAC;AAEhC,QAAQ,CAAC,aAAa,EAAE;IACtB,EAAE,CAAC,0BAA0B,EAAE;QAC7B,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import * as changeCase from \".\";\n\ndescribe(\"change case\", () => {\n it(\"exports expected methods\", () => {\n expect(typeof changeCase).toEqual(\"object\");\n });\n});\n"]}