2023-07-27 05:31:52 +00:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2023-05-11 11:54:47 +00:00
|
|
|
<template>
|
|
|
|
<div class="_gaps">
|
|
|
|
<MkInfo>{{ i18n.ts._initialAccountSetting.theseSettingsCanEditLater }}</MkInfo>
|
|
|
|
|
2023-05-11 23:20:36 +00:00
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.makeFollowManuallyApprove }}</template>
|
2023-05-14 00:54:35 +00:00
|
|
|
<template #icon><i class="ti ti-lock"></i></template>
|
2023-05-11 23:20:36 +00:00
|
|
|
<template #suffix>{{ isLocked ? i18n.ts.on : i18n.ts.off }}</template>
|
2023-05-11 11:54:47 +00:00
|
|
|
|
2023-05-11 23:20:36 +00:00
|
|
|
<MkSwitch v-model="isLocked">{{ i18n.ts.makeFollowManuallyApprove }}<template #caption>{{ i18n.ts.lockedAccountInfo }}</template></MkSwitch>
|
|
|
|
</MkFolder>
|
2023-05-11 11:54:47 +00:00
|
|
|
|
2023-05-11 23:20:36 +00:00
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.hideOnlineStatus }}</template>
|
2023-05-14 00:54:35 +00:00
|
|
|
<template #icon><i class="ti ti-eye-off"></i></template>
|
2023-05-11 23:20:36 +00:00
|
|
|
<template #suffix>{{ hideOnlineStatus ? i18n.ts.on : i18n.ts.off }}</template>
|
2023-05-11 11:54:47 +00:00
|
|
|
|
2023-05-11 23:20:36 +00:00
|
|
|
<MkSwitch v-model="hideOnlineStatus">{{ i18n.ts.hideOnlineStatus }}<template #caption>{{ i18n.ts.hideOnlineStatusDescription }}</template></MkSwitch>
|
|
|
|
</MkFolder>
|
|
|
|
|
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.noCrawle }}</template>
|
2023-05-14 00:54:35 +00:00
|
|
|
<template #icon><i class="ti ti-world-x"></i></template>
|
2023-05-11 23:20:36 +00:00
|
|
|
<template #suffix>{{ noCrawle ? i18n.ts.on : i18n.ts.off }}</template>
|
|
|
|
|
|
|
|
<MkSwitch v-model="noCrawle">{{ i18n.ts.noCrawle }}<template #caption>{{ i18n.ts.noCrawleDescription }}</template></MkSwitch>
|
|
|
|
</MkFolder>
|
|
|
|
|
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.preventAiLearning }}</template>
|
2023-05-14 00:54:35 +00:00
|
|
|
<template #icon><i class="ti ti-photo-shield"></i></template>
|
2023-05-11 23:20:36 +00:00
|
|
|
<template #suffix>{{ preventAiLearning ? i18n.ts.on : i18n.ts.off }}</template>
|
|
|
|
|
|
|
|
<MkSwitch v-model="preventAiLearning">{{ i18n.ts.preventAiLearning }}<template #caption>{{ i18n.ts.preventAiLearningDescription }}</template></MkSwitch>
|
|
|
|
</MkFolder>
|
2023-05-11 11:54:47 +00:00
|
|
|
|
|
|
|
<MkInfo>{{ i18n.ts._initialAccountSetting.youCanEditMoreSettingsInSettingsPageLater }}</MkInfo>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { computed, ref, watch } from 'vue';
|
|
|
|
import { instance } from '@/instance';
|
|
|
|
import { i18n } from '@/i18n';
|
|
|
|
import MkSwitch from '@/components/MkSwitch.vue';
|
|
|
|
import MkInfo from '@/components/MkInfo.vue';
|
2023-05-11 23:20:36 +00:00
|
|
|
import MkFolder from '@/components/MkFolder.vue';
|
2023-05-11 11:54:47 +00:00
|
|
|
import * as os from '@/os';
|
|
|
|
import { $i } from '@/account';
|
|
|
|
|
|
|
|
let isLocked = ref(false);
|
|
|
|
let hideOnlineStatus = ref(false);
|
|
|
|
let noCrawle = ref(false);
|
|
|
|
let preventAiLearning = ref(true);
|
|
|
|
|
2023-05-11 12:24:27 +00:00
|
|
|
watch([isLocked, hideOnlineStatus, noCrawle, preventAiLearning], () => {
|
|
|
|
os.api('i/update', {
|
2023-05-11 11:54:47 +00:00
|
|
|
isLocked: !!isLocked.value,
|
|
|
|
hideOnlineStatus: !!hideOnlineStatus.value,
|
|
|
|
noCrawle: !!noCrawle.value,
|
|
|
|
preventAiLearning: !!preventAiLearning.value,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" module>
|
|
|
|
|
|
|
|
</style>
|