-
Notifications
You must be signed in to change notification settings - Fork 2
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
245 changed files
with
13,346 additions
and
5,241 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
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 |
---|---|---|
|
@@ -11,18 +11,26 @@ jobs: | |
analyze: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
cache: yarn | ||
cache-dependency-path: yarn.lock | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/[email protected] | ||
- name: Restore cached node_modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: "**/node_modules" | ||
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Install deps | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Restore next build | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
id: restore-build-cache | ||
env: | ||
cache-name: cache-next-build | ||
|
@@ -41,7 +49,7 @@ jobs: | |
run: npx -p [email protected] report | ||
|
||
- name: Upload bundle | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: .next/analyze/__bundle_analysis.json | ||
name: bundle_analysis.json | ||
|
@@ -73,7 +81,7 @@ jobs: | |
run: ls -laR .next/analyze/base && npx -p nextjs-bundle-analysis compare | ||
|
||
- name: Upload analysis comment | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: analysis_comment.txt | ||
path: .next/analyze/__bundle_analysis_comment.txt | ||
|
@@ -82,7 +90,7 @@ jobs: | |
run: echo ${{ github.event.number }} > ./pr_number | ||
|
||
- name: Upload PR number | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pr_number | ||
path: ./pr_number | ||
|
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,28 @@ | ||
name: Discord Notify | ||
|
||
on: | ||
pull_request_target: | ||
types: [labeled] | ||
|
||
jobs: | ||
check_maintainer: | ||
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main | ||
with: | ||
actor: ${{ github.event.pull_request.user.login }} | ||
is_remote: true | ||
|
||
notify: | ||
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }} | ||
needs: check_maintainer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Discord Webhook Action | ||
uses: tsickert/[email protected] | ||
with: | ||
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} | ||
embed-author-name: ${{ github.event.pull_request.user.login }} | ||
embed-author-url: ${{ github.event.pull_request.user.html_url }} | ||
embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }} | ||
embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}' | ||
embed-description: ${{ github.event.pull_request.body }} | ||
embed-url: ${{ github.event.pull_request.html_url }} |
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,32 @@ | ||
name: Label Core Team PRs | ||
|
||
on: | ||
pull_request_target: | ||
|
||
env: | ||
TZ: /usr/share/zoneinfo/America/Los_Angeles | ||
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 | ||
|
||
jobs: | ||
check_maintainer: | ||
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main | ||
with: | ||
actor: ${{ github.event.pull_request.user.login }} | ||
is_remote: true | ||
|
||
label: | ||
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }} | ||
runs-on: ubuntu-latest | ||
needs: check_maintainer | ||
steps: | ||
- name: Label PR as React Core Team | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: ${{ github.event.number }}, | ||
labels: ['React Core Team'] | ||
}); |
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 |
---|---|---|
|
@@ -14,14 +14,22 @@ jobs: | |
name: Lint on node 20.x and ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: yarn | ||
cache-dependency-path: yarn.lock | ||
|
||
- name: Install deps and build (with cache) | ||
uses: bahmutov/[email protected] | ||
- name: Restore cached node_modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: "**/node_modules" | ||
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Install deps | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Lint codebase | ||
run: yarn ci-check |
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 |
---|---|---|
|
@@ -36,3 +36,6 @@ yarn-error.log* | |
|
||
# external fonts | ||
public/fonts/**/Optimistic_*.woff2 | ||
|
||
# rss | ||
public/rss.xml |
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
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 |
---|---|---|
|
@@ -15,28 +15,30 @@ | |
"prettier:diff": "yarn nit:source", | ||
"lint-heading-ids": "node scripts/headingIdLinter.js", | ||
"fix-headings": "node scripts/headingIdLinter.js --fix", | ||
"ci-check": "npm-run-all prettier:diff --parallel lint tsc lint-heading-ids", | ||
"ci-check": "npm-run-all prettier:diff --parallel lint tsc lint-heading-ids rss", | ||
"tsc": "tsc --noEmit", | ||
"start": "next start", | ||
"postinstall": "patch-package && (is-ci || husky install .husky)", | ||
"check-all": "npm-run-all prettier lint:fix tsc" | ||
"postinstall": "is-ci || husky install .husky", | ||
"check-all": "npm-run-all prettier lint:fix tsc rss", | ||
"rss": "node scripts/generateRss.js" | ||
}, | ||
"dependencies": { | ||
"@codesandbox/sandpack-react": "2.6.0", | ||
"@docsearch/css": "3.0.0-alpha.41", | ||
"@docsearch/react": "3.0.0-alpha.41", | ||
"@codesandbox/sandpack-react": "2.13.5", | ||
"@docsearch/css": "^3.8.3", | ||
"@docsearch/react": "^3.8.3", | ||
"@headlessui/react": "^1.7.0", | ||
"@radix-ui/react-context-menu": "^2.1.5", | ||
"body-scroll-lock": "^3.1.3", | ||
"classnames": "^2.2.6", | ||
"date-fns": "^2.16.1", | ||
"debounce": "^1.2.1", | ||
"github-slugger": "^1.3.0", | ||
"next": "^13.4.1", | ||
"next": "15.1.0", | ||
"next-remote-watch": "^1.0.0", | ||
"parse-numeric-range": "^1.2.0", | ||
"react": "^0.0.0-experimental-16d053d59-20230506", | ||
"react": "^19.0.0", | ||
"react-collapsed": "4.0.4", | ||
"react-dom": "^0.0.0-experimental-16d053d59-20230506", | ||
"react-dom": "^19.0.0", | ||
"remark-frontmatter": "^4.0.1", | ||
"remark-gfm": "^3.0.1" | ||
}, | ||
|
@@ -52,20 +54,22 @@ | |
"@types/mdx-js__react": "^1.5.2", | ||
"@types/node": "^14.6.4", | ||
"@types/parse-numeric-range": "^0.0.1", | ||
"@types/react": "^18.0.9", | ||
"@types/react-dom": "^18.0.5", | ||
"@types/react": "^19.0.0", | ||
"@types/react-dom": "^19.0.0", | ||
"@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", | ||
"babel-plugin-react-compiler": "19.0.0-beta-e552027-20250112", | ||
"eslint": "7.x", | ||
"eslint-config-next": "12.0.3", | ||
"eslint-config-react-app": "^5.2.1", | ||
"eslint-plugin-flowtype": "4.x", | ||
"eslint-plugin-import": "2.x", | ||
"eslint-plugin-jsx-a11y": "6.x", | ||
"eslint-plugin-react": "7.x", | ||
"eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112", | ||
"eslint-plugin-react-hooks": "^0.0.0-experimental-fabef7a6b-20221215", | ||
"fs-extra": "^9.0.1", | ||
"globby": "^11.0.1", | ||
|
@@ -76,7 +80,6 @@ | |
"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", | ||
"postcss-flexbugs-fixes": "4.2.1", | ||
"postcss-preset-env": "^6.7.0", | ||
|
@@ -92,12 +95,12 @@ | |
"retext-smartypants": "^4.0.0", | ||
"rss": "^1.2.2", | ||
"tailwindcss": "^3.4.1", | ||
"typescript": "^4.0.2", | ||
"typescript": "^5.7.2", | ||
"unist-util-visit": "^2.0.3", | ||
"webpack-bundle-analyzer": "^4.5.0" | ||
}, | ||
"engines": { | ||
"node": "^16.8.0 || ^18.0.0 || ^19.0.0 || ^20.0.0" | ||
"node": ">=16.8.0" | ||
}, | ||
"nextBundleAnalysis": { | ||
"budget": null, | ||
|
@@ -107,5 +110,6 @@ | |
"lint-staged": { | ||
"*.{js,ts,jsx,tsx,css}": "yarn prettier", | ||
"src/**/*.md": "yarn fix-headings" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
did:plc:uorpbnp2q32vuvyeruwauyhe |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square150x150logo src="/mstile-150x150.png"/> | ||
<TileColor>#2b5797</TileColor> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.