Skip to content

Commit 724c3c4

Browse files
authored
fix: update origin 20.3.2 (#1083)
* fix: update origin to 20.3.2 * fix: migrate new files * fix: migrate untranslated files * fix: migrate markdown translation changes * fix: migrate source code translation changes * fix: update patches for Angular 20.3.2 compatibility * fix: resolve textlint redundant expression errors
1 parent bd8e635 commit 724c3c4

Some content is hidden

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

44 files changed

+1195
-1368
lines changed

adev-ja/src/app/core/layout/navigation/navigation.component.en.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
aria-label="Select Angular version"
152152
role="menu"
153153
class="adev-version-button"
154-
[class.adev-mini-menu-open]="openedMenu === 'version-picker'"
154+
[class.adev-mini-menu-open]="openedMenu() === 'version-picker'"
155155
[cdkMenuTriggerFor]="docsVersionMiniMenu"
156156
[cdkMenuPosition]="miniMenuPositions"
157157
(cdkMenuClosed)="closeMenu()"
@@ -299,7 +299,7 @@
299299
<!-- Bottom section of primary nav -->
300300
<div class="adev-nav__bottom">
301301
<!-- Social Icons Dots -->
302-
<div class="adev-nav-item" [class.adev-nav-item--active]="openedMenu === 'social'">
302+
<div class="adev-nav-item" [class.adev-nav-item--active]="openedMenu() === 'social'">
303303
<button
304304
type="button"
305305
[cdkMenuTriggerFor]="socialMiniMenu"
@@ -447,7 +447,7 @@
447447
</ng-template>
448448
</div>
449449
<!-- TODO: Refactor this and make it better. Accessible, animated, etc. -->
450-
<div class="adev-nav-item" [class.adev-nav-item--active]="openedMenu === 'theme-picker'">
450+
<div class="adev-nav-item" [class.adev-nav-item--active]="openedMenu() === 'theme-picker'">
451451
<button
452452
type="button"
453453
[cdkMenuTriggerFor]="themeMiniMenu"

adev-ja/src/app/core/layout/navigation/navigation.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
aria-label="Select Angular version"
152152
role="menu"
153153
class="adev-version-button"
154-
[class.adev-mini-menu-open]="openedMenu === 'version-picker'"
154+
[class.adev-mini-menu-open]="openedMenu() === 'version-picker'"
155155
[cdkMenuTriggerFor]="docsVersionMiniMenu"
156156
[cdkMenuPosition]="miniMenuPositions"
157157
(cdkMenuClosed)="closeMenu()"
@@ -296,7 +296,7 @@
296296
<!-- Bottom section of primary nav -->
297297
<div class="adev-nav__bottom">
298298
<!-- Social Icons Dots -->
299-
<div class="adev-nav-item" [class.adev-nav-item--active]="openedMenu === 'social'">
299+
<div class="adev-nav-item" [class.adev-nav-item--active]="openedMenu() === 'social'">
300300
<button
301301
type="button"
302302
[cdkMenuTriggerFor]="socialMiniMenu"
@@ -444,7 +444,7 @@
444444
</ng-template>
445445
</div>
446446
<!-- TODO: Refactor this and make it better. Accessible, animated, etc. -->
447-
<div class="adev-nav-item" [class.adev-nav-item--active]="openedMenu === 'theme-picker'">
447+
<div class="adev-nav-item" [class.adev-nav-item--active]="openedMenu() === 'theme-picker'">
448448
<button
449449
type="button"
450450
[cdkMenuTriggerFor]="themeMiniMenu"

adev-ja/src/app/features/home/home.component.en.html

Lines changed: 454 additions & 442 deletions
Large diffs are not rendered by default.

adev-ja/src/app/features/home/home.component.html

Lines changed: 450 additions & 440 deletions
Large diffs are not rendered by default.

adev-ja/src/app/features/update/update.component.en.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,8 @@ export default class UpdateComponent {
128128
}
129129
}
130130

