This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
659 changed files
with
51,708 additions
and
15,632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
12.16.1 | ||
12.22.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SANDPACK_BARE_COMPONENTS=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
NEXT_PUBLIC_GA_TRACKING_ID = 'UA-41298772-4' | ||
NEXT_PUBLIC_GA_TRACKING_ID = 'UA-41298772-4' | ||
SANDPACK_BARE_COMPONENTS=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
src/pages/docs/**/*.md | ||
src/pages/blog/**/*.md | ||
src/content/**/*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
"license": "CC", | ||
"scripts": { | ||
"analyze": "ANALYZE=true next build", | ||
"dev": "next", | ||
"build": "next build && node ./scripts/generateRSS.js && node ./scripts/generateRedirects.js", | ||
"dev": "next-remote-watch ./src/content", | ||
"build": "next build && node ./scripts/generateRSS.js && node ./scripts/generateRedirects.js && node ./scripts/downloadFonts.js", | ||
"lint": "next lint", | ||
"lint:fix": "next lint --fix", | ||
"format:source": "prettier --config .prettierrc --write \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"", | ||
|
@@ -22,36 +22,41 @@ | |
"check-all": "npm-run-all prettier lint:fix tsc" | ||
}, | ||
"dependencies": { | ||
"@codesandbox/sandpack-react": "v0.14.3-experimental.1", | ||
"@codesandbox/sandpack-react": "1.15.5", | ||
"@docsearch/css": "3.0.0-alpha.41", | ||
"@docsearch/react": "3.0.0-alpha.41", | ||
"@headlessui/react": "^1.3.0", | ||
"@mdx-js/react": "^1.6.16", | ||
"@headlessui/react": "^1.7.0", | ||
"body-scroll-lock": "^3.1.3", | ||
"classnames": "^2.2.6", | ||
"date-fns": "^2.16.1", | ||
"debounce": "^1.2.1", | ||
"ga-lite": "^2.1.4", | ||
"github-slugger": "^1.3.0", | ||
"next": "^12.0.10", | ||
"next": "12.3.2-canary.7", | ||
"next-remote-watch": "^1.0.0", | ||
"parse-numeric-range": "^1.2.0", | ||
"react": "experimental", | ||
"react-collapsed": "3.1.0", | ||
"react-dom": "experimental", | ||
"scroll-into-view-if-needed": "^2.2.25" | ||
"react": "0.0.0-experimental-cb5084d1c-20220924", | ||
"react-collapsed": "npm:@gaearon/[email protected]", | ||
"react-dom": "0.0.0-experimental-cb5084d1c-20220924", | ||
"remark-frontmatter": "^4.0.1", | ||
"remark-gfm": "^3.0.1" | ||
}, | ||
"devDependencies": { | ||
"@mdx-js/loader": "^1.6.16", | ||
"@babel/core": "^7.12.9", | ||
"@babel/plugin-transform-modules-commonjs": "^7.18.6", | ||
"@babel/preset-react": "^7.18.6", | ||
"@mdx-js/mdx": "^2.1.3", | ||
"@types/body-scroll-lock": "^2.6.1", | ||
"@types/classnames": "^2.2.10", | ||
"@types/debounce": "^1.2.1", | ||
"@types/github-slugger": "^1.3.0", | ||
"@types/mdx-js__react": "^1.5.2", | ||
"@types/node": "^14.6.4", | ||
"@types/parse-numeric-range": "^0.0.1", | ||
"@types/react": "^16.9.46", | ||
"@types/react-dom": "^16.9.8", | ||
"@typescript-eslint/eslint-plugin": "2.x", | ||
"@typescript-eslint/parser": "2.x", | ||
"@types/react": "^18.0.9", | ||
"@types/react-dom": "^18.0.5", | ||
"@typescript-eslint/eslint-plugin": "^5.36.2", | ||
"@typescript-eslint/parser": "^5.36.2", | ||
"asyncro": "^3.0.0", | ||
"autoprefixer": "^10.4.2", | ||
"babel-eslint": "10.x", | ||
|
@@ -62,14 +67,15 @@ | |
"eslint-plugin-import": "2.x", | ||
"eslint-plugin-jsx-a11y": "6.x", | ||
"eslint-plugin-react": "7.x", | ||
"eslint-plugin-react-hooks": "2.x", | ||
"eslint-plugin-react-hooks": "^0.0.0-experimental-fabef7a6b-20221215", | ||
"fs-extra": "^9.0.1", | ||
"globby": "^11.0.1", | ||
"gray-matter": "^4.0.2", | ||
"husky": "^7.0.4", | ||
"is-ci": "^3.0.1", | ||
"lint-staged": ">=10", | ||
"mdast-util-to-string": "^1.1.0", | ||
"metro-cache": "0.72.2", | ||
"npm-run-all": "^4.1.5", | ||
"patch-package": "^6.2.2", | ||
"postcss": "^8.4.5", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/node_modules/@codemirror/lang-javascript/dist/index.cjs b/node_modules/@codemirror/lang-javascript/dist/index.cjs | ||
index 4475e4f..e1255c9 100644 | ||
--- a/node_modules/@codemirror/lang-javascript/dist/index.cjs | ||
+++ b/node_modules/@codemirror/lang-javascript/dist/index.cjs | ||
@@ -135,7 +135,9 @@ const javascriptLanguage = language.LRLanguage.define({ | ||
JSXText: highlight.tags.content, | ||
"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag": highlight.tags.angleBracket, | ||
"JSXIdentifier JSXNameSpacedName": highlight.tags.tagName, | ||
- "JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName": highlight.tags.attributeName | ||
+ "JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName": highlight.tags.attributeName, | ||
+ "JSXAttribute/JSXLowerIdentifier JSXAttribute/JSXNameSpacedName": highlight.tags.attributeName, | ||
+ "JSXBuiltin/JSXIdentifier": highlight.tags.standard(highlight.tags.tagName) | ||
}) | ||
] | ||
}), | ||
diff --git a/node_modules/@codemirror/lang-javascript/dist/index.js b/node_modules/@codemirror/lang-javascript/dist/index.js | ||
index d089f6b..db09ea6 100644 | ||
--- a/node_modules/@codemirror/lang-javascript/dist/index.js | ||
+++ b/node_modules/@codemirror/lang-javascript/dist/index.js | ||
@@ -131,7 +131,9 @@ const javascriptLanguage = /*@__PURE__*/LRLanguage.define({ | ||
JSXText: tags.content, | ||
"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag": tags.angleBracket, | ||
"JSXIdentifier JSXNameSpacedName": tags.tagName, | ||
- "JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName": tags.attributeName | ||
+ "JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName": tags.attributeName, | ||
+ "JSXAttribute/JSXLowerIdentifier JSXAttribute/JSXNameSpacedName": tags.attributeName, | ||
+ "JSXBuiltin/JSXIdentifier": tags.standard(tags.tagName), | ||
}) | ||
] | ||
}), |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/node_modules/next/dist/server/render.js b/node_modules/next/dist/server/render.js | ||
index 3a141de..72a8749 100644 | ||
--- a/node_modules/next/dist/server/render.js | ||
+++ b/node_modules/next/dist/server/render.js | ||
@@ -752,9 +752,14 @@ async function renderToHTML(req, res, pathname, query, renderOpts) { | ||
// Enabling react concurrent rendering mode: __NEXT_REACT_ROOT = true | ||
const renderShell = async (EnhancedApp, EnhancedComponent)=>{ | ||
const content = renderContent(EnhancedApp, EnhancedComponent); | ||
- return await (0, _nodeWebStreamsHelper).renderToInitialStream({ | ||
- ReactDOMServer, | ||
- element: content | ||
+ return new Promise((resolve, reject) => { | ||
+ (0, _nodeWebStreamsHelper).renderToInitialStream({ | ||
+ ReactDOMServer, | ||
+ element: content, | ||
+ streamOptions: { | ||
+ onError: reject | ||
+ } | ||
+ }).then(resolve, reject); | ||
}); | ||
}; | ||
const createBodyResult = (initialStream, suffix)=>{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/node_modules/next-remote-watch/bin/next-remote-watch b/node_modules/next-remote-watch/bin/next-remote-watch | ||
index c055b66..a2f749c 100755 | ||
--- a/node_modules/next-remote-watch/bin/next-remote-watch | ||
+++ b/node_modules/next-remote-watch/bin/next-remote-watch | ||
@@ -66,7 +66,10 @@ app.prepare().then(() => { | ||
} | ||
} | ||
|
||
- app.server.hotReloader.send('reloadPage') | ||
+ app.server.hotReloader.send({ | ||
+ event: 'serverOnlyChanges', | ||
+ pages: ['/[[...markdownPath]]'] | ||
+ }); | ||
} | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.