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