mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-16 04:26:33 +01:00
31 lines
717 B
Vue
31 lines
717 B
Vue
<template>
|
|
<span class="mk-acct">
|
|
<span class="name">@{{ user.username }}</span>
|
|
<span class="host" :class="{ fade: $store.state.settings.contrastedAcct }" v-if="user.host || detail || $store.state.settings.showFullAcct">@{{ user.host || host }}</span>
|
|
<fa v-if="user.isLocked == true" class="locked" icon="lock" fixed-width/>
|
|
</span>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import { host } from '../../../config';
|
|
import { toUnicode } from 'punycode';
|
|
export default Vue.extend({
|
|
props: ['user', 'detail'],
|
|
data() {
|
|
return {
|
|
host: toUnicode(host)
|
|
};
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style lang="stylus" scoped>
|
|
.mk-acct
|
|
> .host.fade
|
|
opacity 0.5
|
|
|
|
> .locked
|
|
opacity 0.8
|
|
margin-left 0.5em
|
|
</style>
|