Skip to content

Commit aaec1b3

Browse files
authored
Merge pull request #1 from reactjs/main
Pull changes
2 parents fa3f0cc + de12f13 commit aaec1b3

File tree

145 files changed

+21035
-3106
lines changed

Some content is hidden

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

145 files changed

+21035
-3106
lines changed

.github/workflows/analyze.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- main # change this if your default branch is named differently
88
workflow_dispatch:
99

10+
permissions: {}
11+
1012
jobs:
1113
analyze:
1214
runs-on: ubuntu-latest
@@ -23,7 +25,7 @@ jobs:
2325
- name: Restore cached node_modules
2426
uses: actions/cache@v4
2527
with:
26-
path: "**/node_modules"
28+
path: '**/node_modules'
2729
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
2830

2931
- name: Install deps
@@ -55,7 +57,7 @@ jobs:
5557
name: bundle_analysis.json
5658

5759
- name: Download base branch bundle stats
58-
uses: dawidd6/action-download-artifact@v2
60+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
5961
if: success() && github.event.number
6062
with:
6163
workflow: analyze.yml
@@ -82,6 +84,7 @@ jobs:
8284

8385
- name: Upload analysis comment
8486
uses: actions/upload-artifact@v4
87+
if: success() && github.event.number
8588
with:
8689
name: analysis_comment.txt
8790
path: .next/analyze/__bundle_analysis_comment.txt

.github/workflows/analyze_comment.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,30 @@ name: Analyze Bundle (Comment)
22

33
on:
44
workflow_run:
5-
workflows: ["Analyze Bundle"]
5+
workflows: ['Analyze Bundle']
66
types:
77
- completed
88

9+
permissions:
10+
pull-requests: write
11+
912
jobs:
1013
comment:
1114
runs-on: ubuntu-latest
1215
if: >
13-
${{ github.event.workflow_run.event == 'pull_request' &&
14-
github.event.workflow_run.conclusion == 'success' }}
16+
github.event.workflow_run.event == 'pull_request' &&
17+
github.event.workflow_run.conclusion == 'success'
1518
steps:
1619
- name: Download base branch bundle stats
17-
uses: dawidd6/action-download-artifact@v2
20+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
1821
with:
1922
workflow: analyze.yml
2023
run_id: ${{ github.event.workflow_run.id }}
2124
name: analysis_comment.txt
2225
path: analysis_comment.txt
2326

2427
- name: Download PR number
25-
uses: dawidd6/action-download-artifact@v2
28+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
2629
with:
2730
workflow: analyze.yml
2831
run_id: ${{ github.event.workflow_run.id }}
@@ -48,7 +51,7 @@ jobs:
4851
echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
4952
5053
- name: Comment
51-
uses: marocchino/sticky-pull-request-comment@v2
54+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
5255
with:
5356
header: next-bundle-analysis
5457
number: ${{ steps.get-comment-body.outputs.pr-number }}

.github/workflows/discord_notify.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ name: Discord Notify
22

33
on:
44
pull_request_target:
5-
types: [labeled]
5+
types: [opened, ready_for_review]
6+
7+
permissions: {}
68

79
jobs:
810
check_maintainer:
911
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main
12+
permissions:
13+
# Used by check_maintainer
14+
contents: read
1015
with:
1116
actor: ${{ github.event.pull_request.user.login }}
12-
is_remote: true
1317

1418
notify:
1519
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Discord notify for a Ukrainian community--UTLC (#react-docs-alert channel)
2+
name: Discord Notify
3+
4+
on:
5+
pull_request_target:
6+
types: [closed, opened, reopened, ready_for_review]
7+
8+
permissions: {}
9+
10+
jobs:
11+
notify:
12+
if: github.repository == 'reactjs/uk.react.dev'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Discord Webhook Action (UTLC)
16+
uses: tsickert/discord-webhook@v6.0.0
17+
with:
18+
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL_UTLC }}
19+
embed-author-name: ${{ github.event.sender.login }}
20+
embed-author-url: ${{ github.event.sender.html_url }}
21+
embed-author-icon-url: ${{ github.event.sender.avatar_url }}
22+
embed-title: "${{ github.event.action == 'closed' && github.event.pull_request.merged == true && 'merged' || github.event.action }} #${{ github.event.number }}: ${{ github.event.pull_request.title }}"
23+
embed-description: ${{ github.event.pull_request.body }}
24+
embed-url: ${{ github.event.pull_request.html_url }}
25+
embed-footer-text: >
26+
diff: +${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}

.github/workflows/label_core_team_prs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Label Core Team PRs
33
on:
44
pull_request_target:
55

