Sharkey/packages/frontend/src/components/global/MkAcct.vue

21 lines
506 B
Vue
Raw Normal View History

<template>
2023-01-09 22:17:54 +02:00
<span>
<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>
</span>
</template>
2022-01-07 08:02:25 +02:00
<script lang="ts" setup>
import * as misskey from 'misskey-js';
import { toUnicode } from 'punycode/';
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';
2022-01-07 08:02:25 +02:00
defineProps<{
user: misskey.entities.UserDetailed;
detail?: boolean;
}>();
const host = toUnicode(hostRaw);
</script>