mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
only translations left
This commit is contained in:
@@ -530,4 +530,5 @@ export default {
|
||||
552: '',
|
||||
553: '',
|
||||
554: '',
|
||||
555: '',
|
||||
} satisfies i18n
|
||||
|
||||
@@ -529,4 +529,5 @@ export const ENGLISH = {
|
||||
'Uncommon': 552,
|
||||
'No addresses': 553,
|
||||
'Change CA': 554,
|
||||
'Address details': 555,
|
||||
} as const
|
||||
|
||||
@@ -530,4 +530,5 @@ export default {
|
||||
552: '',
|
||||
553: '',
|
||||
554: '',
|
||||
555: '',
|
||||
} satisfies i18n
|
||||
|
||||
@@ -530,4 +530,5 @@ export default {
|
||||
552: '',
|
||||
553: '',
|
||||
554: '',
|
||||
555: '',
|
||||
} satisfies i18n
|
||||
|
||||
@@ -530,4 +530,5 @@ export default {
|
||||
552: '',
|
||||
553: '',
|
||||
554: '',
|
||||
555: '',
|
||||
} satisfies i18n
|
||||
|
||||
@@ -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 }}
|
||||
<tui-data-list *tuiTextfieldDropdown="let close">
|
||||
<button tuiOption new iconStart="@tui.eye" (click)="instructions()">
|
||||
{{ 'View instructions' | i18n }}
|
||||
<button tuiOption new iconStart="@tui.eye" (click)="onDetails.emit()">
|
||||
{{ 'Address details' | i18n }}
|
||||
</button>
|
||||
@if (interface.value()?.type === 'ui') {
|
||||
<a
|
||||
@@ -127,6 +129,8 @@ export class AddressActionsComponent {
|
||||
readonly href = input.required<string>()
|
||||
readonly disabled = input.required<boolean>()
|
||||
|
||||
readonly onDetails = output<void>()
|
||||
|
||||
open = false
|
||||
|
||||
showQR() {
|
||||
@@ -138,6 +142,4 @@ export class AddressActionsComponent {
|
||||
})
|
||||
.subscribe()
|
||||
}
|
||||
|
||||
instructions() {}
|
||||
}
|
||||
|
||||
@@ -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 }}
|
||||
</button>
|
||||
</td>
|
||||
<td [style.width.rem]="6">{{ address.type }}</td>
|
||||
@@ -33,6 +33,7 @@ import { AddressActionsComponent } from './actions.component'
|
||||
[disabled]="!isRunning()"
|
||||
[href]="address.url"
|
||||
[style.width.rem]="7"
|
||||
(onDetails)="viewDetails(address.bullets)"
|
||||
></td>
|
||||
}
|
||||
`,
|
||||
@@ -61,7 +62,7 @@ export class InterfaceAddressItemComponent {
|
||||
readonly isRunning = input.required<boolean>()
|
||||
readonly dialog = inject(DialogService)
|
||||
|
||||
instructions(bullets: string[]) {
|
||||
viewDetails(bullets: string[]) {
|
||||
this.dialog
|
||||
.openAlert(
|
||||
`<ul>${bullets.map(b => `<li>${b}</li>`).join('')}</ul>` as i18nKey,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user