Skip to content

Commit c7d66ab

Browse files
feat(mdx): add alertBox
1 parent a009faf commit c7d66ab

5 files changed

Lines changed: 65 additions & 0 deletions

File tree

apps/site/next.mdx.use.mjs

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
'use strict';
2+
3+
import AlertBox from '@node-core/ui-components/Common/AlertBox/index.js';
4+
import BadgeGroup from '@node-core/ui-components/Common/BadgeGroup';
5+
6+
import Button from './components/Common/Button';
7+
import LinkWithArrow from './components/Common/LinkWithArrow';
8+
import EOLAlertBox from './components/EOL/EOLAlert';
9+
import EOLReleaseTable from './components/EOL/EOLReleaseTable';
10+
import Link from './components/Link';
11+
import UpcomingMeetings from './components/MDX/Calendar/UpcomingMeetings';
12+
import PreviousReleasesTable from './components/Releases/PreviousReleasesTable';
13+
import WithBadgeGroup from './components/withBadgeGroup';
14+
import WithBanner from './components/withBanner';
15+
import WithNodeRelease from './components/withNodeRelease';
16+
17+
/**
18+
* A full list of React Components that we want to pass through to MDX
19+
*
20+
* @satisfies {import('mdx/types').MDXComponents}
21+
*/
22+
export const mdxComponents = {
23+
AlertBox,
24+
PreviousReleasesTable,
25+
// HOC for getting Node.js Release Metadata
26+
WithNodeRelease,
27+
// HOC for providing Banner Data
28+
WithBanner,
29+
// HOC for providing Badge Data
30+
WithBadgeGroup,
31+
// Standalone Badge Group
32+
BadgeGroup,
33+
// Renders an container for Upcoming Node.js Meetings
34+
UpcomingMeetings,
35+
// Renders an EOL alert
36+
EOLAlertBox,
37+
// Renders the EOL Table
38+
EOLReleaseTable,
39+
// Renders a Button Component for `button` tags
40+
Button,
41+
// Regular links (without arrow)
42+
Link,
43+
// Links with External Arrow
44+
LinkWithArrow,
45+
};

apps/site/pages/en/blog/migrations/v12-to-v14.md renamed to apps/site/pages/en/blog/migrations/v12-to-v14.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ author: AugustinMauroy
88

99
# Node.js v12 to v14
1010

11+
<AlertBox
12+
level="warning"
13+
title="This article cover a part of the migration from Node.js v12 to v14. The userland migrations team is working on more codemods to help you with the migration."
14+
/>
15+
1116
This page provides a list of codemods to help you migrate your code from Node.js v12 to v14.
1217

1318
## `util-print-to-console-log`

apps/site/pages/en/blog/migrations/v14-to-v16.md renamed to apps/site/pages/en/blog/migrations/v14-to-v16.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ author: AugustinMauroy
88

99
# Node.js v14 to v16
1010

11+
<AlertBox
12+
level="warning"
13+
title="This article cover a part of the migration from Node.js v14 to v16. The userland migrations team is working on more codemods to help you with the migration."
14+
/>
15+
1116
This page provides a list of codemods to help you migrate your code from Node.js v14 to v16.
1217

1318
## `create-require-from-path`

apps/site/pages/en/blog/migrations/v20-to-v22.md renamed to apps/site/pages/en/blog/migrations/v20-to-v22.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ author: AugustinMauroy
88

99
# Node.js v20 to v22
1010

11+
<AlertBox
12+
level="warning"
13+
title="This article cover a part of the migration from Node.js v20 to v22. The userland migrations team is working on more codemods to help you with the migration."
14+
/>
15+
1116
This page provides a list of codemods to help you migrate your code from Node.js v20 to v22.
1217

1318
## `import-assertions-to-attributes`

apps/site/pages/en/blog/migrations/v22-to-v24.md renamed to apps/site/pages/en/blog/migrations/v22-to-v24.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ author: AugustinMauroy
88

99
# Node.js v22 to v24
1010

11+
<AlertBox
12+
level="warning"
13+
title="This article cover a part of the migration from Node.js v22 to v24. The userland migrations team is working on more codemods to help you with the migration."
14+
/>
15+
1116
This page provides a list of codemods to help you migrate your code from Node.js v22 to v24.
1217

1318
## `fs-access-mode-constants`

0 commit comments

Comments
 (0)