mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-16 16:57:14 +01:00
a085d9fbd7
This reverts commit 1dbce5e3e2
.
38 lines
647 B
Vue
38 lines
647 B
Vue
<template>
|
|
<span class="mk-acct">
|
|
<span class="name">@{{ user.username }}</span>
|
|
<span class="host" v-if="user.host || detail || $store.state.showFullAcct">@{{ user.host || host }}</span>
|
|
</span>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import { toUnicode } from 'punycode/';
|
|
import { host } from '@client/config';
|
|
|
|
export default defineComponent({
|
|
props: {
|
|
user: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
detail: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
host: toUnicode(host),
|
|
};
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.mk-acct {
|
|
> .host {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
</style>
|