2023-07-27 14:31:52 +09:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-10-17 20:12:00 +09:00
|
|
|
<template>
|
2023-01-06 13:40:17 +09:00
|
|
|
<div class="_gaps_m">
|
2023-01-07 15:09:46 +09:00
|
|
|
<MkSelect v-model="lang">
|
2022-05-04 10:13:51 +09:00
|
|
|
<template #label>{{ i18n.ts.uiLanguage }}</template>
|
2021-11-19 19:36:12 +09:00
|
|
|
<option v-for="x in langs" :key="x[0]" :value="x[0]">{{ x[1] }}</option>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #caption>
|
2022-05-04 10:13:51 +09:00
|
|
|
<I18n :src="i18n.ts.i18nInfo" tag="span">
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #link>
|
|
|
|
<MkLink url="https://crowdin.com/project/misskey">Crowdin</MkLink>
|
|
|
|
</template>
|
2020-12-26 10:01:32 +09:00
|
|
|
</I18n>
|
2020-11-25 21:31:34 +09:00
|
|
|
</template>
|
2023-01-07 15:09:46 +09:00
|
|
|
</MkSelect>
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2023-01-07 15:09:46 +09:00
|
|
|
<MkRadios v-model="overridedDeviceKind">
|
2022-05-04 10:13:51 +09:00
|
|
|
<template #label>{{ i18n.ts.overridedDeviceKind }}</template>
|
|
|
|
<option :value="null">{{ i18n.ts.auto }}</option>
|
2022-12-19 19:01:30 +09:00
|
|
|
<option value="smartphone"><i class="ti ti-device-mobile"/> {{ i18n.ts.smartphone }}</option>
|
|
|
|
<option value="tablet"><i class="ti ti-device-tablet"/> {{ i18n.ts.tablet }}</option>
|
|
|
|
<option value="desktop"><i class="ti ti-device-desktop"/> {{ i18n.ts.desktop }}</option>
|
2023-01-07 15:09:46 +09:00
|
|
|
</MkRadios>
|
2022-02-08 18:46:39 +09:00
|
|
|
|
2021-11-28 20:07:37 +09:00
|
|
|
<FormSection>
|
2023-05-07 20:56:46 +09:00
|
|
|
<div class="_gaps_s">
|
|
|
|
<MkSwitch v-model="showFixedPostForm">{{ i18n.ts.showFixedPostForm }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="showFixedPostFormInChannel">{{ i18n.ts.showFixedPostFormInChannel }}</MkSwitch>
|
2023-06-01 17:34:56 +09:00
|
|
|
<MkSwitch v-model="showTimelineReplies">{{ i18n.ts.flagShowTimelineReplies }}<template #caption>{{ i18n.ts.flagShowTimelineRepliesDescription }} {{ i18n.ts.reflectMayTakeTime }}</template></MkSwitch>
|
2023-01-05 21:04:56 +09:00
|
|
|
</div>
|
2021-11-28 20:07:37 +09:00
|
|
|
</FormSection>
|
|
|
|
|
|
|
|
<FormSection>
|
2023-05-07 20:48:46 +09:00
|
|
|
<template #label>{{ i18n.ts.displayOfNote }}</template>
|
2022-12-26 16:04:56 +09:00
|
|
|
|
2023-01-06 13:40:17 +09:00
|
|
|
<div class="_gaps_m">
|
|
|
|
<div class="_gaps_s">
|
2023-02-28 20:53:32 +09:00
|
|
|
<MkSwitch v-model="showNoteActionsOnlyHover">{{ i18n.ts.showNoteActionsOnlyHover }}</MkSwitch>
|
2023-03-24 16:54:37 +09:00
|
|
|
<MkSwitch v-model="showClipButtonInNoteFooter">{{ i18n.ts.showClipButtonInNoteFooter }}</MkSwitch>
|
2023-02-12 08:18:22 +09:00
|
|
|
<MkSwitch v-model="collapseRenotes">{{ i18n.ts.collapseRenotes }}</MkSwitch>
|
2023-02-11 11:31:18 +09:00
|
|
|
<MkSwitch v-model="advancedMfm">{{ i18n.ts.enableAdvancedMfm }}</MkSwitch>
|
|
|
|
<MkSwitch v-if="advancedMfm" v-model="animatedMfm">{{ i18n.ts.enableAnimatedMfm }}</MkSwitch>
|
2023-05-07 20:48:46 +09:00
|
|
|
<MkSwitch v-model="showGapBetweenNotesInTimeline">{{ i18n.ts.showGapBetweenNotesInTimeline }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="loadRawImages">{{ i18n.ts.loadRawImages }}</MkSwitch>
|
2023-05-07 20:59:29 +09:00
|
|
|
<MkSwitch v-model="useReactionPickerForContextMenu">{{ i18n.ts.useReactionPickerForContextMenu }}</MkSwitch>
|
2023-09-10 17:16:50 +09:00
|
|
|
<MkRadios v-model="reactionsDisplaySize">
|
|
|
|
<template #label>{{ i18n.ts.reactionsDisplaySize }}</template>
|
|
|
|
<option value="small">{{ i18n.ts.small }}</option>
|
|
|
|
<option value="medium">{{ i18n.ts.medium }}</option>
|
|
|
|
<option value="large">{{ i18n.ts.large }}</option>
|
|
|
|
</MkRadios>
|
2023-05-07 20:48:46 +09:00
|
|
|
</div>
|
|
|
|
|
2023-05-07 20:56:46 +09:00
|
|
|
<MkSelect v-model="instanceTicker">
|
|
|
|
<template #label>{{ i18n.ts.instanceTicker }}</template>
|
|
|
|
<option value="none">{{ i18n.ts._instanceTicker.none }}</option>
|
|
|
|
<option value="remote">{{ i18n.ts._instanceTicker.remote }}</option>
|
|
|
|
<option value="always">{{ i18n.ts._instanceTicker.always }}</option>
|
|
|
|
</MkSelect>
|
|
|
|
|
|
|
|
<MkSelect v-model="nsfw">
|
2023-07-08 12:53:51 +09:00
|
|
|
<template #label>{{ i18n.ts.displayOfSensitiveMedia }}</template>
|
|
|
|
<option value="respect">{{ i18n.ts._displayOfSensitiveMedia.respect }}</option>
|
|
|
|
<option value="ignore">{{ i18n.ts._displayOfSensitiveMedia.ignore }}</option>
|
|
|
|
<option value="force">{{ i18n.ts._displayOfSensitiveMedia.force }}</option>
|
2023-05-07 20:56:46 +09:00
|
|
|
</MkSelect>
|
2023-05-19 09:44:06 +09:00
|
|
|
|
2023-05-07 20:48:46 +09:00
|
|
|
<MkRadios v-model="mediaListWithOneImageAppearance">
|
|
|
|
<template #label>{{ i18n.ts.mediaListWithOneImageAppearance }}</template>
|
|
|
|
<option value="expand">{{ i18n.ts.default }}</option>
|
|
|
|
<option value="16_9">{{ i18n.t('limitTo', { x: '16:9' }) }}</option>
|
|
|
|
<option value="1_1">{{ i18n.t('limitTo', { x: '1:1' }) }}</option>
|
|
|
|
<option value="2_3">{{ i18n.t('limitTo', { x: '2:3' }) }}</option>
|
|
|
|
</MkRadios>
|
|
|
|
</div>
|
|
|
|
</FormSection>
|
|
|
|
|
2023-05-07 20:59:29 +09:00
|
|
|
<FormSection>
|
|
|
|
<template #label>{{ i18n.ts.notificationDisplay }}</template>
|
|
|
|
|
|
|
|
<div class="_gaps_m">
|
|
|
|
<MkRadios v-model="notificationPosition">
|
|
|
|
<template #label>{{ i18n.ts.position }}</template>
|
|
|
|
<option value="leftTop"><i class="ti ti-align-box-left-top"></i> {{ i18n.ts.leftTop }}</option>
|
|
|
|
<option value="rightTop"><i class="ti ti-align-box-right-top"></i> {{ i18n.ts.rightTop }}</option>
|
|
|
|
<option value="leftBottom"><i class="ti ti-align-box-left-bottom"></i> {{ i18n.ts.leftBottom }}</option>
|
|
|
|
<option value="rightBottom"><i class="ti ti-align-box-right-bottom"></i> {{ i18n.ts.rightBottom }}</option>
|
|
|
|
</MkRadios>
|
|
|
|
|
|
|
|
<MkRadios v-model="notificationStackAxis">
|
|
|
|
<template #label>{{ i18n.ts.stackAxis }}</template>
|
|
|
|
<option value="vertical"><i class="ti ti-carousel-vertical"></i> {{ i18n.ts.vertical }}</option>
|
|
|
|
<option value="horizontal"><i class="ti ti-carousel-horizontal"></i> {{ i18n.ts.horizontal }}</option>
|
|
|
|
</MkRadios>
|
2023-09-11 14:31:50 +09:00
|
|
|
|
|
|
|
<MkButton @click="testNotification('client')">{{ i18n.ts._notification.checkNotificationBehavior }}</MkButton>
|
2023-05-07 20:59:29 +09:00
|
|
|
</div>
|
|
|
|
</FormSection>
|
|
|
|
|
2023-05-07 20:48:46 +09:00
|
|
|
<FormSection>
|
|
|
|
<template #label>{{ i18n.ts.appearance }}</template>
|
|
|
|
|
|
|
|
<div class="_gaps_m">
|
|
|
|
<div class="_gaps_s">
|
2023-01-07 14:59:54 +09:00
|
|
|
<MkSwitch v-model="reduceAnimation">{{ i18n.ts.reduceUiAnimation }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="useBlurEffect">{{ i18n.ts.useBlurEffect }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="useBlurEffectForModal">{{ i18n.ts.useBlurEffectForModal }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="disableShowingAnimatedImages">{{ i18n.ts.disableShowingAnimatedImages }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="squareAvatars">{{ i18n.ts.squareAvatars }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="useSystemFont">{{ i18n.ts.useSystemFont }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="disableDrawer">{{ i18n.ts.disableDrawer }}</MkSwitch>
|
2023-04-10 10:22:25 +09:00
|
|
|
<MkSwitch v-model="forceShowAds">{{ i18n.ts.forceShowAds }}</MkSwitch>
|
2023-04-15 15:29:57 +09:00
|
|
|
<MkSwitch v-model="enableDataSaverMode">{{ i18n.ts.dataSaver }}</MkSwitch>
|
2023-01-05 21:04:56 +09:00
|
|
|
</div>
|
|
|
|
<div>
|
2023-01-07 15:09:46 +09:00
|
|
|
<MkRadios v-model="emojiStyle">
|
2023-01-05 21:04:56 +09:00
|
|
|
<template #label>{{ i18n.ts.emojiStyle }}</template>
|
|
|
|
<option value="native">{{ i18n.ts.native }}</option>
|
|
|
|
<option value="fluentEmoji">Fluent Emoji</option>
|
|
|
|
<option value="twemoji">Twemoji</option>
|
2023-01-07 15:09:46 +09:00
|
|
|
</MkRadios>
|
2023-01-05 21:04:56 +09:00
|
|
|
<div style="margin: 8px 0 0 0; font-size: 1.5em;"><Mfm :key="emojiStyle" text="🍮🍦🍭🍩🍰🍫🍬🥞🍪"/></div>
|
|
|
|
</div>
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2023-01-07 15:09:46 +09:00
|
|
|
<MkRadios v-model="fontSize">
|
2023-01-05 21:04:56 +09:00
|
|
|
<template #label>{{ i18n.ts.fontSize }}</template>
|
|
|
|
<option :value="null"><span style="font-size: 14px;">Aa</span></option>
|
|
|
|
<option value="1"><span style="font-size: 15px;">Aa</span></option>
|
|
|
|
<option value="2"><span style="font-size: 16px;">Aa</span></option>
|
|
|
|
<option value="3"><span style="font-size: 17px;">Aa</span></option>
|
2023-01-07 15:09:46 +09:00
|
|
|
</MkRadios>
|
2023-01-05 21:04:56 +09:00
|
|
|
</div>
|
2021-11-28 20:07:37 +09:00
|
|
|
</FormSection>
|
2021-09-04 17:54:24 +09:00
|
|
|
|
2021-11-28 20:07:37 +09:00
|
|
|
<FormSection>
|
2023-05-07 20:56:46 +09:00
|
|
|
<template #label>{{ i18n.ts.behavior }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2023-05-07 20:56:46 +09:00
|
|
|
<div class="_gaps_m">
|
|
|
|
<div class="_gaps_s">
|
|
|
|
<MkSwitch v-model="imageNewTab">{{ i18n.ts.openImageInNewTab }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="enableInfiniteScroll">{{ i18n.ts.enableInfiniteScroll }}</MkSwitch>
|
|
|
|
</div>
|
|
|
|
<MkSelect v-model="serverDisconnectedBehavior">
|
|
|
|
<template #label>{{ i18n.ts.whenServerDisconnected }}</template>
|
|
|
|
<option value="reload">{{ i18n.ts._serverDisconnectedBehavior.reload }}</option>
|
|
|
|
<option value="dialog">{{ i18n.ts._serverDisconnectedBehavior.dialog }}</option>
|
|
|
|
<option value="quiet">{{ i18n.ts._serverDisconnectedBehavior.quiet }}</option>
|
|
|
|
</MkSelect>
|
|
|
|
<MkRange v-model="numberOfPageCache" :min="1" :max="10" :step="1" easing>
|
|
|
|
<template #label>{{ i18n.ts.numberOfPageCache }}</template>
|
|
|
|
<template #caption>{{ i18n.ts.numberOfPageCacheDescription }}</template>
|
|
|
|
</MkRange>
|
|
|
|
</div>
|
|
|
|
</FormSection>
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2023-05-07 20:56:46 +09:00
|
|
|
<FormSection>
|
2023-05-15 16:40:19 +09:00
|
|
|
<template #label>{{ i18n.ts.other }}</template>
|
|
|
|
|
|
|
|
<div class="_gaps">
|
2023-06-01 17:10:53 +09:00
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.additionalEmojiDictionary }}</template>
|
2023-06-01 17:34:56 +09:00
|
|
|
<div v-for="lang in emojiIndexLangs" class="_buttons">
|
|
|
|
<MkButton @click="downloadEmojiIndex(lang)"><i class="ti ti-download"></i> {{ lang }}{{ defaultStore.reactiveState.additionalUnicodeEmojiIndexes.value[lang] ? ` (${ i18n.ts.installed })` : '' }}</MkButton>
|
|
|
|
<MkButton v-if="defaultStore.reactiveState.additionalUnicodeEmojiIndexes.value[lang]" danger @click="removeEmojiIndex(lang)"><i class="ti ti-trash"></i> {{ i18n.ts.remove }}</MkButton>
|
|
|
|
</div>
|
2023-06-01 17:10:53 +09:00
|
|
|
</MkFolder>
|
2023-05-15 16:40:19 +09:00
|
|
|
<FormLink to="/settings/deck">{{ i18n.ts.deck }}</FormLink>
|
|
|
|
<FormLink to="/settings/custom-css"><template #icon><i class="ti ti-code"></i></template>{{ i18n.ts.customCss }}</FormLink>
|
2023-05-14 10:30:46 +09:00
|
|
|
</div>
|
2023-05-07 20:56:46 +09:00
|
|
|
</FormSection>
|
2021-11-28 20:07:37 +09:00
|
|
|
</div>
|
2020-10-17 20:12:00 +09:00
|
|
|
</template>
|
|
|
|
|
2022-05-04 10:13:51 +09:00
|
|
|
<script lang="ts" setup>
|
2022-06-20 17:38:49 +09:00
|
|
|
import { computed, ref, watch } from 'vue';
|
2023-01-07 14:59:54 +09:00
|
|
|
import MkSwitch from '@/components/MkSwitch.vue';
|
2023-01-07 15:09:46 +09:00
|
|
|
import MkSelect from '@/components/MkSelect.vue';
|
|
|
|
import MkRadios from '@/components/MkRadios.vue';
|
|
|
|
import MkRange from '@/components/MkRange.vue';
|
2023-06-01 17:10:53 +09:00
|
|
|
import MkFolder from '@/components/MkFolder.vue';
|
|
|
|
import MkButton from '@/components/MkButton.vue';
|
2021-11-28 20:07:37 +09:00
|
|
|
import FormSection from '@/components/form/section.vue';
|
|
|
|
import FormLink from '@/components/form/link.vue';
|
2022-08-31 00:24:33 +09:00
|
|
|
import MkLink from '@/components/MkLink.vue';
|
2021-11-12 02:02:25 +09:00
|
|
|
import { langs } from '@/config';
|
|
|
|
import { defaultStore } from '@/store';
|
|
|
|
import * as os from '@/os';
|
|
|
|
import { unisonReload } from '@/scripts/unison-reload';
|
2022-05-04 10:13:51 +09:00
|
|
|
import { i18n } from '@/i18n';
|
2022-06-20 17:38:49 +09:00
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
2023-01-07 10:13:02 +09:00
|
|
|
import { miLocalStorage } from '@/local-storage';
|
2023-09-11 14:31:50 +09:00
|
|
|
import { testNotification } from '@/scripts/test-notification';
|
2022-05-04 10:13:51 +09:00
|
|
|
|
2023-01-07 10:13:02 +09:00
|
|
|
const lang = ref(miLocalStorage.getItem('lang'));
|
|
|
|
const fontSize = ref(miLocalStorage.getItem('fontSize'));
|
|
|
|
const useSystemFont = ref(miLocalStorage.getItem('useSystemFont') != null);
|
2022-05-04 10:13:51 +09:00
|
|
|
|
|
|
|
async function reloadAsk() {
|
|
|
|
const { canceled } = await os.confirm({
|
|
|
|
type: 'info',
|
|
|
|
text: i18n.ts.reloadToApplySetting,
|
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
|
|
|
|
unisonReload();
|
|
|
|
}
|
|
|
|
|
|
|
|
const overridedDeviceKind = computed(defaultStore.makeGetterSetter('overridedDeviceKind'));
|
|
|
|
const serverDisconnectedBehavior = computed(defaultStore.makeGetterSetter('serverDisconnectedBehavior'));
|
2023-02-28 20:53:32 +09:00
|
|
|
const showNoteActionsOnlyHover = computed(defaultStore.makeGetterSetter('showNoteActionsOnlyHover'));
|
2023-03-24 16:54:37 +09:00
|
|
|
const showClipButtonInNoteFooter = computed(defaultStore.makeGetterSetter('showClipButtonInNoteFooter'));
|
2023-09-10 17:16:50 +09:00
|
|
|
const reactionsDisplaySize = computed(defaultStore.makeGetterSetter('reactionsDisplaySize'));
|
2023-02-12 08:18:22 +09:00
|
|
|
const collapseRenotes = computed(defaultStore.makeGetterSetter('collapseRenotes'));
|
2022-05-04 10:13:51 +09:00
|
|
|
const reduceAnimation = computed(defaultStore.makeGetterSetter('animation', v => !v, v => !v));
|
|
|
|
const useBlurEffectForModal = computed(defaultStore.makeGetterSetter('useBlurEffectForModal'));
|
|
|
|
const useBlurEffect = computed(defaultStore.makeGetterSetter('useBlurEffect'));
|
|
|
|
const showGapBetweenNotesInTimeline = computed(defaultStore.makeGetterSetter('showGapBetweenNotesInTimeline'));
|
2023-02-11 11:31:18 +09:00
|
|
|
const animatedMfm = computed(defaultStore.makeGetterSetter('animatedMfm'));
|
|
|
|
const advancedMfm = computed(defaultStore.makeGetterSetter('advancedMfm'));
|
2022-12-26 16:04:56 +09:00
|
|
|
const emojiStyle = computed(defaultStore.makeGetterSetter('emojiStyle'));
|
2022-05-04 10:13:51 +09:00
|
|
|
const disableDrawer = computed(defaultStore.makeGetterSetter('disableDrawer'));
|
|
|
|
const disableShowingAnimatedImages = computed(defaultStore.makeGetterSetter('disableShowingAnimatedImages'));
|
2023-04-10 10:22:25 +09:00
|
|
|
const forceShowAds = computed(defaultStore.makeGetterSetter('forceShowAds'));
|
2022-05-04 10:13:51 +09:00
|
|
|
const loadRawImages = computed(defaultStore.makeGetterSetter('loadRawImages'));
|
2023-04-15 15:29:57 +09:00
|
|
|
const enableDataSaverMode = computed(defaultStore.makeGetterSetter('enableDataSaverMode'));
|
2022-05-04 10:13:51 +09:00
|
|
|
const imageNewTab = computed(defaultStore.makeGetterSetter('imageNewTab'));
|
|
|
|
const nsfw = computed(defaultStore.makeGetterSetter('nsfw'));
|
|
|
|
const showFixedPostForm = computed(defaultStore.makeGetterSetter('showFixedPostForm'));
|
2023-03-04 10:34:54 +09:00
|
|
|
const showFixedPostFormInChannel = computed(defaultStore.makeGetterSetter('showFixedPostFormInChannel'));
|
2022-06-30 10:53:40 +09:00
|
|
|
const numberOfPageCache = computed(defaultStore.makeGetterSetter('numberOfPageCache'));
|
2022-05-04 10:13:51 +09:00
|
|
|
const instanceTicker = computed(defaultStore.makeGetterSetter('instanceTicker'));
|
|
|
|
const enableInfiniteScroll = computed(defaultStore.makeGetterSetter('enableInfiniteScroll'));
|
|
|
|
const useReactionPickerForContextMenu = computed(defaultStore.makeGetterSetter('useReactionPickerForContextMenu'));
|
|
|
|
const squareAvatars = computed(defaultStore.makeGetterSetter('squareAvatars'));
|
2023-04-15 21:35:19 +09:00
|
|
|
const mediaListWithOneImageAppearance = computed(defaultStore.makeGetterSetter('mediaListWithOneImageAppearance'));
|
2023-04-17 13:12:58 +09:00
|
|
|
const notificationPosition = computed(defaultStore.makeGetterSetter('notificationPosition'));
|
|
|
|
const notificationStackAxis = computed(defaultStore.makeGetterSetter('notificationStackAxis'));
|
2023-05-16 12:16:37 +09:00
|
|
|
const showTimelineReplies = computed(defaultStore.makeGetterSetter('showTimelineReplies'));
|
2022-05-04 10:13:51 +09:00
|
|
|
|
|
|
|
watch(lang, () => {
|
2023-01-07 10:13:02 +09:00
|
|
|
miLocalStorage.setItem('lang', lang.value as string);
|
|
|
|
miLocalStorage.removeItem('locale');
|
2022-05-04 10:13:51 +09:00
|
|
|
});
|
|
|
|
|
|
|
|
watch(fontSize, () => {
|
|
|
|
if (fontSize.value == null) {
|
2023-01-07 10:13:02 +09:00
|
|
|
miLocalStorage.removeItem('fontSize');
|
2022-05-04 10:13:51 +09:00
|
|
|
} else {
|
2023-01-07 10:13:02 +09:00
|
|
|
miLocalStorage.setItem('fontSize', fontSize.value);
|
2022-05-04 10:13:51 +09:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
watch(useSystemFont, () => {
|
|
|
|
if (useSystemFont.value) {
|
2023-01-07 10:13:02 +09:00
|
|
|
miLocalStorage.setItem('useSystemFont', 't');
|
2022-05-04 10:13:51 +09:00
|
|
|
} else {
|
2023-01-07 10:13:02 +09:00
|
|
|
miLocalStorage.removeItem('useSystemFont');
|
2022-05-04 10:13:51 +09:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
watch([
|
|
|
|
lang,
|
|
|
|
fontSize,
|
|
|
|
useSystemFont,
|
|
|
|
enableInfiniteScroll,
|
|
|
|
squareAvatars,
|
2023-03-06 11:53:04 +09:00
|
|
|
showNoteActionsOnlyHover,
|
2022-05-04 10:13:51 +09:00
|
|
|
showGapBetweenNotesInTimeline,
|
|
|
|
instanceTicker,
|
2022-06-20 17:38:49 +09:00
|
|
|
overridedDeviceKind,
|
2023-07-25 19:44:52 +09:00
|
|
|
mediaListWithOneImageAppearance,
|
2023-09-10 17:16:50 +09:00
|
|
|
reactionsDisplaySize,
|
2022-05-04 10:13:51 +09:00
|
|
|
], async () => {
|
|
|
|
await reloadAsk();
|
|
|
|
});
|
2020-10-17 20:12:00 +09:00
|
|
|
|
2023-06-01 17:34:56 +09:00
|
|
|
const emojiIndexLangs = ['en-US'];
|
|
|
|
|
|
|
|
function downloadEmojiIndex(lang: string) {
|
2023-06-01 17:10:53 +09:00
|
|
|
async function main() {
|
|
|
|
const currentIndexes = defaultStore.state.additionalUnicodeEmojiIndexes;
|
|
|
|
function download() {
|
|
|
|
switch (lang) {
|
|
|
|
case 'en-US': return import('../../unicode-emoji-indexes/en-US.json').then(x => x.default);
|
|
|
|
default: throw new Error('unrecognized lang: ' + lang);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
currentIndexes[lang] = await download();
|
2023-06-01 17:34:56 +09:00
|
|
|
await defaultStore.set('additionalUnicodeEmojiIndexes', currentIndexes);
|
|
|
|
}
|
|
|
|
|
|
|
|
os.promiseDialog(main());
|
|
|
|
}
|
|
|
|
|
|
|
|
function removeEmojiIndex(lang: string) {
|
|
|
|
async function main() {
|
|
|
|
const currentIndexes = defaultStore.state.additionalUnicodeEmojiIndexes;
|
|
|
|
delete currentIndexes[lang];
|
|
|
|
await defaultStore.set('additionalUnicodeEmojiIndexes', currentIndexes);
|
2023-06-01 17:10:53 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
os.promiseDialog(main());
|
|
|
|
}
|
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.general,
|
2022-12-19 19:01:30 +09:00
|
|
|
icon: 'ti ti-adjustments',
|
2020-10-17 20:12:00 +09:00
|
|
|
});
|
|
|
|
</script>
|