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

1
node_modules/caniuse-lite/data/regions/AD.js generated vendored Normal file
View File

@@ -0,0 +1 @@
module.exports={C:{"52":0.00478,"114":0.13392,"115":0.04305,"132":0.00957,"133":0.00478,"134":0.00957,"135":0.01435,"136":0.00478,"139":0.02392,"140":0.08131,"143":0.00478,"145":0.00957,"146":0.01435,"147":0.06218,"148":2.03756,"149":0.37307,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 137 138 141 142 144 150 151 152 3.5 3.6"},D:{"75":0.00478,"87":0.00957,"91":0.00478,"97":0.00478,"98":0.00478,"103":0.0287,"105":0.00957,"109":0.07653,"111":0.00957,"112":0.00478,"114":0.08131,"116":0.20089,"118":0.00478,"120":0.00478,"121":0.0287,"122":0.03348,"123":0.02392,"124":0.0287,"126":0.0287,"128":0.05261,"129":0.07175,"130":0.01435,"131":0.09088,"132":0.00478,"133":0.00478,"134":0.00478,"135":0.00957,"136":0.00957,"137":0.00957,"138":0.28698,"139":0.05261,"140":0.0574,"141":0.02392,"142":0.0574,"143":0.33003,"144":0.73658,"145":9.00161,"146":6.47618,"147":0.00957,"148":0.00478,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 83 84 85 86 88 89 90 92 93 94 95 96 99 100 101 102 104 106 107 108 110 113 115 117 119 125 127 149 150"},F:{"89":0.01435,"95":0.00957,"96":0.04783,"101":0.00478,"104":0.01435,"114":0.00478,"120":0.00478,"125":0.00478,"126":0.00957,"127":0.59788,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 97 98 99 100 102 103 105 106 107 108 109 110 111 112 113 115 116 117 118 119 121 122 123 124 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.01435,"109":0.00478,"114":0.01435,"119":0.00957,"131":0.03348,"133":0.00478,"135":0.02392,"136":0.00478,"139":0.0287,"141":0.00478,"142":0.02392,"143":0.02392,"144":0.09088,"145":1.84146,"146":1.55448,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 120 121 122 123 124 125 126 127 128 129 130 132 134 137 138 140"},E:{_:"4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 11.1 26.5 TP","10.1":0.00478,"12.1":0.00478,"13.1":0.00478,"14.1":0.03348,"15.1":0.02392,"15.2-15.3":0.05261,"15.4":0.01435,"15.5":0.0287,"15.6":0.33003,"16.0":0.00478,"16.1":0.03348,"16.2":0.03348,"16.3":0.10523,"16.4":0.01913,"16.5":0.04783,"16.6":0.68397,"17.0":0.00478,"17.1":0.99965,"17.2":0.06218,"17.3":0.07175,"17.4":0.11001,"17.5":0.24872,"17.6":1.36316,"18.0":0.03348,"18.1":0.06218,"18.2":0.0574,"18.3":0.33959,"18.4":0.05261,"18.5-18.7":0.26307,"26.0":0.15784,"26.1":0.29176,"26.2":1.29141,"26.3":7.29408,"26.4":0.39699},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00354,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0.00708,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.01769,"11.0-11.2":0.44581,"11.3-11.4":0.01061,"12.0-12.1":0,"12.2-12.5":0.13799,"13.0-13.1":0,"13.2":0.05307,"13.3":0.00708,"13.4-13.7":0.01769,"14.0-14.4":0.03184,"14.5-14.8":0.03184,"15.0-15.1":0.046,"15.2-15.3":0.02831,"15.4":0.03538,"15.5":0.03892,"15.6-15.8":0.62626,"16.0":0.06369,"16.1":0.12384,"16.2":0.07076,"16.3":0.12737,"16.4":0.02831,"16.5":0.05307,"16.6-16.7":0.87039,"17.0":0.03892,"17.1":0.06369,"17.2":0.05661,"17.3":0.07784,"17.4":0.12737,"17.5":0.2406,"17.6-17.7":0.61918,"18.0":0.13445,"18.1":0.27598,"18.2":0.14506,"18.3":0.4635,"18.4":0.2229,"18.5-18.7":7.09049,"26.0":0.44227,"26.1":0.67225,"26.2":3.95567,"26.3":17.18489,"26.4":0.64395,"26.5":0},P:{"27":0.01043,"28":0.01043,"29":1.05383,_:"4 20 21 22 23 24 25 26 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.03127,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.11477,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00957,_:"6 7 9 10 11 5.5"},J:{_:"7 10"},N:{_:"10 11"},S:{_:"2.5 3.0-3.1"},R:{_:"0"},M:{"0":0.55822},Q:{_:"14.9"},O:{_:"0"},H:{all:0},L:{"0":17.33696}};