2022-06-27 19:26:52 +03:00
|
|
|
import UserPopover from '../user_popover/user_popover.vue'
|
2019-02-13 07:14:23 -05:00
|
|
|
import UserAvatar from '../user_avatar/user_avatar.vue'
|
2022-08-29 18:46:41 -04:00
|
|
|
import UserLink from '../user_link/user_link.vue'
|
2021-08-13 13:06:42 +03:00
|
|
|
import RichContent from 'src/components/rich_content/rich_content.jsx'
|
2019-02-13 07:14:23 -05:00
|
|
|
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
|
|
|
|
|
|
|
const BasicUserCard = {
|
|
|
|
props: [
|
|
|
|
'user'
|
|
|
|
],
|
|
|
|
components: {
|
2022-06-27 19:26:52 +03:00
|
|
|
UserPopover,
|
2021-08-13 13:06:42 +03:00
|
|
|
UserAvatar,
|
2022-08-29 18:46:41 -04:00
|
|
|
RichContent,
|
|
|
|
UserLink
|
2019-02-13 07:14:23 -05:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
userProfileLink (user) {
|
|
|
|
return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default BasicUserCard
|