Files
formipay/node_modules/date-fns/docs/index.js
dwindown e8fbfb14c1 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>
2026-04-18 17:02:14 +07:00

148 lines
3.6 KiB
JavaScript

const path = require('path')
module.exports = {
groups: [
'General',
'Types',
'Common Helpers',
'Conversion Helpers',
'Interval Helpers',
'Timestamp Helpers',
'Millisecond Helpers',
'Second Helpers',
'Minute Helpers',
'Hour Helpers',
'Day Helpers',
'Weekday Helpers',
'Week Helpers',
'ISO Week Helpers',
'Month Helpers',
'Quarter Helpers',
'Year Helpers',
'ISO Week-Numbering Year Helpers',
'Decade Helpers',
],
staticDocs: [
{
type: 'markdown',
urlId: 'Getting-Started',
category: 'General',
title: 'Getting Started',
description: 'Introduction & installation instructions',
path: path.join(__dirname, 'gettingStarted.md'),
},
{
type: 'markdown',
urlId: 'Change-Log',
category: 'General',
title: 'Change Log',
description: 'Changes for each version of the library',
path: path.join(__dirname, '..', 'CHANGELOG.md'),
},
{
type: 'markdown',
urlId: 'Contributing',
category: 'General',
title: 'Contributing',
description: 'Contribution manual',
path: path.join(__dirname, '..', 'CONTRIBUTING.md'),
},
{
type: 'markdown',
urlId: 'Constants',
category: 'General',
title: 'Constants',
description: 'Useful constants',
path: path.join(__dirname, 'constants.md'),
},
{
type: 'markdown',
urlId: 'I18n',
category: 'General',
title: 'I18n',
description: 'Internationalization',
path: path.join(__dirname, 'i18n.md'),
},
{
type: 'markdown',
urlId: 'I18n-Contribution-Guide',
category: 'General',
title: 'I18n Contribution Guide',
description: 'Locales manual',
path: path.join(__dirname, 'i18nContributionGuide.md'),
},
{
type: 'markdown',
urlId: 'Time-Zones',
category: 'General',
title: 'Time Zones',
description: 'Time zone functions',
path: path.join(__dirname, 'timeZones.md'),
},
{
type: 'markdown',
urlId: 'ECMAScript-Modules',
category: 'General',
title: 'ECMAScript Modules',
description: 'Tree-shaking guide',
path: path.join(__dirname, 'esm.md'),
},
{
type: 'markdown',
urlId: 'webpack',
category: 'General',
title: 'webpack',
description: 'Using date-fns with webpack',
path: path.join(__dirname, 'webpack.md'),
},
{
type: 'markdown',
urlId: 'FP-Guide',
category: 'General',
title: 'FP Guide',
description: 'Curried functions',
path: path.join(__dirname, 'fp.md'),
},
{
type: 'markdown',
urlId: 'Unicode-Tokens',
category: 'General',
title: 'Unicode Tokens',
description: 'Usage of the Unicode tokens in parse and format',
path: path.join(__dirname, 'unicodeTokens.md'),
},
{
type: 'markdown',
urlId: 'Upgrade-Guide',
category: 'General',
title: 'Upgrade guide',
description: 'Changes from v1 to v2',
path: path.join(__dirname, 'upgradeGuide.md'),
},
{
type: 'markdown',
urlId: 'License',
category: 'General',
title: 'License',
description: 'MIT © Sasha Koss',
path: path.join(__dirname, '..', 'LICENSE.md'),
},
],
sharedDocs: [
{
fullPath: path.join(__dirname, 'Interval.js'),
},
{
fullPath: path.join(__dirname, 'Locale.js'),
},
{
fullPath: path.join(__dirname, 'Duration.js'),
},
{
fullPath: path.join(__dirname, 'Day.js'),
},
],
}