-
-
Notifications
You must be signed in to change notification settings - Fork 522
Expand file tree
/
Copy pathconfig.json
More file actions
640 lines (640 loc) · 13.9 KB
/
Copy pathconfig.json
File metadata and controls
640 lines (640 loc) · 13.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
{
"title": "Preact: Fast 3kb React alternative with the same ES6 API. Components & Virtual DOM.",
"name": "Preact",
"languages": {
"en": "English",
"ja": "Japanese",
"zh": "简体中文",
"fr": "French",
"es": "Spanish",
"tr": "Turkish",
"pt-br": "Brazilian Portuguese",
"de": "German",
"it": "Italian",
"kr": "Korean"
},
"repo": "preact",
"docsearch": {
"apiKey": "2a2ff54c5bfa1eea173cdfbe8a0bcace",
"indexName": "preact"
},
"i18n": {
"next": {
"en": "Next Page",
"ja": "次のページ",
"de": "Nächste Seite",
"fr": "Page Suivante",
"es": "Siguiente Página",
"tr": "Sonraki Sayfa",
"it": "Pagina Successiva",
"pt-br": "Próxima Página",
"zh": "下一页",
"kr": "다음"
},
"previous": {
"en": "Previous Page",
"ja": "前のページ",
"de": "Vorherige Seite",
"fr": "Page Précédente",
"es": "Pagina Anterior",
"tr": "Önceki Sayfa",
"it": "Pagina Precedente",
"pt-br": "Página Anterior",
"zh": "上一页",
"kr": "이전"
},
"continueReading": {
"en": "Continue reading",
"de": "Weiter lesen",
"zh": "继续阅读"
}
},
"nav": [
{
"path": "/",
"name": "Preact",
"title": "Home",
"class": "home",
"flair": "logo",
"content": "index"
},
{
"path": "/branding",
"title": "Branding",
"skipHeader": true
},
{
"path": "/tutorial/:step?",
"href": "/tutorial/",
"first": "index",
"name": {
"en": "Tutorial",
"zh": "教程"
},
"controller": "Tutorial"
},
{
"name": {
"en": "Guide",
"de": "Anleitung",
"pt-br": "Guia",
"ja": "ガイド",
"es": "Guía",
"zh": "指南"
},
"content": "guide",
"path": "/guide/:version?/:page?",
"href": "/guide/v10/getting-started"
},
{
"name": {
"en": "About",
"de": "Mehr",
"pt-br": "Sobre",
"ja": "Preactについて",
"es": "Sobre",
"zh": "关于"
},
"content": "about",
"routes": [
{
"path": "/about/we-are-using",
"name": {
"en": "Companies using Preact",
"de": "Firmen die Preact benutzen",
"pt-br": "Empresas que usam Preact",
"ja": "Preactを使っている企業",
"es": "Empresas que usan Preact",
"zh": "使用 Preact 的企业"
}
},
{
"path": "/about/libraries-addons",
"name": {
"en": "Libraries & Add-ons",
"de": "Bibliotheken & Erweiterungen",
"pt-br": "Bibliotecas e Complementos",
"ja": "ライブラリとアドオン",
"es": "Librerías y complementos",
"zh": "第三方库和附加组件"
}
},
{
"path": "/about/demos-examples",
"name": {
"en": "Demos & Examples",
"de": "Beispiel-Projekte",
"pt-br": "Demonstrações e exemplos",
"ja": "デモと例",
"es": "Demostraciones y ejemplos",
"zh": "示例"
}
},
{
"path": "/about/project-goals",
"name": {
"en": "Project Goals",
"de": "Projekt-Ziele",
"pt-br": "Objetivos do Projeto",
"ja": "Preactの目的",
"es": "Objetivos del proyecto",
"zh": "项目目标"
}
},
{
"path": "/about/browser-support",
"name": {
"en": "Browser Support",
"de": "Browserunterstützung",
"pt-br": "Suporte do navegador",
"ja": "ブラウザのサポート",
"es": "Soporte de navegadores",
"zh": "浏览器支持"
}
}
]
},
{
"path": "/blog",
"name": {
"en": "Blog",
"zh": "博客"
},
"first": "index",
"content": "blog",
"controller": "Blog"
},
{
"path": "/repl",
"name": {
"en": "REPL",
"zh": "在线试用"
},
"controller": "Repl"
}
],
"docs": [
{
"path": "/guide/v8/getting-started",
"name": {
"en": "Getting Started",
"pt-br": "Começando",
"de": "Los geht's",
"zh": "开始上手"
}
},
{
"path": "/guide/v8/differences-to-react",
"name": {
"en": "Differences to React",
"pt-br": "Diferenças do React",
"de": "Unterschiede zu React",
"zh": "与 React 的区别"
}
},
{
"path": "/guide/v8/switching-to-preact",
"name": {
"en": "Switching to Preact",
"pt-br": "Mudando para Preact",
"de": "Wechsel zu Preact",
"zh": "从 React 转到 Preact"
}
},
{
"path": "/guide/v8/types-of-components",
"name": {
"en": "Types of Components",
"pt-br": "Tipos de Componentes",
"de": "Komponenten-Typen",
"zh": "组件类型"
}
},
{
"path": "/guide/v8/api-reference",
"name": {
"en": "API Reference",
"pt-br": "Referência da API",
"de": "API Referenz",
"zh": "API 参考"
}
},
{
"path": "/guide/v8/forms",
"name": {
"en": "Forms",
"pt-br": "Formulários",
"de": "Formulare",
"zh": "表单"
}
},
{
"path": "/guide/v8/linked-state",
"name": {
"en": "Linked State",
"zh": "关联状态"
}
},
{
"path": "/guide/v8/external-dom-mutations",
"name": {
"en": "External DOM Mutations",
"pt-br": "Mutações do DOM externas",
"de": "Externe DOM Mutationen",
"zh": "外部 DOM 修改"
}
},
{
"path": "/guide/v8/extending-component",
"name": {
"en": "Extending Component",
"pt-br": "Extendendo Componentes",
"de": "Komponente Erweitern",
"zh": "扩展组件"
}
},
{
"path": "/guide/v8/unit-testing-with-enzyme",
"name": {
"en": "Unit Testing with Enzyme",
"pt-br": "Teste unitado com Enzyme",
"de": "Unit-Tests mit Enzyme",
"zh": "使用 Enzyme 进行单元测试"
}
},
{
"path": "/guide/v8/progressive-web-apps",
"name": {
"en": "Progressive Web Apps",
"zh": "渐进式 Web 应用"
}
},
{
"name": {
"en": "Introduction",
"de": "Einführung",
"zh": "介绍"
},
"routes": [
{
"path": "/guide/v10/getting-started",
"name": {
"en": "Getting Started",
"pt-br": "Começando",
"ja": "はじめに",
"de": "Los geht's",
"zh": "开始上手"
}
},
{
"path": "/guide/v10/whats-new",
"name": {
"en": "What's new?",
"ja": "Preact Xの新機能",
"pt-br": "o que há de novo",
"zh": "新鲜功能"
}
},
{
"path": "/guide/v10/upgrade-guide",
"name": {
"en": "Upgrading from 8.x",
"pt-br": "Fazendo upgrade do 8.x",
"ja": "Preact 8.xからのアップグレード",
"de": "Migration von 8.x",
"zh": "从 8.x 版本更新"
}
},
{
"path": "/guide/v10/tutorial",
"name": {
"en": "Tutorial",
"pt-br": "Tutorial",
"ja": "チュートリアル",
"de": "Tutorial",
"zh": "教程"
}
}
]
},
{
"name": {
"en": "Essentials",
"zh": "基础"
},
"routes": [
{
"path": "/guide/v10/components",
"name": {
"en": "Components",
"pt-br": "Componentes",
"ja": "コンポーネント",
"de": "Komponenten",
"zh": "组件"
}
},
{
"path": "/guide/v10/hooks",
"name": {
"en": "Hooks",
"pt-br": "Hooks",
"ja": "フック(Hooks)",
"de": "Hooks",
"zh": "钩子"
}
},
{
"path": "/guide/v10/signals",
"name": {
"en": "Signals",
"zh": "信号"
}
},
{
"path": "/guide/v10/forms",
"name": {
"en": "Forms",
"pt-br": "Formulários",
"ja": "フォーム",
"de": "Formulare",
"zh": "表单"
}
},
{
"path": "/guide/v10/refs",
"name": {
"en": "References",
"pt-br": "Referências",
"ja": "リファレンス(Ref)",
"de": "Referenzen",
"zh": "引用"
}
},
{
"path": "/guide/v10/context",
"name": {
"en": "Context",
"pt-br": "Contexto",
"ja": "コンテキスト(Context)",
"de": "Kontext",
"zh": "上下文"
}
}
]
},
{
"name": {
"en": "React compatibility",
"zh": "React 兼容性"
},
"routes": [
{
"path": "/guide/v10/differences-to-react",
"name": {
"en": "Differences to React",
"pt-br": "Diferenças do React",
"ja": "Reactとの違い",
"de": "Unterschiede zu React",
"kr": "React와의 차이점",
"zh": "与 React 的区别"
}
},
{
"path": "/guide/v10/switching-to-preact",
"name": {
"en": "Switching to Preact",
"pt-br": "Mudando para Preact",
"ja": "Preactへの移行",
"de": "Wechsel zu Preact",
"kr": "Preact로 전환",
"zh": "从 React 转到 Preact"
}
}
]
},
{
"name": {
"en": "TypeScript"
},
"routes": [
{
"path": "/guide/v10/configuring-typescript",
"name": {
"en": "Configuring TypeScript"
}
},
{
"path": "/guide/v10/using-typescript",
"name": {
"en": "Using TypeScript"
}
}
]
},
{
"name": {
"en": "Debug & Test",
"zh": "调试与测试"
},
"routes": [
{
"path": "/guide/v10/debugging",
"name": {
"en": "Debugging Tools",
"pt-br": "Ferramentas de depuração",
"ja": "デバッグツール",
"de": "Entwickler-Tools",
"zh": "调试工具"
}
},
{
"path": "/guide/v10/preact-testing-library",
"name": {
"en": "Preact Testing Library",
"pt-br": "Preact Testing Library",
"ja": "Preact Testing Library",
"de": "Preact Testing Library",
"zh": "Preact 测试库"
}
},
{
"path": "/guide/v10/unit-testing-with-enzyme",
"name": {
"en": "Unit Testing with Enzyme",
"pt-br": "Teste unitario com Enzyme",
"ja": "Enzymeを使った単体テスト",
"de": "Unit-Tests mit Enzyme",
"kr": "Enzyme를 이용한 유닛 테스트",
"zh": "使用 Enzyme 进行单元测试"
}
}
]
},
{
"name": {
"en": "Advanced",
"de": "Fortgeschritten",
"zh": "进阶"
},
"routes": [
{
"path": "/guide/v10/api-reference",
"name": {
"en": "API Reference",
"pt-br": "Referência da API",
"ja": "APIリファレンス",
"de": "API Referenz",
"zh": "API 参考"
}
},
{
"path": "/guide/v10/web-components",
"name": {
"en": "Web Components",
"pt-br": "Web Components",
"ja": "Webコンポーネント",
"de": "Web Components",
"zh": "Web 组件"
}
},
{
"path": "/guide/v10/progressive-web-apps",
"name": {
"en": "Progressive Web Apps",
"zh": "渐进式 Web 应用"
}
},
{
"path": "/guide/v10/server-side-rendering",
"name": {
"en": "Server-Side Rendering",
"pt-br": "Server-Side Rendering",
"ja": "サーバーサイドレンダリング",
"de": "Server-Side Rendering",
"zh": "服务端渲染"
}
},
{
"path": "/guide/v10/external-dom-mutations",
"name": {
"en": "External DOM Mutations",
"pt-br": "Mutações do DOM externas",
"ja": "Preactのステート管理の範囲外のDOMとの連携",
"de": "Externe DOM Mutationen",
"zh": "外部 DOM 修改"
}
},
{
"path": "/guide/v10/options",
"name": {
"en": "Option Hooks",
"ja": "オプションフック",
"de": "Optionen",
"zh": "选项钩子"
}
}
]
},
{
"name": {
"en": "CLI"
},
"content": "cli",
"routes": [
{
"path": "/guide/v10/cli",
"name": {
"en": "Introduction",
"pt-br": "Introdução",
"ja": "Preact CLI",
"es": "Introducción",
"zh": "介绍"
}
},
{
"path": "/guide/v10/cli/getting-started",
"name": {
"en": "Getting started",
"pt-br": "Começando",
"ja": "はじめに",
"es": "Empezando",
"zh": "快速入门"
}
},
{
"path": "/guide/v10/cli/service-worker",
"name": {
"en": "Service Workers",
"ja": "Service Worker",
"zh": "Service Worker"
}
},
{
"path": "/guide/v10/cli/pre-rendering",
"name": {
"en": "Pre-rendering",
"pt-br": "Pré-renderização",
"ja": "プリレンダリング",
"es": "Pre-renderización",
"zh": "预渲染"
}
}
]
}
],
"blogAuthors": [
{ "name": "Jason Miller", "link": "https://twitter.com/_developit" },
{
"name": "Marvin Hagemeister",
"link": "https://twitter.com/marvinhagemeist"
},
{
"name": "Joachim Viide",
"link": "https://infosec.exchange/@jviide"
}
],
"blog": [
{
"path": "/blog/signal-boosting",
"name": {
"en": "Signal Boosting",
"zh": "信号增强"
},
"date": "2022-09-23",
"excerpt": {
"en": "The new release of Preact Signals brings significant performance updates to the foundations of the reactive system. Read on to learn what kinds of tricks we employed to make this happen.",
"zh": "全新版本 Preact 信号为反应系统带来了显著的性能提升,阅读本文来了解其背后的工作原理。"
}
},
{
"path": "/blog/introducing-signals",
"name": {
"en": "Introducing Signals",
"zh": "初见信号"
},
"date": "2022-09-06",
"excerpt": {
"en": "Signals are an easier way to manage your application's state compared to hooks. A signal is a container object with a special \"value\" property that holds some value. Reading a signal's value property from within a component or computed function automatically subscribes to updates, and writing to the value property triggers subscriptions.",
"zh": "信号是相比钩子更为简单直接的状态管理方式,这种存储容器对象的 \"value\" 属性可以存储值。阅读本文来了解如何在组件或计算函数中使用信号和其自动订阅更新和触发订阅的方式。"
}
}
],
"branding": [
{
"name": "logo-text",
"alt": "Full Logo"
},
{
"name": "logo-text-inverted",
"alt": "Full Logo with Inverted Colors"
},
{
"name": "symbol",
"alt": "Preact Symbol"
},
{
"name": "symbol-inverted",
"alt": "Preact Symbol with Inverted Colors"
}
]
}