2023-07-27 07:31:52 +02:00
|
|
|
<!--
|
2024-02-13 16:59:27 +01:00
|
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 07:31:52 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2023-05-11 13:54:47 +02:00
|
|
|
<template>
|
|
|
|
<div class="_gaps">
|
|
|
|
<MkInfo>{{ i18n.ts._initialAccountSetting.theseSettingsCanEditLater }}</MkInfo>
|
|
|
|
|
2023-05-12 01:20:36 +02:00
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.makeFollowManuallyApprove }}</template>
|
2023-09-30 21:53:52 +02:00
|
|
|
<template #icon><i class="ph-lock ph-bold ph-lg"></i></template>
|
2023-05-12 01:20:36 +02:00
|
|
|
<template #suffix>{{ isLocked ? i18n.ts.on : i18n.ts.off }}</template>
|
2023-05-11 13:54:47 +02:00
|
|
|
|
2023-05-12 01:20:36 +02:00
|
|
|
<MkSwitch v-model="isLocked">{{ i18n.ts.makeFollowManuallyApprove }}<template #caption>{{ i18n.ts.lockedAccountInfo }}</template></MkSwitch>
|
|
|
|
</MkFolder>
|
2023-05-11 13:54:47 +02:00
|
|
|
|
2023-05-12 01:20:36 +02:00
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.hideOnlineStatus }}</template>
|
2023-09-30 21:53:52 +02:00
|
|
|
<template #icon><i class="ph-eye-slash ph-bold ph-lg"></i></template>
|
2023-05-12 01:20:36 +02:00
|
|
|
<template #suffix>{{ hideOnlineStatus ? i18n.ts.on : i18n.ts.off }}</template>
|
2023-05-11 13:54:47 +02:00
|
|
|
|
2023-05-12 01:20:36 +02:00
|
|
|
<MkSwitch v-model="hideOnlineStatus">{{ i18n.ts.hideOnlineStatus }}<template #caption>{{ i18n.ts.hideOnlineStatusDescription }}</template></MkSwitch>
|
|
|
|
</MkFolder>
|
|
|
|
|
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.noCrawle }}</template>
|
2023-09-30 21:53:52 +02:00
|
|
|
<template #icon><i class="ph-planet ph-bold ph-lg"></i></template>
|
2023-05-12 01:20:36 +02: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>
|
|
|
|
|
2023-05-11 13:54:47 +02:00
|
|
|
<MkInfo>{{ i18n.ts._initialAccountSetting.youCanEditMoreSettingsInSettingsPageLater }}</MkInfo>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2023-12-21 03:36:45 +01:00
|
|
|
import { ref, watch } from 'vue';
|
2023-09-19 09:37:43 +02:00
|
|
|
import { i18n } from '@/i18n.js';
|
2023-05-11 13:54:47 +02:00
|
|
|
import MkSwitch from '@/components/MkSwitch.vue';
|
|
|
|
import MkInfo from '@/components/MkInfo.vue';
|
2023-05-12 01:20:36 +02:00
|
|
|
import MkFolder from '@/components/MkFolder.vue';
|
2024-01-04 10:32:46 +01:00
|
|
|
import { misskeyApi } from '@/scripts/misskey-api.js';
|
2023-05-11 13:54:47 +02:00
|
|
|
|
2023-12-07 06:42:09 +01:00
|
|
|
const isLocked = ref(false);
|
|
|
|
const hideOnlineStatus = ref(false);
|
|
|
|
const noCrawle = ref(false);
|
2023-05-11 13:54:47 +02:00
|
|
|
|
2023-11-07 19:23:58 +01:00
|
|
|
watch([isLocked, hideOnlineStatus, noCrawle], () => {
|
2024-01-04 10:32:46 +01:00
|
|
|
misskeyApi('i/update', {
|
2023-05-11 13:54:47 +02:00
|
|
|
isLocked: !!isLocked.value,
|
|
|
|
hideOnlineStatus: !!hideOnlineStatus.value,
|
|
|
|
noCrawle: !!noCrawle.value,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" module>
|
|
|
|
|
|
|
|
</style>
|