Skip to content

Commit 916288c

Browse files
lukesandbergclaude
andcommitted
update prettier and reformat everything
Update prettier from ^2.5.1 to ^3.8.1 and reformat all source files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 40ea071 commit 916288c

File tree

13 files changed

+2175
-2161
lines changed

13 files changed

+2175
-2161
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"postcss": "^8.4.5",
9191
"postcss-flexbugs-fixes": "4.2.1",
9292
"postcss-preset-env": "^6.7.0",
93-
"prettier": "^2.5.1",
93+
"prettier": "^3.8.1",
9494
"react-server-dom-webpack": "^19.2.4",
9595
"reading-time": "^1.2.0",
9696
"remark": "^12.0.1",

src/components/Icon/IconClose.tsx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
import {memo} from 'react';
1313
import type {SVGProps} from 'react';
1414

15-
export const IconClose = memo<SVGProps<SVGSVGElement>>(function IconClose(
16-
props
17-
) {
18-
return (
19-
<svg
20-
xmlns="http://www.w3.org/2000/svg"
21-
width="1.33em"
22-
height="1.33em"
23-
viewBox="0 0 24 24"
24-
fill="none"
25-
stroke="currentColor"
26-
strokeWidth={2}
27-
strokeLinecap="round"
28-
strokeLinejoin="round"
29-
{...props}>
30-
<line x1={18} y1={6} x2={6} y2={18} />
31-
<line x1={6} y1={6} x2={18} y2={18} />
32-
</svg>
33-
);
34-
});
15+
export const IconClose = memo<SVGProps<SVGSVGElement>>(
16+
function IconClose(props) {
17+
return (
18+
<svg
19+
xmlns="http://www.w3.org/2000/svg"
20+
width="1.33em"
21+
height="1.33em"
22+
viewBox="0 0 24 24"
23+
fill="none"
24+
stroke="currentColor"
25+
strokeWidth={2}
26+
strokeLinecap="round"
27+
strokeLinejoin="round"
28+
{...props}>
29+
<line x1={18} y1={6} x2={6} y2={18} />
30+
<line x1={6} y1={6} x2={18} y2={18} />
31+
</svg>
32+
);
33+
}
34+
);

src/components/Icon/IconGitHub.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
import {memo} from 'react';
1313
import type {SVGProps} from 'react';
1414

15-
export const IconGitHub = memo<SVGProps<SVGSVGElement>>(function IconGitHub(
16-
props
17-
) {
18-
return (
19-
<svg
20-
xmlns="http://www.w3.org/2000/svg"
21-
width="1.5em"
22-
height="1.5em"
23-
viewBox="0 -2 24 24"
24-
fill="currentColor"
25-
{...props}>
26-
<path d="M10 0a10 10 0 0 0-3.16 19.49c.5.1.68-.22.68-.48l-.01-1.7c-2.78.6-3.37-1.34-3.37-1.34-.46-1.16-1.11-1.47-1.11-1.47-.9-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.9 1.52 2.34 1.08 2.91.83.1-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.94 0-1.1.39-1.99 1.03-2.69a3.6 3.6 0 0 1 .1-2.64s.84-.27 2.75 1.02a9.58 9.58 0 0 1 5 0c1.91-1.3 2.75-1.02 2.75-1.02.55 1.37.2 2.4.1 2.64.64.7 1.03 1.6 1.03 2.69 0 3.84-2.34 4.68-4.57 4.93.36.31.68.92.68 1.85l-.01 2.75c0 .26.18.58.69.48A10 10 0 0 0 10 0"></path>
27-
</svg>
28-
);
29-
});
15+
export const IconGitHub = memo<SVGProps<SVGSVGElement>>(
16+
function IconGitHub(props) {
17+
return (
18+
<svg
19+
xmlns="http://www.w3.org/2000/svg"
20+
width="1.5em"
21+
height="1.5em"
22+
viewBox="0 -2 24 24"
23+
fill="currentColor"
24+
{...props}>
25+
<path d="M10 0a10 10 0 0 0-3.16 19.49c.5.1.68-.22.68-.48l-.01-1.7c-2.78.6-3.37-1.34-3.37-1.34-.46-1.16-1.11-1.47-1.11-1.47-.9-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.9 1.52 2.34 1.08 2.91.83.1-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.94 0-1.1.39-1.99 1.03-2.69a3.6 3.6 0 0 1 .1-2.64s.84-.27 2.75 1.02a9.58 9.58 0 0 1 5 0c1.91-1.3 2.75-1.02 2.75-1.02.55 1.37.2 2.4.1 2.64.64.7 1.03 1.6 1.03 2.69 0 3.84-2.34 4.68-4.57 4.93.36.31.68.92.68 1.85l-.01 2.75c0 .26.18.58.69.48A10 10 0 0 0 10 0"></path>
26+
</svg>
27+
);
28+
}
29+
);

