Skip to content

Commit b845976

Browse files
authored
Merge branch 'main' into main
2 parents c48f7f2 + 819e4e2 commit b845976

File tree

165 files changed

+4806
-2284
lines changed

Some content is hidden

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

165 files changed

+4806
-2284
lines changed

.env.development

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
SANDPACK_BARE_COMPONENTS=true

.env.production

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

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"plugins": ["@typescript-eslint"],
66
"rules": {
77
"no-unused-vars": "off",
8-
"@typescript-eslint/no-unused-vars": "warn"
8+
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_" }],
9+
"react-hooks/exhaustive-deps": "error"
910
},
1011
"env": {
1112
"node": true,

.github/workflows/analyze.yml

Lines changed: 1 addition & 1 deletion
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]

.github/workflows/site_lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ 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
19-
uses: actions/setup-node@v1
18+
- name: Use Node.js 20.x
19+
uses: actions/setup-node@v3
2020
with:
21-
node-version: 12.x
21+
node-version: 20.x
2222

2323
- name: Install deps and build (with cache)
24-
uses: bahmutov/npm-install@v1.7.10
24+
uses: bahmutov/npm-install@v1.8.32
2525

2626
- name: Lint codebase
2727
run: yarn ci-check

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,23 @@ yarn dev
243243
</sub>
244244
</a>
245245
</td>
246+
<td align="center">
247+
<a href="https://avatars.githubusercontent.com/u/22578309?v=4">
248+
<img
249+
src="https://avatars.githubusercontent.com/u/22578309?v=4"
250+
width="64px;"
251+
alt=""
252+
/>
253+
<br />
254+
<sub>
255+
<b>Anna Abadi </b>
256+
</sub>
257+
</a>
258+
</td>
246259
</tr>
247260
</table>
248261
<p dir="rtl">
249-
اسم شما فراموش شده‌است؟‌{' '}
262+
اسم شما فراموش شده‌است؟‌
250263
<a href="https://github.com/reactjs/fa.reactjs.org/issues/new">
251264
به ما تذکر دهید!
252265
</a>
@@ -256,9 +269,9 @@ yarn dev
256269

257270
<p dir="rtl">
258271
محتوایی که در <a href="https://reactjs.org/">reactjs.org</a> قرار می‌گیرد، تخت
259-
مجوز CC-BY-4.0 منتشر می‌شود که جزئیات آن در{' '}
272+
مجوز CC-BY-4.0 منتشر می‌شود که جزئیات آن د
260273
<a href="https://github.com/open-source-explorer/reactjs.org/blob/master/LICENSE-DOCS.md">
261274
LICENSE-DOCS.md
262-
</a>{' '}
275+
</a>
263276
آمده‌است.
264277
</p>

STYLE-GUIDE.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
<h1 dir="rtl">شیوه‌ نگارش</h1>
22

3-
<p dir="rtl">
3+
<p dir="rtl" style="font-family:'vazirmatn'">
44
برای حفظ یکپارچگی ترجمه در تمام صفحات و همچنین میان سایر زبان‌ها، لطفا قوانین زیر را مدنظر داشته‌باشید.
55
</p>
66

