2020-10-17 11:12:00 +00:00
|
|
|
<template>
|
2023-01-06 04:40:17 +00:00
|
|
|
<div class="_gaps_m">
|
2023-05-04 23:34:05 +00:00
|
|
|
<!--
|
2023-01-07 05:59:54 +00:00
|
|
|
<MkSwitch v-model="$i.injectFeaturedNote" @update:model-value="onChangeInjectFeaturedNote">
|
2023-05-04 23:34:05 +00:00
|
|
|
<template #label>{{ i18n.ts.showFeaturedNotesInTimeline }}</template>
|
2023-01-07 05:59:54 +00:00
|
|
|
</MkSwitch>
|
2023-05-04 23:34:05 +00:00
|
|
|
-->
|
2020-11-25 12:31:34 +00:00
|
|
|
|
2022-03-04 15:35:59 +00:00
|
|
|
<!--
|
2023-01-07 05:59:54 +00:00
|
|
|
<MkSwitch v-model="reportError">{{ i18n.ts.sendErrorReports }}<template #caption>{{ i18n.ts.sendErrorReportsDescription }}</template></MkSwitch>
|
2022-03-04 15:35:59 +00:00
|
|
|
-->
|
2021-01-08 12:43:56 +00:00
|
|
|
|
2023-05-04 23:34:05 +00:00
|
|
|
<div class="_gaps_s">
|
|
|
|
<FormLink to="/settings/account-info"><template #icon><i class="ti ti-info-circle"></i></template>{{ i18n.ts.accountInfo }}</FormLink>
|
|
|
|
<FormLink to="/registry"><template #icon><i class="ti ti-adjustments"></i></template>{{ i18n.ts.registry }}</FormLink>
|
|
|
|
<FormLink to="/settings/delete-account"><template #icon><i class="ti ti-alert-triangle"></i></template>{{ i18n.ts.closeAccount }}</FormLink>
|
|
|
|
</div>
|
2020-11-25 12:31:34 +00:00
|
|
|
|
2023-05-04 23:34:05 +00:00
|
|
|
<MkFolder>
|
|
|
|
<template #icon><i class="ti ti-flask"></i></template>
|
|
|
|
<template #label>{{ i18n.ts.experimentalFeatures }}</template>
|
2022-07-16 14:11:05 +00:00
|
|
|
|
2023-05-04 23:34:05 +00:00
|
|
|
<div class="_gaps_m">
|
|
|
|
<MkSwitch v-model="enableCondensedLineForAcct">
|
|
|
|
<template #label>Enable condensed line for acct</template>
|
|
|
|
</MkSwitch>
|
|
|
|
</div>
|
|
|
|
</MkFolder>
|
2021-12-05 03:47:57 +00:00
|
|
|
</div>
|
2020-10-17 11:12:00 +00:00
|
|
|
</template>
|
|
|
|
|
2022-05-04 01:12:08 +00:00
|
|
|
<script lang="ts" setup>
|
2023-05-04 23:34:05 +00:00
|
|
|
import { computed, watch } from 'vue';
|
2023-01-07 05:59:54 +00:00
|
|
|
import MkSwitch from '@/components/MkSwitch.vue';
|
2022-01-02 15:41:01 +00:00
|
|
|
import FormLink from '@/components/form/link.vue';
|
2023-05-04 23:34:05 +00:00
|
|
|
import MkFolder from '@/components/MkFolder.vue';
|
2021-11-11 17:02:25 +00:00
|
|
|
import * as os from '@/os';
|
|
|
|
import { defaultStore } from '@/store';
|
2022-05-04 01:12:08 +00:00
|
|
|
import { $i } from '@/account';
|
|
|
|
import { i18n } from '@/i18n';
|
2022-06-20 08:38:49 +00:00
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
2023-05-04 23:34:05 +00:00
|
|
|
import { unisonReload } from '@/scripts/unison-reload';
|
2022-05-04 01:12:08 +00:00
|
|
|
|
|
|
|
const reportError = computed(defaultStore.makeGetterSetter('reportError'));
|
2023-05-04 23:34:05 +00:00
|
|
|
const enableCondensedLineForAcct = computed(defaultStore.makeGetterSetter('enableCondensedLineForAcct'));
|
2022-05-04 01:12:08 +00:00
|
|
|
|
|
|
|
function onChangeInjectFeaturedNote(v) {
|
|
|
|
os.api('i/update', {
|
2022-06-20 08:38:49 +00:00
|
|
|
injectFeaturedNote: v,
|
2022-05-04 01:12:08 +00:00
|
|
|
}).then((i) => {
|
|
|
|
$i!.injectFeaturedNote = i.injectFeaturedNote;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-05-04 23:34:05 +00:00
|
|
|
async function reloadAsk() {
|
|
|
|
const { canceled } = await os.confirm({
|
|
|
|
type: 'info',
|
|
|
|
text: i18n.ts.reloadToApplySetting,
|
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
|
|
|
|
unisonReload();
|
|
|
|
}
|
|
|
|
|
|
|
|
watch([
|
|
|
|
enableCondensedLineForAcct,
|
|
|
|
], async () => {
|
|
|
|
await reloadAsk();
|
|
|
|
});
|
|
|
|
|
2022-06-20 08:38:49 +00:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.other,
|
2022-12-19 10:01:30 +00:00
|
|
|
icon: 'ti ti-dots',
|
2020-10-17 11:12:00 +00:00
|
|
|
});
|
|
|
|
</script>
|