Skip to content

Commit d6ae53c

Browse files
author
Abolfazl Rezvani Naraqi
authored
Merge branch 'main' into traslation/fa-thnking-in-react
2 parents 10f435d + 572bb06 commit d6ae53c

Some content is hidden

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

55 files changed

+695
-454
lines changed

.github/workflows/analyze.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up node
1717
uses: actions/setup-node@v1
1818
with:
19-
node-version: "14.x"
19+
node-version: '20.x'
2020

2121
- name: Install dependencies
2222
uses: bahmutov/[email protected]
@@ -38,7 +38,7 @@ jobs:
3838
# Here's the first place where next-bundle-analysis' own script is used
3939
# This step pulls the raw bundle stats for the current bundle
4040
- name: Analyze bundle
41-
run: npx -p nextjs-bundle-analysis report
41+
run: npx -p nextjs-bundle-analysis@0.5.0 report
4242

4343
- name: Upload bundle
4444
uses: actions/upload-artifact@v2

.github/workflows/analyze_comment.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,9 @@ jobs:
4747
pr_number=$(cat pr_number/pr_number)
4848
echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
4949
50-
- name: Find Comment
51-
uses: peter-evans/find-comment@v1
52-
if: success()
53-
id: fc
54-
with:
55-
issue-number: ${{ steps.get-comment-body.outputs.pr-number }}
56-
body-includes: "<!-- __NEXTJS_BUNDLE -->"
57-
58-
- name: Create Comment
59-
uses: peter-evans/[email protected]
60-
if: success() && steps.fc.outputs.comment-id == 0
61-
with:
62-
issue-number: ${{ steps.get-comment-body.outputs.pr-number }}
63-
body: ${{ steps.get-comment-body.outputs.body }}
64-
65-
- name: Update Comment
66-
uses: peter-evans/[email protected]
67-
if: success() && steps.fc.outputs.comment-id != 0
50+
- name: Comment
51+
uses: marocchino/sticky-pull-request-comment@v2
6852
with:
69-
issue-number: ${{ steps.get-comment-body.outputs.pr-number }}
70-
body: ${{ steps.get-comment-body.outputs.body }}
71-
comment-id: ${{ steps.fc.outputs.comment-id }}
72-
edit-mode: replace
53+
header: next-bundle-analysis
54+
number: ${{ steps.get-comment-body.outputs.pr-number }}
55+
message: ${{ steps.get-comment-body.outputs.body }}

.github/workflows/site_lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
lint:
1212
runs-on: ubuntu-latest
1313

14-
name: Lint on node 12.x and ubuntu-latest
14+
name: Lint on node 20.x and ubuntu-latest
1515

1616
steps:
1717
- uses: actions/checkout@v1
18-
- name: Use Node.js 12.x
18+
- name: Use Node.js 20.x
1919
uses: actions/setup-node@v1
2020
with:
21-
node-version: 12.x
21+
node-version: 20.x
2222

2323
- name: Install deps and build (with cache)
2424
uses: bahmutov/[email protected]

README.md

Lines changed: 147 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
1-
<h1 dir="rtl">نسخه فارسی <a href="https://reactjs.dev/">reactjs.dev</a></h1>
1+
<h1 dir="rtl">
2+
نسخه فارسی <a href="https://reactjs.dev/">reactjs.dev</a>
3+
</h1>
24

35
<p dir="rtl">
4-
اگر این صفحه را مشاهده می‌کنید، احتمالا به ترجمه فارسی اسناد ری‌اکت (react) علاقه‌مند هستید. پس خوش‌ آمدید!
6+
اگر این صفحه را مشاهده می‌کنید، احتمالا به ترجمه فارسی اسناد ری‌اکت (react)
7+
علاقه‌مند هستید. پس خوش‌ آمدید!
58
</p>
69

710
<p dir="rtl">
8-
این مخزن کد (repo) با هدف توسعه اسناد ری‌اکت به زبان فارسی، از <a href="https://github.com/reactjs/reactjs.dev">reactjs/reactjs.dev</a> انشعاب (fork) گرفته‌است و پیوسته با نسخه اصلی همگام‌سازی می‌شود.
11+
این مخزن کد (repo) با هدف توسعه اسناد ری‌اکت به زبان فارسی، از
12+
<a href="https://github.com/reactjs/reactjs.dev">reactjs/reactjs.dev</a>
13+
انشعاب (fork) گرفته‌است و پیوسته با نسخه اصلی همگام‌سازی می‌شود.
914
</p>
1015

