|
|
|
@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="_gaps_m">
|
|
|
|
|
<div class="_gaps_m">
|
|
|
|
|
<MkSelect v-model="lang">
|
|
|
|
|
<template #label>{{ i18n.ts.uiLanguage }}</template>
|
|
|
|
|
<option v-for="x in langs" :key="x[0]" :value="x[0]">{{ x[1] }}</option>
|
|
|
|
@ -340,6 +340,19 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
</div>
|
|
|
|
|
</FormSection>
|
|
|
|
|
|
|
|
|
|
<FormSection>
|
|
|
|
|
<template #label>{{ i18n.ts.timeline }}<span class="_beta">{{ i18n.ts.originalFeature }}</span></template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="_gaps">
|
|
|
|
|
<MkSwitch v-model="hideLocalTimeLine">{{ i18n.ts.hideLocalTimeLine }}</MkSwitch>
|
|
|
|
|
<MkSwitch v-model="hideSocialTimeLine">{{ i18n.ts.hideSocialTimeLine }}</MkSwitch>
|
|
|
|
|
<MkSwitch v-model="hideGlobalTimeLine">{{ i18n.ts.hideGlobalTimeLine }}</MkSwitch>
|
|
|
|
|
<MkSwitch v-model="hideBubbleTimeLine">{{ i18n.ts.hideBubbleTimeLine }}</MkSwitch>
|
|
|
|
|
</div>
|
|
|
|
|
</FormSection>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<FormSection>
|
|
|
|
|
<template #label>{{ i18n.ts.other }}</template>
|
|
|
|
|
|
|
|
|
@ -363,151 +376,155 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
<FormLink to="/settings/custom-css"><template #icon><i class="ti ti-code"></i></template>{{ i18n.ts.customCss }}</FormLink>
|
|
|
|
|
</div>
|
|
|
|
|
</FormSection>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { computed, reactive, ref, watch } from 'vue';
|
|
|
|
|
import * as Misskey from 'misskey-js';
|
|
|
|
|
import { langs } from '@@/js/config.js';
|
|
|
|
|
import MkSwitch from '@/components/MkSwitch.vue';
|
|
|
|
|
import MkSelect from '@/components/MkSelect.vue';
|
|
|
|
|
import MkRadios from '@/components/MkRadios.vue';
|
|
|
|
|
import MkInput from '@/components/MkInput.vue';
|
|
|
|
|
import MkRange from '@/components/MkRange.vue';
|
|
|
|
|
import MkFolder from '@/components/MkFolder.vue';
|
|
|
|
|
import MkButton from '@/components/MkButton.vue';
|
|
|
|
|
import FormSection from '@/components/form/section.vue';
|
|
|
|
|
import FormLink from '@/components/form/link.vue';
|
|
|
|
|
import MkLink from '@/components/MkLink.vue';
|
|
|
|
|
import MkInfo from '@/components/MkInfo.vue';
|
|
|
|
|
import { searchEngineMap } from '@/scripts/search-engine-map.js';
|
|
|
|
|
import { defaultStore } from '@/store.js';
|
|
|
|
|
import * as os from '@/os.js';
|
|
|
|
|
import { misskeyApi } from '@/scripts/misskey-api.js';
|
|
|
|
|
import { reloadAsk } from '@/scripts/reload-ask.js';
|
|
|
|
|
import { i18n } from '@/i18n.js';
|
|
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
|
|
|
|
import { fontList } from '@/scripts/font';
|
|
|
|
|
import { miLocalStorage } from '@/local-storage.js';
|
|
|
|
|
import { globalEvents } from '@/events.js';
|
|
|
|
|
import { claimAchievement } from '@/scripts/achievements.js';
|
|
|
|
|
import { deepMerge } from '@/scripts/merge.js';
|
|
|
|
|
import { worksOnInstance } from '@/scripts/favicon-dot.js';
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { computed, reactive, ref, watch } from 'vue';
|
|
|
|
|
import * as Misskey from 'misskey-js';
|
|
|
|
|
import { langs } from '@@/js/config.js';
|
|
|
|
|
import MkSwitch from '@/components/MkSwitch.vue';
|
|
|
|
|
import MkSelect from '@/components/MkSelect.vue';
|
|
|
|
|
import MkRadios from '@/components/MkRadios.vue';
|
|
|
|
|
import MkInput from '@/components/MkInput.vue';
|
|
|
|
|
import MkRange from '@/components/MkRange.vue';
|
|
|
|
|
import MkFolder from '@/components/MkFolder.vue';
|
|
|
|
|
import MkButton from '@/components/MkButton.vue';
|
|
|
|
|
import FormSection from '@/components/form/section.vue';
|
|
|
|
|
import FormLink from '@/components/form/link.vue';
|
|
|
|
|
import MkLink from '@/components/MkLink.vue';
|
|
|
|
|
import MkInfo from '@/components/MkInfo.vue';
|
|
|
|
|
import { searchEngineMap } from '@/scripts/search-engine-map.js';
|
|
|
|
|
import { defaultStore } from '@/store.js';
|
|
|
|
|
import * as os from '@/os.js';
|
|
|
|
|
import { misskeyApi } from '@/scripts/misskey-api.js';
|
|
|
|
|
import { reloadAsk } from '@/scripts/reload-ask.js';
|
|
|
|
|
import { i18n } from '@/i18n.js';
|
|
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
|
|
|
|
import { fontList } from '@/scripts/font';
|
|
|
|
|
import { miLocalStorage } from '@/local-storage.js';
|
|
|
|
|
import { globalEvents } from '@/events.js';
|
|
|
|
|
import { claimAchievement } from '@/scripts/achievements.js';
|
|
|
|
|
import { deepMerge } from '@/scripts/merge.js';
|
|
|
|
|
import { worksOnInstance } from '@/scripts/favicon-dot.js';
|
|
|
|
|
|
|
|
|
|
const lang = ref(miLocalStorage.getItem('lang'));
|
|
|
|
|
const fontSize = ref(miLocalStorage.getItem('fontSize'));
|
|
|
|
|
const cornerRadius = ref(miLocalStorage.getItem('cornerRadius'));
|
|
|
|
|
const useSystemFont = ref(miLocalStorage.getItem('useSystemFont') != null);
|
|
|
|
|
const dataSaver = ref(defaultStore.state.dataSaver);
|
|
|
|
|
const lang = ref(miLocalStorage.getItem('lang'));
|
|
|
|
|
const fontSize = ref(miLocalStorage.getItem('fontSize'));
|
|
|
|
|
const cornerRadius = ref(miLocalStorage.getItem('cornerRadius'));
|
|
|
|
|
const useSystemFont = ref(miLocalStorage.getItem('useSystemFont') != null);
|
|
|
|
|
const dataSaver = ref(defaultStore.state.dataSaver);
|
|
|
|
|
|
|
|
|
|
const hemisphere = computed(defaultStore.makeGetterSetter('hemisphere'));
|
|
|
|
|
const overridedDeviceKind = computed(defaultStore.makeGetterSetter('overridedDeviceKind'));
|
|
|
|
|
const serverDisconnectedBehavior = computed(defaultStore.makeGetterSetter('serverDisconnectedBehavior'));
|
|
|
|
|
const showNoteActionsOnlyHover = computed(defaultStore.makeGetterSetter('showNoteActionsOnlyHover'));
|
|
|
|
|
const showClipButtonInNoteFooter = computed(defaultStore.makeGetterSetter('showClipButtonInNoteFooter'));
|
|
|
|
|
const reactionsDisplaySize = computed(defaultStore.makeGetterSetter('reactionsDisplaySize'));
|
|
|
|
|
const limitWidthOfReaction = computed(defaultStore.makeGetterSetter('limitWidthOfReaction'));
|
|
|
|
|
const hideReactionUsers = computed(defaultStore.makeGetterSetter('hideReactionUsers'));
|
|
|
|
|
const hideReactionCount = computed(defaultStore.makeGetterSetter('hideReactionCount'));
|
|
|
|
|
const collapseRenotes = computed(defaultStore.makeGetterSetter('collapseRenotes'));
|
|
|
|
|
const collapseNotesRepliedTo = computed(defaultStore.makeGetterSetter('collapseNotesRepliedTo'));
|
|
|
|
|
const clickToOpen = computed(defaultStore.makeGetterSetter('clickToOpen'));
|
|
|
|
|
const collapseFiles = computed(defaultStore.makeGetterSetter('collapseFiles'));
|
|
|
|
|
const autoloadConversation = computed(defaultStore.makeGetterSetter('autoloadConversation'));
|
|
|
|
|
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'));
|
|
|
|
|
const animatedMfm = computed(defaultStore.makeGetterSetter('animatedMfm'));
|
|
|
|
|
const advancedMfm = computed(defaultStore.makeGetterSetter('advancedMfm'));
|
|
|
|
|
const showReactionsCount = computed(defaultStore.makeGetterSetter('showReactionsCount'));
|
|
|
|
|
const enableQuickAddMfmFunction = computed(defaultStore.makeGetterSetter('enableQuickAddMfmFunction'));
|
|
|
|
|
const emojiStyle = computed(defaultStore.makeGetterSetter('emojiStyle'));
|
|
|
|
|
const disableDrawer = computed(defaultStore.makeGetterSetter('disableDrawer'));
|
|
|
|
|
const customFont = computed(defaultStore.makeGetterSetter('customFont'));
|
|
|
|
|
const menuStyle = computed(defaultStore.makeGetterSetter('menuStyle'));
|
|
|
|
|
const disableShowingAnimatedImages = computed(defaultStore.makeGetterSetter('disableShowingAnimatedImages'));
|
|
|
|
|
const forceShowAds = computed(defaultStore.makeGetterSetter('forceShowAds'));
|
|
|
|
|
const oneko = computed(defaultStore.makeGetterSetter('oneko'));
|
|
|
|
|
const loadRawImages = computed(defaultStore.makeGetterSetter('loadRawImages'));
|
|
|
|
|
const disableCatSpeak = computed(defaultStore.makeGetterSetter('disableCatSpeak'));
|
|
|
|
|
const highlightSensitiveMedia = computed(defaultStore.makeGetterSetter('highlightSensitiveMedia'));
|
|
|
|
|
const imageNewTab = computed(defaultStore.makeGetterSetter('imageNewTab'));
|
|
|
|
|
const enableFaviconNotificationDot = computed(defaultStore.makeGetterSetter('enableFaviconNotificationDot'));
|
|
|
|
|
const warnMissingAltText = computed(defaultStore.makeGetterSetter('warnMissingAltText'));
|
|
|
|
|
const nsfw = computed(defaultStore.makeGetterSetter('nsfw'));
|
|
|
|
|
const showFixedPostForm = computed(defaultStore.makeGetterSetter('showFixedPostForm'));
|
|
|
|
|
const showFixedPostFormInChannel = computed(defaultStore.makeGetterSetter('showFixedPostFormInChannel'));
|
|
|
|
|
const numberOfPageCache = computed(defaultStore.makeGetterSetter('numberOfPageCache'));
|
|
|
|
|
const numberOfReplies = computed(defaultStore.makeGetterSetter('numberOfReplies'));
|
|
|
|
|
const instanceTicker = computed(defaultStore.makeGetterSetter('instanceTicker'));
|
|
|
|
|
const instanceIcon = computed(defaultStore.makeGetterSetter('instanceIcon'));
|
|
|
|
|
const enableInfiniteScroll = computed(defaultStore.makeGetterSetter('enableInfiniteScroll'));
|
|
|
|
|
const useReactionPickerForContextMenu = computed(defaultStore.makeGetterSetter('useReactionPickerForContextMenu'));
|
|
|
|
|
const squareAvatars = computed(defaultStore.makeGetterSetter('squareAvatars'));
|
|
|
|
|
const showAvatarDecorations = computed(defaultStore.makeGetterSetter('showAvatarDecorations'));
|
|
|
|
|
const mediaListWithOneImageAppearance = computed(defaultStore.makeGetterSetter('mediaListWithOneImageAppearance'));
|
|
|
|
|
const notificationPosition = computed(defaultStore.makeGetterSetter('notificationPosition'));
|
|
|
|
|
const notificationStackAxis = computed(defaultStore.makeGetterSetter('notificationStackAxis'));
|
|
|
|
|
const notificationClickable = computed(defaultStore.makeGetterSetter('notificationClickable'));
|
|
|
|
|
const keepScreenOn = computed(defaultStore.makeGetterSetter('keepScreenOn'));
|
|
|
|
|
const disableStreamingTimeline = computed(defaultStore.makeGetterSetter('disableStreamingTimeline'));
|
|
|
|
|
const useGroupedNotifications = computed(defaultStore.makeGetterSetter('useGroupedNotifications'));
|
|
|
|
|
const showTickerOnReplies = computed(defaultStore.makeGetterSetter('showTickerOnReplies'));
|
|
|
|
|
const hemisphere = computed(defaultStore.makeGetterSetter('hemisphere'));
|
|
|
|
|
const overridedDeviceKind = computed(defaultStore.makeGetterSetter('overridedDeviceKind'));
|
|
|
|
|
const serverDisconnectedBehavior = computed(defaultStore.makeGetterSetter('serverDisconnectedBehavior'));
|
|
|
|
|
const showNoteActionsOnlyHover = computed(defaultStore.makeGetterSetter('showNoteActionsOnlyHover'));
|
|
|
|
|
const showClipButtonInNoteFooter = computed(defaultStore.makeGetterSetter('showClipButtonInNoteFooter'));
|
|
|
|
|
const reactionsDisplaySize = computed(defaultStore.makeGetterSetter('reactionsDisplaySize'));
|
|
|
|
|
const limitWidthOfReaction = computed(defaultStore.makeGetterSetter('limitWidthOfReaction'));
|
|
|
|
|
const hideReactionUsers = computed(defaultStore.makeGetterSetter('hideReactionUsers'));
|
|
|
|
|
const hideReactionCount = computed(defaultStore.makeGetterSetter('hideReactionCount'));
|
|
|
|
|
const collapseRenotes = computed(defaultStore.makeGetterSetter('collapseRenotes'));
|
|
|
|
|
const collapseNotesRepliedTo = computed(defaultStore.makeGetterSetter('collapseNotesRepliedTo'));
|
|
|
|
|
const clickToOpen = computed(defaultStore.makeGetterSetter('clickToOpen'));
|
|
|
|
|
const collapseFiles = computed(defaultStore.makeGetterSetter('collapseFiles'));
|
|
|
|
|
const autoloadConversation = computed(defaultStore.makeGetterSetter('autoloadConversation'));
|
|
|
|
|
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'));
|
|
|
|
|
const animatedMfm = computed(defaultStore.makeGetterSetter('animatedMfm'));
|
|
|
|
|
const advancedMfm = computed(defaultStore.makeGetterSetter('advancedMfm'));
|
|
|
|
|
const showReactionsCount = computed(defaultStore.makeGetterSetter('showReactionsCount'));
|
|
|
|
|
const enableQuickAddMfmFunction = computed(defaultStore.makeGetterSetter('enableQuickAddMfmFunction'));
|
|
|
|
|
const emojiStyle = computed(defaultStore.makeGetterSetter('emojiStyle'));
|
|
|
|
|
const disableDrawer = computed(defaultStore.makeGetterSetter('disableDrawer'));
|
|
|
|
|
const customFont = computed(defaultStore.makeGetterSetter('customFont'));
|
|
|
|
|
const menuStyle = computed(defaultStore.makeGetterSetter('menuStyle'));
|
|
|
|
|
const disableShowingAnimatedImages = computed(defaultStore.makeGetterSetter('disableShowingAnimatedImages'));
|
|
|
|
|
const forceShowAds = computed(defaultStore.makeGetterSetter('forceShowAds'));
|
|
|
|
|
const oneko = computed(defaultStore.makeGetterSetter('oneko'));
|
|
|
|
|
const loadRawImages = computed(defaultStore.makeGetterSetter('loadRawImages'));
|
|
|
|
|
const disableCatSpeak = computed(defaultStore.makeGetterSetter('disableCatSpeak'));
|
|
|
|
|
const highlightSensitiveMedia = computed(defaultStore.makeGetterSetter('highlightSensitiveMedia'));
|
|
|
|
|
const imageNewTab = computed(defaultStore.makeGetterSetter('imageNewTab'));
|
|
|
|
|
const enableFaviconNotificationDot = computed(defaultStore.makeGetterSetter('enableFaviconNotificationDot'));
|
|
|
|
|
const warnMissingAltText = computed(defaultStore.makeGetterSetter('warnMissingAltText'));
|
|
|
|
|
const nsfw = computed(defaultStore.makeGetterSetter('nsfw'));
|
|
|
|
|
const showFixedPostForm = computed(defaultStore.makeGetterSetter('showFixedPostForm'));
|
|
|
|
|
const showFixedPostFormInChannel = computed(defaultStore.makeGetterSetter('showFixedPostFormInChannel'));
|
|
|
|
|
const numberOfPageCache = computed(defaultStore.makeGetterSetter('numberOfPageCache'));
|
|
|
|
|
const numberOfReplies = computed(defaultStore.makeGetterSetter('numberOfReplies'));
|
|
|
|
|
const instanceTicker = computed(defaultStore.makeGetterSetter('instanceTicker'));
|
|
|
|
|
const instanceIcon = computed(defaultStore.makeGetterSetter('instanceIcon'));
|
|
|
|
|
const enableInfiniteScroll = computed(defaultStore.makeGetterSetter('enableInfiniteScroll'));
|
|
|
|
|
const useReactionPickerForContextMenu = computed(defaultStore.makeGetterSetter('useReactionPickerForContextMenu'));
|
|
|
|
|
const squareAvatars = computed(defaultStore.makeGetterSetter('squareAvatars'));
|
|
|
|
|
const showAvatarDecorations = computed(defaultStore.makeGetterSetter('showAvatarDecorations'));
|
|
|
|
|
const mediaListWithOneImageAppearance = computed(defaultStore.makeGetterSetter('mediaListWithOneImageAppearance'));
|
|
|
|
|
const notificationPosition = computed(defaultStore.makeGetterSetter('notificationPosition'));
|
|
|
|
|
const notificationStackAxis = computed(defaultStore.makeGetterSetter('notificationStackAxis'));
|
|
|
|
|
const notificationClickable = computed(defaultStore.makeGetterSetter('notificationClickable'));
|
|
|
|
|
const keepScreenOn = computed(defaultStore.makeGetterSetter('keepScreenOn'));
|
|
|
|
|
const disableStreamingTimeline = computed(defaultStore.makeGetterSetter('disableStreamingTimeline'));
|
|
|
|
|
const useGroupedNotifications = computed(defaultStore.makeGetterSetter('useGroupedNotifications'));
|
|
|
|
|
const showTickerOnReplies = computed(defaultStore.makeGetterSetter('showTickerOnReplies'));
|
|
|
|
|
|
|
|
|
|
const noteDesign = computed(defaultStore.makeGetterSetter('noteDesign'));
|
|
|
|
|
const uncollapseCW = computed(defaultStore.makeGetterSetter('uncollapseCW'));
|
|
|
|
|
const expandLongNote = computed(defaultStore.makeGetterSetter('expandLongNote'));
|
|
|
|
|
const enableSeasonalScreenEffect = computed(defaultStore.makeGetterSetter('enableSeasonalScreenEffect'));
|
|
|
|
|
const showVisibilitySelectorOnBoost = computed(defaultStore.makeGetterSetter('showVisibilitySelectorOnBoost'));
|
|
|
|
|
const visibilityOnBoost = computed(defaultStore.makeGetterSetter('visibilityOnBoost'));
|
|
|
|
|
const enableHorizontalSwipe = computed(defaultStore.makeGetterSetter('enableHorizontalSwipe'));
|
|
|
|
|
const useNativeUIForVideoAudioPlayer = computed(defaultStore.makeGetterSetter('useNativeUIForVideoAudioPlayer'));
|
|
|
|
|
const alwaysConfirmFollow = computed(defaultStore.makeGetterSetter('alwaysConfirmFollow'));
|
|
|
|
|
const confirmWhenRevealingSensitiveMedia = computed(defaultStore.makeGetterSetter('confirmWhenRevealingSensitiveMedia'));
|
|
|
|
|
const contextMenu = computed(defaultStore.makeGetterSetter('contextMenu'));
|
|
|
|
|
const searchEngine = computed(defaultStore.makeGetterSetter('searchEngine'));
|
|
|
|
|
const reactionChecksMuting = computed(defaultStore.makeGetterSetter('reactionChecksMuting'));
|
|
|
|
|
const warnExternalUrl = computed(defaultStore.makeGetterSetter('warnExternalUrl'));
|
|
|
|
|
const noteDesign = computed(defaultStore.makeGetterSetter('noteDesign'));
|
|
|
|
|
const uncollapseCW = computed(defaultStore.makeGetterSetter('uncollapseCW'));
|
|
|
|
|
const expandLongNote = computed(defaultStore.makeGetterSetter('expandLongNote'));
|
|
|
|
|
const enableSeasonalScreenEffect = computed(defaultStore.makeGetterSetter('enableSeasonalScreenEffect'));
|
|
|
|
|
const showVisibilitySelectorOnBoost = computed(defaultStore.makeGetterSetter('showVisibilitySelectorOnBoost'));
|
|
|
|
|
const visibilityOnBoost = computed(defaultStore.makeGetterSetter('visibilityOnBoost'));
|
|
|
|
|
const enableHorizontalSwipe = computed(defaultStore.makeGetterSetter('enableHorizontalSwipe'));
|
|
|
|
|
const useNativeUIForVideoAudioPlayer = computed(defaultStore.makeGetterSetter('useNativeUIForVideoAudioPlayer'));
|
|
|
|
|
const alwaysConfirmFollow = computed(defaultStore.makeGetterSetter('alwaysConfirmFollow'));
|
|
|
|
|
const confirmWhenRevealingSensitiveMedia = computed(defaultStore.makeGetterSetter('confirmWhenRevealingSensitiveMedia'));
|
|
|
|
|
const contextMenu = computed(defaultStore.makeGetterSetter('contextMenu'));
|
|
|
|
|
const searchEngine = computed(defaultStore.makeGetterSetter('searchEngine'));
|
|
|
|
|
const reactionChecksMuting = computed(defaultStore.makeGetterSetter('reactionChecksMuting'));
|
|
|
|
|
const warnExternalUrl = computed(defaultStore.makeGetterSetter('warnExternalUrl'));
|
|
|
|
|
const hideLocalTimeLine = computed(defaultStore.makeGetterSetter('hideLocalTimeLine'));
|
|
|
|
|
const hideGlobalTimeLine = computed(defaultStore.makeGetterSetter('hideGlobalTimeLine'));
|
|
|
|
|
const hideSocialTimeLine = computed(defaultStore.makeGetterSetter('hideSocialTimeLine'));
|
|
|
|
|
const hideBubbleTimeLine = computed(defaultStore.makeGetterSetter('hideBubbleTimeLine'));
|
|
|
|
|
|
|
|
|
|
watch(lang, () => {
|
|
|
|
|
watch(lang, () => {
|
|
|
|
|
miLocalStorage.setItem('lang', lang.value as string);
|
|
|
|
|
miLocalStorage.removeItem('locale');
|
|
|
|
|
miLocalStorage.removeItem('localeVersion');
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
watch(fontSize, () => {
|
|
|
|
|
watch(fontSize, () => {
|
|
|
|
|
if (fontSize.value == null) {
|
|
|
|
|
miLocalStorage.removeItem('fontSize');
|
|
|
|
|
} else {
|
|
|
|
|
miLocalStorage.setItem('fontSize', fontSize.value);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
watch(cornerRadius, () => {
|
|
|
|
|
watch(cornerRadius, () => {
|
|
|
|
|
if (cornerRadius.value == null) {
|
|
|
|
|
miLocalStorage.removeItem('cornerRadius');
|
|
|
|
|
} else {
|
|
|
|
|
miLocalStorage.setItem('cornerRadius', cornerRadius.value);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
watch(useSystemFont, () => {
|
|
|
|
|
watch(useSystemFont, () => {
|
|
|
|
|
if (useSystemFont.value) {
|
|
|
|
|
miLocalStorage.setItem('useSystemFont', 't');
|
|
|
|
|
} else {
|
|
|
|
|
miLocalStorage.removeItem('useSystemFont');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
watch(noteDesign, async (newval) => {
|
|
|
|
|
watch(noteDesign, async (newval) => {
|
|
|
|
|
if (noteDesign.value === newval) {
|
|
|
|
|
await reloadAsk();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
watch([
|
|
|
|
|
watch([
|
|
|
|
|
hemisphere,
|
|
|
|
|
lang,
|
|
|
|
|
fontSize,
|
|
|
|
@ -534,13 +551,13 @@ watch([
|
|
|
|
|
confirmWhenRevealingSensitiveMedia,
|
|
|
|
|
contextMenu,
|
|
|
|
|
warnExternalUrl,
|
|
|
|
|
], async () => {
|
|
|
|
|
], async () => {
|
|
|
|
|
await reloadAsk({ reason: i18n.ts.reloadToApplySetting, unison: true });
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const emojiIndexLangs = ['en-US', 'ja-JP', 'ja-JP_hira'] as const;
|
|
|
|
|
const emojiIndexLangs = ['en-US', 'ja-JP', 'ja-JP_hira'] as const;
|
|
|
|
|
|
|
|
|
|
function getEmojiIndexLangName(targetLang: typeof emojiIndexLangs[number]) {
|
|
|
|
|
function getEmojiIndexLangName(targetLang: typeof emojiIndexLangs[number]) {
|
|
|
|
|
if (langs.find(x => x[0] === targetLang)) {
|
|
|
|
|
return langs.find(x => x[0] === targetLang)![1];
|
|
|
|
|
} else {
|
|
|
|
@ -550,9 +567,9 @@ function getEmojiIndexLangName(targetLang: typeof emojiIndexLangs[number]) {
|
|
|
|
|
default: return targetLang;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function downloadEmojiIndex(lang: typeof emojiIndexLangs[number]) {
|
|
|
|
|
function downloadEmojiIndex(lang: typeof emojiIndexLangs[number]) {
|
|
|
|
|
async function main() {
|
|
|
|
|
const currentIndexes = defaultStore.state.additionalUnicodeEmojiIndexes;
|
|
|
|
|
|
|
|
|
@ -570,9 +587,9 @@ function downloadEmojiIndex(lang: typeof emojiIndexLangs[number]) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
os.promiseDialog(main());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function removeEmojiIndex(lang: string) {
|
|
|
|
|
function removeEmojiIndex(lang: string) {
|
|
|
|
|
async function main() {
|
|
|
|
|
const currentIndexes = defaultStore.state.additionalUnicodeEmojiIndexes;
|
|
|
|
|
delete currentIndexes[lang];
|
|
|
|
@ -580,9 +597,9 @@ function removeEmojiIndex(lang: string) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
os.promiseDialog(main());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function setPinnedList() {
|
|
|
|
|
async function setPinnedList() {
|
|
|
|
|
const lists = await misskeyApi('users/lists/list');
|
|
|
|
|
const { canceled, result: list } = await os.select({
|
|
|
|
|
title: i18n.ts.selectList,
|
|
|
|
@ -593,16 +610,16 @@ async function setPinnedList() {
|
|
|
|
|
if (canceled) return;
|
|
|
|
|
|
|
|
|
|
defaultStore.set('pinnedUserLists', [list]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function removePinnedList() {
|
|
|
|
|
function removePinnedList() {
|
|
|
|
|
defaultStore.set('pinnedUserLists', []);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let smashCount = 0;
|
|
|
|
|
let smashTimer: number | null = null;
|
|
|
|
|
let smashCount = 0;
|
|
|
|
|
let smashTimer: number | null = null;
|
|
|
|
|
|
|
|
|
|
function testNotification(): void {
|
|
|
|
|
function testNotification(): void {
|
|
|
|
|
const notification: Misskey.entities.Notification = {
|
|
|
|
|
id: Math.random().toString(),
|
|
|
|
|
createdAt: new Date().toUTCString(),
|
|
|
|
@ -624,9 +641,9 @@ function testNotification(): void {
|
|
|
|
|
smashTimer = window.setTimeout(() => {
|
|
|
|
|
smashCount = 0;
|
|
|
|
|
}, 300);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function testNotificationDot() {
|
|
|
|
|
async function testNotificationDot() {
|
|
|
|
|
const success = await worksOnInstance();
|
|
|
|
|
|
|
|
|
|
if (success) {
|
|
|
|
@ -634,38 +651,38 @@ async function testNotificationDot() {
|
|
|
|
|
} else {
|
|
|
|
|
os.toast(i18n.ts.notificationDotNotWorking);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function enableAllDataSaver() {
|
|
|
|
|
function enableAllDataSaver() {
|
|
|
|
|
const g = { ...defaultStore.state.dataSaver };
|
|
|
|
|
|
|
|
|
|
Object.keys(g).forEach((key) => { g[key] = true; });
|
|
|
|
|
|
|
|
|
|
dataSaver.value = g;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function disableAllDataSaver() {
|
|
|
|
|
function disableAllDataSaver() {
|
|
|
|
|
const g = { ...defaultStore.state.dataSaver };
|
|
|
|
|
|
|
|
|
|
Object.keys(g).forEach((key) => { g[key] = false; });
|
|
|
|
|
|
|
|
|
|
dataSaver.value = g;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
watch(dataSaver, (to) => {
|
|
|
|
|
watch(dataSaver, (to) => {
|
|
|
|
|
defaultStore.set('dataSaver', to);
|
|
|
|
|
}, {
|
|
|
|
|
}, {
|
|
|
|
|
deep: true,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const headerActions = computed(() => []);
|
|
|
|
|
const headerActions = computed(() => []);
|
|
|
|
|
|
|
|
|
|
const headerTabs = computed(() => []);
|
|
|
|
|
const headerTabs = computed(() => []);
|
|
|
|
|
|
|
|
|
|
definePageMetadata(() => ({
|
|
|
|
|
definePageMetadata(() => ({
|
|
|
|
|
title: i18n.ts.general,
|
|
|
|
|
icon: 'ti ti-adjustments',
|
|
|
|
|
}));
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
const useCustomSearchEngine = computed(() => !Object.keys(searchEngineMap).includes(searchEngine.value));
|
|
|
|
|
</script>
|
|
|
|
|
const useCustomSearchEngine = computed(() => !Object.keys(searchEngineMap).includes(searchEngine.value));
|
|
|
|
|
</script>
|
|
|
|
|