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