build(#10336): write stories for MkAcct
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<span>
|
||||
<span>@{{ user.username }}</span>
|
||||
<span v-if="user.host || detail || $store.state.showFullAcct" style="opacity: 0.5;">@{{ user.host || host }}</span>
|
||||
<span v-if="user.host || detail || showFullAcct" style="opacity: 0.5;">@{{ user.host || host }}</span>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
import * as misskey from 'misskey-js';
|
||||
import { toUnicode } from 'punycode/';
|
||||
import { host as hostRaw } from '@/config';
|
||||
import { defaultStore } from '@/store';
|
||||
|
||||
defineProps<{
|
||||
user: misskey.entities.UserDetailed;
|
||||
@@ -16,5 +17,5 @@ defineProps<{
|
||||
}>();
|
||||
|
||||
const host = toUnicode(hostRaw);
|
||||
const showFullAcct = $ref(defaultStore.state.showFullAcct);
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user