2023-07-27 14:31:52 +09:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-01-30 04:37:25 +09:00
|
|
|
<template>
|
2023-05-19 13:58:09 +09:00
|
|
|
<MkCondensedLine v-if="defaultStore.state.enableCondensedLineForAcct" :minScale="2 / 3">
|
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>
|
2023-05-05 08:16:55 +09:00
|
|
|
</MkCondensedLine>
|
2023-05-05 08:34:05 +09:00
|
|
|
<span v-else>
|
|
|
|
<span>@{{ user.username }}</span>
|
|
|
|
<span v-if="user.host || detail || defaultStore.state.showFullAcct" style="opacity: 0.5;">@{{ user.host || host }}</span>
|
|
|
|
</span>
|
2020-01-30 04:37:25 +09:00
|
|
|
</template>
|
|
|
|
|
2022-01-07 15:02:25 +09:00
|
|
|
<script lang="ts" setup>
|
2023-09-04 13:33:38 +09:00
|
|
|
import * as Misskey from 'misskey-js';
|
2021-04-04 13:00:39 +09:00
|
|
|
import { toUnicode } from 'punycode/';
|
2023-09-19 16:37:43 +09:00
|
|
|
import { host as hostRaw } from '@/config.js';
|
|
|
|
import { defaultStore } from '@/store.js';
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-07 15:02:25 +09:00
|
|
|
defineProps<{
|
2023-09-04 13:33:38 +09:00
|
|
|
user: Misskey.entities.UserDetailed;
|
2022-01-07 15:02:25 +09:00
|
|
|
detail?: boolean;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
const host = toUnicode(hostRaw);
|
2020-01-30 04:37:25 +09:00
|
|
|
</script>
|