mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
fix(frontend): MkSelectにinstanceIconの設定を含めるように
This commit is contained in:
parent
40ac246e5b
commit
8c1dfab195
12
locales/index.d.ts
vendored
12
locales/index.d.ts
vendored
@ -2922,10 +2922,6 @@ export interface Locale extends ILocale {
|
|||||||
* ノートのサーバー情報
|
* ノートのサーバー情報
|
||||||
*/
|
*/
|
||||||
"instanceTicker": string;
|
"instanceTicker": string;
|
||||||
/**
|
|
||||||
* サーバー情報をアイコンのみにする
|
|
||||||
*/
|
|
||||||
"instanceIcon": string;
|
|
||||||
/**
|
/**
|
||||||
* {x}を待っています
|
* {x}を待っています
|
||||||
*/
|
*/
|
||||||
@ -7450,6 +7446,14 @@ export interface Locale extends ILocale {
|
|||||||
* 常に表示
|
* 常に表示
|
||||||
*/
|
*/
|
||||||
"always": string;
|
"always": string;
|
||||||
|
/**
|
||||||
|
* リモートユーザーに表示(アイコンのみ)
|
||||||
|
*/
|
||||||
|
"remoteIcon": string;
|
||||||
|
/**
|
||||||
|
* 常に表示(アイコンのみ)
|
||||||
|
*/
|
||||||
|
"alwaysIcon": string;
|
||||||
};
|
};
|
||||||
"_serverDisconnectedBehavior": {
|
"_serverDisconnectedBehavior": {
|
||||||
/**
|
/**
|
||||||
|
@ -726,7 +726,6 @@ openInSideView: "サイドビューで開く"
|
|||||||
defaultNavigationBehaviour: "デフォルトのナビゲーション"
|
defaultNavigationBehaviour: "デフォルトのナビゲーション"
|
||||||
editTheseSettingsMayBreakAccount: "これらの設定を編集するとアカウントが破損する可能性があります。"
|
editTheseSettingsMayBreakAccount: "これらの設定を編集するとアカウントが破損する可能性があります。"
|
||||||
instanceTicker: "ノートのサーバー情報"
|
instanceTicker: "ノートのサーバー情報"
|
||||||
instanceIcon: "サーバー情報をアイコンのみにする"
|
|
||||||
waitingFor: "{x}を待っています"
|
waitingFor: "{x}を待っています"
|
||||||
random: "ランダム"
|
random: "ランダム"
|
||||||
system: "システム"
|
system: "システム"
|
||||||
@ -1945,6 +1944,8 @@ _instanceTicker:
|
|||||||
none: "表示しない"
|
none: "表示しない"
|
||||||
remote: "リモートユーザーに表示"
|
remote: "リモートユーザーに表示"
|
||||||
always: "常に表示"
|
always: "常に表示"
|
||||||
|
remoteIcon: "リモートユーザーに表示(アイコンのみ)"
|
||||||
|
alwaysIcon: "常に表示(アイコンのみ)"
|
||||||
|
|
||||||
_serverDisconnectedBehavior:
|
_serverDisconnectedBehavior:
|
||||||
reload: "自動でリロード"
|
reload: "自動でリロード"
|
||||||
|
@ -47,10 +47,10 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
</div>
|
</div>
|
||||||
<article v-else :class="$style.article" @contextmenu.stop="onContextmenu">
|
<article v-else :class="$style.article" @contextmenu.stop="onContextmenu">
|
||||||
<div v-if="appearNote.channel" :class="$style.colorBar" :style="{ background: appearNote.channel.color }"></div>
|
<div v-if="appearNote.channel" :class="$style.colorBar" :style="{ background: appearNote.channel.color }"></div>
|
||||||
<MkAvatar :class="$style.avatar" :user="appearNote.user" :link="!mock" :preview="!mock" :showInstance="!!showInstanceIcon && !!showTicker"/>
|
<MkAvatar :class="$style.avatar" :user="appearNote.user" :link="!mock" :preview="!mock" :showInstance="showInstanceIcon"/>
|
||||||
<div :class="$style.main">
|
<div :class="$style.main">
|
||||||
<MkNoteHeader :note="appearNote" :mini="true"/>
|
<MkNoteHeader :note="appearNote" :mini="true"/>
|
||||||
<MkInstanceTicker v-if="showTicker && !showInstanceIcon" :instance="appearNote.user.instance"/>
|
<MkInstanceTicker v-if="showTicker" :instance="appearNote.user.instance"/>
|
||||||
<div style="container-type: inline-size;">
|
<div style="container-type: inline-size;">
|
||||||
<p v-if="appearNote.cw != null" :class="$style.cw">
|
<p v-if="appearNote.cw != null" :class="$style.cw">
|
||||||
<Mfm
|
<Mfm
|
||||||
@ -274,7 +274,7 @@ const hardMuted = ref(props.withHardMute && checkMute(appearNote.value, $i?.hard
|
|||||||
const translation = ref<Misskey.entities.NotesTranslateResponse | null>(null);
|
const translation = ref<Misskey.entities.NotesTranslateResponse | null>(null);
|
||||||
const translating = ref(false);
|
const translating = ref(false);
|
||||||
const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.value.user.instance);
|
const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.value.user.instance);
|
||||||
const showInstanceIcon = ref(defaultStore.state.instanceIcon);
|
const showInstanceIcon = (defaultStore.state.instanceTicker === 'alwaysIcon') || (defaultStore.state.instanceTicker === 'remoteIcon' && appearNote.value.user.instance);
|
||||||
const canRenote = computed(() => ['public', 'home'].includes(appearNote.value.visibility) || (appearNote.value.visibility === 'followers' && appearNote.value.userId === $i?.id));
|
const canRenote = computed(() => ['public', 'home'].includes(appearNote.value.visibility) || (appearNote.value.visibility === 'followers' && appearNote.value.userId === $i?.id));
|
||||||
const renoteCollapsed = ref(
|
const renoteCollapsed = ref(
|
||||||
defaultStore.state.collapseRenotes && isRenote && (
|
defaultStore.state.collapseRenotes && isRenote && (
|
||||||
|
@ -35,8 +35,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
}"
|
}"
|
||||||
alt=""
|
alt=""
|
||||||
>
|
>
|
||||||
<MkInstanceIcon v-if="showInstance" :class="$style.instanceicon" :instance="user.instance"/>
|
|
||||||
</template>
|
</template>
|
||||||
|
<MkInstanceIcon v-if="showInstance" :class="$style.instanceicon" :instance="user.instance"/>
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -69,8 +69,10 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
<option value="none">{{ i18n.ts._instanceTicker.none }}</option>
|
<option value="none">{{ i18n.ts._instanceTicker.none }}</option>
|
||||||
<option value="remote">{{ i18n.ts._instanceTicker.remote }}</option>
|
<option value="remote">{{ i18n.ts._instanceTicker.remote }}</option>
|
||||||
<option value="always">{{ i18n.ts._instanceTicker.always }}</option>
|
<option value="always">{{ i18n.ts._instanceTicker.always }}</option>
|
||||||
|
<option value="remoteIcon">{{ i18n.ts._instanceTicker.remoteIcon }}</option>
|
||||||
|
<option value="alwaysIcon">{{ i18n.ts._instanceTicker.alwaysIcon }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<MkSwitch v-if="instanceTicker !== 'none'" v-model="instanceIcon">{{ i18n.ts.instanceIcon }}</MkSwitch>
|
|
||||||
<MkSelect v-model="nsfw">
|
<MkSelect v-model="nsfw">
|
||||||
<template #label>{{ i18n.ts.displayOfSensitiveMedia }}</template>
|
<template #label>{{ i18n.ts.displayOfSensitiveMedia }}</template>
|
||||||
<option value="respect">{{ i18n.ts._displayOfSensitiveMedia.respect }}</option>
|
<option value="respect">{{ i18n.ts._displayOfSensitiveMedia.respect }}</option>
|
||||||
@ -304,7 +306,6 @@ const showFixedPostForm = computed(defaultStore.makeGetterSetter('showFixedPostF
|
|||||||
const showFixedPostFormInChannel = computed(defaultStore.makeGetterSetter('showFixedPostFormInChannel'));
|
const showFixedPostFormInChannel = computed(defaultStore.makeGetterSetter('showFixedPostFormInChannel'));
|
||||||
const numberOfPageCache = computed(defaultStore.makeGetterSetter('numberOfPageCache'));
|
const numberOfPageCache = computed(defaultStore.makeGetterSetter('numberOfPageCache'));
|
||||||
const instanceTicker = computed(defaultStore.makeGetterSetter('instanceTicker'));
|
const instanceTicker = computed(defaultStore.makeGetterSetter('instanceTicker'));
|
||||||
const instanceIcon = computed(defaultStore.makeGetterSetter('instanceIcon'));
|
|
||||||
const enableInfiniteScroll = computed(defaultStore.makeGetterSetter('enableInfiniteScroll'));
|
const enableInfiniteScroll = computed(defaultStore.makeGetterSetter('enableInfiniteScroll'));
|
||||||
const useReactionPickerForContextMenu = computed(defaultStore.makeGetterSetter('useReactionPickerForContextMenu'));
|
const useReactionPickerForContextMenu = computed(defaultStore.makeGetterSetter('useReactionPickerForContextMenu'));
|
||||||
const squareAvatars = computed(defaultStore.makeGetterSetter('squareAvatars'));
|
const squareAvatars = computed(defaultStore.makeGetterSetter('squareAvatars'));
|
||||||
@ -354,7 +355,6 @@ watch([
|
|||||||
showNoteActionsOnlyHover,
|
showNoteActionsOnlyHover,
|
||||||
showGapBetweenNotesInTimeline,
|
showGapBetweenNotesInTimeline,
|
||||||
instanceTicker,
|
instanceTicker,
|
||||||
instanceIcon,
|
|
||||||
overridedDeviceKind,
|
overridedDeviceKind,
|
||||||
mediaListWithOneImageAppearance,
|
mediaListWithOneImageAppearance,
|
||||||
reactionsDisplaySize,
|
reactionsDisplaySize,
|
||||||
|
@ -294,11 +294,7 @@ export const defaultStore = markRaw(new Storage('base', {
|
|||||||
},
|
},
|
||||||
instanceTicker: {
|
instanceTicker: {
|
||||||
where: 'device',
|
where: 'device',
|
||||||
default: 'remote' as 'none' | 'remote' | 'always',
|
default: 'remote' as 'none' | 'remote' | 'always' | 'remoteIcon' | 'alwaysIcon',
|
||||||
},
|
|
||||||
instanceIcon: {
|
|
||||||
where: 'device',
|
|
||||||
default: false,
|
|
||||||
},
|
},
|
||||||
emojiPickerScale: {
|
emojiPickerScale: {
|
||||||
where: 'device',
|
where: 'device',
|
||||||
|
Loading…
Reference in New Issue
Block a user