Skip to content

Commit 6f7e77f

Browse files
authored
fix: update origin 0d028e0f770ef3bec0c23bb19d2ca5263e61bc26 (#1080)
* fix: update origin * fix: migrate new files * fix: migrate untranslated files * fix: migrate translated files changes * fix: localize home * fix: lint errors * fix: adjust line breaks for better readability in performance and learning sections
1 parent d9499eb commit 6f7e77f

File tree

79 files changed

+1831
-318
lines changed

Some content is hidden

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

79 files changed

+1831
-318
lines changed

adev-ja/shared-docs/components/cookie-popup/cookie-popup.component.en.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<div>
66
<a href="https://policies.google.com/technologies/cookies" target="_blank" rel="noopener">
7-
<button class="docs-primary-btn" [attr.text]="'Learn more'" aria-label="Learn More">
7+
<button type="button" class="docs-primary-btn" [attr.text]="'Learn more'" aria-label="Learn More">
88
Learn more
99
</button>
1010
</a>

adev-ja/shared-docs/components/cookie-popup/cookie-popup.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<div>
66
<a href="https://policies.google.com/technologies/cookies" target="_blank" rel="noopener">
7-
<button class="docs-primary-btn" [attr.text]="'詳細を見る'" aria-label="詳細を見る">
7+
<button type="button" class="docs-primary-btn" [attr.text]="'詳細を見る'" aria-label="詳細を見る">
88
詳細を見る
99
</button>
1010
</a>

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

Lines changed: 477 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 477 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h3>Angular versions</h3>
1010
<span class="adev-template-select">
1111
From v.
1212

13-
<button [cdkMenuTriggerFor]="templatesMenuFrom">
13+
<button type="button" [cdkMenuTriggerFor]="templatesMenuFrom">
1414
<span>{{ from.name }}</span>
1515
<docs-icon>expand_more</docs-icon>
1616
</button>
@@ -31,7 +31,7 @@ <h3>Angular versions</h3>
3131
<span>
3232
<span class="adev-template-select">
3333
To v.
34-
<button [cdkMenuTriggerFor]="templatesMenuTo">
34+
<button type="button" [cdkMenuTriggerFor]="templatesMenuTo">
3535
<span>{{ to.name }}</span>
3636
<docs-icon>expand_more</docs-icon>
3737
</button>

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

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

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h3>Angularバージョン</h3>
1010
<span class="adev-template-select">
1111
v.
1212

13-
<button [cdkMenuTriggerFor]="templatesMenuFrom">
13+
<button type="button" [cdkMenuTriggerFor]="templatesMenuFrom">
1414
<span>{{ from.name }}</span>
1515
<docs-icon>expand_more</docs-icon>
1616
</button>
@@ -31,7 +31,7 @@ <h3>Angularバージョン</h3>
3131
<span>
3232
<span class="adev-template-select">
3333
から v.
34-
<button [cdkMenuTriggerFor]="templatesMenuTo">
34+
<button type="button" [cdkMenuTriggerFor]="templatesMenuTo">
3535
<span>{{ to.name }}</span>
3636
<docs-icon>expand_more</docs-icon>
3737
</button>

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

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

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

adev-ja/src/content/ai/design-patterns.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A common pattern when working with user-provided prompts is to separate the user
1010
2. When the user submits (e.g., by clicking a button), update a second signal with contents of the first signal.
1111
3. Use the second signal in the **`params`** field of your `resource`.
1212

13-
This setup ensures the resource's **`loader`** function only runs when the user explicitly submits their prompt, not on every keystroke. You can use additional signal parameters, like a `sessionId` or `userId` (which can be useful for creating persistent LLM sessions), in the `loader` field. This way, the request always uses these parameters' current values without re-triggering the asyncronous function defined in the `loader` field.
13+
This setup ensures the resource's **`loader`** function only runs when the user explicitly submits their prompt, not on every keystroke. You can use additional signal parameters, like a `sessionId` or `userId` (which can be useful for creating persistent LLM sessions), in the `loader` field. This way, the request always uses these parameters' current values without re-triggering the asynchronous function defined in the `loader` field.
1414

1515
Many AI SDKs provide helper methods for making API calls. For example, the Genkit client library exposes a `runFlow` method for calling Genkit flows, which you can call from a resource's `loader`. For other APIs, you can use the [`httpResource`](guide/signals/resource#reactive-data-fetching-with-httpresource).
1616

@@ -90,14 +90,14 @@ The following example demonstrates how to create a responsive UI to dynamically
9090

9191

9292
## AI patterns in action: streaming chat responses
93-
Interfaces often display partial results from LLM-based APIs incrementally as response data arrives. Angular's resource API provides the ability to stream responses to support this type of pattern. The `stream` property of `resource` accepts an asyncronous function you can use to apply updates to a signal value over time. The signal being updated represents the data being streamed.
93+
Interfaces often display partial results from LLM-based APIs incrementally as response data arrives. Angular's resource API provides the ability to stream responses to support this type of pattern. The `stream` property of `resource` accepts an asynchronous function you can use to apply updates to a signal value over time. The signal being updated represents the data being streamed.
9494

9595
```ts
9696
characters = resource({
9797
stream: async () => {
9898
const data = signal<ResourceStreamItem<string>>({value: ''});
9999
// Calls a Genkit streaming flow using the streamFlow method
100-
// expose by the Genkit client SDK
100+
// exposed by the Genkit client SDK
101101
const response = streamFlow({
102102
url: '/streamCharacters',
103103
input: 10

adev-ja/src/content/ai/design-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ characters = resource({
9797
stream: async () => {
9898
const data = signal<ResourceStreamItem<string>>({value: ''});
9999
// Calls a Genkit streaming flow using the streamFlow method
100-
// expose by the Genkit client SDK
100+
// exposed by the Genkit client SDK
101101
const response = streamFlow({
102102
url: '/streamCharacters',
103103
input: 10

0 commit comments

Comments
 (0)