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