131-
@HostListener('click', ['$event'])
132-
copyCode(event: Event) {
133-
const {tagName, textContent} = event.target as Element;
134-
131+
@HostListener('click', ['$event.target'])
132+
copyCode({tagName, textContent}: Element) {
135133
if (tagName === 'CODE') {
136134
this.clipboard.copy(textContent!);
137135
this.snackBar.open('Copied to clipboard', '', {duration: 2000});

adev-ja/src/app/features/update/update.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ export default class UpdateComponent {
128128
}
129129
}
130130

131-
@HostListener('click', ['$event'])
132-
copyCode(event: Event) {
133-
const {tagName, textContent} = event.target as Element;
131+
@HostListener('click', ['$event.target'])
132+
copyCode({tagName, textContent}: Element) {
134133

135134
if (tagName === 'CODE') {
136135
this.clipboard.copy(textContent!);

adev-ja/src/app/routing/sub-navigation-data.en.ts

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -677,66 +677,6 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
677677
path: 'guide/drag-drop',
678678
contentPath: 'guide/drag-drop',
679679
},
680-
// TODO: unwrap to release Angular Aria docs.
681-
...(isDevMode()
682-
? [
683-
{
684-
label: 'Angular Aria',
685-
children: [
686-
{
687-
label: 'Overview',
688-
path: 'guide/aria/overview',
689-
contentPath: 'guide/aria/overview',
690-
},
691-
{
692-
label: 'Accordion',
693-
path: 'guide/aria/accordion',
694-
contentPath: 'guide/aria/accordion',
695-
},
696-
{
697-
label: 'Combobox',
698-
path: 'guide/aria/combobox',
699-
contentPath: 'guide/aria/combobox',
700-
},
701-
{
702-
label: 'Grid',
703-
path: 'guide/aria/grid',
704-
contentPath: 'guide/aria/grid',
705-
},
706-
{
707-
label: 'Listbox',
708-
path: 'guide/aria/listbox',
709-
contentPath: 'guide/aria/listbox',
710-
},
711-
{
712-
label: 'Menu',
713-
path: 'guide/aria/menu',
714-
contentPath: 'guide/aria/menu',
715-
},
716-
{
717-
label: 'Radio Group',
718-
path: 'guide/aria/radio',
719-
contentPath: 'guide/aria/radio',
720-
},
721-
{
722-
label: 'Tabs',
723-
path: 'guide/aria/tabs',
724-
contentPath: 'guide/aria/tabs',
725-
},
726-
{
727-
label: 'Toolbar',
728-
path: 'guide/aria/toolbar',
729-
contentPath: 'guide/aria/toolbar',
730-
},
731-
{
732-
label: 'Tree',
733-
path: 'guide/aria/tree',
734-
contentPath: 'guide/aria/tree',
735-
},
736-
],
737-
},
738-
]
739-
: []),
740680
],
741681
},
742682
{
@@ -1491,18 +1431,6 @@ const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [
14911431
path: 'reference/migrations/self-closing-tags',
14921432
contentPath: 'reference/migrations/self-closing-tags',
14931433
},
1494-
{
1495-
label: 'NgClass to Class',
1496-
path: 'reference/migrations/ngclass-to-class',
1497-
contentPath: 'reference/migrations/ngclass-to-class',
1498-
status: 'new',
1499-
},
1500-
{
1501-
label: 'NgStyle to Style',
1502-
path: 'reference/migrations/ngstyle-to-style',
1503-
contentPath: 'reference/migrations/ngstyle-to-style',
1504-
status: 'new',
1505-
},
15061434
],
15071435
},
15081436
];

