1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-24 03:28:27 +09:00
MisskeyIO/packages/frontend/src/components/global/MkAcct.vue

22 lines
581 B
Vue
Raw Normal View History

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