2023-07-27 07:31:52 +02:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-10-17 13:12:00 +02:00
|
|
|
<template>
|
2023-01-06 05:40:17 +01:00
|
|
|
<div class="_gaps_m">
|
2023-01-07 07:09:46 +01:00
|
|
|
<MkSelect v-model="lang">
|
2022-05-04 03:13:51 +02:00
|
|
|
<template #label>{{ i18n.ts.uiLanguage }}</template>
|
2021-11-19 11:36:12 +01:00
|
|
|
<option v-for="x in langs" :key="x[0]" :value="x[0]">{{ x[1] }}</option>
|
2020-11-25 13:31:34 +01:00
|
|
|
<template #caption>
|
2022-05-04 03:13:51 +02:00
|
|
|
<I18n :src="i18n.ts.i18nInfo" tag="span">
|
2020-11-25 13:31:34 +01:00
|
|
|
<template #link>
|
|
|
|
<MkLink url="https://crowdin.com/project/misskey">Crowdin</MkLink>
|
|
|
|
</template>
|
2020-12-26 02:01:32 +01:00
|
|
|
</I18n>
|
2020-11-25 13:31:34 +01:00
|
|
|
</template>
|
2023-01-07 07:09:46 +01:00
|
|
|
</MkSelect>
|
2020-11-25 13:31:34 +01:00
|
|
|
|
2024-01-21 11:08:07 +01:00
|
|
|
<MkRadios v-model="hemisphere">
|
|
|
|
<template #label>{{ i18n.ts.hemisphere }}</template>
|
|
|
|
<option value="N">{{ i18n.ts._hemisphere.N }}</option>
|
|
|
|
<option value="S">{{ i18n.ts._hemisphere.S }}</option>
|
|
|
|
<template #caption>{{ i18n.ts._hemisphere.caption }}</template>
|
|
|
|
</MkRadios>
|
|
|
|
|
2023-01-07 07:09:46 +01:00
|
|
|
<MkRadios v-model="overridedDeviceKind">
|
2022-05-04 03:13:51 +02:00
|
|
|
<template #label>{{ i18n.ts.overridedDeviceKind }}</template>
|
|
|
|
<option :value="null">{{ i18n.ts.auto }}</option>
|
2022-12-19 11:01:30 +01: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 07:09:46 +01:00
|
|
|
</MkRadios>
|
2022-02-08 10:46:39 +01:00
|
|
|
|
2021-11-28 12:07:37 +01:00
|
|
|
<FormSection>
|
2023-05-07 13:56:46 +02:00
|
|
|
<div class="_gaps_s">
|
|
|
|
<MkSwitch v-model="showFixedPostForm">{{ i18n.ts.showFixedPostForm }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="showFixedPostFormInChannel">{{ i18n.ts.showFixedPostFormInChannel }}</MkSwitch>
|
2023-09-19 03:58:42 +02:00
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.pinnedList }}</template>
|
2024-02-04 17:28:12 +01:00
|
|
|
<div v-for="pinnedLists in defaultStore.reactiveState.pinnedUserLists.value" class="_margin">
|
2024-01-27 23:56:32 +01:00
|
|
|
{{ pinnedLists.name }}
|
2024-02-04 17:28:12 +01:00
|
|
|
<MkButton danger @click="removePinnedList(pinnedLists.id,pinnedLists.name)"><i class="ti ti-trash"></i> {{ i18n.ts.remove }}</MkButton>
|
2024-01-27 23:56:32 +01:00
|
|
|
</div>
|
|
|
|
<MkButton v-if="pinnedMax > defaultStore.reactiveState.pinnedUserLists.value.length " @click="setPinnedList()">{{ i18n.ts.add }}</MkButton>
|
2024-02-04 17:28:12 +01:00
|
|
|
<MkButton v-if="defaultStore.reactiveState.pinnedUserLists.value.length " danger @click="removePinnedList('all')"><i class="ti ti-trash"></i> {{ i18n.ts.all }}{{ i18n.ts.remove }}</MkButton>
|
2023-09-19 03:58:42 +02:00
|
|
|
</MkFolder>
|
2024-02-05 06:10:40 +01:00
|
|
|
<MkFoldableSection :expanded="false" class="item">
|
|
|
|
<template #header>{{ i18n.ts.topbarCustom }}</template>
|
|
|
|
|
|
|
|
|
|
|
|
{{ i18n.ts._timelines.home }}
|
|
|
|
<MkSwitch v-model="showHomeTimeline">{{ i18n.ts.enable }}</MkSwitch>
|
|
|
|
<br>
|
|
|
|
{{ i18n.ts._timelines.local }}
|
|
|
|
<MkSwitch v-model="showLocalTimeline">{{ i18n.ts.enable }}</MkSwitch>
|
|
|
|
<br>
|
|
|
|
{{ i18n.ts._timelines.social }}
|
|
|
|
<MkSwitch v-model="showSocialTimeline">{{ i18n.ts.enable }}</MkSwitch>
|
|
|
|
<br>
|
|
|
|
{{ i18n.ts._timelines.media }}
|
|
|
|
<MkSwitch v-model="showMediaTimeline">{{ i18n.ts.enable }}</MkSwitch>
|
|
|
|
<br>
|
|
|
|
{{ i18n.ts._timelines.global }}
|
|
|
|
<MkSwitch v-model="showGlobalTimeline">{{ i18n.ts.enable }}</MkSwitch>
|
|
|
|
<br>
|
|
|
|
{{ i18n.ts.topBarNameShown }}
|
|
|
|
<MkSwitch v-model="topBarNameShown">{{ i18n.ts.enable }}</MkSwitch>
|
|
|
|
</MkFoldableSection>
|
2023-01-05 13:04:56 +01:00
|
|
|
</div>
|
2021-11-28 12:07:37 +01:00
|
|
|
</FormSection>
|
2024-01-31 12:12:11 +01:00
|
|
|
<MkFoldableSection :expanded="false" class="item">
|
2024-01-02 17:25:32 +01:00
|
|
|
<template #header>{{ i18n.ts.displayOfNote }}</template>
|
2022-12-26 08:04:56 +01:00
|
|
|
|
2023-01-06 05:40:17 +01:00
|
|
|
<div class="_gaps_m">
|
|
|
|
<div class="_gaps_s">
|
2023-02-28 12:53:32 +01:00
|
|
|
<MkSwitch v-model="showNoteActionsOnlyHover">{{ i18n.ts.showNoteActionsOnlyHover }}</MkSwitch>
|
2023-03-24 08:54:37 +01:00
|
|
|
<MkSwitch v-model="showClipButtonInNoteFooter">{{ i18n.ts.showClipButtonInNoteFooter }}</MkSwitch>
|
2023-02-12 00:18:22 +01:00
|
|
|
<MkSwitch v-model="collapseRenotes">{{ i18n.ts.collapseRenotes }}</MkSwitch>
|
2024-01-02 17:25:32 +01:00
|
|
|
<MkSwitch v-model="showVisibilityColor">{{ i18n.ts.showVisibilityColor }}</MkSwitch>
|
|
|
|
<MkColorInput v-if="showVisibilityColor" v-model="homeColor">
|
|
|
|
<template #label>{{ i18n.ts._visibility.home }}</template>
|
|
|
|
</MkColorInput>
|
|
|
|
<MkColorInput v-if="showVisibilityColor" v-model="followerColor">
|
|
|
|
<template #label>{{ i18n.ts._visibility.followers }}</template>
|
|
|
|
</MkColorInput>
|
|
|
|
<MkColorInput v-if="showVisibilityColor" v-model="specifiedColor">
|
|
|
|
<template #label>{{ i18n.ts._visibility.specified }}</template>
|
|
|
|
</MkColorInput>
|
|
|
|
<MkColorInput v-if="showVisibilityColor" v-model="localOnlyColor">
|
|
|
|
<template #label>{{ i18n.ts.localOnly }}</template>
|
|
|
|
</MkColorInput>
|
2023-02-11 03:31:18 +01:00
|
|
|
<MkSwitch v-model="advancedMfm">{{ i18n.ts.enableAdvancedMfm }}</MkSwitch>
|
|
|
|
<MkSwitch v-if="advancedMfm" v-model="animatedMfm">{{ i18n.ts.enableAnimatedMfm }}</MkSwitch>
|
2023-12-27 12:57:43 +01:00
|
|
|
<MkSwitch v-if="advancedMfm" v-model="enableQuickAddMfmFunction">{{ i18n.ts.enableQuickAddMfmFunction }}</MkSwitch>
|
2023-05-07 13:48:46 +02:00
|
|
|
<MkSwitch v-model="showGapBetweenNotesInTimeline">{{ i18n.ts.showGapBetweenNotesInTimeline }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="loadRawImages">{{ i18n.ts.loadRawImages }}</MkSwitch>
|
2023-09-10 10:16:50 +02: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-11-24 00:37:27 +01:00
|
|
|
<MkSwitch v-model="limitWidthOfReaction">{{ i18n.ts.limitWidthOfReaction }}</MkSwitch>
|
2023-05-07 13:48:46 +02:00
|
|
|
</div>
|
|
|
|
|
2023-05-07 13:56:46 +02: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 05:53:51 +02: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 13:56:46 +02:00
|
|
|
</MkSelect>
|
2023-05-19 02:44:06 +02:00
|
|
|
|
2023-05-07 13:48:46 +02:00
|
|
|
<MkRadios v-model="mediaListWithOneImageAppearance">
|
|
|
|
<template #label>{{ i18n.ts.mediaListWithOneImageAppearance }}</template>
|
|
|
|
<option value="expand">{{ i18n.ts.default }}</option>
|
2024-01-20 00:11:59 +01:00
|
|
|
<option value="16_9">{{ i18n.tsx.limitTo({ x: '16:9' }) }}</option>
|
|
|
|
<option value="1_1">{{ i18n.tsx.limitTo({ x: '1:1' }) }}</option>
|
|
|
|
<option value="2_3">{{ i18n.tsx.limitTo({ x: '2:3' }) }}</option>
|
2023-05-07 13:48:46 +02:00
|
|
|
</MkRadios>
|
|
|
|
</div>
|
2024-01-02 17:25:32 +01:00
|
|
|
</MkFoldableSection>
|
2024-01-31 12:12:11 +01:00
|
|
|
<MkFoldableSection :expanded="false" class="item">
|
2024-01-02 17:25:32 +01:00
|
|
|
<template #header>{{ i18n.ts.notificationDisplay }}</template>
|
2023-05-07 13:59:29 +02:00
|
|
|
|
|
|
|
<div class="_gaps_m">
|
2023-11-02 07:57:55 +01:00
|
|
|
<MkSwitch v-model="useGroupedNotifications">{{ i18n.ts.useGroupedNotifications }}</MkSwitch>
|
|
|
|
|
2023-05-07 13:59:29 +02:00
|
|
|
<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 07:31:50 +02:00
|
|
|
|
2023-09-12 08:48:19 +02:00
|
|
|
<MkButton @click="testNotification">{{ i18n.ts._notification.checkNotificationBehavior }}</MkButton>
|
2023-05-07 13:59:29 +02:00
|
|
|
</div>
|
2024-01-02 17:25:32 +01:00
|
|
|
</MkFoldableSection>
|
2024-01-31 12:12:11 +01:00
|
|
|
<MkFoldableSection :expanded="false" class="item">
|
2024-01-02 17:25:32 +01:00
|
|
|
<template #header>{{ i18n.ts.appearance }}</template>
|
2023-05-07 13:48:46 +02:00
|
|
|
<div class="_gaps_m">
|
|
|
|
<div class="_gaps_s">
|
2023-01-07 06:59:54 +01: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>
|
2023-09-22 09:03:10 +02:00
|
|
|
<MkSwitch v-model="highlightSensitiveMedia">{{ i18n.ts.highlightSensitiveMedia }}</MkSwitch>
|
2023-01-07 06:59:54 +01:00
|
|
|
<MkSwitch v-model="squareAvatars">{{ i18n.ts.squareAvatars }}</MkSwitch>
|
2023-10-22 09:05:32 +02:00
|
|
|
<MkSwitch v-model="showAvatarDecorations">{{ i18n.ts.showAvatarDecorations }}</MkSwitch>
|
2023-01-07 06:59:54 +01:00
|
|
|
<MkSwitch v-model="useSystemFont">{{ i18n.ts.useSystemFont }}</MkSwitch>
|
|
|
|
<MkSwitch v-model="disableDrawer">{{ i18n.ts.disableDrawer }}</MkSwitch>
|
2023-04-10 03:22:25 +02:00
|
|
|
<MkSwitch v-model="forceShowAds">{{ i18n.ts.forceShowAds }}</MkSwitch>
|
2023-09-21 10:31:23 +02:00
|
|
|
<MkSwitch v-model="enableGamingMode">{{ i18n.ts.gamingMode }} <template #caption>{{ i18n.ts.gamingModeInfo }} </template></MkSwitch>
|
2024-01-02 17:25:32 +01:00
|
|
|
<MkSwitch v-model="enableonlyAndWithSave">{{ i18n.ts.onlyAndWithSave }}<template #caption>{{ i18n.ts.onlyAndWithSaveInfo }} </template></MkSwitch>
|
|
|
|
<MkSwitch v-model="enablehanntenn">{{ i18n.ts.hanntenn }}<template #caption>{{ i18n.ts.hanntennInfo }} </template></MkSwitch>
|
2023-12-16 05:52:52 +01:00
|
|
|
<MkSwitch v-model="enableSeasonalScreenEffect">{{ i18n.ts.seasonalScreenEffect }}</MkSwitch>
|
2023-01-05 13:04:56 +01:00
|
|
|
</div>
|
|
|
|
<div>
|
2023-01-07 07:09:46 +01:00
|
|
|
<MkRadios v-model="emojiStyle">
|
2023-01-05 13:04:56 +01: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 07:09:46 +01:00
|
|
|
</MkRadios>
|
2023-01-05 13:04:56 +01:00
|
|
|
<div style="margin: 8px 0 0 0; font-size: 1.5em;"><Mfm :key="emojiStyle" text="🍮🍦🍭🍩🍰🍫🍬🥞🍪"/></div>
|
|
|
|
</div>
|
2020-11-25 13:31:34 +01:00
|
|
|
|
2023-01-07 07:09:46 +01:00
|
|
|
<MkRadios v-model="fontSize">
|
2023-01-05 13:04:56 +01: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 07:09:46 +01:00
|
|
|
</MkRadios>
|
2023-01-05 13:04:56 +01:00
|
|
|
</div>
|
2024-01-02 17:25:32 +01:00
|
|
|
</MkFoldableSection>
|
2024-01-31 12:12:11 +01:00
|
|
|
<MkFoldableSection :expanded="false" class="item">
|
2024-01-27 23:56:32 +01:00
|
|
|
<template #header>{{ i18n.ts.behavior }}</template>
|
2020-11-25 13:31:34 +01:00
|
|
|
|
2023-05-07 13:56:46 +02:00
|
|
|
<div class="_gaps_m">
|
|
|
|
<div class="_gaps_s">
|
|
|
|
<MkSwitch v-model="imageNewTab">{{ i18n.ts.openImageInNewTab }}</MkSwitch>
|
2023-11-04 08:44:14 +01:00
|
|
|
<MkSwitch v-model="useReactionPickerForContextMenu">{{ i18n.ts.useReactionPickerForContextMenu }}</MkSwitch>
|
2023-05-07 13:56:46 +02:00
|
|
|
<MkSwitch v-model="enableInfiniteScroll">{{ i18n.ts.enableInfiniteScroll }}</MkSwitch>
|
2023-09-20 03:02:39 +02:00
|
|
|
<MkSwitch v-model="keepScreenOn">{{ i18n.ts.keepScreenOn }}</MkSwitch>
|
2023-10-30 01:12:20 +01:00
|
|
|
<MkSwitch v-model="disableStreamingTimeline">{{ i18n.ts.disableStreamingTimeline }}</MkSwitch>
|
2024-01-18 10:21:33 +01:00
|
|
|
<MkSwitch v-model="enableHorizontalSwipe">{{ i18n.ts.enableHorizontalSwipe }}</MkSwitch>
|
2023-05-07 13:56:46 +02:00
|
|
|
</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>
|
2024-01-02 17:25:32 +01:00
|
|
|
<MkRange v-model="numberOfGamingSpeed" :min="1" :max="60" :step="1" easing>
|
|
|
|
<template #label>{{ i18n.ts.GamingSpeedChange }}</template>
|
|
|
|
<template #caption>{{ i18n.ts.GamingSpeedChangeInfo }}</template>
|
|
|
|
</MkRange>
|
2023-12-03 02:58:42 +01:00
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.dataSaver }}</template>
|
|
|
|
|
|
|
|
<div class="_gaps_m">
|
|
|
|
<MkInfo>{{ i18n.ts.reloadRequiredToApplySettings }}</MkInfo>
|
|
|
|
|
|
|
|
<div class="_buttons">
|
|
|
|
<MkButton inline @click="enableAllDataSaver">{{ i18n.ts.enableAll }}</MkButton>
|
|
|
|
<MkButton inline @click="disableAllDataSaver">{{ i18n.ts.disableAll }}</MkButton>
|
|
|
|
</div>
|
|
|
|
<div class="_gaps_m">
|
|
|
|
<MkSwitch v-model="dataSaver.media">
|
|
|
|
{{ i18n.ts._dataSaver._media.title }}
|
|
|
|
<template #caption>{{ i18n.ts._dataSaver._media.description }}</template>
|
|
|
|
</MkSwitch>
|
|
|
|
<MkSwitch v-model="dataSaver.avatar">
|
|
|
|
{{ i18n.ts._dataSaver._avatar.title }}
|
|
|
|
<template #caption>{{ i18n.ts._dataSaver._avatar.description }}</template>
|
|
|
|
</MkSwitch>
|
|
|
|
<MkSwitch v-model="dataSaver.urlPreview">
|
|
|
|
{{ i18n.ts._dataSaver._urlPreview.title }}
|
|
|
|
<template #caption>{{ i18n.ts._dataSaver._urlPreview.description }}</template>
|
|
|
|
</MkSwitch>
|
|
|
|
<MkSwitch v-model="dataSaver.code">
|
|
|
|
{{ i18n.ts._dataSaver._code.title }}
|
|
|
|
<template #caption>{{ i18n.ts._dataSaver._code.description }}</template>
|
|
|
|
</MkSwitch>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</MkFolder>
|
2023-05-07 13:56:46 +02:00
|
|
|
</div>
|
2024-01-02 17:25:32 +01:00
|
|
|
</MkFoldableSection>
|
2024-01-31 12:12:11 +01:00
|
|
|
<MkFoldableSection :expanded="false">
|
2024-01-27 23:56:32 +01:00
|
|
|
<template #header>他のサーバーのローカルタイムラインを覗けるようにする</template>
|
|
|
|
<div class="_gaps_m">
|
|
|
|
<div v-if="maxLocalTimeline >= 1">
|
|
|
|
<MkInput v-model="remoteLocalTimelineName1" placeholder="prismisskey">
|
|
|
|
<template #label>{{ i18n.ts.name }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="remoteLocalTimelineDomain1" placeholder="prismisskey.space">
|
|
|
|
<template #label>サーバーURL</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="remoteLocalTimelineToken1" placeholder="">
|
|
|
|
<template #prefix><i class="ti ti-key"></i></template>
|
|
|
|
<template #label>{{ i18n.ts.accessToken }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkSwitch v-model="remoteLocalTimelineEnable1">
|
|
|
|
{{ i18n.ts.enable }}
|
|
|
|
</MkSwitch>
|
|
|
|
</div>
|
|
|
|
<div v-if="maxLocalTimeline >= 2">
|
|
|
|
<MkInput v-model="remoteLocalTimelineName2" placeholder="prismisskey">
|
|
|
|
<template #label>{{ i18n.ts.name }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="remoteLocalTimelineDomain2" placeholder="prismisskey.space">
|
|
|
|
<template #label>サーバーURL</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="remoteLocalTimelineToken2" placeholder="">
|
|
|
|
<template #prefix><i class="ti ti-key"></i></template>
|
|
|
|
<template #label>{{ i18n.ts.accessToken }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkSwitch v-model="remoteLocalTimelineEnable2">
|
|
|
|
{{ i18n.ts.enable }}
|
|
|
|
</MkSwitch>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-if="maxLocalTimeline >= 3">
|
|
|
|
<MkInput v-model="remoteLocalTimelineName3" placeholder="prismisskey">
|
|
|
|
<template #label>{{ i18n.ts.name }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="remoteLocalTimelineDomain3" placeholder="prismisskey.space">
|
|
|
|
<template #label>サーバーURL</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="remoteLocalTimelineToken3" placeholder="">
|
|
|
|
<template #prefix><i class="ti ti-key"></i></template>
|
|
|
|
<template #label>{{ i18n.ts.accessToken }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkSwitch v-model="remoteLocalTimelineEnable3">
|
|
|
|
{{ i18n.ts.enable }}
|
|
|
|
</MkSwitch>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-if="maxLocalTimeline >= 4">
|
|
|
|
<MkInput v-model="remoteLocalTimelineName4" placeholder="prismisskey">
|
|
|
|
<template #label>{{ i18n.ts.name }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="remoteLocalTimelineDomain4" placeholder="prismisskey.space">
|
|
|
|
<template #label>サーバーURL</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="remoteLocalTimelineToken4" placeholder="">
|
|
|
|
<template #prefix><i class="ti ti-key"></i></template>
|
|
|
|
<template #label>{{ i18n.ts.accessToken }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkSwitch v-model="remoteLocalTimelineEnable4">
|
|
|
|
{{ i18n.ts.enable }}
|
|
|
|
</MkSwitch>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-if="maxLocalTimeline >= 5">
|
|
|
|
<MkInput v-model="remoteLocalTimelineName5" placeholder="prismisskey">
|
|
|
|
<template #label>{{ i18n.ts.name }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="remoteLocalTimelineDomain5" placeholder="prismisskey.space">
|
|
|
|
<template #label>サーバーURL</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="remoteLocalTimelineToken5" placeholder="">
|
|
|
|
<template #prefix><i class="ti ti-key"></i></template>
|
|
|
|
<template #label>{{ i18n.ts.accessToken }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkSwitch v-model="remoteLocalTimelineEnable5">
|
|
|
|
{{ i18n.ts.enable }}
|
|
|
|
</MkSwitch>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<MkButton @click="remoteLocaltimelineSave">
|
|
|
|
{{ i18n.ts.save }}
|
|
|
|
</MkButton>
|
|
|
|
</div>
|
|
|
|
</MkFoldableSection>
|
2023-05-07 13:56:46 +02:00
|
|
|
<FormSection>
|
2023-05-15 09:40:19 +02:00
|
|
|
<template #label>{{ i18n.ts.other }}</template>
|
|
|
|
|
|
|
|
<div class="_gaps">
|
2023-06-01 10:10:53 +02:00
|
|
|
<MkFolder>
|
|
|
|
<template #label>{{ i18n.ts.additionalEmojiDictionary }}</template>
|
2024-01-14 08:04:48 +01:00
|
|
|
<div class="_buttons">
|
|
|
|
<template v-for="lang in emojiIndexLangs" :key="lang">
|
|
|
|
<MkButton v-if="defaultStore.reactiveState.additionalUnicodeEmojiIndexes.value[lang]" danger @click="removeEmojiIndex(lang)"><i class="ti ti-trash"></i> {{ i18n.ts.remove }} ({{ getEmojiIndexLangName(lang) }})</MkButton>
|
|
|
|
<MkButton v-else @click="downloadEmojiIndex(lang)"><i class="ti ti-download"></i> {{ getEmojiIndexLangName(lang) }}{{ defaultStore.reactiveState.additionalUnicodeEmojiIndexes.value[lang] ? ` (${ i18n.ts.installed })` : '' }}</MkButton>
|
|
|
|
</template>
|
2023-06-01 10:34:56 +02:00
|
|
|
</div>
|
2023-06-01 10:10:53 +02:00
|
|
|
</MkFolder>
|
2023-05-15 09:40:19 +02: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 03:30:46 +02:00
|
|
|
</div>
|
2023-05-07 13:56:46 +02:00
|
|
|
</FormSection>
|
2021-11-28 12:07:37 +01:00
|
|
|
</div>
|
2020-10-17 13:12:00 +02:00
|
|
|
</template>
|
|
|
|
|
2022-05-04 03:13:51 +02:00
|
|
|
<script lang="ts" setup>
|
2022-06-20 10:38:49 +02:00
|
|
|
import { computed, ref, watch } from 'vue';
|
2023-09-12 08:48:19 +02:00
|
|
|
import * as Misskey from 'misskey-js';
|
2023-01-07 06:59:54 +01:00
|
|
|
import MkSwitch from '@/components/MkSwitch.vue';
|
2023-01-07 07:09:46 +01:00
|
|
|
import MkSelect from '@/components/MkSelect.vue';
|
|
|
|
import MkRadios from '@/components/MkRadios.vue';
|
|
|
|
import MkRange from '@/components/MkRange.vue';
|
2023-06-01 10:10:53 +02:00
|
|
|
import MkFolder from '@/components/MkFolder.vue';
|
|
|
|
import MkButton from '@/components/MkButton.vue';
|
2021-11-28 12:07:37 +01:00
|
|
|
import FormSection from '@/components/form/section.vue';
|
|
|
|
import FormLink from '@/components/form/link.vue';
|
2022-08-30 17:24:33 +02:00
|
|
|
import MkLink from '@/components/MkLink.vue';
|
2023-12-03 02:58:42 +01:00
|
|
|
import MkInfo from '@/components/MkInfo.vue';
|
2023-09-19 09:37:43 +02:00
|
|
|
import { langs } from '@/config.js';
|
|
|
|
import { defaultStore } from '@/store.js';
|
|
|
|
import * as os from '@/os.js';
|
2024-02-04 17:28:12 +01:00
|
|
|
import { signinRequired } from '@/account.js';
|
2023-09-19 09:37:43 +02:00
|
|
|
import { unisonReload } from '@/scripts/unison-reload.js';
|
|
|
|
import { i18n } from '@/i18n.js';
|
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
|
|
|
import { miLocalStorage } from '@/local-storage.js';
|
2023-10-22 09:05:32 +02:00
|
|
|
import { globalEvents } from '@/events.js';
|
2023-09-19 09:37:43 +02:00
|
|
|
import { claimAchievement } from '@/scripts/achievements.js';
|
2024-01-02 17:25:32 +01:00
|
|
|
import MkColorInput from '@/components/MkColorInput.vue';
|
|
|
|
import MkFoldableSection from '@/components/MkFoldableSection.vue';
|
2024-01-17 07:41:55 +01:00
|
|
|
import MkInput from '@/components/MkInput.vue';
|
2024-01-27 23:56:32 +01:00
|
|
|
import { userFavoriteListsCache, userListsCache } from '@/cache.js';
|
2022-05-04 03:13:51 +02:00
|
|
|
|
2023-01-07 02:13:02 +01:00
|
|
|
const lang = ref(miLocalStorage.getItem('lang'));
|
|
|
|
const fontSize = ref(miLocalStorage.getItem('fontSize'));
|
|
|
|
const useSystemFont = ref(miLocalStorage.getItem('useSystemFont') != null);
|
2023-12-03 02:58:42 +01:00
|
|
|
const dataSaver = ref(defaultStore.state.dataSaver);
|
2022-05-04 03:13:51 +02:00
|
|
|
|
|
|
|
async function reloadAsk() {
|
|
|
|
const { canceled } = await os.confirm({
|
|
|
|
type: 'info',
|
|
|
|
text: i18n.ts.reloadToApplySetting,
|
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
|
|
|
|
unisonReload();
|
|
|
|
}
|
|
|
|
|
2024-01-21 11:08:07 +01:00
|
|
|
const hemisphere = computed(defaultStore.makeGetterSetter('hemisphere'));
|
2022-05-04 03:13:51 +02:00
|
|
|
const overridedDeviceKind = computed(defaultStore.makeGetterSetter('overridedDeviceKind'));
|
|
|
|
const serverDisconnectedBehavior = computed(defaultStore.makeGetterSetter('serverDisconnectedBehavior'));
|
2023-02-28 12:53:32 +01:00
|
|
|
const showNoteActionsOnlyHover = computed(defaultStore.makeGetterSetter('showNoteActionsOnlyHover'));
|
2023-03-24 08:54:37 +01:00
|
|
|
const showClipButtonInNoteFooter = computed(defaultStore.makeGetterSetter('showClipButtonInNoteFooter'));
|
2023-09-10 10:16:50 +02:00
|
|
|
const reactionsDisplaySize = computed(defaultStore.makeGetterSetter('reactionsDisplaySize'));
|
2023-11-24 00:37:27 +01:00
|
|
|
const limitWidthOfReaction = computed(defaultStore.makeGetterSetter('limitWidthOfReaction'));
|
2023-02-12 00:18:22 +01:00
|
|
|
const collapseRenotes = computed(defaultStore.makeGetterSetter('collapseRenotes'));
|
2022-05-04 03:13:51 +02: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 03:31:18 +01:00
|
|
|
const animatedMfm = computed(defaultStore.makeGetterSetter('animatedMfm'));
|
|
|
|
const advancedMfm = computed(defaultStore.makeGetterSetter('advancedMfm'));
|
2023-12-27 12:57:43 +01:00
|
|
|
const enableQuickAddMfmFunction = computed(defaultStore.makeGetterSetter('enableQuickAddMfmFunction'));
|
2022-12-26 08:04:56 +01:00
|
|
|
const emojiStyle = computed(defaultStore.makeGetterSetter('emojiStyle'));
|
2022-05-04 03:13:51 +02:00
|
|
|
const disableDrawer = computed(defaultStore.makeGetterSetter('disableDrawer'));
|
|
|
|
const disableShowingAnimatedImages = computed(defaultStore.makeGetterSetter('disableShowingAnimatedImages'));
|
2023-04-10 03:22:25 +02:00
|
|
|
const forceShowAds = computed(defaultStore.makeGetterSetter('forceShowAds'));
|
2022-05-04 03:13:51 +02:00
|
|
|
const loadRawImages = computed(defaultStore.makeGetterSetter('loadRawImages'));
|
2023-09-22 09:03:10 +02:00
|
|
|
const highlightSensitiveMedia = computed(defaultStore.makeGetterSetter('highlightSensitiveMedia'));
|
2022-05-04 03:13:51 +02:00
|
|
|
const imageNewTab = computed(defaultStore.makeGetterSetter('imageNewTab'));
|
|
|
|
const nsfw = computed(defaultStore.makeGetterSetter('nsfw'));
|
|
|
|
const showFixedPostForm = computed(defaultStore.makeGetterSetter('showFixedPostForm'));
|
2023-03-04 02:34:54 +01:00
|
|
|
const showFixedPostFormInChannel = computed(defaultStore.makeGetterSetter('showFixedPostFormInChannel'));
|
2022-06-30 03:53:40 +02:00
|
|
|
const numberOfPageCache = computed(defaultStore.makeGetterSetter('numberOfPageCache'));
|
2023-09-24 19:02:33 +02:00
|
|
|
const numberOfGamingSpeed = computed(defaultStore.makeGetterSetter('numberOfGamingSpeed'));
|
2023-09-25 14:12:22 +02:00
|
|
|
const homeColor = computed(defaultStore.makeGetterSetter('homeColor'));
|
|
|
|
const followerColor = computed(defaultStore.makeGetterSetter('followerColor'));
|
|
|
|
const specifiedColor = computed(defaultStore.makeGetterSetter('specifiedColor'));
|
2023-09-26 03:54:46 +02:00
|
|
|
const localOnlyColor = computed(defaultStore.makeGetterSetter('localOnlyColor'));
|
2022-05-04 03:13:51 +02: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-10-22 09:05:32 +02:00
|
|
|
const showAvatarDecorations = computed(defaultStore.makeGetterSetter('showAvatarDecorations'));
|
2023-04-15 14:35:19 +02:00
|
|
|
const mediaListWithOneImageAppearance = computed(defaultStore.makeGetterSetter('mediaListWithOneImageAppearance'));
|
2023-04-17 06:12:58 +02:00
|
|
|
const notificationPosition = computed(defaultStore.makeGetterSetter('notificationPosition'));
|
|
|
|
const notificationStackAxis = computed(defaultStore.makeGetterSetter('notificationStackAxis'));
|
2023-09-20 03:02:39 +02:00
|
|
|
const keepScreenOn = computed(defaultStore.makeGetterSetter('keepScreenOn'));
|
2023-09-21 09:39:18 +02:00
|
|
|
const enableGamingMode = computed(defaultStore.makeGetterSetter('gamingMode'));
|
2023-09-30 12:02:17 +02:00
|
|
|
const enableonlyAndWithSave = computed(defaultStore.makeGetterSetter('onlyAndWithSave'));
|
2023-10-12 10:34:30 +02:00
|
|
|
const enablehanntenn = computed(defaultStore.makeGetterSetter('enablehanntenn'));
|
2023-09-21 10:31:23 +02:00
|
|
|
const showMediaTimeline = computed(defaultStore.makeGetterSetter('showMediaTimeline'));
|
2023-10-18 19:17:16 +02:00
|
|
|
const showGlobalTimeline = computed(defaultStore.makeGetterSetter('showGlobalTimeline'));
|
2024-02-04 17:28:12 +01:00
|
|
|
const showLocalTimeline = computed(defaultStore.makeGetterSetter('showLocalTimeline'));
|
|
|
|
const showHomeTimeline = computed(defaultStore.makeGetterSetter('showHomeTimeline'));
|
|
|
|
const showSocialTimeline = computed(defaultStore.makeGetterSetter('showSocialTimeline'));
|
|
|
|
const topBarNameShown = computed(defaultStore.makeGetterSetter('topBarNameShown'));
|
2024-01-02 17:25:32 +01:00
|
|
|
const showVisibilityColor = computed(defaultStore.makeGetterSetter('showVisibilityColor'));
|
2023-10-30 01:12:20 +01:00
|
|
|
const disableStreamingTimeline = computed(defaultStore.makeGetterSetter('disableStreamingTimeline'));
|
2023-11-02 07:57:55 +01:00
|
|
|
const useGroupedNotifications = computed(defaultStore.makeGetterSetter('useGroupedNotifications'));
|
2023-12-16 05:52:52 +01:00
|
|
|
const enableSeasonalScreenEffect = computed(defaultStore.makeGetterSetter('enableSeasonalScreenEffect'));
|
2024-01-18 10:21:33 +01:00
|
|
|
const enableHorizontalSwipe = computed(defaultStore.makeGetterSetter('enableHorizontalSwipe'));
|
2024-01-17 07:41:55 +01:00
|
|
|
const remoteLocalTimelineDomain1 = ref(defaultStore.state['remoteLocalTimelineDomain1']);
|
|
|
|
const remoteLocalTimelineToken1 = ref(defaultStore.state['remoteLocalTimelineToken1']);
|
|
|
|
const remoteLocalTimelineDomain2 = ref(defaultStore.state['remoteLocalTimelineDomain2']);
|
|
|
|
const remoteLocalTimelineToken2 = ref(defaultStore.state['remoteLocalTimelineToken2']);
|
|
|
|
const remoteLocalTimelineDomain3 = ref(defaultStore.state['remoteLocalTimelineDomain3']);
|
|
|
|
const remoteLocalTimelineToken3 = ref(defaultStore.state['remoteLocalTimelineToken3']);
|
|
|
|
const remoteLocalTimelineDomain4 = ref(defaultStore.state['remoteLocalTimelineDomain4']);
|
|
|
|
const remoteLocalTimelineToken4 = ref(defaultStore.state['remoteLocalTimelineToken4']);
|
|
|
|
const remoteLocalTimelineDomain5 = ref(defaultStore.state['remoteLocalTimelineDomain5']);
|
|
|
|
const remoteLocalTimelineToken5 = ref(defaultStore.state['remoteLocalTimelineToken5']);
|
|
|
|
const remoteLocalTimelineName1 = ref(defaultStore.state['remoteLocalTimelineName1']);
|
|
|
|
const remoteLocalTimelineName2 = ref(defaultStore.state['remoteLocalTimelineName2']);
|
|
|
|
const remoteLocalTimelineName3 = ref(defaultStore.state['remoteLocalTimelineName3']);
|
|
|
|
const remoteLocalTimelineName4 = ref(defaultStore.state['remoteLocalTimelineName4']);
|
|
|
|
const remoteLocalTimelineName5 = ref(defaultStore.state['remoteLocalTimelineName5']);
|
|
|
|
|
|
|
|
const remoteLocalTimelineEnable1 = computed(defaultStore.makeGetterSetter('remoteLocalTimelineEnable1'));
|
|
|
|
const remoteLocalTimelineEnable2 = computed(defaultStore.makeGetterSetter('remoteLocalTimelineEnable2'));
|
|
|
|
const remoteLocalTimelineEnable3 = computed(defaultStore.makeGetterSetter('remoteLocalTimelineEnable3'));
|
|
|
|
const remoteLocalTimelineEnable4 = computed(defaultStore.makeGetterSetter('remoteLocalTimelineEnable4'));
|
|
|
|
const remoteLocalTimelineEnable5 = computed(defaultStore.makeGetterSetter('remoteLocalTimelineEnable5'));
|
2024-01-27 23:56:32 +01:00
|
|
|
const $i = signinRequired();
|
2024-02-04 17:28:12 +01:00
|
|
|
const pinnedMax = $i.policies.listPinnedLimit;
|
|
|
|
const maxLocalTimeline = $i.policies.localTimelineAnyLimit;
|
2022-05-04 03:13:51 +02:00
|
|
|
watch(lang, () => {
|
2023-01-07 02:13:02 +01:00
|
|
|
miLocalStorage.setItem('lang', lang.value as string);
|
|
|
|
miLocalStorage.removeItem('locale');
|
2023-12-09 18:11:17 +01:00
|
|
|
miLocalStorage.removeItem('localeVersion');
|
2022-05-04 03:13:51 +02:00
|
|
|
});
|
2023-09-25 14:12:22 +02:00
|
|
|
|
2024-01-02 17:25:32 +01:00
|
|
|
document.documentElement.style.setProperty('--gamingspeed', numberOfGamingSpeed.value + 's');
|
|
|
|
|
2023-09-25 14:12:22 +02:00
|
|
|
function hexToRgb(hex) {
|
2024-01-02 17:25:32 +01:00
|
|
|
// 16進数のカラーコードから "#" を除去
|
|
|
|
hex = hex.replace(/^#/, '');
|
2023-09-25 14:12:22 +02:00
|
|
|
|
2024-01-02 17:25:32 +01:00
|
|
|
// 16進数をRGBに変換
|
|
|
|
const r = parseInt(hex.substring(0, 2), 16);
|
|
|
|
const g = parseInt(hex.substring(2, 4), 16);
|
|
|
|
const b = parseInt(hex.substring(4, 6), 16);
|
2023-09-25 14:12:22 +02:00
|
|
|
|
2024-01-02 17:25:32 +01:00
|
|
|
return `${r},${g},${b}`;
|
2023-09-25 14:12:22 +02:00
|
|
|
}
|
2024-01-02 17:25:32 +01:00
|
|
|
|
2023-09-25 14:12:22 +02:00
|
|
|
document.documentElement.style.setProperty('--homeColor', hexToRgb(homeColor.value));
|
2024-01-02 17:25:32 +01:00
|
|
|
document.documentElement.style.setProperty('--followerColor', hexToRgb(followerColor.value));
|
|
|
|
document.documentElement.style.setProperty('--specifiedColor', hexToRgb(specifiedColor.value));
|
|
|
|
watch([homeColor, specifiedColor, followerColor], () => {
|
|
|
|
document.documentElement.style.setProperty('--homeColor', hexToRgb(homeColor.value));
|
|
|
|
document.documentElement.style.setProperty('--followerColor', hexToRgb(followerColor.value));
|
|
|
|
document.documentElement.style.setProperty('--specifiedColor', hexToRgb(specifiedColor.value));
|
|
|
|
});
|
|
|
|
watch(numberOfGamingSpeed, () => {
|
|
|
|
document.documentElement.style.setProperty('--gamingspeed', numberOfGamingSpeed.value + 's');
|
|
|
|
});
|
2022-05-04 03:13:51 +02:00
|
|
|
watch(fontSize, () => {
|
|
|
|
if (fontSize.value == null) {
|
2023-01-07 02:13:02 +01:00
|
|
|
miLocalStorage.removeItem('fontSize');
|
2022-05-04 03:13:51 +02:00
|
|
|
} else {
|
2023-01-07 02:13:02 +01:00
|
|
|
miLocalStorage.setItem('fontSize', fontSize.value);
|
2022-05-04 03:13:51 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
watch(useSystemFont, () => {
|
|
|
|
if (useSystemFont.value) {
|
2023-01-07 02:13:02 +01:00
|
|
|
miLocalStorage.setItem('useSystemFont', 't');
|
2022-05-04 03:13:51 +02:00
|
|
|
} else {
|
2023-01-07 02:13:02 +01:00
|
|
|
miLocalStorage.removeItem('useSystemFont');
|
2022-05-04 03:13:51 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
watch([
|
2024-01-21 11:08:07 +01:00
|
|
|
hemisphere,
|
2022-05-04 03:13:51 +02:00
|
|
|
lang,
|
|
|
|
fontSize,
|
|
|
|
useSystemFont,
|
|
|
|
enableInfiniteScroll,
|
|
|
|
squareAvatars,
|
2023-03-06 03:53:04 +01:00
|
|
|
showNoteActionsOnlyHover,
|
2022-05-04 03:13:51 +02:00
|
|
|
showGapBetweenNotesInTimeline,
|
|
|
|
instanceTicker,
|
2022-06-20 10:38:49 +02:00
|
|
|
overridedDeviceKind,
|
2023-07-25 12:44:52 +02:00
|
|
|
mediaListWithOneImageAppearance,
|
2023-09-10 10:16:50 +02:00
|
|
|
reactionsDisplaySize,
|
2023-11-24 00:37:27 +01:00
|
|
|
limitWidthOfReaction,
|
2023-09-22 09:03:10 +02:00
|
|
|
highlightSensitiveMedia,
|
2023-09-20 03:02:39 +02:00
|
|
|
keepScreenOn,
|
2023-09-23 02:31:01 +02:00
|
|
|
showMediaTimeline,
|
2024-01-02 17:25:32 +01:00
|
|
|
showVisibilityColor,
|
|
|
|
enableonlyAndWithSave,
|
|
|
|
showGlobalTimeline,
|
2024-02-04 17:28:12 +01:00
|
|
|
showSocialTimeline,
|
|
|
|
showLocalTimeline,
|
|
|
|
showHomeTimeline,
|
|
|
|
topBarNameShown,
|
2023-10-30 01:12:20 +01:00
|
|
|
disableStreamingTimeline,
|
2023-12-16 05:52:52 +01:00
|
|
|
enableSeasonalScreenEffect,
|
2022-05-04 03:13:51 +02:00
|
|
|
], async () => {
|
|
|
|
await reloadAsk();
|
|
|
|
});
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2024-01-17 07:41:55 +01:00
|
|
|
async function remoteLocaltimelineSave() {
|
2024-01-18 14:55:46 +01:00
|
|
|
os.alert({
|
|
|
|
type: 'success',
|
|
|
|
text: i18n.ts.saved,
|
|
|
|
});
|
|
|
|
defaultStore.set('remoteLocalTimelineDomain1', remoteLocalTimelineDomain1.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineToken1', remoteLocalTimelineToken1.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineDomain2', remoteLocalTimelineDomain2.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineToken2', remoteLocalTimelineToken2.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineDomain3', remoteLocalTimelineDomain3.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineToken3', remoteLocalTimelineToken3.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineDomain4', remoteLocalTimelineDomain4.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineToken4', remoteLocalTimelineToken4.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineDomain5', remoteLocalTimelineDomain5.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineToken5', remoteLocalTimelineToken5.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineName1', remoteLocalTimelineName1.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineName2', remoteLocalTimelineName2.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineName3', remoteLocalTimelineName3.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineName4', remoteLocalTimelineName4.value);
|
|
|
|
defaultStore.set('remoteLocalTimelineName5', remoteLocalTimelineName5.value);
|
|
|
|
await reloadAsk();
|
2024-01-17 07:41:55 +01:00
|
|
|
}
|
|
|
|
|
2024-01-14 08:04:48 +01:00
|
|
|
const emojiIndexLangs = ['en-US', 'ja-JP', 'ja-JP_hira'] as const;
|
2023-06-01 10:34:56 +02:00
|
|
|
|
2024-01-14 08:04:48 +01:00
|
|
|
function getEmojiIndexLangName(targetLang: typeof emojiIndexLangs[number]) {
|
|
|
|
if (langs.find(x => x[0] === targetLang)) {
|
|
|
|
return langs.find(x => x[0] === targetLang)![1];
|
|
|
|
} else {
|
|
|
|
// 絵文字辞書限定の言語定義
|
|
|
|
switch (targetLang) {
|
|
|
|
case 'ja-JP_hira': return 'ひらがな';
|
|
|
|
default: return targetLang;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function downloadEmojiIndex(lang: typeof emojiIndexLangs[number]) {
|
2023-06-01 10:10:53 +02:00
|
|
|
async function main() {
|
|
|
|
const currentIndexes = defaultStore.state.additionalUnicodeEmojiIndexes;
|
2023-10-29 08:09:20 +01:00
|
|
|
|
2023-06-01 10:10:53 +02:00
|
|
|
function download() {
|
|
|
|
switch (lang) {
|
|
|
|
case 'en-US': return import('../../unicode-emoji-indexes/en-US.json').then(x => x.default);
|
2024-01-14 08:04:48 +01:00
|
|
|
case 'ja-JP': return import('../../unicode-emoji-indexes/ja-JP.json').then(x => x.default);
|
|
|
|
case 'ja-JP_hira': return import('../../unicode-emoji-indexes/ja-JP_hira.json').then(x => x.default);
|
2023-06-01 10:10:53 +02:00
|
|
|
default: throw new Error('unrecognized lang: ' + lang);
|
|
|
|
}
|
|
|
|
}
|
2023-10-29 08:09:20 +01:00
|
|
|
|
2023-06-01 10:10:53 +02:00
|
|
|
currentIndexes[lang] = await download();
|
2023-06-01 10:34:56 +02: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 10:10:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
os.promiseDialog(main());
|
|
|
|
}
|
|
|
|
|
2023-09-19 03:58:42 +02:00
|
|
|
async function setPinnedList() {
|
2024-01-27 23:56:32 +01:00
|
|
|
const myLists = await userListsCache.fetch();
|
|
|
|
const favoriteLists = await userFavoriteListsCache.fetch();
|
|
|
|
let lists = [...new Set([...myLists, ...favoriteLists])];
|
2023-09-19 03:58:42 +02:00
|
|
|
const { canceled, result: list } = await os.select({
|
|
|
|
title: i18n.ts.selectList,
|
|
|
|
items: lists.map(x => ({
|
|
|
|
value: x, text: x.name,
|
|
|
|
})),
|
|
|
|
});
|
|
|
|
if (canceled) return;
|
2024-01-27 23:56:32 +01:00
|
|
|
let pinnedLists = defaultStore.state.pinnedUserLists;
|
2023-09-19 03:58:42 +02:00
|
|
|
|
2024-01-27 23:56:32 +01:00
|
|
|
// Check if the id is already present in pinnedLists
|
|
|
|
if (!pinnedLists.some(pinnedList => pinnedList.id === list.id)) {
|
|
|
|
pinnedLists.push(list);
|
|
|
|
defaultStore.set('pinnedUserLists', pinnedLists);
|
|
|
|
}
|
2023-09-19 03:58:42 +02:00
|
|
|
}
|
|
|
|
|
2024-02-04 17:28:12 +01:00
|
|
|
async function removePinnedList(id, name) {
|
|
|
|
if (!id) return;
|
|
|
|
const { canceled } = await os.confirm({
|
|
|
|
type: 'warning',
|
|
|
|
text: i18n.tsx.removeAreYouSure({ x: name ?? id }),
|
|
|
|
});
|
|
|
|
if (canceled) return;
|
2024-01-27 23:56:32 +01:00
|
|
|
|
2024-02-04 17:28:12 +01:00
|
|
|
if (id === 'all') {
|
|
|
|
if (canceled) return;
|
2024-01-27 23:56:32 +01:00
|
|
|
|
2024-02-04 17:28:12 +01:00
|
|
|
defaultStore.set('pinnedUserLists', []);
|
|
|
|
return;
|
|
|
|
}
|
2024-01-27 23:56:32 +01:00
|
|
|
|
2024-02-04 17:28:12 +01:00
|
|
|
const pinnedLists = defaultStore.state.pinnedUserLists;
|
|
|
|
const newPinnedLists = pinnedLists.filter(pinnedList => pinnedList.id !== id);
|
|
|
|
defaultStore.set('pinnedUserLists', newPinnedLists);
|
2023-09-19 03:58:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-12 08:48:19 +02:00
|
|
|
let smashCount = 0;
|
|
|
|
let smashTimer: number | null = null;
|
2023-10-29 08:09:20 +01:00
|
|
|
|
2023-09-12 08:48:19 +02:00
|
|
|
function testNotification(): void {
|
|
|
|
const notification: Misskey.entities.Notification = {
|
|
|
|
id: Math.random().toString(),
|
|
|
|
createdAt: new Date().toUTCString(),
|
|
|
|
isRead: false,
|
|
|
|
type: 'test',
|
|
|
|
};
|
|
|
|
|
|
|
|
globalEvents.emit('clientNotification', notification);
|
|
|
|
|
|
|
|
// セルフ通知破壊 実績関連
|
|
|
|
smashCount++;
|
|
|
|
if (smashCount >= 10) {
|
|
|
|
claimAchievement('smashTestNotificationButton');
|
|
|
|
smashCount = 0;
|
|
|
|
}
|
|
|
|
if (smashTimer) {
|
|
|
|
clearTimeout(smashTimer);
|
|
|
|
}
|
|
|
|
smashTimer = window.setTimeout(() => {
|
|
|
|
smashCount = 0;
|
|
|
|
}, 300);
|
|
|
|
}
|
|
|
|
|
2023-12-03 02:58:42 +01:00
|
|
|
function enableAllDataSaver() {
|
|
|
|
const g = { ...defaultStore.state.dataSaver };
|
|
|
|
|
|
|
|
Object.keys(g).forEach((key) => { g[key] = true; });
|
|
|
|
|
|
|
|
dataSaver.value = g;
|
|
|
|
}
|
|
|
|
|
|
|
|
function disableAllDataSaver() {
|
|
|
|
const g = { ...defaultStore.state.dataSaver };
|
|
|
|
|
|
|
|
Object.keys(g).forEach((key) => { g[key] = false; });
|
|
|
|
|
|
|
|
dataSaver.value = g;
|
|
|
|
}
|
|
|
|
|
|
|
|
watch(dataSaver, (to) => {
|
|
|
|
defaultStore.set('dataSaver', to);
|
|
|
|
}, {
|
|
|
|
deep: true,
|
|
|
|
});
|
|
|
|
|
2023-12-07 06:42:09 +01:00
|
|
|
const headerActions = computed(() => []);
|
2022-06-20 10:38:49 +02:00
|
|
|
|
2023-12-07 06:42:09 +01:00
|
|
|
const headerTabs = computed(() => []);
|
2022-06-20 10:38:49 +02:00
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.general,
|
2022-12-19 11:01:30 +01:00
|
|
|
icon: 'ti ti-adjustments',
|
2020-10-17 13:12:00 +02:00
|
|
|
});
|
|
|
|
</script>
|