From b4491a3f390408e826377f56d057b75fe6a92807 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Sat, 9 Aug 2025 09:29:47 -0600 Subject: [PATCH] only translations left --- web/projects/shared/src/i18n/dictionaries/de.ts | 1 + web/projects/shared/src/i18n/dictionaries/en.ts | 1 + web/projects/shared/src/i18n/dictionaries/es.ts | 1 + web/projects/shared/src/i18n/dictionaries/fr.ts | 1 + web/projects/shared/src/i18n/dictionaries/pl.ts | 1 + .../interfaces/addresses/actions.component.ts | 10 ++++++---- .../components/interfaces/addresses/item.component.ts | 7 ++++--- .../portal/components/interfaces/interface.service.ts | 2 +- 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/web/projects/shared/src/i18n/dictionaries/de.ts b/web/projects/shared/src/i18n/dictionaries/de.ts index 47932b502..620f3439a 100644 --- a/web/projects/shared/src/i18n/dictionaries/de.ts +++ b/web/projects/shared/src/i18n/dictionaries/de.ts @@ -530,4 +530,5 @@ export default { 552: '', 553: '', 554: '', + 555: '', } satisfies i18n diff --git a/web/projects/shared/src/i18n/dictionaries/en.ts b/web/projects/shared/src/i18n/dictionaries/en.ts index 6a394f699..36eacaa8f 100644 --- a/web/projects/shared/src/i18n/dictionaries/en.ts +++ b/web/projects/shared/src/i18n/dictionaries/en.ts @@ -529,4 +529,5 @@ export const ENGLISH = { 'Uncommon': 552, 'No addresses': 553, 'Change CA': 554, + 'Address details': 555, } as const diff --git a/web/projects/shared/src/i18n/dictionaries/es.ts b/web/projects/shared/src/i18n/dictionaries/es.ts index b43041b4f..6c74f568d 100644 --- a/web/projects/shared/src/i18n/dictionaries/es.ts +++ b/web/projects/shared/src/i18n/dictionaries/es.ts @@ -530,4 +530,5 @@ export default { 552: '', 553: '', 554: '', + 555: '', } satisfies i18n diff --git a/web/projects/shared/src/i18n/dictionaries/fr.ts b/web/projects/shared/src/i18n/dictionaries/fr.ts index a6dc85a32..9f7c6a32a 100644 --- a/web/projects/shared/src/i18n/dictionaries/fr.ts +++ b/web/projects/shared/src/i18n/dictionaries/fr.ts @@ -530,4 +530,5 @@ export default { 552: '', 553: '', 554: '', + 555: '', } satisfies i18n diff --git a/web/projects/shared/src/i18n/dictionaries/pl.ts b/web/projects/shared/src/i18n/dictionaries/pl.ts index 0c4e1142a..148fd6dc7 100644 --- a/web/projects/shared/src/i18n/dictionaries/pl.ts +++ b/web/projects/shared/src/i18n/dictionaries/pl.ts @@ -530,4 +530,5 @@ export default { 552: '', 553: '', 554: '', + 555: '', } satisfies i18n diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/actions.component.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/actions.component.ts index bf1e86e16..a838fd273 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/actions.component.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/actions.component.ts @@ -3,6 +3,7 @@ import { Component, inject, input, + output, } from '@angular/core' import { CopyService, DialogService, i18nPipe } from '@start9labs/shared' import { TUI_IS_MOBILE } from '@taiga-ui/cdk' @@ -17,6 +18,7 @@ import { PolymorpheusComponent } from '@taiga-ui/polymorpheus' import { QRModal } from 'src/app/routes/portal/modals/qr.component' import { InterfaceComponent } from '../interface.component' +import { InterfaceService } from '../interface.service' @Component({ selector: 'td[actions]', @@ -62,8 +64,8 @@ import { InterfaceComponent } from '../interface.component' > {{ 'Actions' | i18n }} - @if (interface.value()?.type === 'ui') { () readonly disabled = input.required() + readonly onDetails = output() + open = false showQR() { @@ -138,6 +142,4 @@ export class AddressActionsComponent { }) .subscribe() } - - instructions() {} } diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/item.component.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/item.component.ts index 7be6841cd..94d413d25 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/item.component.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/item.component.ts @@ -18,9 +18,9 @@ import { AddressActionsComponent } from './actions.component' tuiIconButton appearance="flat-grayscale" iconStart="@tui.eye" - (click)="instructions(address.bullets)" + (click)="viewDetails(address.bullets)" > - {{ 'View instructions' | i18n }} + {{ 'Address details' | i18n }} {{ address.type }} @@ -33,6 +33,7 @@ import { AddressActionsComponent } from './actions.component' [disabled]="!isRunning()" [href]="address.url" [style.width.rem]="7" + (onDetails)="viewDetails(address.bullets)" > } `, @@ -61,7 +62,7 @@ export class InterfaceAddressItemComponent { readonly isRunning = input.required() readonly dialog = inject(DialogService) - instructions(bullets: string[]) { + viewDetails(bullets: string[]) { this.dialog .openAlert( `
    ${bullets.map(b => `
  • ${b}
  • `).join('')}
` as i18nKey, diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/interface.service.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/interface.service.ts index f95159ca2..2fd09fd7b 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/interface.service.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/interface.service.ts @@ -3,7 +3,7 @@ import { T, utils } from '@start9labs/start-sdk' import { ConfigService } from 'src/app/services/config.service' import { toAuthorityName } from 'src/app/utils/acme' import { GatewayPlus } from 'src/app/services/gateway.service' -import { i18nKey } from '@start9labs/shared' +import { DialogService, i18nKey } from '@start9labs/shared' type AddressWithInfo = { url: URL