From 5109efcee245adea6860bd45a74520e42385bc52 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 6 Aug 2025 18:45:41 -0600 Subject: [PATCH] different options for clearnet domains --- .../shared/src/i18n/dictionaries/de.ts | 1 + .../shared/src/i18n/dictionaries/en.ts | 1 + .../shared/src/i18n/dictionaries/es.ts | 1 + .../shared/src/i18n/dictionaries/fr.ts | 1 + .../shared/src/i18n/dictionaries/pl.ts | 1 + .../interfaces/clearnet-domains.component.ts | 30 +++++++++++++++---- 6 files changed, 30 insertions(+), 5 deletions(-) diff --git a/web/projects/shared/src/i18n/dictionaries/de.ts b/web/projects/shared/src/i18n/dictionaries/de.ts index 30067076e..47932b502 100644 --- a/web/projects/shared/src/i18n/dictionaries/de.ts +++ b/web/projects/shared/src/i18n/dictionaries/de.ts @@ -529,4 +529,5 @@ export default { 551: '', 552: '', 553: '', + 554: '', } satisfies i18n diff --git a/web/projects/shared/src/i18n/dictionaries/en.ts b/web/projects/shared/src/i18n/dictionaries/en.ts index 0d554bf34..6a394f699 100644 --- a/web/projects/shared/src/i18n/dictionaries/en.ts +++ b/web/projects/shared/src/i18n/dictionaries/en.ts @@ -528,4 +528,5 @@ export const ENGLISH = { 'Common': 551, 'Uncommon': 552, 'No addresses': 553, + 'Change CA': 554, } as const diff --git a/web/projects/shared/src/i18n/dictionaries/es.ts b/web/projects/shared/src/i18n/dictionaries/es.ts index 2e723c04f..b43041b4f 100644 --- a/web/projects/shared/src/i18n/dictionaries/es.ts +++ b/web/projects/shared/src/i18n/dictionaries/es.ts @@ -529,4 +529,5 @@ export default { 551: '', 552: '', 553: '', + 554: '', } satisfies i18n diff --git a/web/projects/shared/src/i18n/dictionaries/fr.ts b/web/projects/shared/src/i18n/dictionaries/fr.ts index 0056431f1..a6dc85a32 100644 --- a/web/projects/shared/src/i18n/dictionaries/fr.ts +++ b/web/projects/shared/src/i18n/dictionaries/fr.ts @@ -529,4 +529,5 @@ export default { 551: '', 552: '', 553: '', + 554: '', } satisfies i18n diff --git a/web/projects/shared/src/i18n/dictionaries/pl.ts b/web/projects/shared/src/i18n/dictionaries/pl.ts index 2e6415a23..0c4e1142a 100644 --- a/web/projects/shared/src/i18n/dictionaries/pl.ts +++ b/web/projects/shared/src/i18n/dictionaries/pl.ts @@ -529,4 +529,5 @@ export default { 551: '', 552: '', 553: '', + 554: '', } satisfies i18n diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/clearnet-domains.component.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/clearnet-domains.component.ts index 50590cc76..a511b963b 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/clearnet-domains.component.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/clearnet-domains.component.ts @@ -77,10 +77,24 @@ import { ClearnetDomain } from './interface.utils' + @@ -132,9 +146,15 @@ export class InterfaceClearnetDomainsComponent { open = false - async add() {} + // @TODO add, toggle, and change CA call same idempotent endpoint, either pkgAddDomain or osUiAddDomain - async edit(domain: ClearnetDomain) {} + async add() { + // @TODO baseDomain (select), subdomain (optional)(text), certificateAuthority (select), public/private (select) + } + + async togglePrivate(domain: ClearnetDomain) {} + + async changeCa(domain: ClearnetDomain) {} async remove(fqdn: string) { this.dialog