2023-07-27 07:31:52 +02:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-10-17 13:12:00 +02:00
|
|
|
<template>
|
2023-01-06 05:40:17 +01:00
|
|
|
<div class="_gaps_m">
|
2023-05-19 13:52:15 +02:00
|
|
|
<MkSwitch v-model="isLocked" @update:modelValue="save()">{{ i18n.ts.makeFollowManuallyApprove }}<template #caption>{{ i18n.ts.lockedAccountInfo }}</template></MkSwitch>
|
|
|
|
<MkSwitch v-if="isLocked" v-model="autoAcceptFollowed" @update:modelValue="save()">{{ i18n.ts.autoAcceptFollowed }}</MkSwitch>
|
2021-11-28 12:07:37 +01:00
|
|
|
|
2023-05-19 13:52:15 +02:00
|
|
|
<MkSwitch v-model="publicReactions" @update:modelValue="save()">
|
2022-07-20 15:24:26 +02:00
|
|
|
{{ i18n.ts.makeReactionsPublic }}
|
|
|
|
<template #caption>{{ i18n.ts.makeReactionsPublicDescription }}</template>
|
2023-01-07 06:59:54 +01:00
|
|
|
</MkSwitch>
|
2023-07-08 00:08:16 +02:00
|
|
|
|
2023-12-18 12:59:20 +01:00
|
|
|
<MkSelect v-model="followingVisibility" @update:modelValue="save()">
|
|
|
|
<template #label>{{ i18n.ts.followingVisibility }}</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>
|
|
|
|
</MkSelect>
|
|
|
|
|
|
|
|
<MkSelect v-model="followersVisibility" @update:modelValue="save()">
|
|
|
|
<template #label>{{ i18n.ts.followersVisibility }}</template>
|
2022-07-20 15:24:26 +02:00
|
|
|
<option value="public">{{ i18n.ts._ffVisibility.public }}</option>
|
|
|
|
<option value="followers">{{ i18n.ts._ffVisibility.followers }}</option>
|
|
|
|
<option value="private">{{ i18n.ts._ffVisibility.private }}</option>
|
2023-01-07 07:09:46 +01:00
|
|
|
</MkSelect>
|
2023-07-08 00:08:16 +02:00
|
|
|
|
2023-05-19 13:52:15 +02:00
|
|
|
<MkSwitch v-model="hideOnlineStatus" @update:modelValue="save()">
|
2022-07-20 15:24:26 +02:00
|
|
|
{{ i18n.ts.hideOnlineStatus }}
|
|
|
|
<template #caption>{{ i18n.ts.hideOnlineStatusDescription }}</template>
|
2023-01-07 06:59:54 +01:00
|
|
|
</MkSwitch>
|
2023-05-19 13:52:15 +02:00
|
|
|
<MkSwitch v-model="noCrawle" @update:modelValue="save()">
|
2022-07-20 15:24:26 +02:00
|
|
|
{{ i18n.ts.noCrawle }}
|
|
|
|
<template #caption>{{ i18n.ts.noCrawleDescription }}</template>
|
2023-01-07 06:59:54 +01:00
|
|
|
</MkSwitch>
|
2023-05-19 13:52:15 +02:00
|
|
|
<MkSwitch v-model="preventAiLearning" @update:modelValue="save()">
|
2023-05-11 09:20:03 +02:00
|
|
|
{{ i18n.ts.preventAiLearning }}<span class="_beta">{{ i18n.ts.beta }}</span>
|
|
|
|
<template #caption>{{ i18n.ts.preventAiLearningDescription }}</template>
|
2023-05-10 03:52:41 +02:00
|
|
|
</MkSwitch>
|
2023-05-19 13:52:15 +02:00
|
|
|
<MkSwitch v-model="isExplorable" @update:modelValue="save()">
|
2022-07-20 15:24:26 +02:00
|
|
|
{{ i18n.ts.makeExplorable }}
|
|
|
|
<template #caption>{{ i18n.ts.makeExplorableDescription }}</template>
|
2023-01-07 06:59:54 +01:00
|
|
|
</MkSwitch>
|
2021-11-28 12:07:37 +01:00
|
|
|
|
|
|
|
<FormSection>
|
2023-01-06 05:40:17 +01:00
|
|
|
<div class="_gaps_m">
|
2023-05-19 13:52:15 +02:00
|
|
|
<MkSwitch v-model="rememberNoteVisibility" @update:modelValue="save()">{{ i18n.ts.rememberNoteVisibility }}</MkSwitch>
|
2023-01-09 01:41:25 +01:00
|
|
|
<MkFolder v-if="!rememberNoteVisibility">
|
2023-01-05 13:04:56 +01:00
|
|
|
<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-01-06 05:40:17 +01:00
|
|
|
<div class="_gaps_m">
|
2023-01-07 07:09:46 +01:00
|
|
|
<MkSelect v-model="defaultNoteVisibility">
|
2023-01-05 13:04:56 +01:00
|
|
|
<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>
|
2023-01-07 07:09:46 +01:00
|
|
|
</MkSelect>
|
2024-01-23 05:06:33 +01:00
|
|
|
<MkSwitch v-model="defaultNoteLocalOnly">{{ i18n.ts._visibility.public }}+{{ i18n.ts._visibility.disableFederation }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="defaultHomeNoteLocalOnly">{{ i18n.ts._visibility.home }}+{{ i18n.ts._visibility.disableFederation }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="defaultFollowersNoteLocalOnly">{{ i18n.ts._visibility.followers }}+{{ i18n.ts._visibility.disableFederation }}</MkSwitch>
|
2023-01-05 13:04:56 +01:00
|
|
|
</div>
|
2023-01-09 01:41:25 +01:00
|
|
|
</MkFolder>
|
2023-01-05 13:04:56 +01:00
|
|
|
</div>
|
2021-11-28 12:07:37 +01:00
|
|
|
</FormSection>
|
|
|
|
|
2023-05-19 13:52:15 +02:00
|
|
|
<MkSwitch v-model="keepCw" @update:modelValue="save()">{{ i18n.ts.keepCw }}</MkSwitch>
|
2021-11-28 12:07:37 +01:00
|
|
|
</div>
|
2020-10-17 13:12:00 +02:00
|
|
|
</template>
|
|
|
|
|
2022-01-15 12:35:10 +01:00
|
|
|
<script lang="ts" setup>
|
2023-12-07 06:42:09 +01:00
|
|
|
import { ref, computed } from 'vue';
|
2023-01-07 06:59:54 +01:00
|
|
|
import MkSwitch from '@/components/MkSwitch.vue';
|
2023-01-07 07:09:46 +01:00
|
|
|
import MkSelect from '@/components/MkSelect.vue';
|
2021-11-28 12:07:37 +01:00
|
|
|
import FormSection from '@/components/form/section.vue';
|
2023-01-09 01:41:25 +01:00
|
|
|
import MkFolder from '@/components/MkFolder.vue';
|
2024-01-04 10:32:46 +01:00
|
|
|
import { misskeyApi } from '@/scripts/misskey-api.js';
|
2023-09-19 09:37:43 +02:00
|
|
|
import { defaultStore } from '@/store.js';
|
|
|
|
import { i18n } from '@/i18n.js';
|
2024-01-04 07:30:40 +01:00
|
|
|
import { signinRequired } from '@/account.js';
|
2023-09-19 09:37:43 +02:00
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2024-01-04 07:30:40 +01:00
|
|
|
const $i = signinRequired();
|
|
|
|
|
2023-12-07 06:42:09 +01:00
|
|
|
const isLocked = ref($i.isLocked);
|
|
|
|
const autoAcceptFollowed = ref($i.autoAcceptFollowed);
|
|
|
|
const noCrawle = ref($i.noCrawle);
|
|
|
|
const preventAiLearning = ref($i.preventAiLearning);
|
|
|
|
const isExplorable = ref($i.isExplorable);
|
|
|
|
const hideOnlineStatus = ref($i.hideOnlineStatus);
|
|
|
|
const publicReactions = ref($i.publicReactions);
|
2024-01-04 07:30:40 +01:00
|
|
|
const followingVisibility = ref($i.followingVisibility);
|
|
|
|
const followersVisibility = ref($i.followersVisibility);
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2023-12-07 06:42:09 +01:00
|
|
|
const defaultNoteVisibility = computed(defaultStore.makeGetterSetter('defaultNoteVisibility'));
|
|
|
|
const defaultNoteLocalOnly = computed(defaultStore.makeGetterSetter('defaultNoteLocalOnly'));
|
2024-01-23 05:06:33 +01:00
|
|
|
const defaultHomeNoteLocalOnly = computed(defaultStore.makeGetterSetter('defaultHomeNoteLocalOnly'));
|
|
|
|
const defaultFollowersNoteLocalOnly = computed(defaultStore.makeGetterSetter('defaultFollowersNoteLocalOnly'));
|
2023-12-07 06:42:09 +01:00
|
|
|
const rememberNoteVisibility = computed(defaultStore.makeGetterSetter('rememberNoteVisibility'));
|
|
|
|
const keepCw = computed(defaultStore.makeGetterSetter('keepCw'));
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2022-01-15 12:35:10 +01:00
|
|
|
function save() {
|
2024-01-04 10:32:46 +01:00
|
|
|
misskeyApi('i/update', {
|
2023-12-07 06:42:09 +01:00
|
|
|
isLocked: !!isLocked.value,
|
|
|
|
autoAcceptFollowed: !!autoAcceptFollowed.value,
|
|
|
|
noCrawle: !!noCrawle.value,
|
|
|
|
preventAiLearning: !!preventAiLearning.value,
|
|
|
|
isExplorable: !!isExplorable.value,
|
|
|
|
hideOnlineStatus: !!hideOnlineStatus.value,
|
|
|
|
publicReactions: !!publicReactions.value,
|
2023-12-18 12:59:20 +01:00
|
|
|
followingVisibility: followingVisibility.value,
|
|
|
|
followersVisibility: followersVisibility.value,
|
2022-01-15 12:35:10 +01:00
|
|
|
});
|
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2023-12-07 06:42:09 +01:00
|
|
|
const headerActions = computed(() => []);
|
2022-06-20 10:38:49 +02:00
|
|
|
|
2023-12-07 06:42:09 +01:00
|
|
|
const headerTabs = computed(() => []);
|
2022-06-20 10:38:49 +02:00
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.privacy,
|
2022-12-19 11:01:30 +01:00
|
|
|
icon: 'ti ti-lock-open',
|
2020-10-17 13:12:00 +02:00
|
|
|
});
|
|
|
|
</script>
|