mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-16 06:57:36 -07:00
e24ca1e51f
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com> Co-authored-by: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>
29 lines
547 B
Vue
29 lines
547 B
Vue
<template>
|
|
<span class="mk-acct" v-once>
|
|
<span class="name">@{{ user.username }}</span>
|
|
<span class="host" v-if="user.host || detail || $store.state.settings.showFullAcct">@{{ user.host || host }}</span>
|
|
</span>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import { toUnicode } from 'punycode';
|
|
import { host } from '../config';
|
|
|
|
export default Vue.extend({
|
|
props: ['user', 'detail'],
|
|
data() {
|
|
return {
|
|
host: toUnicode(host),
|
|
};
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.mk-acct {
|
|
> .host {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
</style>
|