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