src/components/Icon/IconNewPage.tsx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@
1212
import {memo} from 'react';
1313
import type {SVGProps} from 'react';
1414

15-
export const IconNewPage = memo<SVGProps<SVGSVGElement>>(function IconNewPage(
16-
props
17-
) {
18-
return (
19-
<svg
20-
width="1em"
21-
height="1em"
22-
viewBox="0 0 24 24"
23-
fill="none"
24-
xmlns="http://www.w3.org/2000/svg"
25-
{...props}>
26-
<path
27-
d="M20.5001 2H15.5001C15.3675 2 15.2403 2.05268 15.1465 2.14645C15.0528 2.24021 15.0001 2.36739 15.0001 2.5V3.5C15.0001 3.63261 15.0528 3.75979 15.1465 3.85355C15.2403 3.94732 15.3675 4 15.5001 4H18.5901L7.6501 14.94C7.60323 14.9865 7.56604 15.0418 7.54065 15.1027C7.51527 15.1636 7.5022 15.229 7.5022 15.295C7.5022 15.361 7.51527 15.4264 7.54065 15.4873C7.56604 15.5482 7.60323 15.6035 7.6501 15.65L8.3501 16.35C8.39658 16.3969 8.45188 16.4341 8.51281 16.4594C8.57374 16.4848 8.63909 16.4979 8.7051 16.4979C8.7711 16.4979 8.83646 16.4848 8.89738 16.4594C8.95831 16.4341 9.01362 16.3969 9.0601 16.35L20.0001 5.41V8.5C20.0001 8.63261 20.0528 8.75979 20.1465 8.85355C20.2403 8.94732 20.3675 9 20.5001 9H21.5001C21.6327 9 21.7599 8.94732 21.8537 8.85355C21.9474 8.75979 22.0001 8.63261 22.0001 8.5V3.5C22.0001 3.10218 21.8421 2.72064 21.5608 2.43934C21.2795 2.15804 20.8979 2 20.5001 2V2Z"
28-
fill="currentColor"
29-
/>
30-
<path
31-
d="M21.5 13H20.5C20.3674 13 20.2402 13.0527 20.1464 13.1464C20.0527 13.2402 20 13.3674 20 13.5V20H4V4H10.5C10.6326 4 10.7598 3.94732 10.8536 3.85355C10.9473 3.75979 11 3.63261 11 3.5V2.5C11 2.36739 10.9473 2.24021 10.8536 2.14645C10.7598 2.05268 10.6326 2 10.5 2H3.5C3.10218 2 2.72064 2.15804 2.43934 2.43934C2.15804 2.72064 2 3.10218 2 3.5V20.5C2 20.8978 2.15804 21.2794 2.43934 21.5607C2.72064 21.842 3.10218 22 3.5 22H20.5C20.8978 22 21.2794 21.842 21.5607 21.5607C21.842 21.2794 22 20.8978 22 20.5V13.5C22 13.3674 21.9473 13.2402 21.8536 13.1464C21.7598 13.0527 21.6326 13 21.5 13Z"
32-
fill="currentColor"
33-
/>
34-
</svg>
35-
);
36-
});
15+
export const IconNewPage = memo<SVGProps<SVGSVGElement>>(
16+
function IconNewPage(props) {
17+
return (
18+
<svg
19+
width="1em"
20+
height="1em"
21+
viewBox="0 0 24 24"
22+
fill="none"
23+
xmlns="http://www.w3.org/2000/svg"
24+
{...props}>
25+
<path
26+
d="M20.5001 2H15.5001C15.3675 2 15.2403 2.05268 15.1465 2.14645C15.0528 2.24021 15.0001 2.36739 15.0001 2.5V3.5C15.0001 3.63261 15.0528 3.75979 15.1465 3.85355C15.2403 3.94732 15.3675 4 15.5001 4H18.5901L7.6501 14.94C7.60323 14.9865 7.56604 15.0418 7.54065 15.1027C7.51527 15.1636 7.5022 15.229 7.5022 15.295C7.5022 15.361 7.51527 15.4264 7.54065 15.4873C7.56604 15.5482 7.60323 15.6035 7.6501 15.65L8.3501 16.35C8.39658 16.3969 8.45188 16.4341 8.51281 16.4594C8.57374 16.4848 8.63909 16.4979 8.7051 16.4979C8.7711 16.4979 8.83646 16.4848 8.89738 16.4594C8.95831 16.4341 9.01362 16.3969 9.0601 16.35L20.0001 5.41V8.5C20.0001 8.63261 20.0528 8.75979 20.1465 8.85355C20.2403 8.94732 20.3675 9 20.5001 9H21.5001C21.6327 9 21.7599 8.94732 21.8537 8.85355C21.9474 8.75979 22.0001 8.63261 22.0001 8.5V3.5C22.0001 3.10218 21.8421 2.72064 21.5608 2.43934C21.2795 2.15804 20.8979 2 20.5001 2V2Z"
27+
fill="currentColor"
28+
/>
29+
<path
30+
d="M21.5 13H20.5C20.3674 13 20.2402 13.0527 20.1464 13.1464C20.0527 13.2402 20 13.3674 20 13.5V20H4V4H10.5C10.6326 4 10.7598 3.94732 10.8536 3.85355C10.9473 3.75979 11 3.63261 11 3.5V2.5C11 2.36739 10.9473 2.24021 10.8536 2.14645C10.7598 2.05268 10.6326 2 10.5 2H3.5C3.10218 2 2.72064 2.15804 2.43934 2.43934C2.15804 2.72064 2 3.10218 2 3.5V20.5C2 20.8978 2.15804 21.2794 2.43934 21.5607C2.72064 21.842 3.10218 22 3.5 22H20.5C20.8978 22 21.2794 21.842 21.5607 21.5607C21.842 21.2794 22 20.8978 22 20.5V13.5C22 13.3674 21.9473 13.2402 21.8536 13.1464C21.7598 13.0527 21.6326 13 21.5 13Z"
31+
fill="currentColor"
32+
/>
33+
</svg>
34+
);
35+
}
36+
);

