monkeeShark/packages/frontend/src/components/global/MkAcct.vue

21 lines
461 B
Vue
Raw Normal View History

<template>
2023-01-09 20:17:54 +00:00
<span>
<span>@{{ user.username }}</span>
<span v-if="user.host || detail || $store.state.showFullAcct" style="opacity: 0.5;">@{{ user.host || host }}</span>
</span>
</template>
2022-01-07 06:02:25 +00:00
<script lang="ts" setup>
import * as misskey from 'misskey-js';
import { toUnicode } from 'punycode/';
2022-01-07 06:02:25 +00:00
import { host as hostRaw } from '@/config';
2022-01-07 06:02:25 +00:00
defineProps<{
user: misskey.entities.UserDetailed;
detail?: boolean;
}>();
const host = toUnicode(hostRaw);
</script>