mirror of
https://github.com/BillyOutlast/drop.git
synced 2026-02-04 08:41:17 +01:00
* switch to nuxt assets for emojis * add auth to emoji endpoint * fix cache control header * fix type error
16 lines
333 B
Vue
16 lines
333 B
Vue
<template>
|
|
<img ref="emojiEl" class="inline-block emoji" :src="url" :alt="emoji" />
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import twemoji from "@discordapp/twemoji";
|
|
|
|
const props = defineProps<{
|
|
emoji: string;
|
|
}>();
|
|
|
|
const url = computed(() => {
|
|
return `/api/v1/emoji/${twemoji.convert.toCodePoint(props.emoji)}`;
|
|
});
|
|
</script>
|