From 2ce8b45a7f91ae93e211aa097d8c0f659f9957e2 Mon Sep 17 00:00:00 2001 From: piuvas Date: Mon, 26 May 2025 23:57:57 -0300 Subject: [PATCH] improve settings. --- locales/index.d.ts | 6 +----- .../src/pages/settings/attribution-domains-setting.vue | 4 ++-- sharkey-locales/en-US.yml | 4 +--- sharkey-locales/pt-PT.yml | 3 +-- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 9b71db33ac..1070318fa2 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -13134,13 +13134,9 @@ export interface Locale extends ILocale { */ "attributionDomains": string; /** - * A list of domains whose content can be attributed to you on link previews, separated by new-line. Any subdomain will also be valid. + * A list of domains whose content can be attributed to you on link previews, separated by new-line. Any subdomain will also be valid. The following needs to be on the webpage: */ "attributionDomainsDescription": string; - /** - * Webpages with `` can then be attributed to you. - */ - "attributionDomainsTutorial": ParameterizedString<"user" | "host">; /** * Written by */ diff --git a/packages/frontend/src/pages/settings/attribution-domains-setting.vue b/packages/frontend/src/pages/settings/attribution-domains-setting.vue index 3090276f4f..0f95b91f08 100644 --- a/packages/frontend/src/pages/settings/attribution-domains-setting.vue +++ b/packages/frontend/src/pages/settings/attribution-domains-setting.vue @@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only @@ -33,7 +33,7 @@ const $i = ensureSignin(); const attributionDomains = ref($i.attributionDomains.join('\n')); const changed = ref(false); -const host = toUnicode(hostRaw); +const tutorialTag = '``'; async function save() { let domains = attributionDomains.value diff --git a/sharkey-locales/en-US.yml b/sharkey-locales/en-US.yml index 20a03061d7..bfd0613cc7 100644 --- a/sharkey-locales/en-US.yml +++ b/sharkey-locales/en-US.yml @@ -591,7 +591,5 @@ translationTimeoutLabel: "Translation timeout" translationTimeoutCaption: "Timeout in milliseconds for translation API requests." attributionDomains: "Attribution Domains" -attributionDomainsDescription: "A list of domains whose content can be attributed to you on link previews, separated by new-line. Any subdomain will also be valid." -attributionDomainsTutorial: "Webpages with `` can then be attributed to you." - +attributionDomainsDescription: "A list of domains whose content can be attributed to you on link previews, separated by new-line. Any subdomain will also be valid. The following needs to be on the webpage:" writtenBy: "Written by" diff --git a/sharkey-locales/pt-PT.yml b/sharkey-locales/pt-PT.yml index d8a8844afd..e522125e6c 100644 --- a/sharkey-locales/pt-PT.yml +++ b/sharkey-locales/pt-PT.yml @@ -8,6 +8,5 @@ allowClickingNotifications: "Permitir clicar em notificações" pinnedOnly: "Fixado" blockingYou: "Bloqueando você" attributionDomains: "Domínios de Atribuição" -attributionDomainsDescription: "Uma lista de domínios cujo conteúdo pode ser atribuído a você em prévias de link, separadas por linha. Qualquer subdomínio também será válido." -attributionDomainsTutorial: "Páginas web com `` podem ser atribuídas a você." +attributionDomainsDescription: "Uma lista de domínios cujo conteúdo pode ser atribuído a você em prévias de link, separadas por linha. Qualquer subdomínio também será válido. O código seguinte precisa estar presente na página:" writtenBy: "Escrito por"