2020-10-17 20:12:00 +09:00
|
|
|
<template>
|
2021-12-05 12:47:57 +09:00
|
|
|
<div class="_formRoot">
|
2022-05-04 10:12:08 +09:00
|
|
|
<FormSwitch v-model="$i.injectFeaturedNote" class="_formBlock" @update:modelValue="onChangeInjectFeaturedNote">
|
|
|
|
{{ i18n.ts.showFeaturedNotesInTimeline }}
|
2020-11-25 21:31:34 +09:00
|
|
|
</FormSwitch>
|
|
|
|
|
2022-03-05 00:35:59 +09:00
|
|
|
<!--
|
2022-05-04 10:12:08 +09:00
|
|
|
<FormSwitch v-model="reportError" class="_formBlock">{{ i18n.ts.sendErrorReports }}<template #caption>{{ i18n.ts.sendErrorReportsDescription }}</template></FormSwitch>
|
2022-03-05 00:35:59 +09:00
|
|
|
-->
|
2021-01-08 21:43:56 +09:00
|
|
|
|
2022-05-04 10:12:08 +09:00
|
|
|
<FormLink to="/settings/account-info" class="_formBlock">{{ i18n.ts.accountInfo }}</FormLink>
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2022-05-04 10:12:08 +09:00
|
|
|
<FormLink to="/settings/delete-account" class="_formBlock"><template #icon><i class="fas fa-exclamation-triangle"></i></template>{{ i18n.ts.closeAccount }}</FormLink>
|
2021-12-05 12:47:57 +09:00
|
|
|
</div>
|
2020-10-17 20:12:00 +09:00
|
|
|
</template>
|
|
|
|
|
2022-05-04 10:12:08 +09:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { computed, defineExpose } from 'vue';
|
2021-11-12 02:02:25 +09:00
|
|
|
import FormSwitch from '@/components/form/switch.vue';
|
2022-01-03 00:41:01 +09:00
|
|
|
import FormLink from '@/components/form/link.vue';
|
2021-11-12 02:02:25 +09:00
|
|
|
import * as os from '@/os';
|
|
|
|
import { defaultStore } from '@/store';
|
|
|
|
import * as symbols from '@/symbols';
|
2022-05-04 10:12:08 +09:00
|
|
|
import { $i } from '@/account';
|
|
|
|
import { i18n } from '@/i18n';
|
|
|
|
|
|
|
|
const reportError = computed(defaultStore.makeGetterSetter('reportError'));
|
|
|
|
|
|
|
|
function onChangeInjectFeaturedNote(v) {
|
|
|
|
os.api('i/update', {
|
|
|
|
injectFeaturedNote: v
|
|
|
|
}).then((i) => {
|
|
|
|
$i!.injectFeaturedNote = i.injectFeaturedNote;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
defineExpose({
|
|
|
|
[symbols.PAGE_INFO]: {
|
|
|
|
title: i18n.ts.other,
|
|
|
|
icon: 'fas fa-ellipsis-h',
|
|
|
|
bg: 'var(--bg)',
|
2020-10-17 20:12:00 +09:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|