adev-ja/src/app/routing/sub-navigation-data.ts

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -677,66 +677,6 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
677677
path: 'guide/drag-drop',
678678
contentPath: 'guide/drag-drop',
679679
},
680-
// TODO: unwrap to release Angular Aria docs.
681-
...(isDevMode()
682-
? [
683-
{
684-
label: 'Angular Aria',
685-
children: [
686-
{
687-
label: 'Overview',
688-
path: 'guide/aria/overview',
689-
contentPath: 'guide/aria/overview',
690-
},
691-
{
692-
label: 'Accordion',
693-
path: 'guide/aria/accordion',
694-
contentPath: 'guide/aria/accordion',
695-
},
696-
{
697-
label: 'Combobox',
698-
path: 'guide/aria/combobox',
699-
contentPath: 'guide/aria/combobox',
700-
},
701-
{
702-
label: 'Grid',
703-
path: 'guide/aria/grid',
704-
contentPath: 'guide/aria/grid',
705-
},
706-
{
707-
label: 'Listbox',
708-
path: 'guide/aria/listbox',
709-
contentPath: 'guide/aria/listbox',
710-
},
711-
{
712-
label: 'Menu',
713-
path: 'guide/aria/menu',
714-
contentPath: 'guide/aria/menu',
715-
},
716-
{
717-
label: 'Radio Group',
718-
path: 'guide/aria/radio',
719-
contentPath: 'guide/aria/radio',
720-
},
721-
{
722-
label: 'Tabs',
723-
path: 'guide/aria/tabs',
724-
contentPath: 'guide/aria/tabs',
725-
},
726-
{
727-
label: 'Toolbar',
728-
path: 'guide/aria/toolbar',
729-
contentPath: 'guide/aria/toolbar',
730-
},
731-
{
732-
label: 'Tree',
733-
path: 'guide/aria/tree',
734-
contentPath: 'guide/aria/tree',
735-
},
736-
],
737-
},
738-
]
739-
: []),
740680
],
741681
},
742682
{
@@ -1499,18 +1439,6 @@ const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [
14991439
path: 'reference/migrations/self-closing-tags',
15001440
contentPath: 'reference/migrations/self-closing-tags',
15011441
},
1502-
{
1503-
label: 'NgClass to Class',
1504-
path: 'reference/migrations/ngclass-to-class',
1505-
contentPath: 'reference/migrations/ngclass-to-class',
1506-
status: 'new',
1507-
},
1508-
{
1509-
label: 'NgStyle to Style',
1510-
path: 'reference/migrations/ngstyle-to-style',
1511-
contentPath: 'reference/migrations/ngstyle-to-style',
1512-
status: 'new',
1513-
},
15141442
],
15151443
},
15161444
];

adev-ja/src/content/ai/develop-with-ai.en.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ The Angular CLI includes an experimental [Model Context Protocol (MCP) server](h
3939
* <a href="/context/llm-files/llms-full.txt" target="_blank">llms-full.txt</a> - a more robust compiled set of resources describing how Angular works and how to build Angular applications.
4040

4141
Be sure [to check out the overview page](/ai) for more information on how to integrate AI into your Angular applications.
42+
43+
## Web Codegen Scorer
44+
The Angular team developed and open-sourced the [Web Codegen Scorer](https://github.com/angular/web-codegen-scorer), a tool to evaluate and score the quality of AI generated web code. You can use this tool to make evidence-based decisions relating to AI-generated code, such as fine-tuning prompts to improve the accuracy of LLM-generated code for Angular. These prompts can be included as system instructions for your AI tooling or as context with your prompt. You can also use this tool to compare the quality of code produced by different models and monitor quality over time as models and agents evolve.
45+

adev-ja/src/content/ai/develop-with-ai.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ Angular CLIには、開発環境のAIアシスタントがAngular CLIと連携
3939
* <a href="/context/llm-files/llms-full.txt" target="_blank">llms-full.txt</a> - Angularの動作方法とAngularアプリケーションの構築方法を記述した、より堅牢なコンパイル済みリソースセット。
4040

4141
AngularアプリケーションにAIを統合する方法に関する詳細情報については、[概要ページ](/ai)もご確認ください。
42+
43+
## Web Codegen Scorer
44+
Angularチームは[Web Codegen Scorer](https://github.com/angular/web-codegen-scorer)を開発し、オープンソース化しました。これは、AI生成ウェブコードの品質を評価・スコア化するためのツールです。このツールを使用して、Angular向けにLLM生成コードの精度を向上させるプロンプトの微調整など、AI生成コードに関するエビデンスベースの意思決定を行うことができます。これらのプロンプトは、AIツールのシステム指示として含めたり、プロンプトとともにコンテキストとして含めたりできます。また、このツールを使用して、異なるモデルが生成するコードの品質を比較したり、モデルやエージェントの進化に伴う品質の経時変化を監視したりできます。

0 commit comments

Comments
 (0)