2020-10-17 05:12:00 -06:00
|
|
|
<template>
|
2020-11-25 05:31:34 -07:00
|
|
|
<FormBase>
|
|
|
|
<FormGroup>
|
2021-09-29 09:50:45 -06:00
|
|
|
<FormSwitch v-model="isLocked" @update:modelValue="save()">{{ $ts.makeFollowManuallyApprove }}</FormSwitch>
|
|
|
|
<FormSwitch v-model="autoAcceptFollowed" :disabled="!isLocked" @update:modelValue="save()">{{ $ts.autoAcceptFollowed }}</FormSwitch>
|
2020-12-25 18:47:36 -07:00
|
|
|
<template #caption>{{ $ts.lockedAccountInfo }}</template>
|
2020-11-25 05:31:34 -07:00
|
|
|
</FormGroup>
|
2021-10-17 10:16:59 -06:00
|
|
|
<FormSwitch v-model="publicReactions" @update:modelValue="save()">
|
|
|
|
{{ $ts.makeReactionsPublic }}
|
|
|
|
<template #desc>{{ $ts.makeReactionsPublicDescription }}</template>
|
|
|
|
</FormSwitch>
|
2021-11-07 02:04:32 -07:00
|
|
|
<FormGroup>
|
|
|
|
<template #label>{{ $ts.ffVisibility }}</template>
|
|
|
|
<FormSelect v-model="ffVisibility">
|
|
|
|
<option value="public">{{ $ts._ffVisibility.public }}</option>
|
|
|
|
<option value="followers">{{ $ts._ffVisibility.followers }}</option>
|
|
|
|
<option value="private">{{ $ts._ffVisibility.private }}</option>
|
|
|
|
</FormSelect>
|
|
|
|
<template #caption>{{ $ts.ffVisibilityDescription }}</template>
|
|
|
|
</FormGroup>
|
2021-09-29 09:50:45 -06:00
|
|
|
<FormSwitch v-model="hideOnlineStatus" @update:modelValue="save()">
|
2021-04-17 00:30:26 -06:00
|
|
|
{{ $ts.hideOnlineStatus }}
|
|
|
|
<template #desc>{{ $ts.hideOnlineStatusDescription }}</template>
|
|
|
|
</FormSwitch>
|
2021-09-29 09:50:45 -06:00
|
|
|
<FormSwitch v-model="noCrawle" @update:modelValue="save()">
|
2020-12-25 18:47:36 -07:00
|
|
|
{{ $ts.noCrawle }}
|
|
|
|
<template #desc>{{ $ts.noCrawleDescription }}</template>
|
2020-11-25 05:31:34 -07:00
|
|
|
</FormSwitch>
|
2021-09-29 09:50:45 -06:00
|
|
|
<FormSwitch v-model="isExplorable" @update:modelValue="save()">
|
2020-12-25 18:47:36 -07:00
|
|
|
{{ $ts.makeExplorable }}
|
|
|
|
<template #desc>{{ $ts.makeExplorableDescription }}</template>
|
2020-12-11 05:16:20 -07:00
|
|
|
</FormSwitch>
|
2021-09-29 09:50:45 -06:00
|
|
|
<FormSwitch v-model="rememberNoteVisibility" @update:modelValue="save()">{{ $ts.rememberNoteVisibility }}</FormSwitch>
|
2020-11-25 05:31:34 -07:00
|
|
|
<FormGroup v-if="!rememberNoteVisibility">
|
2020-12-25 18:47:36 -07:00
|
|
|
<template #label>{{ $ts.defaultNoteVisibility }}</template>
|
2021-09-29 09:50:45 -06:00
|
|
|
<FormSelect v-model="defaultNoteVisibility">
|
2020-12-25 18:47:36 -07:00
|
|
|
<option value="public">{{ $ts._visibility.public }}</option>
|
|
|
|
<option value="home">{{ $ts._visibility.home }}</option>
|
|
|
|
<option value="followers">{{ $ts._visibility.followers }}</option>
|
|
|
|
<option value="specified">{{ $ts._visibility.specified }}</option>
|
2020-11-25 05:31:34 -07:00
|
|
|
</FormSelect>
|
2021-09-29 09:50:45 -06:00
|
|
|
<FormSwitch v-model="defaultNoteLocalOnly">{{ $ts._visibility.localOnly }}</FormSwitch>
|
2020-11-25 05:31:34 -07:00
|
|
|
</FormGroup>
|
2021-09-29 09:50:45 -06:00
|
|
|
<FormSwitch v-model="keepCw" @update:modelValue="save()">{{ $ts.keepCw }}</FormSwitch>
|
2020-11-25 05:31:34 -07:00
|
|
|
</FormBase>
|
2020-10-17 05:12:00 -06:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue';
|
2021-09-29 09:50:45 -06:00
|
|
|
import FormSwitch from '@client/components/debobigego/switch.vue';
|
|
|
|
import FormSelect from '@client/components/debobigego/select.vue';
|
|
|
|
import FormBase from '@client/components/debobigego/base.vue';
|
|
|
|
import FormGroup from '@client/components/debobigego/group.vue';
|
2021-03-23 02:30:14 -06:00
|
|
|
import * as os from '@client/os';
|
|
|
|
import { defaultStore } from '@client/store';
|
2021-04-09 21:54:12 -06:00
|
|
|
import * as symbols from '@client/symbols';
|
2020-10-17 05:12:00 -06:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
2020-11-25 05:31:34 -07:00
|
|
|
FormBase,
|
|
|
|
FormSelect,
|
|
|
|
FormGroup,
|
|
|
|
FormSwitch,
|
2020-10-17 05:12:00 -06:00
|
|
|
},
|
|
|
|
|
|
|
|
emits: ['info'],
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
2021-04-09 21:54:12 -06:00
|
|
|
[symbols.PAGE_INFO]: {
|
2020-12-25 18:47:36 -07:00
|
|
|
title: this.$ts.privacy,
|
2021-09-29 09:50:45 -06:00
|
|
|
icon: 'fas fa-lock-open',
|
|
|
|
bg: 'var(--bg)',
|
2020-10-17 05:12:00 -06:00
|
|
|
},
|
|
|
|
isLocked: false,
|
|
|
|
autoAcceptFollowed: false,
|
2020-11-25 05:31:34 -07:00
|
|
|
noCrawle: false,
|
2020-12-11 05:16:20 -07:00
|
|
|
isExplorable: false,
|
2021-04-17 00:30:26 -06:00
|
|
|
hideOnlineStatus: false,
|
2021-10-17 10:16:59 -06:00
|
|
|
publicReactions: false,
|
2021-11-07 02:04:32 -07:00
|
|
|
ffVisibility: 'public',
|
2020-10-17 05:12:00 -06:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
2020-12-18 18:55:52 -07:00
|
|
|
defaultNoteVisibility: defaultStore.makeGetterSetter('defaultNoteVisibility'),
|
|
|
|
defaultNoteLocalOnly: defaultStore.makeGetterSetter('defaultNoteLocalOnly'),
|
|
|
|
rememberNoteVisibility: defaultStore.makeGetterSetter('rememberNoteVisibility'),
|
2021-08-24 05:52:33 -06:00
|
|
|
keepCw: defaultStore.makeGetterSetter('keepCw'),
|
2020-10-17 05:12:00 -06:00
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
2020-12-18 18:55:52 -07:00
|
|
|
this.isLocked = this.$i.isLocked;
|
|
|
|
this.autoAcceptFollowed = this.$i.autoAcceptFollowed;
|
|
|
|
this.noCrawle = this.$i.noCrawle;
|
|
|
|
this.isExplorable = this.$i.isExplorable;
|
2021-04-17 00:30:26 -06:00
|
|
|
this.hideOnlineStatus = this.$i.hideOnlineStatus;
|
2021-10-17 10:16:59 -06:00
|
|
|
this.publicReactions = this.$i.publicReactions;
|
2021-11-07 02:04:32 -07:00
|
|
|
this.ffVisibility = this.$i.ffVisibility;
|
2020-10-17 05:12:00 -06:00
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
2021-04-09 21:54:12 -06:00
|
|
|
this.$emit('info', this[symbols.PAGE_INFO]);
|
2020-10-17 05:12:00 -06:00
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
save() {
|
|
|
|
os.api('i/update', {
|
|
|
|
isLocked: !!this.isLocked,
|
|
|
|
autoAcceptFollowed: !!this.autoAcceptFollowed,
|
2020-11-25 05:31:34 -07:00
|
|
|
noCrawle: !!this.noCrawle,
|
2020-12-11 05:16:20 -07:00
|
|
|
isExplorable: !!this.isExplorable,
|
2021-04-17 00:30:26 -06:00
|
|
|
hideOnlineStatus: !!this.hideOnlineStatus,
|
2021-10-17 10:16:59 -06:00
|
|
|
publicReactions: !!this.publicReactions,
|
2021-11-07 02:04:32 -07:00
|
|
|
ffVisibility: this.ffVisibility,
|
2020-10-17 05:12:00 -06:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|