2020-10-17 06:12:00 -05:00
|
|
|
<template>
|
2023-01-05 22:40:17 -06:00
|
|
|
<div class="_gaps_m">
|
2023-01-06 23:59:54 -06:00
|
|
|
<MkSwitch v-model="isLocked" @update:model-value="save()">{{ i18n.ts.makeFollowManuallyApprove }}<template #caption>{{ i18n.ts.lockedAccountInfo }}</template></MkSwitch>
|
|
|
|
<MkSwitch v-if="isLocked" v-model="autoAcceptFollowed" @update:model-value="save()">{{ i18n.ts.autoAcceptFollowed }}</MkSwitch>
|
2021-11-28 05:07:37 -06:00
|
|
|
|
2023-01-06 23:59:54 -06:00
|
|
|
<MkSwitch v-model="publicReactions" @update:model-value="save()">
|
2022-07-20 08:24:26 -05:00
|
|
|
{{ i18n.ts.makeReactionsPublic }}
|
|
|
|
<template #caption>{{ i18n.ts.makeReactionsPublicDescription }}</template>
|
2023-01-06 23:59:54 -06:00
|
|
|
</MkSwitch>
|
2021-11-28 05:07:37 -06:00
|
|
|
|
2023-01-07 00:09:46 -06:00
|
|
|
<MkSelect v-model="ffVisibility" @update:model-value="save()">
|
2022-07-20 08:24:26 -05: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 00:09:46 -06:00
|
|
|
</MkSelect>
|
2021-11-28 05:07:37 -06:00
|
|
|
|
2023-01-06 23:59:54 -06:00
|
|
|
<MkSwitch v-model="hideOnlineStatus" @update:model-value="save()">
|
2022-07-20 08:24:26 -05:00
|
|
|
{{ i18n.ts.hideOnlineStatus }}
|
|
|
|
<template #caption>{{ i18n.ts.hideOnlineStatusDescription }}</template>
|
2023-01-06 23:59:54 -06:00
|
|
|
</MkSwitch>
|
|
|
|
<MkSwitch v-model="noCrawle" @update:model-value="save()">
|
2022-07-20 08:24:26 -05:00
|
|
|
{{ i18n.ts.noCrawle }}
|
|
|
|
<template #caption>{{ i18n.ts.noCrawleDescription }}</template>
|
2023-01-06 23:59:54 -06:00
|
|
|
</MkSwitch>
|
|
|
|
<MkSwitch v-model="isExplorable" @update:model-value="save()">
|
2022-07-20 08:24:26 -05:00
|
|
|
{{ i18n.ts.makeExplorable }}
|
|
|
|
<template #caption>{{ i18n.ts.makeExplorableDescription }}</template>
|
2023-01-06 23:59:54 -06:00
|
|
|
</MkSwitch>
|
2021-11-28 05:07:37 -06:00
|
|
|
|
|
|
|
<FormSection>
|
2023-01-05 22:40:17 -06:00
|
|
|
<div class="_gaps_m">
|
2023-01-06 23:59:54 -06:00
|
|
|
<MkSwitch v-model="rememberNoteVisibility" @update:model-value="save()">{{ i18n.ts.rememberNoteVisibility }}</MkSwitch>
|
2023-01-08 18:41:25 -06:00
|
|
|
<MkFolder v-if="!rememberNoteVisibility">
|
2023-01-05 06:04:56 -06: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-23 20:51:45 -05:00
|
|
|
|
2023-01-05 22:40:17 -06:00
|
|
|
<div class="_gaps_m">
|
2023-01-07 00:09:46 -06:00
|
|
|
<MkSelect v-model="defaultNoteVisibility">
|
2023-01-05 06:04:56 -06: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 00:09:46 -06:00
|
|
|
</MkSelect>
|
2023-01-06 23:59:54 -06:00
|
|
|
<MkSwitch v-model="defaultNoteLocalOnly">{{ i18n.ts._visibility.localOnly }}</MkSwitch>
|
2023-01-05 06:04:56 -06:00
|
|
|
</div>
|
2023-01-08 18:41:25 -06:00
|
|
|
</MkFolder>
|
2023-01-05 06:04:56 -06:00
|
|
|
</div>
|
2021-11-28 05:07:37 -06:00
|
|
|
</FormSection>
|
|
|
|
|
2023-01-06 23:59:54 -06:00
|
|
|
<MkSwitch v-model="keepCw" @update:model-value="save()">{{ i18n.ts.keepCw }}</MkSwitch>
|
2021-11-28 05:07:37 -06:00
|
|
|
</div>
|
2020-10-17 06:12:00 -05:00
|
|
|
</template>
|
|
|
|
|
2022-01-15 05:35:10 -06:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2023-01-06 23:59:54 -06:00
|
|
|
import MkSwitch from '@/components/MkSwitch.vue';
|
2023-01-07 00:09:46 -06:00
|
|
|
import MkSelect from '@/components/MkSelect.vue';
|
2021-11-28 05:07:37 -06:00
|
|
|
import FormSection from '@/components/form/section.vue';
|
2023-01-08 18:41:25 -06:00
|
|
|
import MkFolder from '@/components/MkFolder.vue';
|
2021-11-11 11:02:25 -06:00
|
|
|
import * as os from '@/os';
|
|
|
|
import { defaultStore } from '@/store';
|
2022-01-15 05:35:10 -06:00
|
|
|
import { i18n } from '@/i18n';
|
|
|
|
import { $i } from '@/account';
|
2022-06-20 03:38:49 -05:00
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
2020-10-17 06:12:00 -05:00
|
|
|
|
2022-01-15 05:35:10 -06: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);
|
2020-10-17 06:12:00 -05:00
|
|
|
|
2022-01-15 05:35:10 -06: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 06:12:00 -05:00
|
|
|
|
2022-01-15 05:35:10 -06:00
|
|
|
function save() {
|
|
|
|
os.api('i/update', {
|
|
|
|
isLocked: !!isLocked,
|
|
|
|
autoAcceptFollowed: !!autoAcceptFollowed,
|
|
|
|
noCrawle: !!noCrawle,
|
|
|
|
isExplorable: !!isExplorable,
|
|
|
|
hideOnlineStatus: !!hideOnlineStatus,
|
|
|
|
publicReactions: !!publicReactions,
|
|
|
|
ffVisibility: ffVisibility,
|
|
|
|
});
|
|
|
|
}
|
2020-10-17 06:12:00 -05:00
|
|
|
|
2022-06-20 03:38:49 -05:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.privacy,
|
2022-12-19 04:01:30 -06:00
|
|
|
icon: 'ti ti-lock-open',
|
2020-10-17 06:12:00 -05:00
|
|
|
});
|
|
|
|
</script>
|