1
0

build(#10336): write stories for MkAcct

This commit is contained in:
Acid Chicken (硫酸鶏)
2023-03-31 01:01:53 +09:00
parent 5393436403
commit 98fd6b5879
9 changed files with 128 additions and 140 deletions
@@ -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>