2018-05-17 22:31:30 -07:00
|
|
|
<template>
|
|
|
|
<span class="mk-acct">
|
|
|
|
<span class="name">@{{ user.username }}</span>
|
2018-09-14 04:33:27 -07:00
|
|
|
<span class="host" :class="{ fade: $store.state.settings.contrastedAcct }" v-if="user.host || detail || $store.state.settings.showFullAcct">@{{ user.host || host }}</span>
|
2019-01-05 02:59:10 -08:00
|
|
|
<fa v-if="user.isLocked == true" class="locked" icon="lock" fixed-width/>
|
2018-05-17 22:31:30 -07:00
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-09-05 11:21:11 -07:00
|
|
|
import { host } from '../../../config';
|
2018-11-10 19:35:30 -08:00
|
|
|
import { toUnicode } from 'punycode';
|
2018-05-17 22:31:30 -07:00
|
|
|
export default Vue.extend({
|
2018-09-05 11:21:11 -07:00
|
|
|
props: ['user', 'detail'],
|
|
|
|
data() {
|
|
|
|
return {
|
2018-11-10 19:35:30 -08:00
|
|
|
host: toUnicode(host)
|
2018-09-05 11:21:11 -07:00
|
|
|
};
|
|
|
|
}
|
2018-05-17 22:31:30 -07:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.mk-acct
|
2018-09-06 13:45:13 -07:00
|
|
|
> .host.fade
|
2018-05-17 22:31:30 -07:00
|
|
|
opacity 0.5
|
2019-01-05 02:59:10 -08:00
|
|
|
|
|
|
|
> .locked
|
|
|
|
opacity 0.8
|
|
|
|
margin-left 0.5em
|
2018-05-17 22:31:30 -07:00
|
|
|
</style>
|