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