2020-10-17 13:12:00 +02:00
|
|
|
<template>
|
2023-04-08 02:01:42 +02:00
|
|
|
<div class="_formRoot">
|
|
|
|
<FormSwitch
|
|
|
|
v-model="isLocked"
|
|
|
|
class="_formBlock"
|
|
|
|
@update:modelValue="save()"
|
|
|
|
>{{ i18n.ts.makeFollowManuallyApprove
|
|
|
|
}}<template #caption>{{
|
|
|
|
i18n.ts.lockedAccountInfo
|
|
|
|
}}</template></FormSwitch
|
|
|
|
>
|
|
|
|
<FormSwitch
|
|
|
|
v-if="isLocked"
|
|
|
|
v-model="autoAcceptFollowed"
|
|
|
|
class="_formBlock"
|
|
|
|
@update:modelValue="save()"
|
|
|
|
>{{ i18n.ts.autoAcceptFollowed }}</FormSwitch
|
|
|
|
>
|
2021-11-28 12:07:37 +01:00
|
|
|
|
2023-04-08 02:01:42 +02:00
|
|
|
<FormSwitch
|
|
|
|
v-model="publicReactions"
|
|
|
|
class="_formBlock"
|
|
|
|
@update:modelValue="save()"
|
|
|
|
>
|
|
|
|
{{ i18n.ts.makeReactionsPublic }}
|
|
|
|
<template #caption>{{
|
|
|
|
i18n.ts.makeReactionsPublicDescription
|
|
|
|
}}</template>
|
|
|
|
</FormSwitch>
|
2022-09-08 00:09:23 +02:00
|
|
|
|
2023-04-08 02:01:42 +02:00
|
|
|
<FormSelect
|
|
|
|
v-model="ffVisibility"
|
|
|
|
class="_formBlock"
|
|
|
|
@update:modelValue="save()"
|
|
|
|
>
|
|
|
|
<template #label>{{ i18n.ts.ffVisibility }}</template>
|
|
|
|
<option value="public">{{ i18n.ts._ffVisibility.public }}</option>
|
|
|
|
<option value="followers">
|
|
|
|
{{ i18n.ts._ffVisibility.followers }}
|
|
|
|
</option>
|
|
|
|
<option value="private">{{ i18n.ts._ffVisibility.private }}</option>
|
|
|
|
<template #caption>{{ i18n.ts.ffVisibilityDescription }}</template>
|
|
|
|
</FormSelect>
|
2022-09-08 00:09:23 +02:00
|
|
|
|
2023-04-08 02:01:42 +02:00
|
|
|
<FormSwitch
|
|
|
|
v-model="hideOnlineStatus"
|
|
|
|
class="_formBlock"
|
|
|
|
@update:modelValue="save()"
|
|
|
|
>
|
|
|
|
{{ i18n.ts.hideOnlineStatus }}
|
|
|
|
<template #caption>{{
|
|
|
|
i18n.ts.hideOnlineStatusDescription
|
|
|
|
}}</template>
|
|
|
|
</FormSwitch>
|
|
|
|
<FormSwitch
|
|
|
|
v-model="noCrawle"
|
|
|
|
class="_formBlock"
|
|
|
|
@update:modelValue="save()"
|
|
|
|
>
|
|
|
|
{{ i18n.ts.noCrawle }}
|
|
|
|
<template #caption>{{ i18n.ts.noCrawleDescription }}</template>
|
|
|
|
</FormSwitch>
|
2023-05-10 03:52:41 +02:00
|
|
|
<FormSwitch v-model="preventAiLearning" @update:model-value="save()">
|
|
|
|
{{ i18n.ts.preventAiLearning }}<span class="_beta">{{ i18n.ts.beta }}</span>
|
|
|
|
<template #caption>{{ i18n.ts.preventAiLearningDescription }}</template>
|
|
|
|
</FormSwitch>
|
2023-04-08 02:01:42 +02:00
|
|
|
<FormSwitch
|
|
|
|
v-model="isExplorable"
|
|
|
|
class="_formBlock"
|
|
|
|
@update:modelValue="save()"
|
|
|
|
>
|
|
|
|
{{ i18n.ts.makeExplorable }}
|
|
|
|
<template #caption>{{
|
|
|
|
i18n.ts.makeExplorableDescription
|
|
|
|
}}</template>
|
|
|
|
</FormSwitch>
|
2021-11-28 12:07:37 +01:00
|
|
|
|
2023-04-08 02:01:42 +02:00
|
|
|
<FormSection>
|
|
|
|
<FormSwitch
|
|
|
|
v-model="rememberNoteVisibility"
|
|
|
|
class="_formBlock"
|
|
|
|
@update:modelValue="save()"
|
|
|
|
>{{ i18n.ts.rememberNoteVisibility }}</FormSwitch
|
|
|
|
>
|
|
|
|
<FormFolder v-if="!rememberNoteVisibility" class="_formBlock">
|
|
|
|
<template #label>{{ i18n.ts.defaultNoteVisibility }}</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 === 'followers'"
|
|
|
|
#suffix
|
|
|
|
>{{ i18n.ts._visibility.followers }}</template
|
|
|
|
>
|
|
|
|
<template
|
|
|
|
v-else-if="defaultNoteVisibility === 'specified'"
|
|
|
|
#suffix
|
|
|
|
>{{ i18n.ts._visibility.specified }}</template
|
|
|
|
>
|
2022-06-24 03:51:45 +02:00
|
|
|
|
2023-04-08 02:01:42 +02:00
|
|
|
<FormSelect v-model="defaultNoteVisibility" class="_formBlock">
|
|
|
|
<option value="public">
|
|
|
|
{{ i18n.ts._visibility.public }}
|
|
|
|
</option>
|
|
|
|
<option value="home">{{ i18n.ts._visibility.home }}</option>
|
|
|
|
<option value="followers">
|
|
|
|
{{ i18n.ts._visibility.followers }}
|
|
|
|
</option>
|
|
|
|
<option value="specified">
|
|
|
|
{{ i18n.ts._visibility.specified }}
|
|
|
|
</option>
|
|
|
|
</FormSelect>
|
|
|
|
<FormSwitch v-model="defaultNoteLocalOnly" class="_formBlock">{{
|
|
|
|
i18n.ts._visibility.localOnly
|
|
|
|
}}</FormSwitch>
|
|
|
|
</FormFolder>
|
|
|
|
</FormSection>
|
2021-11-28 12:07:37 +01:00
|
|
|
|
2023-04-08 02:01:42 +02:00
|
|
|
<FormSwitch
|
|
|
|
v-model="keepCw"
|
|
|
|
class="_formBlock"
|
|
|
|
@update:modelValue="save()"
|
|
|
|
>{{ i18n.ts.keepCw }}</FormSwitch
|
|
|
|
>
|
|
|
|
</div>
|
2020-10-17 13:12:00 +02:00
|
|
|
</template>
|
|
|
|
|
2022-01-15 12:35:10 +01:00
|
|
|
<script lang="ts" setup>
|
2023-04-08 02:01:42 +02:00
|
|
|
import {} from "vue";
|
|
|
|
import FormSwitch from "@/components/form/switch.vue";
|
|
|
|
import FormSelect from "@/components/form/select.vue";
|
|
|
|
import FormSection from "@/components/form/section.vue";
|
|
|
|
import FormFolder from "@/components/form/folder.vue";
|
|
|
|
import * as os from "@/os";
|
|
|
|
import { defaultStore } from "@/store";
|
|
|
|
import { i18n } from "@/i18n";
|
|
|
|
import { $i } from "@/account";
|
|
|
|
import { definePageMetadata } from "@/scripts/page-metadata";
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2022-01-15 12:35:10 +01:00
|
|
|
let isLocked = $ref($i.isLocked);
|
|
|
|
let autoAcceptFollowed = $ref($i.autoAcceptFollowed);
|
|
|
|
let noCrawle = $ref($i.noCrawle);
|
|
|
|
let isExplorable = $ref($i.isExplorable);
|
|
|
|
let hideOnlineStatus = $ref($i.hideOnlineStatus);
|
|
|
|
let publicReactions = $ref($i.publicReactions);
|
|
|
|
let ffVisibility = $ref($i.ffVisibility);
|
2023-05-10 03:52:41 +02:00
|
|
|
let preventAiLearning = $ref($i.preventAiLearning);
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2023-04-08 02:01:42 +02:00
|
|
|
let defaultNoteVisibility = $computed(
|
|
|
|
defaultStore.makeGetterSetter("defaultNoteVisibility")
|
|
|
|
);
|
|
|
|
let defaultNoteLocalOnly = $computed(
|
|
|
|
defaultStore.makeGetterSetter("defaultNoteLocalOnly")
|
|
|
|
);
|
|
|
|
let rememberNoteVisibility = $computed(
|
|
|
|
defaultStore.makeGetterSetter("rememberNoteVisibility")
|
|
|
|
);
|
|
|
|
let keepCw = $computed(defaultStore.makeGetterSetter("keepCw"));
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2022-01-15 12:35:10 +01:00
|
|
|
function save() {
|
2023-04-08 02:01:42 +02:00
|
|
|
os.api("i/update", {
|
2022-01-15 12:35:10 +01:00
|
|
|
isLocked: !!isLocked,
|
|
|
|
autoAcceptFollowed: !!autoAcceptFollowed,
|
|
|
|
noCrawle: !!noCrawle,
|
|
|
|
isExplorable: !!isExplorable,
|
|
|
|
hideOnlineStatus: !!hideOnlineStatus,
|
|
|
|
publicReactions: !!publicReactions,
|
2023-05-10 03:52:41 +02:00
|
|
|
preventAiLearning: !!preventAiLearning,
|
2022-01-15 12:35:10 +01:00
|
|
|
ffVisibility: ffVisibility,
|
|
|
|
});
|
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2022-06-20 10:38:49 +02:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.privacy,
|
2023-04-08 02:01:42 +02:00
|
|
|
icon: "ph-lock-open ph-bold ph-lg",
|
2020-10-17 13:12:00 +02:00
|
|
|
});
|
|
|
|
</script>
|