mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
maybe improve/fix privacy settings search
a bunch of label/markers/keywords had gone missing plus I've added those for our settings
This commit is contained in:
parent
6095b3305c
commit
09b8bda990
1 changed files with 23 additions and 23 deletions
|
@ -64,10 +64,17 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
</SearchMarker>
|
</SearchMarker>
|
||||||
|
|
||||||
|
<SearchMarker :keywords="['crawle', 'ai']">
|
||||||
|
<MkSwitch v-model="preventAiLearning" @update:modelValue="save()">
|
||||||
|
<template #label><SearchLabel>{{ i18n.ts.preventAiLearning }}</SearchLabel></template>
|
||||||
|
<template #caption><SearchKeyword>{{ i18n.ts.preventAiLearningDescription }}</SearchKeyword></template>
|
||||||
|
</MkSwitch>
|
||||||
|
</SearchMarker>
|
||||||
|
|
||||||
<SearchMarker :keywords="['index', 'search']">
|
<SearchMarker :keywords="['index', 'search']">
|
||||||
<MkSwitch v-model="noindex" @update:modelValue="save()">
|
<MkSwitch v-model="noindex" @update:modelValue="save()">
|
||||||
{{ i18n.ts.makeIndexable }}
|
<template #label><SearchLabel>{{ i18n.ts.makeIndexable }}</SearchLabel></template>
|
||||||
<template #caption>{{ i18n.ts.makeIndexableDescription }}</template>
|
<template #caption><SearchKeyword>{{ i18n.ts.makeIndexableDescription }}</SearchKeyword></template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
</SearchMarker>
|
</SearchMarker>
|
||||||
|
|
||||||
|
@ -80,15 +87,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<SearchMarker :keywords="['rss', 'feed']">
|
<SearchMarker :keywords="['rss', 'feed']">
|
||||||
<MkSwitch v-model="enableRss" @update:modelValue="save()">
|
<MkSwitch v-model="enableRss" @update:modelValue="save()">
|
||||||
{{ i18n.ts.enableRss }}
|
<template #label><SearchLabel>{{ i18n.ts.enableRss }}</SearchLabel></template>
|
||||||
<template #caption>{{ i18n.ts.enableRssDescription }}</template>
|
<template #caption><SearchKeyword>{{ i18n.ts.enableRssDescription }}</SearchKeyword></template>
|
||||||
</MkSwitch>
|
|
||||||
</SearchMarker>
|
|
||||||
|
|
||||||
<SearchMarker :keywords="['crawle', 'ai']">
|
|
||||||
<MkSwitch v-model="preventAiLearning" @update:modelValue="save()">
|
|
||||||
<template #label><SearchLabel>{{ i18n.ts.preventAiLearning }}</SearchLabel></template>
|
|
||||||
<template #caption><SearchKeyword>{{ i18n.ts.preventAiLearningDescription }}</SearchKeyword></template>
|
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
</SearchMarker>
|
</SearchMarker>
|
||||||
|
|
||||||
|
@ -198,12 +198,12 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<SearchMarker :keywords="['federate', 'auth', 'fetch']">
|
<SearchMarker :keywords="['federate', 'auth', 'fetch']">
|
||||||
<MkFolder v-if="instance.federation !== 'none'">
|
<MkFolder v-if="instance.federation !== 'none'">
|
||||||
<template #label>{{ i18n.ts.authorizedFetchSection }}</template>
|
<template #label><SearchLabel>{{ i18n.ts.authorizedFetchSection }}</SearchLabel></template>
|
||||||
<template #suffix>{{ computedAllowUnsignedFetch !== 'always' ? i18n.ts.enabled : i18n.ts.disabled }}</template>
|
<template #suffix>{{ computedAllowUnsignedFetch !== 'always' ? i18n.ts.enabled : i18n.ts.disabled }}</template>
|
||||||
|
|
||||||
<MkRadios v-model="allowUnsignedFetch" @update:modelValue="save()">
|
<MkRadios v-model="allowUnsignedFetch" @update:modelValue="save()">
|
||||||
<template #label>{{ i18n.ts.authorizedFetchLabel }}</template>
|
<template #label><SearchLabel>{{ i18n.ts.authorizedFetchLabel }}</SearchLabel></template>
|
||||||
<template #caption>{{ i18n.ts.authorizedFetchDescription }}</template>
|
<template #caption><SearchKeyword>{{ i18n.ts.authorizedFetchDescription }}</SearchKeyword></template>
|
||||||
<option value="never">{{ i18n.ts._authorizedFetchValue.never }} - {{ i18n.ts._authorizedFetchValueDescription.never }}</option>
|
<option value="never">{{ i18n.ts._authorizedFetchValue.never }} - {{ i18n.ts._authorizedFetchValueDescription.never }}</option>
|
||||||
<option value="always">{{ i18n.ts._authorizedFetchValue.always }} - {{ i18n.ts._authorizedFetchValueDescription.always }}</option>
|
<option value="always">{{ i18n.ts._authorizedFetchValue.always }} - {{ i18n.ts._authorizedFetchValueDescription.always }}</option>
|
||||||
<option value="essential">{{ i18n.ts._authorizedFetchValue.essential }} - {{ i18n.ts._authorizedFetchValueDescription.essential }}</option>
|
<option value="essential">{{ i18n.ts._authorizedFetchValue.essential }} - {{ i18n.ts._authorizedFetchValueDescription.essential }}</option>
|
||||||
|
@ -214,9 +214,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<SearchMarker :keywords="['note', 'visib']">
|
<SearchMarker :keywords="['note', 'visib']">
|
||||||
<div class="_gaps_m">
|
<div class="_gaps_m">
|
||||||
<MkSwitch v-model="rememberNoteVisibility" @update:modelValue="save()">{{ i18n.ts.rememberNoteVisibility }}</MkSwitch>
|
<MkSwitch v-model="rememberNoteVisibility" @update:modelValue="save()"><SearchLabel>{{ i18n.ts.rememberNoteVisibility }}</SearchLabel></MkSwitch>
|
||||||
<MkFolder v-if="!rememberNoteVisibility">
|
<MkFolder v-if="!rememberNoteVisibility">
|
||||||
<template #label>{{ i18n.ts.defaultNoteVisibility }}</template>
|
<template #label><SearchLabel>{{ i18n.ts.defaultNoteVisibility }}</SearchLabel></template>
|
||||||
<template v-if="defaultNoteVisibility === 'public'" #suffix>{{ i18n.ts._visibility.public }}</template>
|
<template v-if="defaultNoteVisibility === 'public'" #suffix>{{ i18n.ts._visibility.public }}</template>
|
||||||
<template v-else-if="defaultNoteVisibility === 'home'" #suffix>{{ i18n.ts._visibility.home }}</template>
|
<template v-else-if="defaultNoteVisibility === 'home'" #suffix>{{ i18n.ts._visibility.home }}</template>
|
||||||
<template v-else-if="defaultNoteVisibility === 'followers'" #suffix>{{ i18n.ts._visibility.followers }}</template>
|
<template v-else-if="defaultNoteVisibility === 'followers'" #suffix>{{ i18n.ts._visibility.followers }}</template>
|
||||||
|
@ -237,16 +237,16 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<SearchMarker :keywords="['keep', 'cw', 'content', 'warning']">
|
<SearchMarker :keywords="['keep', 'cw', 'content', 'warning']">
|
||||||
<div class="_gaps_m">
|
<div class="_gaps_m">
|
||||||
<MkSwitch v-model="keepCw" @update:modelValue="save()">{{ i18n.ts.keepCw }}</MkSwitch>
|
<MkSwitch v-model="keepCw" @update:modelValue="save()"><SearchLabel>{{ i18n.ts.keepCw }}</SearchLabel></MkSwitch>
|
||||||
|
|
||||||
<MkInput v-model="defaultCW" type="text" manualSave @update:modelValue="save()">
|
<MkInput v-model="defaultCW" type="text" manualSave @update:modelValue="save()">
|
||||||
<template #label>{{ i18n.ts.defaultCW }}</template>
|
<template #label><SearchLabel>{{ i18n.ts.defaultCW }}</SearchLabel></template>
|
||||||
<template #caption>{{ i18n.ts.defaultCWDescription }}</template>
|
<template #caption><SearchKeyword>{{ i18n.ts.defaultCWDescription }}</SearchKeyword></template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
|
||||||
<MkSelect v-model="defaultCWPriority" :disabled="!defaultCW || !keepCw" @update:modelValue="save()">
|
<MkSelect v-model="defaultCWPriority" :disabled="!defaultCW || !keepCw" @update:modelValue="save()">
|
||||||
<template #label>{{ i18n.ts.defaultCWPriority }}</template>
|
<template #label><SearchLabel>{{ i18n.ts.defaultCWPriority }}</SearchLabel></template>
|
||||||
<template #caption>{{ i18n.ts.defaultCWPriorityDescription }}</template>
|
<template #caption><SearchKeyword>{{ i18n.ts.defaultCWPriorityDescription }}</SearchKeyword></template>
|
||||||
<option value="default">{{ i18n.ts._defaultCWPriority.default }}</option>
|
<option value="default">{{ i18n.ts._defaultCWPriority.default }}</option>
|
||||||
<option value="parent">{{ i18n.ts._defaultCWPriority.parent }}</option>
|
<option value="parent">{{ i18n.ts._defaultCWPriority.parent }}</option>
|
||||||
<option value="parentDefault">{{ i18n.ts._defaultCWPriority.parentDefault }}</option>
|
<option value="parentDefault">{{ i18n.ts._defaultCWPriority.parentDefault }}</option>
|
||||||
|
@ -289,6 +289,7 @@ const $i = ensureSignin();
|
||||||
const isLocked = ref($i.isLocked);
|
const isLocked = ref($i.isLocked);
|
||||||
const autoAcceptFollowed = ref($i.autoAcceptFollowed);
|
const autoAcceptFollowed = ref($i.autoAcceptFollowed);
|
||||||
const noCrawle = ref($i.noCrawle);
|
const noCrawle = ref($i.noCrawle);
|
||||||
|
const preventAiLearning = ref($i.preventAiLearning);
|
||||||
const noindex = ref($i.noindex);
|
const noindex = ref($i.noindex);
|
||||||
const enableRss = ref($i.enableRss);
|
const enableRss = ref($i.enableRss);
|
||||||
const isExplorable = ref($i.isExplorable);
|
const isExplorable = ref($i.isExplorable);
|
||||||
|
@ -309,8 +310,6 @@ const computedAllowUnsignedFetch = computed(() => {
|
||||||
}
|
}
|
||||||
return instance.allowUnsignedFetch;
|
return instance.allowUnsignedFetch;
|
||||||
});
|
});
|
||||||
|
|
||||||
const preventAiLearning = ref($i.preventAiLearning);
|
|
||||||
const defaultNoteVisibility = prefer.model('defaultNoteVisibility');
|
const defaultNoteVisibility = prefer.model('defaultNoteVisibility');
|
||||||
const defaultNoteLocalOnly = prefer.model('defaultNoteLocalOnly');
|
const defaultNoteLocalOnly = prefer.model('defaultNoteLocalOnly');
|
||||||
const rememberNoteVisibility = prefer.model('rememberNoteVisibility');
|
const rememberNoteVisibility = prefer.model('rememberNoteVisibility');
|
||||||
|
@ -358,6 +357,7 @@ function save() {
|
||||||
isLocked: !!isLocked.value,
|
isLocked: !!isLocked.value,
|
||||||
autoAcceptFollowed: !!autoAcceptFollowed.value,
|
autoAcceptFollowed: !!autoAcceptFollowed.value,
|
||||||
noCrawle: !!noCrawle.value,
|
noCrawle: !!noCrawle.value,
|
||||||
|
preventAiLearning: !!preventAiLearning.value,
|
||||||
noindex: !!noindex.value,
|
noindex: !!noindex.value,
|
||||||
enableRss: !!enableRss.value,
|
enableRss: !!enableRss.value,
|
||||||
isExplorable: !!isExplorable.value,
|
isExplorable: !!isExplorable.value,
|
||||||
|
|
Loading…
Add table
Reference in a new issue