2018-02-16 09:43:25 +01:00
|
|
|
<template>
|
2018-02-19 15:37:09 +01:00
|
|
|
<mk-window width="400px" height="550px" @closed="$destroy">
|
2018-02-16 09:43:25 +01:00
|
|
|
<span slot="header" :class="$style.header">
|
2018-05-21 04:14:57 +02:00
|
|
|
<img :src="`${user.avatarUrl}?thumbnail&size=64`" alt=""/>{{ '%i18n:@following%'.replace('{}', name) }}
|
2018-02-16 09:43:25 +01:00
|
|
|
</span>
|
2018-02-22 15:05:05 +01:00
|
|
|
<mk-following :user="user"/>
|
2018-02-16 09:43:25 +01:00
|
|
|
</mk-window>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-04-05 18:36:34 +02:00
|
|
|
|
2018-02-16 09:43:25 +01:00
|
|
|
export default Vue.extend({
|
2018-05-21 04:14:57 +02:00
|
|
|
props: ['user'],
|
|
|
|
computed: {
|
|
|
|
name(): string {
|
|
|
|
return Vue.filter('userName')(this.user);
|
|
|
|
}
|
|
|
|
}
|
2018-02-16 09:43:25 +01:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" module>
|
|
|
|
.header
|
|
|
|
> img
|
|
|
|
display inline-block
|
|
|
|
vertical-align bottom
|
|
|
|
height calc(100% - 10px)
|
|
|
|
margin 5px
|
|
|
|
border-radius 4px
|
|
|
|
|
|
|
|
</style>
|