mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
improve settings.
This commit is contained in:
parent
6874a318ea
commit
2ce8b45a7f
4 changed files with 5 additions and 12 deletions
6
locales/index.d.ts
vendored
6
locales/index.d.ts
vendored
|
@ -13134,13 +13134,9 @@ export interface Locale extends ILocale {
|
||||||
*/
|
*/
|
||||||
"attributionDomains": string;
|
"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;
|
"attributionDomainsDescription": string;
|
||||||
/**
|
|
||||||
* Webpages with `<meta name="fediverse:creator" content="@{user}@{host}" />` can then be attributed to you.
|
|
||||||
*/
|
|
||||||
"attributionDomainsTutorial": ParameterizedString<"user" | "host">;
|
|
||||||
/**
|
/**
|
||||||
* Written by
|
* Written by
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template #label>{{ i18n.ts.attributionDomains }}</template>
|
<template #label>{{ i18n.ts.attributionDomains }}</template>
|
||||||
<template #caption>{{ i18n.ts.attributionDomainsDescription }}
|
<template #caption>{{ i18n.ts.attributionDomainsDescription }}
|
||||||
<br/>
|
<br/>
|
||||||
<Mfm :text="i18n.tsx.attributionDomainsTutorial({ user: $i.username, host: host})"/>
|
<Mfm :text="tutorialTag"/>
|
||||||
</template>
|
</template>
|
||||||
</MkTextarea>
|
</MkTextarea>
|
||||||
</SearchMarker>
|
</SearchMarker>
|
||||||
|
@ -33,7 +33,7 @@ const $i = ensureSignin();
|
||||||
|
|
||||||
const attributionDomains = ref($i.attributionDomains.join('\n'));
|
const attributionDomains = ref($i.attributionDomains.join('\n'));
|
||||||
const changed = ref(false);
|
const changed = ref(false);
|
||||||
const host = toUnicode(hostRaw);
|
const tutorialTag = '`<meta name="fediverse:creator" content="' + $i.username + '@' + toUnicode(hostRaw) + '" />`';
|
||||||
|
|
||||||
async function save() {
|
async function save() {
|
||||||
let domains = attributionDomains.value
|
let domains = attributionDomains.value
|
||||||
|
|
|
@ -591,7 +591,5 @@ translationTimeoutLabel: "Translation timeout"
|
||||||
translationTimeoutCaption: "Timeout in milliseconds for translation API requests."
|
translationTimeoutCaption: "Timeout in milliseconds for translation API requests."
|
||||||
|
|
||||||
attributionDomains: "Attribution Domains"
|
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."
|
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:"
|
||||||
attributionDomainsTutorial: "Webpages with `<meta name=\"fediverse:creator\" content=\"@{user}@{host}\" />` can then be attributed to you."
|
|
||||||
|
|
||||||
writtenBy: "Written by"
|
writtenBy: "Written by"
|
||||||
|
|
|
@ -8,6 +8,5 @@ allowClickingNotifications: "Permitir clicar em notificações"
|
||||||
pinnedOnly: "Fixado"
|
pinnedOnly: "Fixado"
|
||||||
blockingYou: "Bloqueando você"
|
blockingYou: "Bloqueando você"
|
||||||
attributionDomains: "Domínios de Atribuição"
|
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."
|
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:"
|
||||||
attributionDomainsTutorial: "Páginas web com `<meta name=\"fediverse:creator\" content=\"@{user}@{host}\" />` podem ser atribuídas a você."
|
|
||||||
writtenBy: "Escrito por"
|
writtenBy: "Escrito por"
|
||||||
|
|
Loading…
Add table
Reference in a new issue