7+
8+
<h2 dir="rtl"> افزودن تگ اضافی </h2>
9+
10+
<p dir="rtl"> .هیچ تگی یا اضافاتی مثل استایل و دایرکشن نباید به سند اصلی اضافه شود تنها وظفه ما تغییر محتوای انگلیسی به فارسی است. </p>
11+
12+
<h2 dir="rtl"> موارد داخل تگ‌های خاص و بک تیک (`) - (``) - (```) </h2>
13+
14+
<p dir="rtl"> موارد داخل تگ‌های خاص مانند Sandpack و غیره اصلا ترجمه نخواهد نشد. </p>
15+
16+
<h2 dir="rtl"> حفظ شماره خط </h2>
17+
18+
<p dir="rtl"> تا جایی که امکان دارد شماره خط را راعایت کنیم. برای مثال پاراگرافی از خط ۹۰ الی ۹۵ می‌باشد. و پاراگراف بعدی از خط ۱۰۰ شروع می‌شود. اگر ترجمه ما بین خط ۹۰ الی ۹۳ قرار گرفت پاراگراف بعدی از خط ۹۸ شروع نخواهد شد بلکه همان خط ۱۰۰ باقی می‌ماند. این نکته اصلا اجباری نیست و صرفا جهت تمیز تر بودن و راحتی بررسی ترجمه گفته شده است. </p>
19+
20+
<h2 dir="rtl"> بررسی اولیه پروژه قبل از ایجاد PR </h2>
21+
22+
<p dir="rtl"> همیشه قبل ایجاد پی‌آر ابتدا پروژه را در محیط لوکال خود ران کنید و از نداشتن ارور‌های جانبی مطمین شوید به عبارت دیگر صفحه ای که ترجمه کردید باید رد سیستم شما روی پروت ۳۰۰۰ بدون ارور اجرا شود. </p>
23+
24+
725
<h2 dir="rtl">شناسه عنوان‌ها</h2>
826

927
<p dir="rtl">هر عنوانی یک شناسه منحصربه‌فرد دارد، مانند زیر:</p>
@@ -103,4 +121,4 @@ A stateful component inherits <code>Component</code> <a href="https://en.wikiped
103121
</p>
104122
<p dir="rtl">
105123
اگر فکر می‌کنید چیزی فراموش شده‌است یا نیاز به تصحیح دارد، حتما نظر خود را با ما درمیان بگذارید.
106-
</p>
124+
</p>

next.config.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ 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,
16-
},
17-
env: {
18-
SANDPACK_BARE_COMPONENTS: process.env.SANDPACK_BARE_COMPONENTS,
1916
},
17+
env: {},
2018
webpack: (config, {dev, isServer, ...options}) => {
2119
if (process.env.ANALYZE) {
2220
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
@@ -35,10 +33,6 @@ const nextConfig = {
3533

3634
const {IgnorePlugin, NormalModuleReplacementPlugin} = require('webpack');
3735
config.plugins.push(
38-
new NormalModuleReplacementPlugin(
39-
/^@stitches\/core$/,
40-
require.resolve('./src/utils/emptyShim.js')
41-
),
4236
new NormalModuleReplacementPlugin(
4337
/^raf$/,
4438
require.resolve('./src/utils/rafShim.js')

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"check-all": "npm-run-all prettier lint:fix tsc"
2323
},
2424
"dependencies": {
25-
"@codesandbox/sandpack-react": "1.15.5",
25+
"@codesandbox/sandpack-react": "2.6.0",
2626
"@docsearch/css": "3.0.0-alpha.41",
2727
"@docsearch/react": "3.0.0-alpha.41",
2828
"@headlessui/react": "^1.7.0",
@@ -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",
39-
"react-collapsed": "npm:@gaearon/[email protected]",
40-
"react-dom": "0.0.0-experimental-cb5084d1c-20220924",
38+
"react": "^0.0.0-experimental-16d053d59-20230506",
39+
"react-collapsed": "4.0.4",
40+
"react-dom": "^0.0.0-experimental-16d053d59-20230506",
4141
"remark-frontmatter": "^4.0.1",
4242
"remark-gfm": "^3.0.1"
4343
},
@@ -92,13 +92,13 @@
9292
"retext": "^7.0.1",
9393
"retext-smartypants": "^4.0.0",
9494
"rss": "^1.2.2",
95-
"tailwindcss": "^3.0.22",
95+
"tailwindcss": "^3.3.2",
9696
"typescript": "^4.0.2",
9797
"unist-util-visit": "^2.0.3",
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/@codemirror+lang-javascript+0.19.6.patch

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

0 commit comments

Comments
 (0)