src/components/Icon/IconSearch.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
import {memo} from 'react';
1313
import type {SVGProps} from 'react';
1414

15-
export const IconSearch = memo<SVGProps<SVGSVGElement>>(function IconSearch(
16-
props
17-
) {
18-
return (
19-
<svg width="1em" height="1em" viewBox="0 0 20 20" {...props}>
20-
<path
21-
d="M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z"
22-
stroke="currentColor"
23-
fill="none"
24-
strokeWidth="2"
25-
fillRule="evenodd"
26-
strokeLinecap="round"
27-
strokeLinejoin="round"></path>
28-
</svg>
29-
);
30-
});
15+
export const IconSearch = memo<SVGProps<SVGSVGElement>>(
16+
function IconSearch(props) {
17+
return (
18+
<svg width="1em" height="1em" viewBox="0 0 20 20" {...props}>
19+
<path
20+
d="M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z"
21+
stroke="currentColor"
22+
fill="none"
23+
strokeWidth="2"
24+
fillRule="evenodd"
25+
strokeLinecap="round"
26+
strokeLinejoin="round"></path>
27+
</svg>
28+
);
29+
}
30+
);

src/components/Icon/IconThreads.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
import {memo} from 'react';
1313
import type {SVGProps} from 'react';
1414

15-
export const IconThreads = memo<SVGProps<SVGSVGElement>>(function IconThreads(
16-
props
17-
) {
18-
return (
19-
<svg
20-
aria-label="Threads"
21-
viewBox="0 0 192 192"
22-
height="1.40em"
23-
width="1.40em"
24-
fill="currentColor"
25-
xmlns="http://www.w3.org/2000/svg"
26-
{...props}>
27-
<path
28-
className="x19hqcy"
29-
d="M141.537 88.9883C140.71 88.5919 139.87 88.2104 139.019 87.8451C137.537 60.5382 122.616 44.905 97.5619 44.745C97.4484 44.7443 97.3355 44.7443 97.222 44.7443C82.2364 44.7443 69.7731 51.1409 62.102 62.7807L75.881 72.2328C81.6116 63.5383 90.6052 61.6848 97.2286 61.6848C97.3051 61.6848 97.3819 61.6848 97.4576 61.6855C105.707 61.7381 111.932 64.1366 115.961 68.814C118.893 72.2193 120.854 76.925 121.825 82.8638C114.511 81.6207 106.601 81.2385 98.145 81.7233C74.3247 83.0954 59.0111 96.9879 60.0396 116.292C60.5615 126.084 65.4397 134.508 73.775 140.011C80.8224 144.663 89.899 146.938 99.3323 146.423C111.79 145.74 121.563 140.987 128.381 132.296C133.559 125.696 136.834 117.143 138.28 106.366C144.217 109.949 148.617 114.664 151.047 120.332C155.179 129.967 155.42 145.8 142.501 158.708C131.182 170.016 117.576 174.908 97.0135 175.059C74.2042 174.89 56.9538 167.575 45.7381 153.317C35.2355 139.966 29.8077 120.682 29.6052 96C29.8077 71.3178 35.2355 52.0336 45.7381 38.6827C56.9538 24.4249 74.2039 17.11 97.0132 16.9405C119.988 17.1113 137.539 24.4614 149.184 38.788C154.894 45.8136 159.199 54.6488 162.037 64.9503L178.184 60.6422C174.744 47.9622 169.331 37.0357 161.965 27.974C147.036 9.60668 125.202 0.195148 97.0695 0H96.9569C68.8816 0.19447 47.2921 9.6418 32.7883 28.0793C19.8819 44.4864 13.2244 67.3157 13.0007 95.9325L13 96L13.0007 96.0675C13.2244 124.684 19.8819 147.514 32.7883 163.921C47.2921 182.358 68.8816 191.806 96.9569 192H97.0695C122.03 191.827 139.624 185.292 154.118 170.811C173.081 151.866 172.51 128.119 166.26 113.541C161.776 103.087 153.227 94.5962 141.537 88.9883ZM98.4405 129.507C88.0005 130.095 77.1544 125.409 76.6196 115.372C76.2232 107.93 81.9158 99.626 99.0812 98.6368C101.047 98.5234 102.976 98.468 104.871 98.468C111.106 98.468 116.939 99.0737 122.242 100.233C120.264 124.935 108.662 128.946 98.4405 129.507Z"></path>
30-
</svg>
31-
);
32-
});
15+
export const IconThreads = memo<SVGProps<SVGSVGElement>>(
16+
function IconThreads(props) {
17+
return (
18+
<svg
19+
aria-label="Threads"
20+
viewBox="0 0 192 192"
21+
height="1.40em"
22+
width="1.40em"
23+
fill="currentColor"
24+
xmlns="http://www.w3.org/2000/svg"
25+
{...props}>
26+
<path
27+
className="x19hqcy"
28+
d="M141.537 88.9883C140.71 88.5919 139.87 88.2104 139.019 87.8451C137.537 60.5382 122.616 44.905 97.5619 44.745C97.4484 44.7443 97.3355 44.7443 97.222 44.7443C82.2364 44.7443 69.7731 51.1409 62.102 62.7807L75.881 72.2328C81.6116 63.5383 90.6052 61.6848 97.2286 61.6848C97.3051 61.6848 97.3819 61.6848 97.4576 61.6855C105.707 61.7381 111.932 64.1366 115.961 68.814C118.893 72.2193 120.854 76.925 121.825 82.8638C114.511 81.6207 106.601 81.2385 98.145 81.7233C74.3247 83.0954 59.0111 96.9879 60.0396 116.292C60.5615 126.084 65.4397 134.508 73.775 140.011C80.8224 144.663 89.899 146.938 99.3323 146.423C111.79 145.74 121.563 140.987 128.381 132.296C133.559 125.696 136.834 117.143 138.28 106.366C144.217 109.949 148.617 114.664 151.047 120.332C155.179 129.967 155.42 145.8 142.501 158.708C131.182 170.016 117.576 174.908 97.0135 175.059C74.2042 174.89 56.9538 167.575 45.7381 153.317C35.2355 139.966 29.8077 120.682 29.6052 96C29.8077 71.3178 35.2355 52.0336 45.7381 38.6827C56.9538 24.4249 74.2039 17.11 97.0132 16.9405C119.988 17.1113 137.539 24.4614 149.184 38.788C154.894 45.8136 159.199 54.6488 162.037 64.9503L178.184 60.6422C174.744 47.9622 169.331 37.0357 161.965 27.974C147.036 9.60668 125.202 0.195148 97.0695 0H96.9569C68.8816 0.19447 47.2921 9.6418 32.7883 28.0793C19.8819 44.4864 13.2244 67.3157 13.0007 95.9325L13 96L13.0007 96.0675C13.2244 124.684 19.8819 147.514 32.7883 163.921C47.2921 182.358 68.8816 191.806 96.9569 192H97.0695C122.03 191.827 139.624 185.292 154.118 170.811C173.081 151.866 172.51 128.119 166.26 113.541C161.776 103.087 153.227 94.5962 141.537 88.9883ZM98.4405 129.507C88.0005 130.095 77.1544 125.409 76.6196 115.372C76.2232 107.93 81.9158 99.626 99.0812 98.6368C101.047 98.5234 102.976 98.468 104.871 98.468C111.106 98.468 116.939 99.0737 122.242 100.233C120.264 124.935 108.662 128.946 98.4405 129.507Z"></path>
29+
</svg>
30+
);
31+
}
32+
);

