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