絵文字をtwemojiに変更

クライアントデフォルトにあわせるため
This commit is contained in:
kakkokari-gtyih 2024-09-06 18:26:52 +09:00
parent 74af29d3a4
commit 31a6aafd2c
4 changed files with 5 additions and 7 deletions

View file

@ -4,20 +4,18 @@ SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
<span :alt="props.emoji">{{ colorizedNativeEmoji }}</span>
<img :class="$style.root" :src="url" :alt="props.emoji" decoding="async"/>
</template>
<script lang="ts" setup>
import { computed } from 'vue';
import { colorizeEmoji } from '@@/js/emojilist.js';
import { char2twemojiFilePath } from '@@/js/emoji-base.js';
const props = defineProps<{
emoji: string;
menu?: boolean;
menuReaction?: boolean;
}>();
const colorizedNativeEmoji = computed(() => colorizeEmoji(props.emoji));
const url = computed(() => char2twemojiFilePath(props.emoji));
</script>
<style lang="scss" module>

View file

@ -48,7 +48,7 @@ import { markRaw, ref, shallowRef, computed, onUpdated, onMounted, onBeforeUnmou
import sanitizeHtml from 'sanitize-html';
import { emojilist, getEmojiName } from '@@/js/emojilist.js';
import contains from '@/scripts/contains.js';
import { char2twemojiFilePath, char2fluentEmojiFilePath } from '@/scripts/emoji-base.js';
import { char2twemojiFilePath, char2fluentEmojiFilePath } from '@@/js/emoji-base.js';
import { acct } from '@/filters/user.js';
import * as os from '@/os.js';
import { misskeyApi } from '@/scripts/misskey-api.js';

View file

@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { computed, inject } from 'vue';
import { colorizeEmoji, getEmojiName } from '@@/js/emojilist.js';
import { char2fluentEmojiFilePath, char2twemojiFilePath } from '@/scripts/emoji-base.js';
import { char2fluentEmojiFilePath, char2twemojiFilePath } from '@@/js/emoji-base.js';
import { defaultStore } from '@/store.js';
import * as os from '@/os.js';
import { copyToClipboard } from '@/scripts/copy-to-clipboard.js';