src/components/Icon/IconTwitter.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
import {memo} from 'react';
1313
import type {SVGProps} from 'react';
1414

15-
export const IconTwitter = memo<SVGProps<SVGSVGElement>>(function IconTwitter(
16-
props
17-
) {
18-
return (
19-
<svg
20-
xmlns="http://www.w3.org/2000/svg"
21-
viewBox="0 0 512 512"
22-
height="1.30em"
23-
width="1.30em"
24-
fill="currentColor"
25-
{...props}>
26-
<path fill="none" d="M0 0h24v24H0z" />
27-
<path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z" />
28-
</svg>
29-
);
30-
});
15+
export const IconTwitter = memo<SVGProps<SVGSVGElement>>(
16+
function IconTwitter(props) {
17+
return (
18+
<svg
19+
xmlns="http://www.w3.org/2000/svg"
20+
viewBox="0 0 512 512"
21+
height="1.30em"
22+
width="1.30em"
23+
fill="currentColor"
24+
{...props}>
25+
<path fill="none" d="M0 0h24v24H0z" />
26+
<path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z" />
27+
</svg>
28+
);
29+
}
30+
);

src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export function initClient() {
6969
error && error.digest
7070
? error.digest
7171
: error && error.message
72-
? error.message
73-
: String(error);
72+
? error.message
73+
: String(error);
7474
console.error(msg);
7575
showError(msg);
7676
},
@@ -353,26 +353,26 @@ export function initClient() {
353353
// Register all evaluated components with react-refresh for Fast Refresh.
354354
// This creates stable "component families" so React can preserve state
355355
// across re-evaluations when component identity changes.
356-
Object.keys(globalThis.__webpack_module_cache__).forEach(function (
357-
moduleId
358-
) {
359-
var moduleExports = globalThis.__webpack_module_cache__[moduleId];
360-
var exports =
361-
moduleExports.exports !== undefined
362-
? moduleExports.exports
363-
: moduleExports;
364-
if (exports && typeof exports === 'object') {
365-
for (var key in exports) {
366-
var exportValue = exports[key];
367-
if (isLikelyComponentType(exportValue)) {
368-
refreshRegister(exportValue, moduleId + ' %exports% ' + key);
356+
Object.keys(globalThis.__webpack_module_cache__).forEach(
357+
function (moduleId) {
358+
var moduleExports = globalThis.__webpack_module_cache__[moduleId];
359+
var exports =
360+
moduleExports.exports !== undefined
361+
? moduleExports.exports
362+
: moduleExports;
363+
if (exports && typeof exports === 'object') {
364+
for (var key in exports) {
365+
var exportValue = exports[key];
366+
if (isLikelyComponentType(exportValue)) {
367+
refreshRegister(exportValue, moduleId + ' %exports% ' + key);
368+
}
369369
}
370370
}
371+
if (typeof exports === 'function' && isLikelyComponentType(exports)) {
372+
refreshRegister(exports, moduleId + ' %exports% default');
373+
}
371374
}
372-
if (typeof exports === 'function' && isLikelyComponentType(exports)) {
373-
refreshRegister(exports, moduleId + ' %exports% default');
374-
}
375-
});
375+
);
376376

377377
// Tell React about updated component families so it can
378378
// preserve state for components whose implementation changed.

0 commit comments

Comments
 (0)