Skip to content

Commit e358d97

Browse files
committed
fix: migrate source code translation changes
1 parent 9e4f170 commit e358d97

File tree

8 files changed

+914
-1039
lines changed

8 files changed

+914
-1039
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
];

0 commit comments

Comments
 (0)