1116
<p dir="rtl">
12-
نسخه فارسی اسناد ری‌اکت را در <a href="https://fa.reactjs.org/" target="_blank">fa.reactjs.org</a> ببینید.
17+
نسخه فارسی اسناد ری‌اکت را در
18+
<a href="https://fa.reactjs.org/" target="_blank">
19+
fa.reactjs.org
20+
</a>
21+
ببینید.
1322
</p>
1423

1524
<h2 dir="rtl">چگونه مشارکت کنم؟</h2>
1625

17-
<p dir="rtl">
18-
پیشنهاد می‌شود به‌ترتیب از لینک‌های زیر شروع کنید:
19-
</p>
26+
<p dir="rtl">پیشنهاد می‌شود به‌ترتیب از لینک‌های زیر شروع کنید:</p>
2027
<ul dir="rtl">
2128
<li>
2229
<a href="https://github.com/reactjs/fa.reactjs.org/blob/master/CONTRIBUTING.md">
@@ -40,60 +47,70 @@
4047
</li>
4148
</ul>
4249

43-
<h2 dir="rtl">
44-
دریافت کد
45-
</h2>
50+
<h2 dir="rtl">دریافت کد</h2>
4651

47-
<h3 dir="rtl">
48-
پیش‌نیازها
49-
</h3>
52+
<h3 dir="rtl">پیش‌نیازها</h3>
5053

5154
<ul dir="rtl">
5255
<li>
5356
<a href="https://git-scm.com/downloads">Git</a>
5457
</li>
5558
<li>
5659
<a href="https://nodejs.org/en/">Node.js</a> نسخه ۱۲ (۱۲.۰.۰ به بالا)
57-
</li>
58-
<li>
59-
<a href="https://yarnpkg.com/lang/en/docs/install/">Yarn v1</a>
6060
</li>
6161
<li>
62-
یک فورک از رپو (برای مشارکت)
63-
</li>
64-
<li>
65-
یک کلون از رپوی reactjs.org بر روی ماشینتون
62+
<a href="https://yarnpkg.com/lang/en/docs/install/">Yarn v1</a>
6663
</li>
6764
</ul>
6865

6966
<h3 dir="rtl">نصب</h3>
7067

68+
# ۱. ابتدا از پروژه یک فورک بگیرید
69+
70+
در آدرس زیر بر روی دکمه `fork` کلیک کنید.
71+
سپس وارد این فورک در ری‌پوی خودتان شوید
72+
‍‍‍‍‍
73+
74+
```bash
75+
https://github.com/reactjs/fa.react.dev
76+
```
77+
78+
# ۲. یک کپی از مخزن کد بگیرید
79+
7180
```bash
72-
# ۱. یک کپی از مخزن کد بگیرید
73-
git clone https://github.com/reactjs/fa.reactjs.org.git
81+
git clone https://github.com/reactjs/fa.react.dev.git
82+
```
83+
84+
# ۳. به شاخه اصلی پروژه بروید
7485

75-
# ۲. به شاخه اصلی پروژه بروید
86+
```bash
7687
cd fa.reactjs.org
88+
```
7789

78-
# ۳. وابستگی‌های npm پروژه را نصب کنید
90+
# ۴. وابستگی‌های npm پروژه را نصب کنید
91+
92+
```bash
7993
yarn
8094
```
8195

8296
<h3 dir="rtl">اجرا</h3>
8397

