Skip to content

Commit b609f11

Browse files
authored
docs(cndocs): sync translations and bump cnwebsite dependencies (#1024)
Translation fixes: - scrollview.md: class= → className= (5 occurrences, matching upstream) - stylesheet.md: remove orphaned absoluteFillObject section (EN removed it) - profiling.md: add missing systrace deprecation note Dependency sync (cnwebsite/package.json): - Docusaurus 3.10.0 → 3.10.1 - React 19.2.4 → 19.2.6 - TypeScript 5.9.3 → 6.0.3 - sass 1.98.0 → 1.99.0 - eslint, prettier, @prettier/plugin-oxc minor bumps 20 candidates from sync-translations.sh reviewed: - 3 files with real drift fixed (scrollview, stylesheet, profiling) - 8 stubs already synced (checkbox, clipboard, datepickerandroid, etc.) - 9 files already aligned (appstate, colors, element-nodes, etc.)
1 parent 3ffca04 commit b609f11

5 files changed

Lines changed: 29 additions & 160 deletions

File tree

cndocs/profiling.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ Android 支持 10k+ 不同的手机,并被泛化以支持软件渲染:框架
1515

1616
调试这种卡顿的第一步是回答一个基本问题:在每个 16ms 帧期间,您的时间花在哪里。为此,我们将使用 [Android Studio 中内置的系统跟踪分析器](https://developer.android.com/studio/profile)
1717

18+
:::note
19+
独立的 `systrace` 工具已从 Android platform-tools 中移除。请改用 Android Studio Profiler,它提供了相同的功能,但不是独立工具。
20+
:::
21+
1822
### 1. 收集跟踪
1923

2024
首先,通过 USB 将表现出您想要调查的卡顿的设备连接到计算机。在 Android Studio 中打开项目的 `android` 文件夹,在右上方窗格中选择您的设备,然后[以可分析模式运行您的项目](https://developer.android.com/studio/profile#build-and-run)

cndocs/scrollview.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ const styles = StyleSheet.create({
265265

266266
---
267267

268-
### `endFillColor` <div class="label android">Android</div>
268+
### `endFillColor` <div className="label android">Android</div>
269269

270270
有时候滚动视图会占据比实际内容更多的空间。这种情况下可以使用此属性,指定以某种颜色来填充多余的空间,以避免设置背景和创建不必要的绘制开销。一般情况下并不需要这种高级优化技巧。
271271

@@ -275,7 +275,7 @@ const styles = StyleSheet.create({
275275

276276
---
277277

278-
### `fadingEdgeLength` <div class="label android">Android</div>
278+
### `fadingEdgeLength` <div className="label android">Android</div>
279279

280280
滚动内容的边缘会逐渐淡出。
281281

@@ -392,7 +392,7 @@ _仅 iOS 可用的值_
392392

393393
---
394394

395-
### `nestedScrollEnabled` <div class="label android">Android</div>
395+
### `nestedScrollEnabled` <div className="label android">Android</div>
396396

397397
在 Android API level 21(5.0)以上启用嵌套滚动。iOS 上默认支持嵌套滚动。
398398

@@ -514,7 +514,7 @@ _仅 iOS 可用的值_
514514

515515
---
516516

517-
### `persistentScrollbar` <div class="label android">Android</div>
517+
### `persistentScrollbar` <div className="label android">Android</div>
518518

519519
当滚动条不使用时,滚动条不会变透明。
520520

@@ -586,7 +586,7 @@ _仅 iOS 可用的值_
586586

587587
---
588588

589-
### `scrollPerfTag` <div class="label android">Android</div>
589+
### `scrollPerfTag` <div className="label android">Android</div>
590590

591591
用于记录此滚动视图的滚动性能。会强制开启动量事件(见 sendMomentumEvents)。这不会在默认情况下做任何事情,你需要实现一个自定义的 native FpsListener 才能使其有用。
592592

cndocs/stylesheet.md

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -252,70 +252,6 @@ export default App;
252252
253253
---
254254
255-
### `absoluteFillObject`
256-
257-
有时你可能想要 `absoluteFill` 但需要做一些微调——`absoluteFillObject` 可用于在 `StyleSheet` 中创建自定义条目,例如:
258-
259-
```SnackPlayer name=absoluteFillObject
260-
import React from 'react';
261-
import {StyleSheet, Text, View} from 'react-native';
262-
import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';
263-
264-
const App = () => (
265-
<SafeAreaProvider>
266-
<SafeAreaView style={styles.container}>
267-
<View style={styles.box1}>
268-
<Text style={styles.text}>1</Text>
269-
</View>
270-
<View style={styles.box2}>
271-
<Text style={styles.text}>2</Text>
272-
</View>
273-
<View style={styles.box3}>
274-
<Text style={styles.text}>3</Text>
275-
</View>
276-
</SafeAreaView>
277-
</SafeAreaProvider>
278-
);
279-
280-
const styles = StyleSheet.create({
281-
container: {
282-
flex: 1,
283-
},
284-
box1: {
285-
position: 'absolute',
286-
top: 40,
287-
left: 40,
288-
width: 100,
289-
height: 100,
290-
backgroundColor: 'red',
291-
},
292-
box2: {
293-
...StyleSheet.absoluteFillObject,
294-
top: 120,
295-
left: 50,
296-
width: 100,
297-
height: 100,
298-
backgroundColor: 'blue',
299-
},
300-
box3: {
301-
...StyleSheet.absoluteFillObject,
302-
top: 120,
303-
left: 120,
304-
width: 100,
305-
height: 100,
306-
backgroundColor: 'green',
307-
},
308-
text: {
309-
color: '#FFF',
310-
fontSize: 80,
311-
},
312-
});
313-
314-
export default App;
315-
```
316-
317-
---
318-
319255
### `hairlineWidth`
320256
321257
定义为平台上细线的宽度。可以用作边框或两个元素之间分隔线的粗细。示例:

cnwebsite/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,31 @@
4747
]
4848
},
4949
"dependencies": {
50-
"@docusaurus/core": "3.10.0",
51-
"@docusaurus/faster": "3.10.0",
52-
"@docusaurus/plugin-google-gtag": "3.10.0",
53-
"@docusaurus/plugin-pwa": "3.10.0",
54-
"@docusaurus/preset-classic": "3.10.0",
50+
"@docusaurus/core": "3.10.1",
51+
"@docusaurus/faster": "3.10.1",
52+
"@docusaurus/plugin-google-gtag": "3.10.1",
53+
"@docusaurus/plugin-pwa": "3.10.1",
54+
"@docusaurus/preset-classic": "3.10.1",
5555
"docusaurus-plugin-sass": "^0.2.6",
56-
"react": "^19.2.4",
57-
"react-dom": "^19.2.4",
56+
"react": "^19.2.6",
57+
"react-dom": "^19.2.6",
5858
"react-github-btn": "^1.4.0",
59-
"@docusaurus/theme-mermaid": "3.10.0"
59+
"@docusaurus/theme-mermaid": "3.10.1"
6060
},
6161
"devDependencies": {
62-
"@docusaurus/module-type-aliases": "3.10.0",
63-
"@docusaurus/tsconfig": "3.10.0",
64-
"@docusaurus/types": "3.10.0",
65-
"@prettier/plugin-oxc": "^0.1.3",
62+
"@docusaurus/module-type-aliases": "3.10.1",
63+
"@docusaurus/tsconfig": "3.10.1",
64+
"@docusaurus/types": "3.10.1",
65+
"@prettier/plugin-oxc": "^0.1.4",
6666
"@react-native-website/lint-examples": "*",
6767
"@signalwire/docusaurus-plugin-llms-txt": "^1.2.2",
6868
"@types/google.analytics": "^0.0.46",
6969
"@types/react": "^19.2.14",
70-
"eslint": "^9.39.3",
70+
"eslint": "^9.39.4",
7171
"glob": "^13.0.6",
72-
"prettier": "^3.8.1",
72+
"prettier": "^3.8.3",
7373
"remark-cli": "^12.0.1",
74-
"sass": "1.98.0",
75-
"typescript": "^5.9.3"
74+
"sass": "1.99.0",
75+
"typescript": "^6.0.3"
7676
}
7777
}

yarn.lock

Lines changed: 4 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
js-tokens "^4.0.0"
199199
picocolors "^1.1.1"
200200

201-
"@babel/compat-data@^7.28.6", "@babel/compat-data@^7.29.0", "@babel/compat-data@^7.29.3":
201+
"@babel/compat-data@^7.28.6", "@babel/compat-data@^7.29.3":
202202
version "7.29.3"
203203
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.29.3.tgz#e3f5347f0589596c91d227ccb6a541d37fb1307b"
204204
integrity sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==
@@ -820,7 +820,7 @@
820820
"@babel/helper-module-transforms" "^7.28.6"
821821
"@babel/helper-plugin-utils" "^7.28.6"
822822

823-
"@babel/plugin-transform-modules-systemjs@^7.29.0", "@babel/plugin-transform-modules-systemjs@^7.29.4":
823+
"@babel/plugin-transform-modules-systemjs@^7.29.4":
824824
version "7.29.4"
825825
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.29.4.tgz#f621105da99919c15cf4bde6fcc7346ef95e7b20"
826826
integrity sha512-N7QmZ0xRZfjHOfZeQLJjwgX2zS9pdGHSVl/cjSGlo4dXMqvurfxXDMKY4RqEKzPozV78VMcd0lxyG13mlbKc4w==
@@ -4921,15 +4921,6 @@
49214921
"@typescript-eslint/visitor-keys" "8.59.3"
49224922
debug "^4.4.3"
49234923

4924-
"@typescript-eslint/project-service@8.59.0":
4925-
version "8.59.0"
4926-
resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.59.0.tgz#914bf62069d870faa0389ffd725774a200f511bf"
4927-
integrity sha512-Lw5ITrR5s5TbC19YSvlr63ZfLaJoU6vtKTHyB0GQOpX0W7d5/Ir6vUahWi/8Sps/nOukZQ0IB3SmlxZnjaKVnw==
4928-
dependencies:
4929-
"@typescript-eslint/tsconfig-utils" "^8.59.0"
4930-
"@typescript-eslint/types" "^8.59.0"
4931-
debug "^4.4.3"
4932-
49334924
"@typescript-eslint/project-service@8.59.3":
49344925
version "8.59.3"
49354926
resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.59.3.tgz#1be5ae152aad987a156c9a1a9b4256e75cfbbe0c"
@@ -4939,14 +4930,6 @@
49394930
"@typescript-eslint/types" "^8.59.3"
49404931
debug "^4.4.3"
49414932

4942-
"@typescript-eslint/scope-manager@8.59.0":
4943-
version "8.59.0"
4944-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.59.0.tgz#f71be268bd31da1c160815c689e4dde7c9bc9e8e"
4945-
integrity sha512-UzR16Ut8IpA3Mc4DbgAShlPPkVm8xXMWafXxB0BocaVRHs8ZGakAxGRskF7FId3sdk9lgGD73GSFaWmWFDE4dg==
4946-
dependencies:
4947-
"@typescript-eslint/types" "8.59.0"
4948-
"@typescript-eslint/visitor-keys" "8.59.0"
4949-
49504933
"@typescript-eslint/scope-manager@8.59.3":
49514934
version "8.59.3"
49524935
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.59.3.tgz#91a60f66803fe9dae0696fbab2451f5723f119d2"
@@ -4955,27 +4938,11 @@
49554938
"@typescript-eslint/types" "8.59.3"
49564939
"@typescript-eslint/visitor-keys" "8.59.3"
49574940

4958-
"@typescript-eslint/tsconfig-utils@8.59.0":
4959-
version "8.59.0"
4960-
resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.59.0.tgz#1276077f5ad77e384446ea28a2474e8f8be1af41"
4961-
integrity sha512-91Sbl3s4Kb3SybliIY6muFBmHVv+pYXfybC4Oolp3dvk8BvIE3wOPc+403CWIT7mJNkfQRGtdqghzs2+Z91Tqg==
4962-
4963-
"@typescript-eslint/tsconfig-utils@8.59.3", "@typescript-eslint/tsconfig-utils@^8.59.0", "@typescript-eslint/tsconfig-utils@^8.59.3":
4941+
"@typescript-eslint/tsconfig-utils@8.59.3", "@typescript-eslint/tsconfig-utils@^8.59.3":
49644942
version "8.59.3"
49654943
resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.59.3.tgz#88ca9036b42ccdd1e630cfdafd2e042c2ca6a835"
49664944
integrity sha512-PcIJHjmaREXLgIAIzLnSY9VucEzz8FKXsRgFa1DmdGCK/5tJpW03TKJF01Q6VZd1lLdz2sIKPWaDUZN9dp//dw==
49674945

4968-
"@typescript-eslint/type-utils@8.59.0":
4969-
version "8.59.0"
4970-
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.59.0.tgz#2834ea3b179cedfc9244dcd4f74105a27751a439"
4971-
integrity sha512-3TRiZaQSltGqGeNrJzzr1+8YcEobKH9rHnqIp/1psfKFmhRQDNMGP5hBufanYTGznwShzVLs3Mz+gDN7HkWfXg==
4972-
dependencies:
4973-
"@typescript-eslint/types" "8.59.0"
4974-
"@typescript-eslint/typescript-estree" "8.59.0"
4975-
"@typescript-eslint/utils" "8.59.0"
4976-
debug "^4.4.3"
4977-
ts-api-utils "^2.5.0"
4978-
49794946
"@typescript-eslint/type-utils@8.59.3":
49804947
version "8.59.3"
49814948
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.59.3.tgz#421fb2448bdfeb301d134a01cd02503f67fd8192"
@@ -4987,31 +4954,11 @@
49874954
debug "^4.4.3"
49884955
ts-api-utils "^2.5.0"
49894956

4990-
"@typescript-eslint/types@8.59.0":
4991-
version "8.59.0"
4992-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.59.0.tgz#cfcc643c6e879016479775850d86d84c14492738"
4993-
integrity sha512-nLzdsT1gdOgFxxxwrlNVUBzSNBEEHJ86bblmk4QAS6stfig7rcJzWKqCyxFy3YRRHXDWEkb2NralA1nOYkkm/A==
4994-
4995-
"@typescript-eslint/types@8.59.3", "@typescript-eslint/types@^8.59.0", "@typescript-eslint/types@^8.59.3":
4957+
"@typescript-eslint/types@8.59.3", "@typescript-eslint/types@^8.59.3":
49964958
version "8.59.3"
49974959
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.59.3.tgz#b7ca539c5e302fdde9a7cadb73caed107ef8f2cd"
49984960
integrity sha512-ePFoH0g4ludssdRFqqDxQePCxU4WQyRa9+XVwjm7yLn0FKhMeoetC+qBEEI1Eyb1pGSDveTIT09Bvw2WhlGayg==
49994961

5000-
"@typescript-eslint/typescript-estree@8.59.0":
5001-
version "8.59.0"
5002-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.59.0.tgz#feba58a70ab6ea7ac53a2f3ae900db28ce3454c2"
5003-
integrity sha512-O9Re9P1BmBLFJyikRbQpLku/QA3/AueZNO9WePLBwQrvkixTmDe8u76B6CYUAITRl/rHawggEqUGn5QIkVRLMw==
5004-
dependencies:
5005-
"@typescript-eslint/project-service" "8.59.0"
5006-
"@typescript-eslint/tsconfig-utils" "8.59.0"
5007-
"@typescript-eslint/types" "8.59.0"
5008-
"@typescript-eslint/visitor-keys" "8.59.0"
5009-
debug "^4.4.3"
5010-
minimatch "^10.2.2"
5011-
semver "^7.7.3"
5012-
tinyglobby "^0.2.15"
5013-
ts-api-utils "^2.5.0"
5014-
50154962
"@typescript-eslint/typescript-estree@8.59.3":
50164963
version "8.59.3"
50174964
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.59.3.tgz#e6bb1408e00b47e431427a40268db4e86cb121ab"
@@ -5027,16 +4974,6 @@
50274974
tinyglobby "^0.2.15"
50284975
ts-api-utils "^2.5.0"
50294976

5030-
"@typescript-eslint/utils@8.59.0":
5031-
version "8.59.0"
5032-
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.59.0.tgz#f50df9bd6967881ef64fba62230111153179ead5"
5033-
integrity sha512-I1R/K7V07XsMJ12Oaxg/O9GfrysGTmCRhvZJBv0RE0NcULMzjqVpR5kRRQjHsz3J/bElU7HwCO7zkqL+MSUz+g==
5034-
dependencies:
5035-
"@eslint-community/eslint-utils" "^4.9.1"
5036-
"@typescript-eslint/scope-manager" "8.59.0"
5037-
"@typescript-eslint/types" "8.59.0"
5038-
"@typescript-eslint/typescript-estree" "8.59.0"
5039-
50404977
"@typescript-eslint/utils@8.59.3", "@typescript-eslint/utils@^8.0.0", "@typescript-eslint/utils@^8.58.2":
50414978
version "8.59.3"
50424979
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.59.3.tgz#f693f979deb4dc3994de03ff8b23976d625c36c5"
@@ -5047,14 +4984,6 @@
50474984
"@typescript-eslint/types" "8.59.3"
50484985
"@typescript-eslint/typescript-estree" "8.59.3"
50494986

5050-
"@typescript-eslint/visitor-keys@8.59.0":
5051-
version "8.59.0"
5052-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.59.0.tgz#2e80de30e7e944ed4bd47d751e37dcb04db03795"
5053-
integrity sha512-/uejZt4dSere1bx12WLlPfv8GktzcaDtuJ7s42/HEZ5zGj9oxRaD4bj7qwSunXkf+pbAhFt2zjpHYUiT5lHf0Q==
5054-
dependencies:
5055-
"@typescript-eslint/types" "8.59.0"
5056-
eslint-visitor-keys "^5.0.0"
5057-
50584987
"@typescript-eslint/visitor-keys@8.59.3":
50594988
version "8.59.3"
50604989
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.59.3.tgz#820843b1b5ca4290009cf189382abcf6fe00dfa6"

0 commit comments

Comments
 (0)