6+
permissions: {}
7+
68
env:
79
TZ: /usr/share/zoneinfo/America/Los_Angeles
810
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout
@@ -11,14 +13,21 @@ env:
1113
jobs:
1214
check_maintainer:
1315
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main
16+
permissions:
17+
# Used by check_maintainer
18+
contents: read
1419
with:
1520
actor: ${{ github.event.pull_request.user.login }}
16-
is_remote: true
1721

1822
label:
1923
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
2024
runs-on: ubuntu-latest
2125
needs: check_maintainer
26+
permissions:
27+
# Used to add labels on issues
28+
issues: write
29+
# Used to add labels on PRs
30+
pull-requests: write
2231
steps:
2332
- name: Label PR as React Core Team
2433
uses: actions/github-script@v7

.github/workflows/site_lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
permissions: {}
11+
1012
jobs:
1113
lint:
1214
runs-on: ubuntu-latest
@@ -25,7 +27,7 @@ jobs:
2527
- name: Restore cached node_modules
2628
uses: actions/cache@v4
2729
with:
28-
path: "**/node_modules"
30+
path: '**/node_modules'
2931
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
3032

3133
- name: Install deps

TRANSLATION.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,23 @@
7474
| Орудний | _пропом_ | _пропсами_ |
7575
| Місцевий | _пропі_ | _пропсах_ |
7676

77+
Бандл
78+
79+
| Відмінок | Однина | Множина |
80+
| -------- | ------ | ------- |
81+
| Називний | _бандл_ | _бандли_ |
82+
| Родовий | _бандла_ | _бандлів_ |
83+
| Давальний | _бандлу_ | _бандлам_ |
84+
| Знахідний | _бандл_ | _бандли_ |
85+
| Орудний | _бандлом_ | _бандлами_ |
86+
| Місцевий | _бандлі_ | _бандлах_ |
87+
7788
Бандлер
7889

7990
| Відмінок | Однина | Множина |
8091
| -------- | ------ | ------- |
8192
| Називний | _бандлер_ | _бандлери_ |
82-
| Родовий | _бандлеру_ | _бандлерів_ |
93+
| Родовий | _бандлера_ | _бандлерів_ |
8394
| Давальний | _бандлеру_ | _бандлерам_ |
8495
| Знахідний | _бандлер_ | _бандлери_ |
8596
| Орудний | _бандлером_ | _бандлерами_ |
@@ -100,15 +111,19 @@
100111

101112
| Оригінал | Переклад |
102113
| ------------------ | ---------- |
103-
| API reference | API довідник |
114+
| API reference | Довідник API |
104115
| app | застосунок |
105116
| array | масив |
106117
| arrow function | стрілкова функція |
107118
| attribute | атрибут |
108119
| batch | група оновлень |
109120
| batching | групування |
110121
| browser | браузер |
122+
| build | збірка (результат); збирання (процес створення збірки); збирати (пакет, збірку); будувати, створити (компонент, архітектуру) |
123+
| build tool | інструмент збирання |
124+
| build tooling | інструменти збирання |
111125
| bug | помилка, дефект |
126+
| bundle | бандл; запаковувати |
112127
| bundler | бандлер |
113128
| callback | функція зворотного виклику |
114129
| camelCase | *camelCase* |
@@ -125,7 +140,7 @@
125140
| development | розробка |
126141
| development mode | режим розробки |
127142
| developer tools | інструменти розробника |
128-
| React developer tools | інструменти React розробника |
143+
| React developer tools | інструменти розробника React |
129144
| DOM container | DOM-контейнер |
130145
| effect | ефект |
131146
| encapsulation | інкапсуляція |
@@ -135,7 +150,7 @@
135150
| error log | лог помилок |
136151
| event handler | обробник події |
137152
| fallback | запасний |
138-
| feature | особливість |
153+
| feature | функція; особливість |
139154
| framework | фреймворк |
140155
| function component | функційний компонент |
141156
| helper | допоміжний(а); *helper function — допоміжна функція* |
@@ -160,12 +175,15 @@
160175
| Note | Примітка |
161176
| online | онлайн |
162177
| online playground | онлайн пісочниця |
178+
| overview | огляд; вступ (тільки як вступна частина розділів та сторінок)|
163179
| package manager | менеджер пакетів |
180+
| package registry | реєстр пакетів |
164181
| paint | фарбування, перефарбування |
182+
| performance | продуктивність (TODO: розглянути "швидкодію") |
165183
| prop | проп |
166184
| props | пропси |
167-
| production | продакшн |
168-
| production mode | продакшн-режим |
185+
| production | публічне середовище; впровадження |
186+
| production mode | (у режимі) публічного середовища; режим публічного впровадження |
169187
| reducer | редюсер |
170188
| reuse | повторне використання, перевикористання |
171189
| React | React |

postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ module.exports = {
1717
},
1818
},
1919
},
20-
}
20+
};
168 KB
Loading
407 KB
Loading

0 commit comments

Comments
 (0)