2020-10-17 20:12:00 +09:00
|
|
|
<template>
|
2023-01-06 13:40:17 +09:00
|
|
|
<div class="_gaps_m">
|
2023-01-07 14:59:54 +09:00
|
|
|
<MkSwitch v-model="$i.injectFeaturedNote" @update:model-value="onChangeInjectFeaturedNote">
|
2022-05-04 10:12:08 +09:00
|
|
|
{{ i18n.ts.showFeaturedNotesInTimeline }}
|
2023-01-07 14:59:54 +09:00
|
|
|
</MkSwitch>
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2022-03-05 00:35:59 +09:00
|
|
|
<!--
|
2023-01-07 14:59:54 +09:00
|
|
|
<MkSwitch v-model="reportError">{{ i18n.ts.sendErrorReports }}<template #caption>{{ i18n.ts.sendErrorReportsDescription }}</template></MkSwitch>
|
2022-03-05 00:35:59 +09:00
|
|
|
-->
|
2021-01-08 21:43:56 +09:00
|
|
|
|
2023-01-05 21:04:56 +09:00
|
|
|
<FormLink to="/settings/account-info">{{ i18n.ts.accountInfo }}</FormLink>
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2023-01-05 21:04:56 +09:00
|
|
|
<FormLink to="/registry"><template #icon><i class="ti ti-adjustments"></i></template>{{ i18n.ts.registry }}</FormLink>
|
2022-07-16 23:11:05 +09:00
|
|
|
|
2023-01-05 21:04:56 +09:00
|
|
|
<FormLink to="/settings/delete-account"><template #icon><i class="ti ti-alert-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>
|
2022-06-20 17:38:49 +09:00
|
|
|
import { computed } from 'vue';
|
2023-01-07 14:59:54 +09:00
|
|
|
import MkSwitch from '@/components/MkSwitch.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';
|
2022-05-04 10:12:08 +09:00
|
|
|
import { $i } from '@/account';
|
|
|
|
import { i18n } from '@/i18n';
|
2022-06-20 17:38:49 +09:00
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
2022-05-04 10:12:08 +09:00
|
|
|
|
|
|
|
const reportError = computed(defaultStore.makeGetterSetter('reportError'));
|
|
|
|
|
|
|
|
function onChangeInjectFeaturedNote(v) {
|
|
|
|
os.api('i/update', {
|
2022-06-20 17:38:49 +09:00
|
|
|
injectFeaturedNote: v,
|
2022-05-04 10:12:08 +09:00
|
|
|
}).then((i) => {
|
|
|
|
$i!.injectFeaturedNote = i.injectFeaturedNote;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.other,
|
2022-12-19 19:01:30 +09:00
|
|
|
icon: 'ti ti-dots',
|
2020-10-17 20:12:00 +09:00
|
|
|
});
|
|
|
|
</script>
|