Skip to content

Commit aa8a62a

Browse files
Merge branch 'main' into pr/654
2 parents 5988d6b + 8d6531f commit aa8a62a

File tree

675 files changed

+68011
-30165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

675 files changed

+68011
-30165
lines changed

.github/workflows/analyze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
node-version: "14.x"
2020

2121
- name: Install dependencies
22-
uses: bahmutov/npm-install@v1.6.0
22+
uses: bahmutov/npm-install@v1.7.10
2323
with:
2424
working-directory: 'beta'
2525

.github/workflows/beta_site_lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
name: Beta Site Lint
1+
name: Beta Site Lint / Heading ID check
22

33
on:
4+
push:
5+
branches:
6+
- main # change this if your default branch is named differently
47
pull_request:
58
types: [opened, synchronize, reopened]
69

@@ -18,7 +21,7 @@ jobs:
1821
node-version: 12.x
1922

2023
- name: Install deps and build (with cache)
21-
uses: bahmutov/npm-install@v1.6.0
24+
uses: bahmutov/npm-install@v1.7.10
2225
with:
2326
working-directory: 'beta'
2427

.github/workflows/nodejs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
name: Build
1+
name: Lint / Flow check
22

33
on:
4+
push:
5+
branches:
6+
- main # change this if your default branch is named differently
47
pull_request:
58
types: [opened, synchronize, reopened]
69

@@ -18,7 +21,7 @@ jobs:
1821
node-version: 12.x
1922

2023
- name: Install deps and build (with cache)
21-
uses: bahmutov/npm-install@v1.6.0
24+
uses: bahmutov/npm-install@v1.7.10
2225

2326
- name: Lint codebase
2427
run: yarn ci-check

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.16.1
1+
12.22.0

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
1. 挑选你想要翻译或校对的文章 [New Chinese Website: TODOs](https://github.com/reactjs/zh-hans.reactjs.org/issues/4)
1717
2. 请 fork 这个仓库
18-
3. 基于 fork 后的仓库中 master 分支拉取一个新的分支(名字自取)
18+
3. 基于 fork 后的仓库中 main 分支拉取一个新的分支(名字自取)
1919
4. 翻译(校对)你所选择的文章,提交到新的分支
2020
5. 此时提交 Pull Request 到该仓库
2121
6. 会有专人 Review 该 Pull Request,当两人以上通过该 Pull Request 时,你的翻译将被合并到仓库中
@@ -34,13 +34,13 @@
3434
2. 同步 git fetch 上游代码
3535

3636
```
37-
$ git checkout master && git fetch upstream
37+
$ git checkout main && git fetch upstream
3838
```
3939

40-
3. 将上游代码合并至你 fork 后的仓库(master 分支)中,保证你的 master 分支永远是最新版本
40+
3. 将上游代码合并至你 fork 后的仓库(main 分支)中,保证你的 main 分支永远是最新版本
4141

4242
```
43-
$ git merge upstream/master
43+
$ git merge upstream/main
4444
```
4545

4646
4. 重复翻译流程
@@ -63,7 +63,7 @@
6363

6464
1. Choose the article you want to translate or proofread [New Chinese Website: TODOs](https://github.com/reactjs/zh-hans.reactjs.org/issues/4)
6565
2. Please fork this repo
66-
3. In the repo after fork, create a new branch (custom branch name) based on the master branch.
66+
3. In the repo after fork, create a new branch (custom branch name) based on the main branch.
6767
4. Translation or proofread article, and commit your branch
6868
5. Commit your PR to this repo
6969
6. Please wait for Review.
@@ -83,10 +83,10 @@
8383
```
8484
$ git fetch upstream
8585
```
86-
3. Merge upstream/master to your repo/master
86+
3. Merge upstream/main to your repo/main
8787

8888
```
89-
$ git checkout master && git merge upstream/master
89+
$ git checkout main && git merge upstream/main
9090
```
9191
4. Re-execute the translation process
9292

@@ -96,7 +96,7 @@
9696

9797
1. Git
9898
1. Node: any 12.x version starting with v12.0.0 or greater
99-
1. Yarn: See [Yarn website for installation instructions](https://yarnpkg.com/lang/en/docs/install/)
99+
1. Yarn v1: See [Yarn website for installation instructions](https://yarnpkg.com/lang/en/docs/install/)
100100
1. A fork of the repo (for any contributions)
101101
1. A clone of the [reactjs.org repo](https://github.com/reactjs/reactjs.org) on your local machine
102102

@@ -141,7 +141,7 @@ The documentation is divided into several sections with a different tone and pur
141141
1. `git push my-fork-name the-name-of-my-branch`
142142
1. Go to the [reactjs.org repo](https://github.com/reactjs/reactjs.org) and you should see recently pushed branches.
143143
1. Follow GitHub's instructions.
144-
1. If possible, include screenshots of visual changes. A [Netlify](https://www.netlify.com/) build will also be automatically created once you make your PR so other people can see your change.
144+
1. If possible, include screenshots of visual changes. A preview build is triggered after your changes are pushed to GitHub.
145145

146146
## Translation
147147

@@ -155,4 +155,4 @@ If your language does not have a translation and you would like to create one, p
155155
- `yarn reset` to clear the local cache
156156

157157
## License
158-
Content submitted to [reactjs.org](https://reactjs.org/) is CC-BY-4.0 licensed, as found in the [LICENSE-DOCS.md](https://github.com/open-source-explorer/reactjs.org/blob/master/LICENSE-DOCS.md) file.
158+
Content submitted to [reactjs.org](https://reactjs.org/) is CC-BY-4.0 licensed, as found in the [LICENSE-DOCS.md](LICENSE-DOCS.md) file.

beta/.env.development

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
NEXT_PUBLIC_HJ_SITE_ID = 2411683
2-
NEXT_PUBLIC_HJ_SITE_V = 6
1+
SANDPACK_BARE_COMPONENTS=true

beta/.env.production

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
NEXT_PUBLIC_HJ_SITE_ID = 2411651
2-
NEXT_PUBLIC_HJ_SITE_V = 6
1+
NEXT_PUBLIC_GA_TRACKING_ID = 'UA-41298772-4'
2+
SANDPACK_BARE_COMPONENTS=true

beta/.eslintrc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
22
"root": true,
3-
"extends": "next",
3+
"extends": "next/core-web-vitals",
4+
"parser": "@typescript-eslint/parser",
5+
"plugins": ["@typescript-eslint"],
6+
"rules": {
7+
"no-unused-vars": "off",
8+
"@typescript-eslint/no-unused-vars": "warn"
9+
},
410
"env": {
511
"node": true,
612
"commonjs": true,
713
"browser": true,
814
"es6": true
915
}
10-
}
16+
}

beta/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# misc
1919
.DS_Store
2020
*.pem
21+
tsconfig.tsbuildinfo
2122

2223
# debug
2324
npm-debug.log*
@@ -32,3 +33,8 @@ yarn-error.log*
3233

3334
# vercel
3435
.vercel
36+
37+
# external fonts
38+
public/fonts/Optimistic_Display_W_Lt.woff2
39+
public/fonts/Optimistic_Display_W_Md.woff2
40+
public/fonts/Optimistic_Display_W_Bd.woff2

beta/.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
cd beta
5-
# yarn generate-ids
6-
# git add -u src/pages/**/*.md
7-
yarn prettier
8-
yarn lint:fix
5+
yarn lint-staged

0 commit comments

Comments
 (0)