84-
```bash
8598
# سرور توسعه با قابلیت بارگذاری خودکار را اجرا کنید (قدرت گرفته از Gatsby)
99+
100+
```bash
86101
yarn dev
87102
```
88103

89104
<p dir="rtl">
90-
حالا آدرس <a href="http://localhost:8000">http://localhost:8000</a> را در مرورگر دلخواه خود باز کنید و تمام!
105+
حالا آدرس <a href="http://localhost:3000">http://localhost:3000</a> را در
106+
مرورگر دلخواه خود باز کنید و تمام!
91107
</p>
92108

93109
<h3 dir="rtl">سوالی دارید؟</h3>
94110

95111
‌<p dir="rtl">
96112
اگر سوالی دارید با نگاه‌دارندگان تماس بگیرید یا <a href="https://github.com/reactjs/fa.reactjs.org/issues/new">یک موضوع (issue) جدید</a> ثبت کنید!
113+
97114
</p>
98115

99116
<h2 dir="rtl">مشارکت‌کنندگان</h2>
@@ -134,20 +151,114 @@ yarn dev
134151
<h3 dir="rtl">نگاه‌دارندگان</h3>
135152

136153
<table>
137-
<tr>
138-
<td align="center"><a href="https://github.com/rezvani2647"><img src="https://avatars1.githubusercontent.com/u/61161472?v=4?s=64" width="64px;" alt=""/><br /><sub><b>Abolfazl Rezvani Naraqi</b></sub></a></td>
139-
<td align="center"><a href="https://github.com/Schabaani"><img src="https://avatars3.githubusercontent.com/u/16123923?v=4?s=64" width="64px;" alt=""/><br /><sub><b>Amir Shabani</b></sub></a></td>
140-
<td align="center"><a href="http://refactor.ir/"><img src="https://avatars2.githubusercontent.com/u/10113477?v=4?s=64" width="64px;" alt=""/><br /><sub><b>Masoud Bahrami</b></sub></a></td>
141-
<td align="center"><a href="https://github.com/seven-deuce"><img src="https://avatars1.githubusercontent.com/u/40258654?v=4?s=64" width="64px;" alt=""/><br /><sub><b>Mehdi</b></sub></a></td>
142-
<td align="center"><a href="https://github.com/sJJdGG"><img src="https://avatars1.githubusercontent.com/u/25764288?v=4?s=64" width="64px;" alt=""/><br /><sub><b>sJJdGG</b></sub></a></td>
143-
<td align="center"><a href="http://sorousht.com/"><img src="https://avatars2.githubusercontent.com/u/3072018?v=4?s=64" width="64px;" alt=""/><br /><sub><b>Soroush Torkzadeh</b></sub></a></td>
144-
<td align="center"><a href="https://github.com/zahrajoulaei"><img src="https://avatars0.githubusercontent.com/u/13994544?v=4?s=64" width="64px;" alt=""/><br /><sub><b>ZahraCandoIt!</b></sub></a></td>
154+
<tr>
155+
<td align="center">
156+
<a href="https://github.com/rezvani2647">
157+
<img
158+
src="https://avatars1.githubusercontent.com/u/61161472?v=4?s=64"
159+
width="64px;"
160+
alt=""
161+
/>
162+
<br />
163+
<sub>
164+
<b>Abolfazl Rezvani Naraqi</b>
165+
</sub>
166+
</a>
167+
</td>
168+
<td align="center">
169+
<a href="https://github.com/Schabaani">
170+
<img
171+
src="https://avatars3.githubusercontent.com/u/16123923?v=4?s=64"
172+
width="64px;"
173+
alt=""
174+
/>
175+
<br />
176+
<sub>
177+
<b>Amir Shabani</b>
178+
</sub>
179+
</a>
180+
</td>
181+
<td align="center">
182+
<a href="http://refactor.ir/">
183+
<img
184+
src="https://avatars2.githubusercontent.com/u/10113477?v=4?s=64"
185+
width="64px;"
186+
alt=""
187+
/>
188+
<br />
189+
<sub>
190+
<b>Masoud Bahrami</b>
191+
</sub>
192+
</a>
193+
</td>
194+
<td align="center">
195+
<a href="https://github.com/seven-deuce">
196+
<img
197+
src="https://avatars1.githubusercontent.com/u/40258654?v=4?s=64"
198+
width="64px;"
199+
alt=""
200+
/>
201+
<br />
202+
<sub>
203+
<b>Mehdi</b>
204+
</sub>
205+
</a>
206+
</td>
207+
<td align="center">
208+
<a href="https://github.com/sJJdGG">
209+
<img
210+
src="https://avatars1.githubusercontent.com/u/25764288?v=4?s=64"
211+
width="64px;"
212+
alt=""
213+
/>
214+
<br />
215+
<sub>
216+
<b>sJJdGG</b>
217+
</sub>
218+
</a>
219+
</td>
220+
<td align="center">
221+
<a href="http://sorousht.com/">
222+
<img
223+
src="https://avatars2.githubusercontent.com/u/3072018?v=4?s=64"
224+
width="64px;"
225+
alt=""
226+
/>
227+
<br />
228+
<sub>
229+
<b>Soroush Torkzadeh</b>
230+
</sub>
231+
</a>
232+
</td>
233+
<td align="center">
234+
<a href="https://github.com/zahrajoulaei">
235+
<img
236+
src="https://avatars0.githubusercontent.com/u/13994544?v=4?s=64"
237+
width="64px;"
238+
alt=""
239+
/>
240+
<br />
241+
<sub>
242+
<b>ZahraCandoIt!</b>
243+
</sub>
244+
</a>
245+
</td>
145246
</tr>
146247
</table>
147-
<p dir="rtl">اسم شما فراموش شده‌است؟‌ <a href="https://github.com/reactjs/fa.reactjs.org/issues/new">به ما تذکر دهید!</a></p>
248+
<p dir="rtl">
249+
اسم شما فراموش شده‌است؟‌{' '}
250+
<a href="https://github.com/reactjs/fa.reactjs.org/issues/new">
251+
به ما تذکر دهید!
252+
</a>
253+
</p>
148254

149255
<h2 dir="rtl">مجوز</h2>
150256

151257
<p dir="rtl">
152-
محتوایی که در <a href="https://reactjs.org/">reactjs.org</a> قرار می‌گیرد، تخت مجوز CC-BY-4.0 منتشر می‌شود که جزئیات آن در <a href="https://github.com/open-source-explorer/reactjs.org/blob/master/LICENSE-DOCS.md">LICENSE-DOCS.md</a> آمده‌است.
258+
محتوایی که در <a href="https://reactjs.org/">reactjs.org</a> قرار می‌گیرد، تخت
259+
مجوز CC-BY-4.0 منتشر می‌شود که جزئیات آن در{' '}
260+
<a href="https://github.com/open-source-explorer/reactjs.org/blob/master/LICENSE-DOCS.md">
261+
LICENSE-DOCS.md
262+
</a>{' '}
263+
آمده‌است.
153264
</p>

next.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const nextConfig = {
99
pageExtensions: ['jsx', 'js', 'ts', 'tsx', 'mdx', 'md'],
1010
reactStrictMode: true,
1111
experimental: {
12-
plugins: true,
12+
// TODO: Remove after https://github.com/vercel/next.js/issues/49355 is fixed
13+
appDir: false,
1314
scrollRestoration: true,
1415
legacyBrowsers: false,
15-
browsersListForSwc: true,
1616
},
1717
env: {
1818
SANDPACK_BARE_COMPONENTS: process.env.SANDPACK_BARE_COMPONENTS,

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
"debounce": "^1.2.1",
3333
"ga-lite": "^2.1.4",
3434
"github-slugger": "^1.3.0",
35-
"next": "12.3.2-canary.7",
35+
"next": "^13.4.1",
3636
"next-remote-watch": "^1.0.0",
3737
"parse-numeric-range": "^1.2.0",
38-
"react": "0.0.0-experimental-cb5084d1c-20220924",
38+
"react": "^0.0.0-experimental-16d053d59-20230506",
3939
"react-collapsed": "npm:@gaearon/[email protected]",
40-
"react-dom": "0.0.0-experimental-cb5084d1c-20220924",
40+
"react-dom": "^0.0.0-experimental-16d053d59-20230506",
4141
"remark-frontmatter": "^4.0.1",
4242
"remark-gfm": "^3.0.1"
4343
},
@@ -98,7 +98,7 @@
9898
"webpack-bundle-analyzer": "^4.5.0"
9999
},
100100
"engines": {
101-
"node": ">=12.x"
101+
"node": "^16.8.0 || ^18.0.0 || ^19.0.0 || ^20.0.0"
102102
},
103103
"nextBundleAnalysis": {
104104
"budget": null,

patches/next+12.3.2-canary.7.patch

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)