2023-07-27 05:31:52 +00:00
|
|
|
<!--
|
2024-02-13 15:59:27 +00:00
|
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 05:31:52 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-01-29 19:37:25 +00:00
|
|
|
<template>
|
2024-09-28 00:52:40 +00:00
|
|
|
<span>
|
2023-05-04 23:34:05 +00:00
|
|
|
<span>@{{ user.username }}</span>
|
|
|
|
<span v-if="user.host || detail || defaultStore.state.showFullAcct" style="opacity: 0.5;">@{{ user.host || host }}</span>
|
|
|
|
</span>
|
2020-01-29 19:37:25 +00:00
|
|
|
</template>
|
|
|
|
|
2022-01-07 06:02:25 +00:00
|
|
|
<script lang="ts" setup>
|
2023-09-04 04:33:38 +00:00
|
|
|
import * as Misskey from 'misskey-js';
|
2025-01-14 12:37:39 +00:00
|
|
|
import { toUnicode } from 'punycode.js';
|
2024-09-10 09:39:53 +00:00
|
|
|
import { host as hostRaw } from '@@/js/config.js';
|
2023-09-19 07:37:43 +00:00
|
|
|
import { defaultStore } from '@/store.js';
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2022-01-07 06:02:25 +00:00
|
|
|
defineProps<{
|
2024-08-17 06:01:08 +00:00
|
|
|
user: Misskey.entities.UserLite;
|
2022-01-07 06:02:25 +00:00
|
|
|
detail?: boolean;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
const host = toUnicode(hostRaw);
|
2020-01-29 19:37:25 +00:00
|
|
|
</script>
|